/* === FLEUR landing.css ===
 *
 * Marketing landing page only (index.html). Reuses semantic tokens from
 * tokens.css (--colour-bg, --colour-text, --colour-text-muted,
 * --colour-border, --colour-surface, --sage-text, --sage-light) so dark mode
 * flips for free in all three theme paths.
 *
 * Reuses from style.css unchanged: .skip-link, .offline-banner, .logo*,
 * .btn-primary, .btn-outline, .btn-icon, .gallery-card and friends.
 */

/* ==================== HEADER ==================== */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--colour-bg);
    border-bottom: 1px solid var(--colour-border);
}

.landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav {
    display: flex;
    gap: 1.25rem;
    margin-left: 2rem;
    flex: 1;
}

.landing-nav .nav-link {
    color: var(--colour-text);
    text-decoration: none;
    font-size: var(--text-md, 0.95rem);
    font-weight: 500;
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link:focus-visible {
    color: var(--sage-text);
    border-bottom-color: var(--sage-text);
    outline: none;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#signInLink {
    text-decoration: none;
    white-space: nowrap;
}

/* ==================== HERO ==================== */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    color: var(--colour-text);
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: var(--text-xl, 1.2rem);
    line-height: 1.55;
    color: var(--colour-text-muted);
    max-width: 38ch;
    margin: 0 0 1.75rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.btn-hero {
    padding: 0.95rem 1.75rem;
    font-size: var(--text-lg, 1.05rem);
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-hero svg {
    transition: transform 0.15s ease;
}

.btn-hero:hover svg {
    transform: translateX(2px);
}

.btn-hero-secondary {
    padding: 0.92rem 1.5rem;
    font-size: var(--text-lg, 1.05rem);
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
}

.hero-microcopy {
    font-size: var(--text-sm, 0.85rem);
    color: var(--colour-text-muted);
    margin: 0;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration-card {
    background: var(--colour-surface);
    border: 1px solid var(--colour-border);
    border-radius: 14px;
    padding: 1rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero-illustration-card svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== VALUE STRIP ==================== */

.value-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--colour-surface);
    border: 1px solid var(--colour-border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
}

.value-icon {
    color: var(--sage-text);
    margin-bottom: 0.85rem;
}

.value-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--colour-text);
    margin: 0 0 0.5rem;
}

.value-body {
    font-size: var(--text-md, 0.95rem);
    line-height: 1.55;
    color: var(--colour-text-muted);
    margin: 0;
}

/* ==================== FEATURED DESIGNS ==================== */

.featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.featured-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.featured-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--colour-text);
    margin: 0;
}

.featured-link {
    color: var(--sage-text);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-md, 0.95rem);
}

.featured-link:hover {
    text-decoration: underline;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Skeleton placeholder — shown until landing.js swaps in real cards */
.gallery-card-skeleton {
    background: var(--colour-surface);
    border: 1px solid var(--colour-border);
    border-radius: 12px;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
}

.gallery-card-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: fleur-shimmer 1.4s ease-in-out infinite;
}

[data-theme="dark"] .gallery-card-skeleton::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
}

@keyframes fleur-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Empty-state CTA when the public gallery is empty */
.featured-empty {
    grid-column: 1 / -1;
    background: var(--colour-surface);
    border: 1px dashed var(--colour-border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.featured-empty-body {
    color: var(--colour-text-muted);
    margin: 0 0 1rem;
    font-size: var(--text-md, 0.95rem);
}

.featured-empty-cta {
    display: inline-block;
    text-decoration: none;
}

/* ==================== HOW IT WORKS ==================== */

.how {
    background: var(--colour-surface);
    border-top: 1px solid var(--colour-border);
    border-bottom: 1px solid var(--colour-border);
    padding: 3.5rem 1.5rem;
}

.how-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--colour-text);
    text-align: center;
    margin: 0 0 2rem;
}

.how-steps {
    max-width: 980px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.how-step {
    text-align: left;
}

.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sage-text);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

[data-theme="dark"] .how-step-num {
    color: #1a1d1e;
}

.how-step-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--colour-text);
    margin: 0 0 0.45rem;
}

.how-step-body {
    font-size: var(--text-md, 0.95rem);
    line-height: 1.55;
    color: var(--colour-text-muted);
    margin: 0;
}

/* ==================== FOOTER CTA BANNER ==================== */

.footer-cta {
    background: var(--sage-text);
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

[data-theme="dark"] .footer-cta {
    /* S23 pattern: white text on light sage fails AA in dark mode -
     * swap to dark charcoal text to maintain contrast. */
    color: #1a1d1e;
}

.footer-cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    color: inherit;
}

.footer-cta-sub {
    font-size: var(--text-lg, 1.05rem);
    margin: 0 0 1.5rem;
    color: inherit;
    opacity: 0.92;
}

.footer-cta-btn {
    background: #fff;
    color: var(--sage-text);
    text-decoration: none;
    border: none;
}

.footer-cta-btn:hover {
    background: #f5f3ef;
}

[data-theme="dark"] .footer-cta-btn {
    background: #1a1d1e;
    color: var(--sage-text);
}

[data-theme="dark"] .footer-cta-btn:hover {
    background: #2a2d2e;
}

/* ==================== SLIM FOOTER ==================== */

.landing-footer {
    background: var(--colour-bg);
    padding: 1.75rem 1.5rem;
    border-top: 1px solid var(--colour-border);
}

.landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: var(--text-sm, 0.85rem);
    color: var(--colour-text-muted);
}

.landing-footer-nav {
    display: flex;
    gap: 1.25rem;
}

.landing-footer-nav a {
    color: var(--colour-text-muted);
    text-decoration: none;
}

.landing-footer-nav a:hover {
    color: var(--sage-text);
    text-decoration: underline;
}

/* ==================== MOBILE ==================== */

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .landing-header-inner {
        padding: 0.7rem 1rem;
        gap: 0.75rem;
    }
    .landing-nav {
        margin-left: 0;
        gap: 0.85rem;
        font-size: 0.85rem;
    }
    .landing-nav .nav-link {
        padding: 0.3rem 0.15rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem 1rem 2.5rem;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .hero-illustration {
        order: -1;
    }
    .hero-illustration-card {
        max-width: 320px;
    }
    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .value-strip {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem 2rem;
        gap: 1rem;
    }

    .featured {
        padding: 0.5rem 1rem 2.5rem;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .how {
        padding: 2.5rem 1rem;
    }
    .how-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-cta {
        padding: 2.5rem 1rem;
    }
    .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .landing-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
