/*
 * Infinite Moment brand palette — pulled from the main infinitemoment.life
 * site (vintage-newspaper photo brand): warm ivory background, deep sepia
 * text, olive-sage CTA color, tan secondary accent. This app is a separate
 * codebase (deployed at manage.infinitemoment.life) but shares the brand.
 */
:root {
    --color-primary: #808F59;
    --color-primary-dark: #667247;
    --color-primary-light: #A0AB83;
    --color-gold: #C8A98E;
    --color-gold-light: #D9C3B0;
    --color-ivory: #FBF8F3;
    --color-blush: #E6DDD0;
    --color-charcoal: #3D3226;
    --color-muted: #948E88;
    /*
     * Neither Playfair Display nor PT Sans (as served by Google Fonts)
     * include Armenian glyphs, so Armenian text — the primary content
     * everywhere in this app — was silently falling back to whatever
     * generic font the visitor's OS happens to ship, clashing with the
     * rest of the design. 'Noto Serif Armenian' / 'Noto Sans Armenian' are
     * listed second so they only kick in for the Armenian glyphs the first
     * font lacks; Latin text still renders in Playfair/PT Sans as intended.
     */
    --font-display: 'Playfair Display', 'Noto Serif Armenian', Georgia, serif;
    --font-body: 'PT Sans', 'Noto Sans Armenian', -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

/*
 * Global form-field treatment — loaded on every page (landing.css always
 * loads first via base.html.twig) so every input/select/textarea across the
 * whole site — planner forms, the invitation page's RSVP/gift forms, admin
 * pages — shares one look instead of some falling back to raw browser
 * defaults (this previously missed type=number/password/date entirely, and
 * had no :focus state at all, so focusing a field showed the browser's
 * default blue ring, clashing with the black/white/silver palette).
 */
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=url], input[type=search], input[type=date], input[type=datetime-local],
select, textarea {
    padding: 11px 15px;
    border: 1px solid #DEDFE2;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-charcoal);
    background: linear-gradient(180deg, #FFFFFF, #FAFAFA);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea { min-height: 90px; resize: vertical; line-height: 1.5; }

input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=number]:hover,
input[type=tel]:hover, input[type=url]:hover, input[type=search]:hover, input[type=date]:hover,
input[type=datetime-local]:hover, select:hover, textarea:hover {
    border-color: #C7C8CC;
}

input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=number]:focus,
input[type=tel]:focus, input[type=url]:focus, input[type=search]:focus, input[type=date]:focus,
input[type=datetime-local]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(142,150,163,.28), inset 0 1px 2px rgba(0,0,0,.03);
    background: #fff;
}

input::placeholder, textarea::placeholder { color: #A6A7AB; }

input[type=checkbox], input[type=radio] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/*
 * Applies everywhere, not just body.landing — planner/admin/auth pages had
 * no font-family at all before this, so they silently fell back to the
 * browser's default serif font instead of the brand's Inter/Playfair pair.
 */
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-charcoal);
    line-height: 1.6;
}

body.landing { background: var(--color-ivory); }

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

/*
 * One button system, used everywhere (was previously scoped to .landing
 * only, so every button outside the landing page — the whole planner,
 * vendor dashboard, admin tools — fell back to unstyled browser buttons or
 * a second, slightly different definition). Only the destructive
 * .btn-remove intentionally looks different, for safety, not branding.
 */
.btn, .btn-primary, .btn-outline, .btn-gold, .btn-pick, .btn-add-row, .btn-remove {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn, .btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn:hover, .btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}
.btn-outline:hover { background: var(--color-blush); color: var(--color-primary-dark); }

.btn-gold, .btn-pick {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(142,150,163,.4);
}
.btn-gold:hover, .btn-pick:hover { background: var(--color-gold-light); transform: translateY(-1px); }

.btn-add-row {
    background: var(--color-blush);
    color: var(--color-primary-dark);
    box-shadow: none;
    padding: 10px 20px;
}
.btn-add-row:hover { background: var(--color-gold-light); }

.btn-remove {
    background: transparent;
    color: #A23A3A;
    border-color: rgba(162,58,58,.35);
    box-shadow: none;
    padding: 9px 18px;
    font-size: 13px;
}
.btn-remove:hover { background: #FBE4E4; border-color: #A23A3A; }

.landing .container {
    max-width: 1140px;
    margin: 0 auto;
    /*
     * left/right only, deliberately — several sections combine
     * class="container" directly on the <section> tag (for the max-width
     * gutter) with .landing section's top/bottom padding (72px 0). A
     * shorthand `padding: 0 24px` here would zero out that vertical
     * padding (higher specificity: two classes beats one class + a type
     * selector), collapsing every such section flush against the next.
     */
    padding-left: 24px;
    padding-right: 24px;
}

/* Nav */
.landing .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.landing .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.landing .brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.landing .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    color: var(--color-muted);
}

.landing .nav-links a:hover { color: var(--color-primary); }
.landing .nav-links a.active { color: var(--color-primary); font-weight: 700; }

.locale-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.locale-switcher a {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--color-muted);
    text-decoration: none;
}

.locale-switcher a:hover { color: var(--color-primary); }

.locale-switcher a.active {
    background: var(--color-charcoal);
    color: #fff;
}

/* Hero */
.landing .hero {
    padding: 72px 0 96px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,0,0,.05), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(0,0,0,.04), transparent 40%);
}

/* Hero entrance: eyebrow/title/lead/actions/preview fade up in sequence
   instead of appearing all at once. Skipped for prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
    .landing .hero .eyebrow, .landing .hero h1, .landing .hero p.lead,
    .landing .hero-actions, .landing .hero-preview {
        opacity: 0;
        animation: landingHeroIn .8s cubic-bezier(.2,.7,.3,1) forwards;
    }
    .landing .hero .eyebrow { animation-delay: .05s; }
    .landing .hero h1 { animation-delay: .15s; }
    .landing .hero p.lead { animation-delay: .3s; }
    .landing .hero-actions { animation-delay: .42s; }
    .landing .hero-preview { animation-delay: .55s; }
}
@keyframes landingHeroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal: cards/steps/rows fade+slide into view as the visitor
   scrolls, toggled by IntersectionObserver in landing.js (adds
   .is-visible). Falls back to instantly visible if JS/observer fails. */
@media (prefers-reduced-motion: no-preference) {
    .landing .reveal { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
    .landing .reveal:not(.is-visible) { transform: translateY(24px); }
    .landing .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* Nav gets a subtle shadow once the page scrolls past the hero, toggled
   by landing.js — a static nav bar otherwise never changes at all. */
.landing .nav {
    position: sticky; top: 0; z-index: 50;
    transition: box-shadow .25s ease, background-color .25s ease;
}
.landing .nav.is-scrolled {
    background: rgba(251,248,243,.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.landing .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--color-blush);
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

.landing .hero h1 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--color-primary-dark);
}

.landing .hero h1 span { color: var(--color-muted); }

.landing .hero p.lead {
    max-width: 620px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: var(--color-muted);
}

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

/* Preview card under hero */
.landing .hero-preview {
    margin: 56px auto 0;
    max-width: 760px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
    padding: 28px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    text-align: left;
}

.landing .hero-preview .info h3 {
    font-family: var(--font-display);
    margin: 0 0 8px;
    color: var(--color-primary-dark);
}

.landing .hero-preview .info p {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.landing .venue-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #E2E2E4;
}

.landing .venue-row:last-child { border-bottom: none; }

.landing .venue-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.landing .hero-preview .map-mock {
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--color-blush), #fff 60%);
    position: relative;
    min-height: 180px;
    overflow: hidden;
}

.landing .map-pin {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-primary);
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

/* Sections */
.landing section { padding: 72px 0; }

.landing .section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.landing .section-head .eyebrow { margin-bottom: 14px; }

.landing .section-head h2 {
    font-family: var(--font-display);
    font-size: 34px;
    margin: 0 0 12px;
    color: var(--color-primary-dark);
}

.landing .section-head p { color: var(--color-muted); margin: 0; }

/* Features */
.landing .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.landing .feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.landing .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0,0,0,.09);
}

.landing .feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    background: var(--color-blush);
}

.landing .feature-card.highlight {
    background: linear-gradient(160deg, var(--color-primary-light), var(--color-primary-dark));
    color: #fff;
}

.landing .feature-card.highlight .feature-icon { background: rgba(255,255,255,.15); }
.landing .feature-card.highlight h3 { color: #fff; }
.landing .feature-card.highlight p { color: rgba(255,255,255,.85); }
.landing .feature-card.highlight .tag {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.landing .feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--color-primary-dark);
}

.landing .feature-card p { margin: 0; color: var(--color-muted); font-size: 15px; }

/* Pricing */
.landing .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.landing .price-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}

.landing .price-card.popular {
    background: linear-gradient(160deg, var(--color-primary-light), var(--color-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    transform: scale(1.02);
}

.landing .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
    white-space: nowrap;
}

.landing .price-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 4px 0 6px;
    color: var(--color-primary-dark);
}

.landing .price-card.popular h3 { color: #fff; }

.landing .price-tagline {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-muted);
    min-height: 40px;
}

.landing .price-card.popular .price-tagline { color: rgba(255,255,255,.8); }

.landing .price-amount {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

.landing .price-card.popular .price-amount { color: #fff; }

.landing .price-amount span {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted);
    margin-top: 2px;
}

.landing .price-card.popular .price-amount span { color: rgba(255,255,255,.75); }

.landing .price-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.landing .price-features li {
    padding-left: 26px;
    position: relative;
    color: var(--color-charcoal);
}

.landing .price-card.popular .price-features li { color: rgba(255,255,255,.92); }

.landing .price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--color-gold);
}

.landing .price-card .btn { align-self: stretch; text-align: center; }

/* How it works */
.landing .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.landing .step { text-align: center; padding: 0 8px; }

.landing .step-num {
    width: 44px; height: 44px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: var(--color-gold-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
}

.landing .step h4 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--color-primary-dark);
}

.landing .step p { margin: 0; font-size: 14px; color: var(--color-muted); }

/* CTA band */
.landing .cta-band {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    margin: 0 24px;
}

.landing .cta-band h2 {
    font-family: var(--font-display);
    font-size: 30px;
    margin: 0 0 12px;
}

.landing .cta-band p { color: rgba(255,255,255,.85); margin: 0 0 28px; }

/* Footer */
.landing footer {
    padding: 40px 0 32px;
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
}

.landing footer .brand { justify-content: center; margin-bottom: 8px; }

@media (max-width: 860px) {
    .landing .nav-links { display: none; }
    .landing .nav { flex-wrap: wrap; gap: 12px; }
    .landing .nav > div { flex-wrap: wrap; justify-content: flex-end; gap: 10px !important; }
    .landing .hero h1 { font-size: 34px; }
    .landing .hero-preview { grid-template-columns: 1fr; }
    .landing .features { grid-template-columns: 1fr; }
    .landing .pricing-grid { grid-template-columns: 1fr; }
    .landing .price-card.popular { transform: none; }
    .landing .steps { grid-template-columns: repeat(2, 1fr); }
}
