/* =====================================================================
   Wedding Bell by WDSLab — public marketing site.
   Brand palette: black, red, white.
   ===================================================================== */

:root {
    --ink:      #0f0f10;   /* near-black */
    --ink-2:    #18181b;
    --ink-3:    #222226;
    --red:      #e4002b;
    --red-dark: #b4001f;
    --red-soft: #2a0d11;
    --white:    #ffffff;
    --paper:    #faf7f6;
    --muted:    #6a6a70;
    --muted-d:  #a8a8b0;   /* muted on dark */
    --line:     #e6e3e1;
    --line-d:   rgba(255,255,255,.12);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site img { max-width: 100%; display: block; }

.site-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 600; }

.site a { color: inherit; }

/* ---- Buttons --------------------------------------------------------- */

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.site-btn:hover { transform: translateY(-1px); }

.site-btn-red { background: var(--red); color: #fff; }
.site-btn-red:hover { background: var(--red-dark); }

.site-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.site-btn-ghost:hover { background: rgba(0,0,0,.05); }

.site-btn-lg { padding: 15px 30px; font-size: 1rem; }

/* On dark backgrounds */
.on-dark .site-btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .site-btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---- Brand ----------------------------------------------------------- */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

.site-brand-mark {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--red);
    position: relative;
    flex: 0 0 26px;
    box-shadow: 0 0 0 3px rgba(228,0,43,.18);
}
.site-brand-mark::after {
    content: ""; position: absolute; inset: 8px; border-radius: 50%;
    border: 2px solid #fff;
}

.site-brand-text small {
    display: block;
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-top: 1px;
}

/* ---- Header ---------------------------------------------------------- */

.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 68px;
}

.site-nav { display: flex; gap: 26px; }
.site-nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); opacity: .82; }
.site-nav a:hover { opacity: 1; color: var(--red); }

.site-head-cta { display: flex; gap: 10px; align-items: center; }

/* ---- Hero ------------------------------------------------------------ */

.hero {
    background:
        radial-gradient(90% 120% at 82% -10%, rgba(228,0,43,.22) 0%, transparent 55%),
        var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    padding: 84px 0 92px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.3rem, 5.2vw, 3.9rem);
    line-height: 1.06;
    margin: 0 0 18px;
}
.hero h1 .accent { color: var(--red); font-style: italic; }

.hero p.lead {
    font-size: 1.1rem;
    color: var(--muted-d);
    max-width: 30em;
    margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-note { margin: 18px 0 0; font-size: .85rem; color: var(--muted-d); }
.hero-note strong { color: #fff; }

/* The phone mockup on the hero */
.hero-phone-wrap { display: grid; place-items: center; }

.phone-frame {
    width: 300px;
    max-width: 78vw;
    aspect-ratio: 9 / 19;
    background: #0a0a0a;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
    position: relative;
}
.phone-frame::before {
    content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 18px; background: #0a0a0a; border-radius: 999px; z-index: 2;
}
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 27px; background: #fff; display: block; }

/* ---- Trust strip ----------------------------------------------------- */

.strip {
    background: var(--ink-2);
    color: var(--muted-d);
    border-top: 1px solid var(--line-d);
}
.strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    justify-content: center;
    padding: 22px 0;
    font-size: .9rem;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 9px; }
.strip-inner span::before { content: "✓"; color: var(--red); font-weight: 700; }

/* ---- Generic section ------------------------------------------------- */

.section { padding: 80px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink); color: #fff; }

.section-head { text-align: center; max-width: 36em; margin: 0 auto 46px; }
.section-eyebrow {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--red); font-weight: 700; margin-bottom: 12px;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.dark .section-head p { color: var(--muted-d); }

/* ---- Feature grid ---------------------------------------------------- */

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

.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 24px;
}
.feature-ic {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--red-soft); color: var(--red);
    font-size: 1.3rem; margin-bottom: 16px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---- How it works ---------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; }
.step-n {
    width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
    display: grid; place-items: center;
    background: var(--red); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted-d); font-size: .92rem; margin: 0; }

/* ---- Template showcase ----------------------------------------------- */

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

.tpl-card {
    text-align: center;
}
.tpl-phone {
    width: 100%;
    max-width: 248px;
    margin: 0 auto 14px;
    aspect-ratio: 9 / 17;
    background: #0a0a0a;
    border-radius: 26px;
    padding: 7px;
    box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.tpl-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 20px; background: #fff; display: block; }
.tpl-card h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 2px; }
.tpl-card .tpl-style {
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--red); font-weight: 600;
}

/* ---- Templates gallery page ------------------------------------------ */

.tpl-hero {
    background:
        radial-gradient(80% 120% at 85% -20%, rgba(228,0,43,.18) 0%, transparent 55%),
        var(--ink);
    color: #fff;
    text-align: center;
    padding: 70px 0 56px;
}
.tpl-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.1rem); }
.tpl-hero p { color: var(--muted-d); max-width: 34em; margin: 0 auto; font-size: 1.05rem; }

.tpl-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 26px 0 0;
}
.tpl-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
}
.tpl-chip:hover { border-color: var(--red); color: var(--red); }
.tpl-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
    padding: 40px 0 10px;
}

.tpl-grid .tpl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.tpl-grid .tpl-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* ---- Big CTA --------------------------------------------------------- */

.cta {
    background:
        radial-gradient(70% 140% at 20% 0%, rgba(228,0,43,.26) 0%, transparent 55%),
        var(--ink);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.cta h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.cta p { color: var(--muted-d); margin: 0 0 26px; font-size: 1.08rem; }
.cta .site-btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* ---- Footer ---------------------------------------------------------- */

.site-foot {
    background: var(--ink);
    color: var(--muted-d);
    padding: 58px 0 0;
    font-size: .92rem;
}
.site-foot a { color: var(--muted-d); text-decoration: none; }
.site-foot a:hover { color: #fff; }

.site-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line-d);
}
.site-brand-foot { color: #fff; margin-bottom: 14px; }
.site-foot-blurb { max-width: 26em; margin: 0 0 18px; }
.site-foot-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot-col a { display: block; margin-bottom: 9px; }
.site-foot-tag { color: var(--red); font-weight: 500; margin: 0 0 12px; }
.site-foot-addr { font-size: .86rem; line-height: 1.7; margin: 10px 0; }

.site-foot-base {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px 0;
    font-size: .82rem;
    color: var(--muted);
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
    .hero-phone-wrap { order: -1; }
    .features, .steps, .showcase { grid-template-columns: 1fr; }
    .site-foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
    .site-nav { display: none; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; }

    /* Keep the header on one line: just the brand and one clear CTA. */
    .site-head-cta .site-btn-ghost { display: none; }
    .site-head .site-btn { padding: 10px 16px; font-size: .86rem; }
    .site-brand { font-size: 1.02rem; }
    .site-brand-mark { width: 22px; height: 22px; flex-basis: 22px; }

    .site-foot-base { flex-direction: column; gap: 6px; }
}
