/* ============================================================
   BRENTON BEWRY · WEM TOYOTA
   3-image bento per section · 2026 design language
   ============================================================ */

:root {
    --red:      #EB0A1E;
    --red-d:    #B8081A;
    --black:    #080808;
    --ink:      #111111;
    --panel:    #191919;
    --white:    #FFFFFF;
    --snow:     #F5F4F2;
    --mist:     #EDECEA;
    --g3:       #CCCCCC;
    --g5:       #888888;
    --g7:       #444444;
    --fd: 'Barlow Condensed', sans-serif;
    --fb: 'Barlow', sans-serif;
    --r:  12px;
    --rl: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }
body { font-family: var(--fb); background: var(--snow); color: var(--black); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img  { display: block; width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ── UTILITIES ── */
.label {
    display: block;
    font-family: var(--fd); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--g5);
}
.label--red { color: var(--red); }

/* ════════════ NAV ════════════ */
.nav {
    position: sticky; top: 0; z-index: 300;
    background: var(--black);
    border-bottom: 3px solid var(--red);
}
.nav__inner {
    max-width: 1360px; margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 3rem);
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 0.5rem; }
.nav__badge {
    background: var(--red); color: var(--white);
    font-family: var(--fd); font-weight: 900; font-size: 0.68rem;
    letter-spacing: 0.1em; padding: 3px 7px; border-radius: 4px;
}
.nav__name {
    font-family: var(--fd); font-weight: 900; font-size: 1.05rem;
    letter-spacing: 0.14em; color: var(--white);
}
.nav__links { display: flex; align-items: center; gap: 0.5rem; }
.nav__pill {
    font-family: var(--fd); font-weight: 700; font-size: 0.76rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    padding: 0.42rem 0.95rem; border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.15s;
}
.nav__pill:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.nav__pill--red { background: var(--red); color: var(--white); border-color: var(--red); }
.nav__pill--red:hover { background: var(--red-d); border-color: var(--red-d); }

/* ════════════ HERO ════════════ */
.hero {
    background: var(--black);
    min-height: 100svh;
    display: flex; align-items: stretch;
}
.hero__inner {
    max-width: 1360px; margin: 0 auto; width: 100%;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.2rem, 3vw, 3rem);
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* Copy side */
.hero__copy { display: flex; flex-direction: column; gap: 1.8rem; }
.hero__h1 {
    display: flex; flex-direction: column;
    font-family: var(--fd); font-weight: 900;
    text-transform: uppercase; line-height: 0.9;
}
.hero__h1-line--name {
    font-size: clamp(3.8rem, 7.5vw, 7.5rem);
    color: var(--white); letter-spacing: -0.01em;
}
.hero__h1-line--sub {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    color: rgba(255,255,255,0.32);
    margin-top: 0.4rem; line-height: 1.05;
}
.hero__h1-line--sub em { color: var(--red); font-style: italic; }
.hero__desc {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: rgba(255,255,255,0.5); line-height: 1.72; max-width: 380px;
}

/* Anchor tiles */
.hero__anchors { display: flex; flex-direction: column; gap: 0.45rem; }
.anchor-tile {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: var(--r);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: all 0.18s; cursor: pointer;
}
.anchor-tile:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.07);
    transform: translateX(4px);
}
.anchor-tile--red { border-color: rgba(235,10,30,0.35); background: rgba(235,10,30,0.08); }
.anchor-tile--red:hover { background: rgba(235,10,30,0.16); border-color: var(--red); }
.anchor-tile__icon { font-size: 1.2rem; width: 1.6rem; text-align: center; flex-shrink: 0; }
.anchor-tile__body { flex: 1; display: flex; flex-direction: column; gap: 0.08rem; }
.anchor-tile__label {
    font-family: var(--fd); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.anchor-tile__value {
    font-family: var(--fd); font-weight: 900; font-size: 1.15rem;
    color: var(--white); line-height: 1;
}
.anchor-tile--red .anchor-tile__value { color: var(--red); }
.anchor-tile__arrow { color: rgba(255,255,255,0.2); font-size: 0.9rem; }

.hero__contact {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.07);
}
.hero__phone {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--fd); font-weight: 700; font-size: 1rem;
    color: var(--white); letter-spacing: 0.05em; transition: color 0.15s;
}
.hero__phone svg { color: var(--red); }
.hero__phone:hover { color: var(--red); }
.hero__dot { color: rgba(255,255,255,0.15); }
.hero__email { font-size: 0.8rem; color: rgba(255,255,255,0.32); transition: color 0.15s; }
.hero__email:hover { color: rgba(255,255,255,0.65); }

/* Hero mosaic */
.hero__mosaic {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: 1fr;
    gap: 6px;
    height: clamp(420px, 60vh, 680px);
    border-radius: var(--rl);
    overflow: hidden;
}
.mosaic-main {
    position: relative; overflow: hidden;
    border-radius: var(--rl) 0 0 var(--rl);
}
.mosaic-main img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transition: transform 0.6s ease;
}
.mosaic-main:hover img { transform: scale(1.03); }
.mosaic-main__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 1.2rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    display: flex; flex-direction: column; gap: 0.15rem;
}
.mosaic-main__name {
    font-family: var(--fd); font-weight: 900; font-size: 1.3rem;
    color: var(--white); text-transform: uppercase; line-height: 1;
}
.mosaic-main__role {
    font-size: 0.72rem; color: rgba(255,255,255,0.65);
    font-family: var(--fd); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

.mosaic-stack {
    display: grid; grid-template-rows: 1fr 1fr; gap: 6px;
}
.mosaic-sm {
    position: relative; overflow: hidden;
}
.mosaic-sm:first-child { border-radius: 0 var(--rl) 0 0; }
.mosaic-sm:last-child  { border-radius: 0 0 var(--rl) 0; }
.mosaic-sm img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform 0.55s ease;
}
.mosaic-sm:hover img { transform: scale(1.06); }
.mosaic-sm__chip {
    position: absolute; bottom: 0.7rem; left: 0.7rem;
    font-family: var(--fd); font-weight: 700; font-size: 0.7rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--red); color: var(--white);
    padding: 0.22rem 0.6rem; border-radius: 4px;
}
.mosaic-sm__chip--dark { background: var(--black); }

/* ════════════ SECTION SHELL ════════════ */
.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section--light { background: var(--snow); }
.section--dark  { background: var(--ink); }

/* Red line between alternating sections */
.section + .section::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--red);
    position: absolute;
}
.section--dark  { position: relative; }
.section--light { position: relative; }

.section__inner {
    max-width: 1360px; margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}
/* Flip: form left, bento right */
.section__inner--flip {
    direction: rtl;
}
.section__inner--flip > * { direction: ltr; }

/* ════════════ BENTO GRID ════════════ */
.bento {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Row heights: main cell fills both rows; small cells each get equal share */
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 4 / 3;        /* keeps proportions across viewport sizes */
    gap: 6px;
    border-radius: var(--rl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.section--dark .bento {
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

/* Main cell spans full height on left */
.bento__cell--main {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative; overflow: hidden;
}
.bento__cell--main img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Ad creatives are square — show from top so headline/face aren't clipped */
    object-position: center top;
    transition: transform 0.55s ease;
}
.bento__cell--main:hover img { transform: scale(1.04); }

/* Price badge on main cell */
.bento__cell-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--red); color: var(--white);
    padding: 0.55rem 0.9rem;
    border-radius: var(--r);
    display: flex; flex-direction: column; gap: 0.05rem;
    box-shadow: 0 4px 16px rgba(235,10,30,0.45);
}
.bento__cell-badge--dark { background: var(--black); border: 1.5px solid var(--red); }
.bento__price-big {
    font-family: var(--fd); font-weight: 900; font-size: 2rem;
    line-height: 1; color: var(--white);
}
.bento__price-label {
    font-family: var(--fd); font-weight: 700; font-size: 0.62rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

/* Small cells on right column */
.bento__cell--sm {
    grid-column: 2;
    position: relative; overflow: hidden;
}
.bento__cell--sm img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Show from top — ad creatives have key content (face/headline) in the upper half */
    object-position: center top;
    transition: transform 0.55s ease;
}
.bento__cell--sm:hover img { transform: scale(1.06); }
.bento__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 0.7rem;
}
.bento__chip {
    font-family: var(--fd); font-weight: 700; font-size: 0.68rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(0,0,0,0.7); color: var(--white);
    backdrop-filter: blur(6px);
    padding: 0.2rem 0.5rem; border-radius: 4px;
}

/* Steps cell (referral section) */
.bento__cell--steps {
    grid-column: 2;
    background: var(--black);
    display: flex; flex-direction: column;
    justify-content: center; gap: 0;
    padding: 1.2rem 1.1rem;
}
.step-tile {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.step-tile:last-child { border-bottom: none; }
.step-tile--red .step-tile__n { color: var(--red); }
.step-tile--red .step-tile__t { color: var(--white); }
.step-tile__n {
    font-family: var(--fd); font-weight: 900; font-size: 1.7rem;
    color: rgba(255,255,255,0.12); line-height: 1; min-width: 2.5rem;
}
.step-tile__t {
    font-family: var(--fd); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

/* ════════════ SECTION CONTENT ════════════ */
.section__content {
    display: flex; flex-direction: column; gap: 2rem;
}
.section__header { display: flex; flex-direction: column; gap: 0.8rem; }

.section__h2 {
    font-family: var(--fd); font-weight: 900;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 0.92; text-transform: uppercase;
    color: var(--black);
}
.section__h2--light { color: var(--white); }
.section__h2 em { color: var(--red); font-style: italic; }

.section__desc {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--g7); line-height: 1.72; max-width: 440px;
}
.section__desc--light { color: rgba(255,255,255,0.5); }

.checklist {
    display: flex; flex-direction: column; gap: 0.45rem;
    margin-top: 0.3rem;
}
.checklist span {
    font-size: 0.9rem; color: var(--g7);
    display: flex; align-items: center; gap: 0.45rem;
}
.checklist span::first-letter { color: var(--red); font-weight: 700; }
.checklist--light span { color: rgba(255,255,255,0.55); }

/* ════════════ FORM CARD ════════════ */
.form-card {
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--rl);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: 0 4px 40px rgba(0,0,0,0.07);
    display: flex; flex-direction: column; gap: 1.2rem;
}
.form-card--dark {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}
.form-card__hdr { display: flex; flex-direction: column; gap: 0.2rem; }
.form-card__title {
    font-family: var(--fd); font-weight: 900; font-size: 1.5rem;
    text-transform: uppercase; color: var(--black); line-height: 1;
}
.form-card__title--light { color: var(--white); }
.form-card__sub { font-size: 0.85rem; color: var(--g5); }
.form-card__sub--light { color: rgba(255,255,255,0.4); }

/* Form elements */
.form-card form { display: flex; flex-direction: column; gap: 0.7rem; }

.field-label {
    font-family: var(--fd); font-weight: 700; font-size: 0.7rem;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
}
.field-label span { color: var(--g5); font-size: 0.65rem; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

/* Default input: white card bg */
.inp {
    width: 100%; padding: 0.82rem 0.95rem;
    background: var(--mist); border: 1.5px solid var(--mist);
    border-radius: var(--r);
    font-family: var(--fb); font-size: 0.92rem; color: var(--black);
    outline: none; appearance: none; -webkit-appearance: none;
    transition: border-color 0.15s, background 0.15s;
}
.inp::placeholder { color: var(--g5); }
.inp:focus { border-color: var(--red); background: var(--white); }

/* Glass input: dark card bg */
.inp--glass {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
    color: var(--white);
}
.inp--glass::placeholder { color: rgba(255,255,255,0.3); }
.inp--glass:focus { border-color: var(--red); background: rgba(255,255,255,0.11); }

.inp--sel { cursor: pointer; }
.inp--ta  { resize: vertical; min-height: 72px; }

/* Submit */
.submit-btn {
    width: 100%; padding: 1rem 1.5rem;
    background: var(--red); color: var(--white);
    font-family: var(--fd); font-weight: 700; font-size: 1.1rem;
    letter-spacing: 0.07em; text-transform: uppercase;
    border: none; border-radius: var(--r); cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    line-height: 1;
}
.submit-btn:hover {
    background: var(--red-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235,10,30,0.38);
}
.submit-btn:disabled { opacity: 0.55; transform: none; cursor: not-allowed; }

.fine {
    text-align: center; font-size: 0.68rem; color: var(--g3); line-height: 1.5;
}
.fine--dim { color: rgba(255,255,255,0.22); }

/* Success state */
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.is-active { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.form-success__icon { font-size: 2.4rem; }
.form-success__title {
    font-family: var(--fd); font-weight: 900; font-size: 1.7rem;
    text-transform: uppercase; line-height: 1;
}
.form-success__title--light { color: var(--white); }
.form-success__body { font-size: 0.88rem; color: var(--g5); line-height: 1.6; max-width: 320px; }
.form-success__body--light { color: rgba(255,255,255,0.45); }
.form-success__cta {
    display: inline-block; margin-top: 0.4rem;
    font-family: var(--fd); font-weight: 700; font-size: 1rem;
    color: var(--red); letter-spacing: 0.06em; transition: opacity 0.15s;
}
.form-success__cta:hover { opacity: 0.75; }

/* ════════════ FOOTER ════════════ */
.footer {
    background: var(--black);
    border-top: 3px solid var(--red);
    padding: 3rem 0 1.5rem;
}
.footer__inner {
    max-width: 1360px; margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 3rem) 2rem;
    display: flex; justify-content: space-between;
    align-items: flex-start; flex-wrap: wrap; gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}
.footer__name {
    font-family: var(--fd); font-weight: 900; font-size: 1.5rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--white);
}
.footer__role { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem; }
.footer__sub  { font-size: 0.7rem; color: rgba(255,255,255,0.22); margin-top: 0.15rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.footer__phone {
    font-family: var(--fd); font-weight: 900; font-size: 1.5rem;
    color: var(--red); letter-spacing: 0.04em; transition: color 0.15s;
}
.footer__phone:hover { color: var(--white); }
.footer__email { font-size: 0.78rem; color: rgba(255,255,255,0.32); }
.footer__email:hover { color: rgba(255,255,255,0.65); }
.footer__legal {
    max-width: 1360px; margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 3rem);
    font-size: 0.68rem; color: rgba(255,255,255,0.16);
    line-height: 1.7; text-align: center;
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: 3rem; padding-bottom: 3rem;
    }
    .hero__mosaic {
        height: clamp(300px, 55vw, 480px);
    }
    .section__inner,
    .section__inner--flip {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    /* bento fills full width — aspect-ratio keeps proportions */
    .bento { aspect-ratio: 4 / 3; }
    /* On mobile, bento always stacks above the form */
    .section__inner--flip .bento { order: -1; }
}

@media (max-width: 640px) {
    .hero__h1-line--name { font-size: clamp(3rem, 12vw, 4.5rem); }
    .hero__mosaic {
        grid-template-columns: 1fr 1fr;
        height: 260px;
    }
    .mosaic-main { border-radius: var(--r) 0 0 var(--r); }
    .mosaic-sm:first-child { border-radius: 0 var(--r) 0 0; }
    .mosaic-sm:last-child  { border-radius: 0 0 var(--r) 0; }

    /* Stack bento cells vertically on small screens */
    .bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        aspect-ratio: unset;
    }
    .bento__cell--main {
        grid-column: 1; grid-row: 1;
        aspect-ratio: 1 / 1;   /* keep the square ad looking right */
    }
    .bento__cell--sm {
        grid-column: 1;
        aspect-ratio: 1 / 1;
    }

    .row2 { grid-template-columns: 1fr; }
    .nav__pill:not(.nav__pill--red) { display: none; }
    .footer__right { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}