/* =========================================================
   Primo Paints — stylesheet
   Brand palette tuned to the logo: navy-blue primary + red accent
   ========================================================= */
:root {
    --brand: #1b3c8c;          /* logo navy-blue */
    --brand-dark: #142d68;
    --brand-light: #e9eef9;
    --accent: #e63946;         /* logo red swoosh */
    --accent-dark: #c42b38;
    --ink: #14161c;
    --ink-soft: #4a4f5c;
    --muted: #8a8f9c;
    --line: #e8eaf0;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;        /* cool tint to sit with the blue */
    --bg-cream: #eef2fb;
    --white: #ffffff;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 16px rgba(20, 22, 28, .06);
    --shadow: 0 18px 50px rgba(20, 30, 60, .12);
    --shadow-lg: 0 34px 80px rgba(20, 30, 70, .20);
    --shadow-brand: 0 14px 34px rgba(27, 60, 140, .32);
    --container: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text { font-family: 'Sora', sans-serif; line-height: 1.1; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid rgba(27, 60, 140, .45); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: .78rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: .98rem;
    padding: 15px 28px; border-radius: 100px; cursor: pointer; border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-3px); box-shadow: 0 20px 44px rgba(27, 60, 140, .42); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 14px 34px rgba(230, 57, 70, .34); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Top announcement bar ---------- */
.topbar { background: var(--brand); color: #dfe6f6; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topbar-msg { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 20px; flex: none; }
.topbar-links a { font-weight: 500; transition: color .2s; }
.topbar-links a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 50px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.32rem; color: var(--brand); }
.brand-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    font-family: 'Sora', sans-serif; font-weight: 500; font-size: .96rem;
    padding: 10px 16px; border-radius: 100px; color: var(--ink-soft); transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--brand); background: var(--brand-light); }
.main-nav .nav-cta {
    background: var(--brand); color: #fff; margin-left: 10px;
    box-shadow: var(--shadow-brand);
}
.main-nav .nav-cta:hover { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(230, 57, 70, .34); }
.main-nav .nav-cta--ghost { background: transparent; color: var(--ink-soft); box-shadow: none; border: 1.5px solid var(--line); }
.main-nav .nav-cta--ghost:hover { background: var(--brand-light); color: var(--brand); box-shadow: none; }
.nav-account { font-family: 'Sora', sans-serif; font-weight: 600; font-size: .92rem; color: var(--brand); padding: 10px 6px 10px 12px; }
.nav-trade {
    align-self: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .7rem;
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    color: var(--accent); background: rgba(230, 57, 70, .1);
    padding: 5px 11px; border-radius: 100px; margin-right: 4px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; }
.hero-bg .b1 { width: 440px; height: 440px; background: #c3d3f5; top: -130px; right: -80px; }
.hero-bg .b2 { width: 380px; height: 380px; background: #f7c2c6; bottom: -150px; left: -100px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 .hl { position: relative; color: var(--brand); white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 6px; height: 14px; background: rgba(230, 57, 70, .28); z-index: -1; border-radius: 4px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--brand); }
.hero-stats .lbl { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; }
.paint-card {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 26px; position: relative; overflow: hidden;
}
.paint-can {
    aspect-ratio: 4 / 3; border-radius: 20px;
    background:
        radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.35), transparent 45%),
        linear-gradient(145deg, var(--brand), var(--brand-dark));
    display: grid; place-items: center; position: relative; overflow: hidden;
}
.paint-can::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 46%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.20));
}
.paint-can .lid { position: absolute; top: 14px; width: 60%; height: 10px; background: rgba(255,255,255,.55); border-radius: 100px; }
.paint-can .splash { font-family: 'Sora', sans-serif; color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; z-index: 1; }
.paint-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.paint-meta .name { font-family: 'Sora', sans-serif; font-weight: 700; }
.paint-meta .code { font-size: .82rem; color: var(--muted); }
.paint-dots { display: flex; gap: 8px; }
.paint-dots span { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }

.hero-badge {
    position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600;
}
.hero-badge .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hero-badge .ic svg { width: 20px; height: 20px; }
.hero-badge.b-a { bottom: 30px; left: -30px; }
.hero-badge.b-b { top: 24px; right: -26px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; padding: 20px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: scroll 26s linear infinite; width: max-content; }
.marquee-track span { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.1rem; opacity: .9; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "•"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feature-card .ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-top { height: 156px; position: relative; display: grid; place-items: center; overflow: hidden; }
.product-top::before { content: ""; position: absolute; inset: 0; opacity: .18; background: radial-gradient(120% 120% at 20% 0%, #fff, transparent 55%); }
.product-top svg { width: 46px; height: 46px; }
.product-top .chip {
    position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92);
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .06em;
    text-transform: uppercase; padding: 6px 12px; border-radius: 100px; color: var(--ink);
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.product-body p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.product-body .more { margin-top: 16px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ease), color .2s; }
.product-card:hover .more { gap: 12px; color: var(--accent); }

/* ---------- Color palette ---------- */
.swatch-wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.swatch { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.swatch:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow); }
.swatch .chip { height: 96px; }
.swatch .info { padding: 12px 14px; }
.swatch .info .n { font-family: 'Sora', sans-serif; font-weight: 600; font-size: .88rem; }
.swatch .info .h { font-size: .76rem; color: var(--muted); }

/* ---------- Split / CTA banner ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; position: relative; }
.split .media .grad { position: absolute; inset: 0; }
.split ul.checks { list-style: none; margin: 24px 0 30px; display: grid; gap: 14px; }
.split ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.split ul.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(27,60,140,.12); color: var(--brand); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 2px; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }

.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-radius: var(--radius-lg); padding: 64px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; }
.cta-band::before { width: 240px; height: 240px; top: -80px; left: -60px; background: rgba(255,255,255,.10); }
.cta-band::after { width: 320px; height: 320px; bottom: -130px; right: -70px; background: rgba(230,57,70,.28); filter: blur(10px); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; opacity: .94; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-strip .num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); }
.stats-strip .lbl { color: var(--ink-soft); font-weight: 500; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote-card .stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.quote-card p { color: var(--ink-soft); margin-bottom: 20px; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; }
.quote-card .who .nm { font-family: 'Sora', sans-serif; font-weight: 600; font-size: .95rem; }
.quote-card .who .rl { font-size: .82rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 56px; background: var(--bg-cream); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(27,60,140,.16), transparent 70%); top: -150px; right: -80px; }
.page-hero::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(230,57,70,.12), transparent 70%); bottom: -140px; left: -60px; }
.page-hero .inner { max-width: 720px; position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: var(--ink-soft); }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; font-family: 'Sora', sans-serif; }
.crumbs a { color: var(--brand); }

/* ---------- About ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { display: flex; gap: 18px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card .ic { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.value-card .ic svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: .94rem; }

.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .step { position: relative; padding-bottom: 34px; }
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before { content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(230,57,70,.15); }
.timeline .step .yr { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--brand); }
.timeline .step h3 { margin: 4px 0 6px; }
.timeline .step p { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .info-item .ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.contact-info .info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info .info-item p, .contact-info .info-item a { color: var(--ink-soft); }
.contact-info .info-item a:hover { color: var(--brand); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Sora', sans-serif; font-weight: 500; font-size: .88rem; margin-bottom: 8px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .96rem; background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(27,60,140,.10); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 14px; text-align: center; }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #e8f7ee; color: #1c7a44; border: 1px solid #bce6cd; }
.alert-error { background: #fdecec; color: #b32636; border: 1px solid #f4c4c9; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 48px; height: 340px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd2da; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand--footer { align-items: center; }
.brand--footer .brand-text { color: #fff; }
.brand--footer .brand-text span { color: var(--accent); }
.footer-logo-chip { width: 48px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.footer-logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand p { margin: 16px 0 20px; max-width: 300px; color: #949aa6; }
.footer-brand .social { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.footer-brand .social:hover { color: var(--accent); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: #949aa6; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .86rem; color: #8a8f9c; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
    transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 460px; }
    .feature-grid, .product-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
    .swatch-wrap { grid-template-columns: repeat(4, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .value-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
    .section { padding: 68px 0; }
    .topbar-msg { font-size: .78rem; }
    .topbar-links { display: none; }
    .main-nav {
        position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 18px 24px 28px; gap: 4px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
        transform: translateY(-160%); transition: transform .35s var(--ease); z-index: 99;
    }
    .main-nav.open { transform: none; }
    .main-nav a { padding: 14px 16px; border-radius: 12px; }
    .main-nav a:hover { background: var(--bg-soft); }
    .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
    .nav-toggle { display: flex; }
    .feature-grid, .product-grid, .quote-grid, .swatch-wrap, .form-row { grid-template-columns: 1fr; }
    .swatch-wrap { grid-template-columns: repeat(2, 1fr); }
    .hero-badge { display: none; }
    .cta-band { padding: 44px 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 28px; }
}

/* =========================================================
   Auth page (Sign in / Sign up)
   ========================================================= */
.auth-section { padding: 60px 0 96px; background: var(--bg-cream); position: relative; overflow: hidden; }
.auth-section::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(27,60,140,.16), transparent 70%); top: -170px; right: -110px; }
.auth-section::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(230,57,70,.12), transparent 70%); bottom: -150px; left: -90px; }

.auth-card {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: .85fr 1fr;
    max-width: 940px; margin: 0 auto;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}

/* Brand side */
.auth-aside {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #eef2fb; padding: 44px 40px; display: flex; flex-direction: column; gap: 30px;
    position: relative; overflow: hidden;
}
.auth-aside::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(230,57,70,.34), transparent 70%); bottom: -120px; right: -90px; }
.auth-aside-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-chip { background: #fff; border-radius: 12px; padding: 8px; width: 46px; height: 46px; display: grid; place-items: center; }
.auth-chip img { width: 100%; height: auto; }
.auth-brand { color: #fff; font-size: 1.3rem; }
.auth-brand span { color: var(--accent); }
.auth-aside-body { position: relative; z-index: 1; }
.auth-aside-body h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.auth-aside-body p { color: #c9d4ee; font-size: .98rem; }
.auth-perks { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .95rem; }
.auth-perks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 700; }
.auth-aside-foot { position: relative; z-index: 1; margin-top: auto; font-family: 'Sora', sans-serif; font-style: italic; color: #aebbe0; font-size: .92rem; }

/* Form side */
.auth-main { padding: 44px 46px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 100px; padding: 5px; margin-bottom: 28px; }
.auth-tab { position: relative; z-index: 1; border: none; background: none; cursor: pointer; padding: 11px 10px; border-radius: 100px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .3s; }
.auth-tab.is-active { color: #fff; }
.auth-tab-indicator { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--brand); border-radius: 100px; box-shadow: var(--shadow-brand); transition: transform .35s var(--ease); }
.auth-tabs[data-active="signup"] .auth-tab-indicator { transform: translateX(100%); }

.auth-form { display: none; animation: authFade .4s var(--ease); }
.auth-form.is-active { display: block; }
@keyframes authFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.auth-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--ink-soft); margin-bottom: 26px; font-size: .96rem; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; padding: 6px; line-height: 1; opacity: .55; transition: opacity .2s; }
.pw-toggle:hover { opacity: 1; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; flex-wrap: wrap; }
.auth-row-single { margin: 6px 0 24px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .92rem; color: var(--ink-soft); user-select: none; }
.checkbox input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; position: relative; transition: background .2s, border-color .2s; flex: none; }
.checkbox input:checked { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.auth-link { color: var(--brand); font-weight: 600; font-size: .9rem; }
.auth-link:hover { color: var(--accent); }

.auth-alert:empty { display: none; }
.auth-alert { margin-bottom: 20px; }

.field .opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field.has-error input { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(230, 57, 70, .10); }
.field-error { display: block; margin-top: 6px; color: var(--accent-dark); font-size: .82rem; font-weight: 500; }

.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--ink-soft); font-size: .93rem; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-switch a:hover { color: var(--accent); }

/* Mobile: drop the brand panel, form (.auth-main) takes the full card width.
   Placed AFTER the base .auth-card / .auth-aside rules so it actually wins. */
@media (max-width: 768px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

@media (max-width: 560px) {
    .auth-section { padding: 28px 0 56px; }
    .auth-section::after, .auth-section::before { display: none; }   /* avoid stray glow on small screens */
    .auth-card { border-radius: var(--radius); }
    .auth-main { padding: 28px 20px 32px; }
    .auth-tabs { margin-bottom: 22px; }
    .auth-tab { font-size: .9rem; padding: 10px 8px; }
    .auth-title { font-size: 1.5rem; }
    .auth-sub { margin-bottom: 20px; font-size: .92rem; }
    /* comfortable tap targets; 16px stops iOS zoom-on-focus */
    .field input, .field textarea, .field select { padding: 13px 14px; font-size: 16px; }
    .input-wrap input { padding-right: 46px; }
    .auth-row { gap: 8px; }
}
