/* =========================================================
   HYRAX WORLD
   Nature Documentary Style
   ========================================================= */


/* =========================
   VARIABLES
========================= */

:root {

    --sand: #E8D8B5;
    --stone: #8B7D6B;
    --rock: #4A4238;
    --earth: #312B25;

    --olive: #788C4A;
    --moss: #536238;

    --sun: #D8A13B;

    --cream: #FBF7EF;
    --white: #ffffff;

    --text: #3C352D;
    --muted: #756B5D;

    --shadow:
            0 25px 60px rgba(55,45,30,.15);

    --shadow-soft:
            0 10px 30px rgba(55,45,30,.10);

    --radius:
            28px;

    --transition:
            .35s ease;

}



/* =========================
   RESET
========================= */


html {

    scroll-behavior: smooth;

}


body {

    margin:0;

    font-family:
            "Inter",
            sans-serif;

    color:var(--text);

    background:
            var(--cream);

    line-height:1.8;

}



img {

    width:100%;

    display:block;

}



a {

    text-decoration:none;

}



/* =========================
   TYPOGRAPHY
========================= */


h1,
h2,
h3 {

    font-family:
            "Playfair Display",
            serif;

    color:var(--earth);

    line-height:1.2;

}



h2 {

    font-size:

            clamp(2.5rem,5vw,4rem);

    margin-bottom:1.5rem;

}



p {

    color:var(--muted);

}



/* =========================
   COMMON
========================= */


.section-padding {

    padding:

            7rem 0;

}



.eyebrow {

    color:

            var(--olive);

    font-size:.85rem;

    font-weight:700;

    letter-spacing:3px;

    text-transform:uppercase;

    margin-bottom:1rem;

}



.section-heading {

    max-width:750px;

    margin:auto;

}



.section-heading p:last-child {

    font-size:1.1rem;

}



/* =========================
   NAVBAR
========================= */


.navbar {

    padding:

            1.2rem 0;

    background:

            rgba(49,43,37,.45);

    backdrop-filter:

            blur(12px);

    transition:.3s;

}



.navbar-brand {

    color:white;

    font-size:1.4rem;

    font-weight:700;

}



.nav-link {

    color:white!important;

    margin-left:1.5rem;

    font-weight:500;

}



.nav-link:hover {

    color:var(--sun)!important;

}



/* =========================
   HERO
========================= */


.hero {

    min-height:

            100vh;

    position:relative;

    display:flex;

    align-items:center;

    overflow:hidden;

    color:white;

}



.hero-background {

    position:absolute;

    inset:0;

    background:

            linear-gradient(

                    rgba(0,0,0,.55),

                    rgba(0,0,0,.35)

            ),

            url("../images/hero.jpg")

            center/cover;

}



.hero-content {

    position:relative;

    z-index:2;

    color:white;

}



.hero h1 {

    color:white;

    font-size:

            clamp(3.5rem,7vw,6rem);

}



.hero-text {

    color:white;

    max-width:600px;

    font-size:1.2rem;

}



.btn-nature {

    background:

            var(--olive);

    color:white;

    border-radius:50px;

    padding:

            1rem 2.2rem;

    border:none;

    font-weight:600;

    transition:var(--transition);

}



.btn-nature:hover {

    background:

            var(--moss);

    color:white;

    transform:

            translateY(-5px);

}



/* =========================
   STORY
========================= */


.story {

    background:

            var(--cream);

}



.photo-frame {

    position:relative;

}



.photo-frame img {

    border-radius:

            var(--radius);

    box-shadow:

            var(--shadow);

}



.photo-frame::before {

    content:"";

    position:absolute;

    width:80%;

    height:80%;

    background:

            var(--sand);

    z-index:-1;

    bottom:-30px;

    left:-30px;

    border-radius:

            var(--radius);

}



/* =========================
   PERSONALITIES
========================= */


.personalities {

    background:

            #F2E7D3;

}



.hyrax-card {

    background:white;

    border-radius:

            var(--radius);

    overflow:hidden;

    box-shadow:

            var(--shadow-soft);

    transition:

            var(--transition);

}



.hyrax-card:hover {

    transform:

            translateY(-12px);

    box-shadow:

            var(--shadow);

}



.card-image {

    overflow:hidden;

}



.card-image img {

    height:350px;

    object-fit:cover;

    transition:.5s;

}



.hyrax-card:hover img {

    transform:

            scale(1.08);

}



.card-content {

    padding:2rem;

}



.card-content span {

    color:

            var(--olive);

    font-weight:700;

}



/* =========================
   ROCK SECTION
========================= */


.rocks-section {

    background:

            var(--cream);

}



.habitat-list {

    margin-top:2rem;

}



.habitat-item {

    display:flex;

    gap:1.5rem;

    margin-bottom:1.5rem;

}



.habitat-item i {

    color:

            var(--olive);

    font-size:2rem;

}



/* =========================
   FACTS
========================= */


.facts {

    background:

            var(--sand);

}



.fact-box {

    background:

            rgba(255,255,255,.7);

    padding:2rem;

    height:100%;

    border-radius:

            var(--radius);

    text-align:center;

}



.fact-icon {

    font-size:3rem;

    margin-bottom:1rem;

}



/* =========================
   QUOTE
========================= */


.quote-section {

    padding:

            7rem 0;

    background:

            var(--rock);

}



.quote-section h2 {

    color:white;

    max-width:900px;

    margin:auto;

}



/* =========================
   GALLERY
========================= */


.gallery {

    background:

            var(--cream);

}



.gallery-grid {

    display:grid;

    grid-template-columns:

        repeat(3,1fr);

    gap:1.5rem;

}



.gallery-item {

    margin:0;

    overflow:hidden;

    border-radius:

            var(--radius);

    position:relative;

}



.gallery-item img {

    height:350px;

    object-fit:cover;

    transition:.5s;

}



.gallery-item:hover img {

    transform:

            scale(1.08);

}



.gallery-item figcaption {

    position:absolute;

    bottom:0;

    width:100%;

    padding:1rem;

    color:white;

    background:

            linear-gradient(
                    transparent,
                    rgba(0,0,0,.7)
            );

}



.gallery-large {

    grid-row:

            span 2;

}



.gallery-large img {

    height:720px;

}



/* =========================
   FAQ
========================= */


.faq {

    background:

            #F2E7D3;

}



.accordion-item {

    border:none;

    margin-bottom:1rem;

    border-radius:

            20px!important;

    overflow:hidden;

}



.accordion-button {

    font-weight:600;

}



.accordion-button:not(.collapsed) {

    background:

            var(--olive);

    color:white;

}



/* =========================
   CTA
========================= */


.cta {

    padding:

            6rem 0;

    background:

            linear-gradient(

                    135deg,

                    var(--olive),

                    var(--moss)

            );

}



.cta-inner {

    color:white;

}



.cta h2 {

    color:white;

}



.cta p {

    color:white;

}



/* =========================
   FOOTER
========================= */


footer {

    background:

            var(--earth);

    color:white;

    padding:

            4rem 0;

}



footer h3,
footer h5 {

    color:white;

}



footer p,
footer li {

    color:#ddd;

}



footer ul {

    list-style:none;

    padding:0;

}



footer a {

    color:#ddd;

}


/* =========================
   RESPONSIVE
========================= */


@media(max-width:992px){


    .gallery-grid {

        grid-template-columns:

        repeat(2,1fr);

    }


    .gallery-large {

        grid-row:auto;

    }


    .gallery-large img {

        height:350px;

    }


}



@media(max-width:576px){


    .hero h1 {

        font-size:3rem;

    }


    .section-padding {

        padding:4rem 0;

    }


    .gallery-grid {

        grid-template-columns:1fr;

    }


    .nav-link {

        margin-left:0;

    }


}