/* ============================================================
   LANDING PAGE — public portal (index.html)
   ============================================================ */

/* ---- Sticky Nav ---- */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.landing-nav.scrolled {
    background: var(--cream-50);
    box-shadow: 0 2px 16px rgba(43, 35, 24, 0.10);
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}
.landing-nav.scrolled .nav-logo { color: var(--color-primary); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.nav-btn { padding: 9px 22px; font-size: 0.9rem; }

/* White ghost variant on hero */
.landing-nav:not(.scrolled) .btn-ghost {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
}
.landing-nav:not(.scrolled) .btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1900&q=85');
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 22, 14, 0.50) 0%,
        rgba(27, 22, 14, 0.30) 40%,
        rgba(27, 22, 14, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
    color: #fff;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green-200);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 22px;
    text-shadow: 0 2px 28px rgba(0,0,0,0.28);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.22rem);
    color: rgba(255,255,255,0.96);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.65;
    text-shadow: 0 1px 16px rgba(0,0,0,0.55);
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 15px 34px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover {
    background: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(74,124,91,0.35);
    color: #fff;
    text-decoration: none;
}
.btn-hero-primary.btn-large { padding: 18px 44px; font-size: 1.1rem; }

.btn-hero-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 15px 34px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.18s;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; text-decoration: none; }

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll-hint:hover { color: rgba(255,255,255,0.9); }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Shared section utils ---- */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 68px;
}

.section-eyebrow {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    color: var(--brown-900);
    margin-bottom: 16px;
}

.section-sub {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ---- Features ---- */
.features-section {
    padding: 120px 0;
    background: var(--cream-50);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    transition: box-shadow 0.22s, transform 0.22s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 58px;
    height: 58px;
    background: var(--green-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    color: var(--brown-900);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .feature-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .feature-card {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
}

/* ---- Photo Mosaic ---- */
.photo-mosaic {
    height: 540px;
    overflow: hidden;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    gap: 5px;
}

.mosaic-cell {
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.mosaic-tall { grid-row: 1 / 3; }
.mosaic-wide { grid-column: 2 / 4; }

/* ---- How It Works ---- */
.how-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 88px;
}

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

.step-reverse {
    direction: rtl;
}
.step-reverse > * { direction: ltr; }

.step-img {
    border-radius: var(--radius-lg);
    height: 380px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--green-600);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--brown-900);
    margin-bottom: 14px;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* ---- Pull Quote Banner ---- */
.quote-banner {
    background: var(--green-900);
    padding: 88px 40px;
}

.quote-banner-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.quote-banner blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    color: var(--cream-100);
    line-height: 1.45;
    margin-bottom: 24px;
    font-style: italic;
}

.quote-banner cite {
    font-size: 0.82rem;
    color: var(--green-200);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-style: normal;
    font-weight: 700;
}

/* ---- Gallery Strip ---- */
.gallery-strip { overflow: hidden; }

.gallery-strip-inner {
    display: flex;
    height: 340px;
    gap: 5px;
}

.gallery-item {
    flex: 1 0 200px;
    background-size: cover;
    background-position: center;
    transition: flex 0.45s ease, filter 0.45s ease;
    filter: saturate(0.8) brightness(0.95);
}
.gallery-item:hover {
    flex: 2 0 360px;
    filter: saturate(1.1) brightness(1.02);
}

/* ---- About ---- */
.about-section {
    padding: 120px 0;
    background: var(--cream-50);
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    border-radius: var(--radius-lg);
    height: 500px;
    background-size: cover;
    background-position: center center;
    box-shadow: var(--shadow-lg);
}

.about-content .section-eyebrow { text-align: left; }

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    color: var(--brown-900);
    margin-bottom: 26px;
}

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

/* ---- Final CTA ---- */
.cta-section {
    position: relative;
    padding: 160px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 22, 14, 0.70);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.65;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--brown-900);
    padding: 52px 40px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--cream-100);
    display: block;
    margin-bottom: 6px;
}

.footer-tagline {
    color: var(--brown-300);
    font-size: 0.875rem;
    font-style: italic;
}

.footer-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-nav a,
.footer-signup-link {
    color: var(--brown-300);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0;
    transition: color 0.18s;
}
.footer-nav a:hover,
.footer-signup-link:hover { color: var(--cream-100); text-decoration: none; }

.footer-copy {
    text-align: center;
    color: var(--brown-500);
    font-size: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Signup Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(27, 22, 14, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brown-500);
    padding: 7px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color 0.18s, background 0.18s;
    line-height: 0;
}
.modal-close:hover {
    color: var(--brown-900);
    background: var(--cream-200);
}

/* Reuse auth-card styles inside the modal */
.modal-card .auth-logo { text-align: center; margin-bottom: 32px; }
.modal-card .auth-logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.modal-card .auth-logo .tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-style: italic;
}
.modal-card .auth-logo::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--green-200);
    border-radius: 2px;
    margin: 14px auto 0;
}
.modal-card .auth-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brown-900);
    margin-bottom: 22px;
    text-align: center;
}
.modal-card .auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 22px;
}
.modal-card .auth-switch a { color: var(--color-primary); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .landing-nav { padding: 0 20px; }
    .section-inner { padding: 0 24px; }
    .features-section, .how-section, .about-section { padding: 80px 0; }

    .step { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
    .step-reverse { direction: ltr; }
    .step-img { height: 260px; }

    .about-inner { grid-template-columns: 1fr; padding: 0 24px; gap: 40px; }
    .about-img { height: 300px; }

    .mosaic-grid { grid-template-columns: 1fr 1fr; height: 380px; }
    .mosaic-tall { grid-row: auto; }
    .mosaic-wide { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
    /* Gallery strip */
    .gallery-strip-inner { height: 200px; }
    .gallery-item { flex: 1 0 140px; }

    /* Mosaic — auto-scrolling ticker strip */
    .photo-mosaic { height: 240px; overflow: hidden; }
    .mosaic-grid {
        display: flex;
        flex-direction: row;
        width: max-content;
        height: 100%;
        gap: 5px;
        animation: mosaicTicker 34s linear infinite;
    }
    .mosaic-grid:hover { animation-play-state: paused; }
    .mosaic-cell {
        flex: 0 0 75vw;
        height: 100%;
    }
    /* reset desktop grid spans */
    .mosaic-tall { grid-row: auto; }
    .mosaic-wide { grid-column: auto; }

    @keyframes mosaicTicker {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* Other sections */
    .cta-section { padding: 100px 20px; }
    .quote-banner { padding: 64px 24px; }
    .modal-card { padding: 36px 24px; }
    .steps { gap: 56px; }

    /* Nav — collapse Log In to a plain text link, keep Sign Up as the badge */
    .nav-actions .btn-ghost {
        background: none;
        border: none;
        padding: 6px 10px;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.9);
    }
    .landing-nav.scrolled .nav-actions .btn-ghost {
        color: var(--color-primary);
    }
    .nav-actions .btn-ghost:hover {
        background: none;
        text-decoration: underline;
    }
    .nav-btn { padding: 8px 16px; font-size: 0.85rem; }
}
