/* =========================================================
   CLOUD CITY MUSHROOMS
   Main Stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   FONTS & VARIABLES
   --------------------------------------------------------- */

:root {
    --olive: #3e4330;
    --olive-dark: #292d21;
    --cream: #f7f4e8;
    --cream-dark: #ebe6d5;
    --text: #25271f;
    --muted: #68695f;
    --white: #ffffff;
    --border: rgba(62, 67, 48, 0.18);

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;

    --max-width: 1200px;
}


/* ---------------------------------------------------------
   RESET
   --------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ---------------------------------------------------------
   GENERAL LAYOUT
   --------------------------------------------------------- */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

section {
    position: relative;
}

.section-title {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title h2 {
    margin-bottom: 18px;
}

.section-title p {
    color: var(--muted);
}


/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.05;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
}

h3 {
    font-size: 2rem;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    padding: 28px 0;
    color: var(--cream);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    width: 190px;
}

.logo img {
    width: 100%;
    height: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 38px;
}

nav a {
    position: relative;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--cream);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 32px;
    border: 1px solid var(--cream);
    color: var(--cream);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.button:hover {
    background: var(--cream);
    color: var(--olive);
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--olive-dark);
    color: var(--cream);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(20, 22, 17, 0.82) 0%,
            rgba(20, 22, 17, 0.52) 45%,
            rgba(20, 22, 17, 0.25) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: min(90%, var(--max-width));
    min-height: 100vh;
    margin: 0 auto;
    padding-top: 100px;
}

.hero-logo {
    width: 220px;
    margin-bottom: 42px;
}

.hero-logo-text {
    margin-bottom: 28px;
    color: var(--cream);
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.95;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: #e7e3c9;
}

.hero-content p {
    max-width: 600px;
    margin-bottom: 38px;
    color: rgba(247, 244, 232, 0.9);
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   PHILOSOPHY
   --------------------------------------------------------- */

.philosophy {
    padding: 130px 0;
    background: var(--cream);
    text-align: center;
}

.philosophy h2 {
    margin-bottom: 30px;
    color: var(--olive);
}

.philosophy p {
    color: var(--muted);
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   FEATURED MUSHROOMS
   --------------------------------------------------------- */

.featured {
    padding: 120px 0;
    background: var(--cream-dark);
}

.featured .section-title h2 {
    color: var(--olive);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
}

.card {
    overflow: hidden;
    background: var(--cream);
}

.card > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover > img {
    transform: scale(1.025);
}

.card-content {
    padding: 34px 38px 40px;
}

.card-content h3 {
    margin-bottom: 14px;
    color: var(--olive);
}

.card-content p {
    margin-bottom: 24px;
    color: var(--muted);
}

.card-content a {
    color: var(--olive);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-content a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   WHY CLOUD CITY
   --------------------------------------------------------- */

.why {
    padding: 120px 0;
    background: var(--olive);
    color: var(--cream);
}

.why .section-title h2 {
    color: var(--cream);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(247, 244, 232, 0.25);
    border-bottom: 1px solid rgba(247, 244, 232, 0.25);
}

.feature {
    min-height: 260px;
    padding: 42px 34px;
    border-right: 1px solid rgba(247, 244, 232, 0.25);
}

.feature:last-child {
    border-right: none;
}

.feature h3 {
    margin-bottom: 18px;
    color: var(--cream);
}

.feature p {
    color: rgba(247, 244, 232, 0.72);
    font-size: 0.94rem;
}


/* ---------------------------------------------------------
   GALLERY
   --------------------------------------------------------- */

.gallery-preview {
    padding: 120px 0;
    background: var(--cream);
}

.gallery-preview .section-title h2 {
    color: var(--olive);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--cream-dark);
    transition: transform 0.5s ease;
}

.gallery-grid img:hover {
    transform: scale(1.015);
}


/* ---------------------------------------------------------
   QUOTE
   --------------------------------------------------------- */

.quote {
    padding: 150px 0;
    background: var(--olive-dark);
    color: var(--cream);
    text-align: center;
}

.quote blockquote {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
}

.quote blockquote::before {
    display: block;
    margin-bottom: 30px;
    color: rgba(247, 244, 232, 0.35);
    content: "“";
    font-size: 5rem;
    line-height: 0.5;
}


/* ---------------------------------------------------------
   CONTACT CTA
   --------------------------------------------------------- */

.cta {
    padding: 120px 0;
    background: var(--cream-dark);
    text-align: center;
}

.cta h2 {
    max-width: 800px;
    margin: 0 auto 24px;
    color: var(--olive);
}

.cta p {
    max-width: 680px;
    margin: 0 auto 38px;
    color: var(--muted);
}

.cta .button {
    border-color: var(--olive);
    background: var(--olive);
    color: var(--cream);
}

.cta .button:hover {
    background: transparent;
    color: var(--olive);
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
    padding: 70px 0 45px;
    background: var(--olive-dark);
    color: var(--cream);
    text-align: center;
}

footer img {
    width: 170px;
    margin: 0 auto 25px;
}

footer p {
    color: rgba(247, 244, 232, 0.72);
    font-size: 0.88rem;
}

footer .copyright {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(247, 244, 232, 0.15);
    color: rgba(247, 244, 232, 0.45);
    font-size: 0.72rem;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    nav ul {
        gap: 20px;
    }

    .logo {
        width: 155px;
    }

    .hero-content {
        padding-top: 130px;
    }

    .hero-logo {
        width: 180px;
    }

    .cards {
        gap: 20px;
    }

    .card > img {
        height: 420px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature:nth-child(2) {
        border-right: none;
    }

    .feature:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(247, 244, 232, 0.25);
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    header {
        padding: 22px 0;
    }

    header .container {
        align-items: flex-start;
    }

    .logo {
        width: 145px;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 820px;
    }

    .hero-image {
        object-position: 60% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(20, 22, 17, 0.62) 0%,
                rgba(20, 22, 17, 0.35) 35%,
                rgba(20, 22, 17, 0.78) 100%
            );
    }

    .hero-content {
        min-height: 820px;
        padding-top: 170px;
        padding-bottom: 70px;
        justify-content: flex-end;
    }

    .hero-logo {
        width: 165px;
        margin-bottom: 28px;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .philosophy,
    .featured,
    .why,
    .gallery-preview,
    .cta {
        padding: 85px 0;
    }

    .section-title {
        margin-bottom: 42px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card > img {
        height: 420px;
    }

    .card-content {
        padding: 28px 25px 34px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        min-height: auto;
        padding: 34px 25px;
        border-right: none;
        border-bottom: 1px solid rgba(247, 244, 232, 0.25);
    }

    .feature:last-child {
        border-bottom: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .quote {
        padding: 100px 0;
    }

    .quote blockquote {
        font-size: 3rem;
    }

}


/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .container,
    .hero-content {
        width: 88%;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 760px;
    }

    .hero-logo {
        width: 145px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .button {
        width: 100%;
    }

    .card > img {
        height: 340px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

}


/* ---------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

}
/* ---------------------------------------------------------
   MOBILE NAVIGATION
   --------------------------------------------------------- */

.mobile-menu-toggle,
.mobile-menu-panel {
    display: none;
}

@media (max-width: 700px) {

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 1px solid rgba(247, 244, 232, 0.55);
        background: rgba(20, 22, 17, 0.28);
        color: var(--cream);
        cursor: pointer;
        flex: 0 0 auto;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 1px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-panel {
        position: absolute;
        top: 100%;
        right: 4%;
        left: 4%;
        z-index: 30;
        flex-direction: column;
        padding: 8px 0;
        background: rgba(41, 45, 33, 0.98);
        border: 1px solid rgba(247, 244, 232, 0.18);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .mobile-menu-panel.open {
        display: flex;
    }

    .mobile-menu-panel a {
        padding: 14px 20px;
        color: var(--cream);
        font-size: 0.82rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(247, 244, 232, 0.10);
    }

    .mobile-menu-panel a:last-child {
        border-bottom: none;
    }

    .mobile-menu-panel a.active {
        background: rgba(247, 244, 232, 0.08);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .about-nav,
    .contact-nav,
    .mushrooms-nav,
    .recipes-nav {
        position: relative;
    }

    .about-nav .mobile-menu-toggle,
    .contact-nav .mobile-menu-toggle,
    .mushrooms-nav .mobile-menu-toggle,
    .recipes-nav .mobile-menu-toggle {
        color: #f4f0df;
        border-color: rgba(244, 240, 223, 0.45);
        background: rgba(0, 0, 0, 0.12);
    }
}
