/* ═══════════════════════════════════════════════════════
   Heidi's Peanuts Pots & Pearls — Custom Styles
   Palette: Emerald (#065f46 / #047857) + Cream (#faf8f4 / #f5f0e8)
   Fonts: Cormorant Garamond + Montserrat
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-deep: #065f46;
    --emerald: #047857;
    --emerald-light: #059669;
    --emerald-pale: #d1fae5;
    --emerald-ghost: #ecfdf5;
    --cream: #faf8f4;
    --cream-warm: #f5f0e8;
    --cream-dark: #e8e0d0;
    --text-dark: #1a2e28;
    --text-mid: #3d5c52;
    --text-light: #6b8f83;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(6, 95, 70, 0.06);
    --shadow-md: 0 8px 30px rgba(6, 95, 70, 0.1);
    --shadow-lg: 0 20px 60px rgba(6, 95, 70, 0.12);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
.section-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 520px;
    line-height: 1.8;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald-deep);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.25);
}

.btn-primary:hover {
    background: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 95, 70, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-deep);
    border: 1.5px solid var(--emerald-deep);
}

.btn-outline:hover {
    background: var(--emerald-deep);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--emerald-deep);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 38px;
    font-size: 0.9rem;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--emerald-deep);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--emerald-deep);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em;
    transition: all var(--transition) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--emerald) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-line {
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-warm) 50%, var(--emerald-ghost) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle at 2px 2px, var(--emerald-deep) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--emerald);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-accent {
    font-style: italic;
    color: var(--emerald);
    font-weight: 300;
}

.hero-subheadline {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--emerald-deep);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-dark);
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
    gap: 16px;
    transform: rotate(2deg);
}

.hero-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-img--1 {
    grid-row: 1 / 3;
    border-radius: var(--radius-lg);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img:hover img {
    transform: scale(1.04);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    z-index: 2;
}

.hero-badge svg {
    color: var(--emerald);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ── Collection ── */
.collection {
    background: var(--white);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.collection-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
    transition: all var(--transition);
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 480/380;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .card-image img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.card-tag {
    background: var(--white);
    color: var(--emerald-deep);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 100px;
}

.card-content {
    padding: 28px 28px 32px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ── Features ── */
.features {
    background: linear-gradient(180deg, var(--cream) 0%, var(--emerald-ghost) 100%);
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-visual {
    position: relative;
}

.features-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 560/640;
}

.features-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
    aspect-ratio: 280/200;
}

.features-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-floating-card {
    position: absolute;
    top: 40px;
    right: -20px;
    background: var(--white);
    padding: 20px 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 500;
    z-index: 2;
}

.features-floating-card svg {
    color: var(--emerald);
    flex-shrink: 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--emerald-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--emerald-deep);
}

.feature-text h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* ── About ── */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--emerald);
}

.about-signature svg {
    opacity: 0.5;
}

.about-image-stack {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img--1 {
    aspect-ratio: 420/500;
}

.about-img--2 {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border: 6px solid var(--white);
    aspect-ratio: 320/240;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent-box {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--emerald-deep);
    color: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.accent-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.accent-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ── Visit ── */
.visit {
    background: linear-gradient(135deg, var(--emerald-deep) 0%, #044736 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.visit::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, var(--white) 1px, transparent 0);
    background-size: 36px 36px;
    pointer-events: none;
}

.visit .container {
    position: relative;
    z-index: 1;
}

.visit-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.visit .section-tag {
    color: var(--emerald-pale);
}

.visit .section-title {
    color: var(--white);
}

.visit-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.85;
    margin-bottom: 56px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.visit-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.visit-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.visit-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.visit-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-pale);
    margin-bottom: 20px;
}

.visit-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.visit-card p,
.visit-card a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.visit-card a:hover {
    color: var(--white);
}

.visit-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── Footer ── */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.footer-logo-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
}

.footer-logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald-light);
}

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.85;
    max-width: 280px;
}

.footer-nav h5,
.footer-contact h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-nav a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 28px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 480px;
    }

    .hero-image-grid {
        transform: rotate(0deg);
    }

    .features-layout,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .features-visual {
        max-width: 480px;
    }

    .about-image-stack {
        max-width: 440px;
    }

    .features-floating-card {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-divider {
        display: none;
    }

    .hero-image-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .hero-img--1 {
        grid-row: auto;
    }

    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .visit-details {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 80px 0;
    }

    .features-img-accent {
        right: -10px;
        bottom: -20px;
    }

    .about-img--2 {
        right: -10px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-image-grid {
        grid-template-columns: 1fr;
    }

    .hero-img--2,
    .hero-img--3 {
        display: none;
    }

    .hero-badge {
        left: 0;
        bottom: -10px;
    }

    .visit-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
