@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Quicksand:wght@300;400;500;600;700&display=swap');

html,body,header,footer,menu,nav,aside,main,article,section,div,span,h1,h2,h3,h4,p,a,hr,ul,ol,li,img,table,tr,td,button,form,input,textarea,select,label{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    color: inherit;
    font-family: "Quicksand", "Noto Sans TC", sans-serif;
}

html{
    scroll-behavior: smooth;
}

img{
    width: 100%;
    vertical-align: bottom;
}

:root{
    --mainColor--: #E8985E;
    --mainLight--: #F5C89A;
    --mainDark--: #C47A3F;
    --mainAlphaColor--: #E8985ED1;
    --cream--: #FFF8F0;
    --warmWhite--: #FFFDF9;
    --darkBrown--: #3E2723;
    --midBrown--: #5D4037;
    --lightBrown--: #8D6E63;
    --darkBlack--: #1A1210;
    --alphaBlack--: #1A12108A;
    --textWhite--: #FFF;
    --goldAccent--: #FFB300;
    --pinkAccent--: #F48FB1;
    --transition--: all 500ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

body{
    background-color: var(--warmWhite--);
}

.flex{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-theme, .btn-line{
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--textWhite--);
    padding: 0.6rem 1.6rem;
    margin: 0.25rem 0;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(232, 152, 94, 0.35);
    background: linear-gradient(135deg, var(--mainColor--), var(--mainDark--));
    cursor: pointer;
    transition: var(--transition--);
    letter-spacing: 1px;
}
.btn-theme:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 152, 94, 0.5);
}
.btn-theme:active, .btn-line:active{
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(232, 152, 94, 0.3);
}
.btn-line{
    background: transparent;
    border: 2px solid var(--textWhite--);
    box-shadow: none;
}
.btn-line:hover{
    background-color: rgba(255,255,255,0.15);
}

/* ===== Grid System ===== */
.grid-1{ width: calc(100% / 12 * 1); }
.grid-2{ width: calc(100% / 12 * 2); }
.grid-3{ width: calc(100% / 12 * 3); }
.grid-4{ width: calc(100% / 12 * 4); }
.grid-5{ width: calc(100% / 12 * 5); }
.grid-6{ width: calc(100% / 12 * 6); }
.grid-7{ width: calc(100% / 12 * 7); }
.grid-8{ width: calc(100% / 12 * 8); }
.grid-9{ width: calc(100% / 12 * 9); }
.grid-10{ width: calc(100% / 12 * 10); }
.grid-11{ width: calc(100% / 12 * 11); }
.grid-12{ width: calc(100% / 12 * 12); }

/* ======== Header =========== */
header{
    width: 100%;
    height: 70px;
    line-height: 70px;
    padding: 0 20px;
    position: relative;
    z-index: 100;
    background-color: var(--warmWhite--);
}
header #logo a{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mainColor--);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 70px;
}
header #logo a .logo-icon{
    font-size: 1.8rem;
}
header nav{
    width: 32px;
    height: 22px;
    position: absolute;
    top: 24px;
    right: 20px;
    cursor: pointer;
    z-index: 101;
}
header nav .bar{
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: var(--darkBrown--);
    transform-origin: 0 0;
    position: absolute;
    left: 0;
    transition: var(--transition--);
}
header nav .bar:nth-of-type(1){ top: 0; }
header nav .bar:nth-of-type(2){ top: 10px; }
header nav .bar:nth-of-type(3){ bottom: 0; }
header nav .bar:nth-of-type(1).none{ transform: rotate(36.5deg); }
header nav .bar:nth-of-type(2).none{ opacity: 0; }
header nav .bar:nth-of-type(3).none{ transform: rotate(-36.5deg); }

header menu{
    width: 100%;
    background-color: var(--alphaBlack--);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--textWhite--);
    text-align: center;
    padding: 20px 0;
    overflow: hidden;
    transition: var(--transition--);
}
header menu ul li a{
    display: block;
    padding: 8px 0;
    font-weight: 500;
    transition: var(--transition--);
}
header menu ul li:hover a{
    background-color: var(--mainColor--);
}
header menu.none{
    padding: 0;
    height: 0;
}

/* ============== Hero Slide ================= */
#slide{
    width: 100%;
    height: 100vh;
    position: relative;
    margin-top: -70px;
}
#slide .box{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
#slide .box .pic{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateX(100%);
    animation: sliding 25s linear infinite;
}
#slide .box .pic:nth-of-type(1){
    background-image: url(https://images.unsplash.com/photo-1587300003388-59208cc962cb?w=1600&h=900&fit=crop);
}
#slide .box .pic:nth-of-type(2){
    background-image: url(https://images.unsplash.com/photo-1583337130417-13571c9c0dfc?w=1600&h=900&fit=crop);
    animation-delay: 5s;
}
#slide .box .pic:nth-of-type(3){
    background-image: url(https://images.unsplash.com/photo-1530281700549-e82e7bf110d6?w=1600&h=900&fit=crop);
    animation-delay: 10s;
}
#slide .box .pic:nth-of-type(4){
    background-image: url(https://images.unsplash.com/photo-1548199973-03cce0bbc87b?w=1600&h=900&fit=crop);
    animation-delay: 15s;
}
#slide .box .pic:nth-of-type(5){
    background-image: url(https://images.unsplash.com/photo-1598133894008-61f7fdb8cc3a?w=1600&h=900&fit=crop);
    animation-delay: 20s;
}

#slide .theme{
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62,39,35,0.7), rgba(232,152,94,0.4));
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
}
#slide .theme .item{
    width: 100%;
    max-width: 360px;
    padding: 0 20px;
    color: var(--textWhite--);
    line-height: 1.8em;
    text-align: center;
}
#slide .theme .item h2{
    font-size: 2.5rem;
    line-height: 1.3em;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
#slide .theme .item .subtitle{
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 0.8em;
    color: var(--mainLight--);
}
#slide .theme .item p{
    text-align: justify;
    margin-bottom: 1.5em;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

@keyframes sliding{
    0%{ transform: translateX(100%); z-index: 1; }
    4%{ transform: translateX(0); z-index: 5; }
    20%{ transform: translateX(0); }
    24%{ transform: translateX(-100%); z-index: 5; }
    25%{ transform: translateX(-100%); z-index: 1; }
    26%{ transform: translateX(100%); z-index: 1; }
}

/* ================= About ====================== */
#about{
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--midBrown--);
    line-height: 1.8em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}
#about .flex{
    width: 100%;
    padding: 30px 20px;
}
#about .flex h2{
    font-size: 1.8rem;
    color: var(--darkBrown--);
    line-height: 48px;
    position: relative;
}
#about .flex h2::after{
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mainColor--), var(--mainLight--));
    border-radius: 3px;
    margin-top: 8px;
}
#about .flex h3{
    font-size: 1.3rem;
    color: var(--darkBrown--);
    line-height: 42px;
}
#about .flex .grid-10{
    padding: 1em;
}
#about .flex .grid-10 p{
    padding: 0.5em 0;
    text-align: justify;
}
#about .flex .grid-10 i{
    color: var(--mainColor--);
}
#about .feature-card{
    text-align: center;
    padding: 2em 1em;
    border-radius: 16px;
    transition: var(--transition--);
}
#about .feature-card:hover{
    background-color: var(--cream--);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232,152,94,0.15);
}
#about .feature-card i{
    margin-bottom: 0.5em;
}

/* =================== Breeds ======================= */
#breeds{
    width: 100%;
    max-width: 1200px;
    margin: auto;
}
#breeds .flex .banner{
    text-align: center;
    padding: 60px 15px;
    background: linear-gradient(135deg, var(--mainColor--), var(--mainDark--));
    color: var(--textWhite--);
    border-radius: 0;
}
#breeds .flex .banner h2{
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}
#breeds .flex .banner p{
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8em;
}
#breeds .flex .grid-6{
    position: relative;
    overflow: hidden;
}
#breeds .flex .grid-6 img{
    transition: var(--transition--);
}
#breeds .flex .grid-6 h3{
    width: 100%;
    height: 2.8em;
    line-height: 2.8em;
    color: var(--textWhite--);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(62,39,35,0.85));
    position: absolute;
    left: 0;
    bottom: 0;
    letter-spacing: 1px;
}

/* ========================= Puppies ============================== */
#puppies{
    width: 100%;
    max-width: 1200px;
    margin: auto;
}
#puppies .flex{
    padding: 40px 20px;
}
#puppies .flex .banner{
    padding: 40px 15px;
    text-align: center;
}
#puppies .flex .banner h2{
    font-size: 1.8rem;
    color: var(--darkBrown--);
    position: relative;
    display: inline-block;
}
#puppies .flex .banner h2::after{
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mainColor--), var(--mainLight--));
    border-radius: 3px;
    margin: 10px auto 0;
}
#puppies .flex .banner p{
    color: var(--midBrown--);
    margin-top: 0.8em;
    line-height: 1.8em;
}
#puppies .flex .puppy-card{
    display: block;
    padding: 15px;
    line-height: 1.8em;
    border-radius: 16px;
    transition: var(--transition--);
    color: var(--midBrown--);
}
#puppies .flex .puppy-card:hover{
    background-color: var(--cream--);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232,152,94,0.15);
}
#puppies .flex .puppy-card img{
    border-radius: 12px;
    aspect-ratio: 4/3;
    object-fit: cover;
}
#puppies .flex .puppy-card h3{
    line-height: 48px;
    color: var(--darkBrown--);
    font-size: 1.2rem;
}
#puppies .flex .puppy-card .price{
    color: var(--mainDark--);
    font-weight: 700;
    font-size: 1.1rem;
}
#puppies .flex .puppy-card .tag{
    display: inline-block;
    background-color: var(--mainLight--);
    color: var(--darkBrown--);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

/* ======================= CTA Banner ================================ */
#cta{
    width: 100%;
    height: 35vh;
    min-height: 250px;
    background-image: url(https://images.unsplash.com/photo-1560807707-8cc77767d783?w=1600&h=500&fit=crop);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#cta .grid-12{
    align-items: center;
    background: linear-gradient(135deg, rgba(232,152,94,0.85), rgba(196,122,63,0.85));
    color: var(--textWhite--);
    padding: 0 30px;
    line-height: 2em;
}
#cta .grid-12 .box{
    max-width: 500px;
}
#cta .grid-12 h2{
    font-size: 1.8rem;
    margin-bottom: 0.3em;
}

/* ======================= Gallery ================================ */
#gallery{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    color: var(--darkBrown--);
}
#gallery .flex .banner{
    text-align: center;
    padding: 60px 20px;
}
#gallery .flex .banner h2{
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}
#gallery .flex .banner h2::after{
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mainColor--), var(--mainLight--));
    border-radius: 3px;
    margin: 10px auto 0;
}
#gallery .flex .banner p{
    color: var(--midBrown--);
    margin-top: 0.8em;
    line-height: 1.8em;
}
#gallery .flex .item{
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 8px;
}
#gallery .flex .item img{
    transition: var(--transition--);
}
#gallery .flex .item:hover img{
    transform: scale(1.05);
}
#gallery .flex .item .box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(62,39,35,0.85), rgba(232,152,94,0.6));
    color: var(--textWhite--);
}
#gallery .flex .item .box h3,
#gallery .flex .item .box p{
    width: 100%;
    padding: 8px 0;
}
#gallery .flex .item .box h3{
    font-size: 1.2rem;
}

/* ======================= Contact ================================ */
#contact{
    width: 100%;
    color: var(--textWhite--);
    background-color: var(--darkBrown--);
}
#contact .flex{
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    line-height: 1.7em;
}
#contact .flex .item{
    padding: 15px;
    letter-spacing: 0.5px;
}
#contact .flex .item h3{
    line-height: 1.5em;
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--mainColor--);
    display: inline-block;
}
#contact .flex .item p{
    text-align: justify;
    margin-bottom: 0.8em;
    color: #BFADA5;
}
#contact .flex .item a{
    color: var(--mainLight--);
    transition: var(--transition--);
}
#contact .flex .item a:hover{
    color: var(--goldAccent--);
}
#contact .flex .item i{
    padding: 0 0.8em;
    color: var(--mainColor--);
}
#contact .flex .item hr{
    margin: 10px 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}
#contact .flex .item table td{
    padding: 4px 0;
}

/* ======================= Inquiry Form ================================ */
#contact .inquiry-form{
    width: 100%;
}
#contact .inquiry-form label{
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--mainLight--);
    font-weight: 500;
}
#contact .inquiry-form input,
#contact .inquiry-form textarea,
#contact .inquiry-form select{
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background-color: rgba(255,255,255,0.08);
    color: var(--textWhite--);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition--);
}
#contact .inquiry-form input:focus,
#contact .inquiry-form textarea:focus,
#contact .inquiry-form select:focus{
    outline: none;
    border-color: var(--mainColor--);
    background-color: rgba(255,255,255,0.12);
}
#contact .inquiry-form textarea{
    resize: vertical;
    min-height: 100px;
}
#contact .inquiry-form select option{
    background-color: var(--darkBrown--);
    color: var(--textWhite--);
}
#contact .inquiry-form .btn-theme{
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    border: none;
    cursor: pointer;
}

/* ======================= Footer ================================ */
footer{
    width: 100%;
    padding: 2em 1em;
    background-color: var(--darkBlack--);
    color: #8D7B74;
}
footer p{
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Scroll Animation ===== */
.fade-in{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible{
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive: SM ===== */
@media only screen and (min-width: 480px){
    .grid-sm-1{ width: calc(100% / 12 * 1); }
    .grid-sm-2{ width: calc(100% / 12 * 2); }
    .grid-sm-3{ width: calc(100% / 12 * 3); }
    .grid-sm-4{ width: calc(100% / 12 * 4); }
    .grid-sm-5{ width: calc(100% / 12 * 5); }
    .grid-sm-6{ width: calc(100% / 12 * 6); }
    .grid-sm-7{ width: calc(100% / 12 * 7); }
    .grid-sm-8{ width: calc(100% / 12 * 8); }
    .grid-sm-9{ width: calc(100% / 12 * 9); }
    .grid-sm-10{ width: calc(100% / 12 * 10); }
    .grid-sm-11{ width: calc(100% / 12 * 11); }
    .grid-sm-12{ width: calc(100% / 12 * 12); }
}

/* ===== Responsive: MD ===== */
@media only screen and (min-width: 744px){
    .grid-md-1{ width: calc(100% / 12 * 1); }
    .grid-md-2{ width: calc(100% / 12 * 2); }
    .grid-md-3{ width: calc(100% / 12 * 3); }
    .grid-md-4{ width: calc(100% / 12 * 4); }
    .grid-md-5{ width: calc(100% / 12 * 5); }
    .grid-md-6{ width: calc(100% / 12 * 6); }
    .grid-md-7{ width: calc(100% / 12 * 7); }
    .grid-md-8{ width: calc(100% / 12 * 8); }
    .grid-md-9{ width: calc(100% / 12 * 9); }
    .grid-md-10{ width: calc(100% / 12 * 10); }
    .grid-md-11{ width: calc(100% / 12 * 11); }
    .grid-md-12{ width: calc(100% / 12 * 12); }

    /* Header */
    header{
        max-width: 1200px;
        margin: auto;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
    }
    header #logo{
        width: 280px;
    }
    header menu{
        width: calc(100% - 280px);
        background-color: transparent;
        backdrop-filter: none;
        color: var(--midBrown--);
        padding: 0;
        display: block!important;
        height: auto!important;
    }
    header menu ul{
        display: flex;
        justify-content: flex-end;
    }
    header menu ul li a{
        padding: 0 0.4em;
        font-size: 0.95rem;
    }
    header menu ul li a:hover{
        color: var(--mainColor--);
    }
    header menu ul li:hover a{
        background-color: transparent;
    }
    header nav{
        display: none;
    }

    /* Slide */
    #slide .theme .item{
        max-width: 1200px;
        padding: 0 40px;
        text-align: left;
    }
    #slide .theme .item h2{
        font-size: 3.5rem;
    }
    #slide .theme .item p{
        max-width: 500px;
    }

    /* CTA */
    #cta{
        height: 40vh;
        justify-content: flex-end;
    }

    /* Gallery hover effect */
    #gallery .flex .item .box{
        opacity: 0;
        transform: translateY(20px);
        transition: var(--transition--);
    }
    #gallery .flex .item:hover .box{
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive: LG ===== */
@media only screen and (min-width: 1200px){
    .grid-lg-1{ width: calc(100% / 12 * 1); }
    .grid-lg-2{ width: calc(100% / 12 * 2); }
    .grid-lg-3{ width: calc(100% / 12 * 3); }
    .grid-lg-4{ width: calc(100% / 12 * 4); }
    .grid-lg-5{ width: calc(100% / 12 * 5); }
    .grid-lg-6{ width: calc(100% / 12 * 6); }
    .grid-lg-7{ width: calc(100% / 12 * 7); }
    .grid-lg-8{ width: calc(100% / 12 * 8); }
    .grid-lg-9{ width: calc(100% / 12 * 9); }
    .grid-lg-10{ width: calc(100% / 12 * 10); }
    .grid-lg-11{ width: calc(100% / 12 * 11); }
    .grid-lg-12{ width: calc(100% / 12 * 12); }

    /* Header */
    header menu ul li a{
        padding: 0 1.2em;
    }

    /* Breeds hover */
    #breeds .flex .grid-6{
        cursor: pointer;
    }
    #breeds .flex .grid-6 img{
        filter: brightness(0.7);
    }
    #breeds .flex .grid-6 h3{
        bottom: -3em;
        transition: var(--transition--);
    }
    #breeds .flex .grid-6:hover img{
        filter: brightness(1);
        transform: scale(1.1);
    }
    #breeds .flex .grid-6:hover h3{
        bottom: 0;
    }

    /* Puppies */
    #puppies .flex{
        justify-content: space-between;
    }
}
