/* =========================================================
   FEROCITI - shared site styles
   One file for every page. Change a color here and it
   changes everywhere.
   ========================================================= */

:root {
  /* Brand gold. The 2019 brand guide defines gold as a metallic texture, not one color.
     These values are sampled from the official lion logo files (Dropbox: Ferociti Logos). */
  --gold: #B08D3F;        /* solid gold: buttons, accents */
  --gold-hover: #9C7C34;  /* button hover */
  --gold-text: #80662A;   /* darker gold: readable text on white */
  --gold-sheen: linear-gradient(110deg, #9A7A2C 0%, #B9973F 30%, #E9CC7A 52%, #C4A04A 70%, #9A7A2C 100%);
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif; /* free stand-in for Adobe Caslon Pro */
  --herringbone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 24L12 12L0 0M12 24L24 12L12 0M24 24L36 12L24 0M36 24L48 12L36 0' fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1.5'/%3E%3C/svg%3E");
  --ink: #1F1F1F;         /* charcoal headings */
  --body: #3D3D3D;        /* body text */
  --muted: #6B6B6B;
  --bg: #FFFFFF;
  --bg-soft: #F7F6F3;     /* off-white section background */
  --dark: #161616;        /* dark bands and footer */
  --line: #E6E3DC;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; color: var(--body); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 16px; }

/* ---------- Layout and type ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pg section { padding: 64px 0; }
.pg h1, .pg h2, .pg h3 { color: var(--ink); line-height: 1.2; margin: 0 0 16px; }
.pg h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.pg h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
.pg h3 { font-size: 1.1rem; font-weight: 700; }
.pg p { margin: 0 0 16px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.rule { width: 56px; height: 3px; background: var(--gold-sheen); border: 0; margin: 0 0 24px; }
.lead { font-size: 1.15rem; max-width: 720px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease; border: 2px solid transparent; font-family: inherit; font-size: 1rem; cursor: pointer; line-height: 1.3; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-sheen); color: var(--ink); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.pg section.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.hero.center { text-align: center; }
.hero.center .rule { margin: 0 auto 24px; }
.hero.center .lead { margin: 0 auto; }
.hero.center .btns { justify-content: center; }

/* ---------- Cards and grids ---------- */
.soft { background: var(--bg-soft); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 24px; }
.card p { margin: 0; font-size: .97rem; }
.card a { color: inherit; text-decoration: none; }
.card:has(a):hover { border-color: var(--gold); }
.more { margin-top: 24px; }
.more a { color: var(--gold-text); font-weight: 700; }

/* ---------- Two-column, checks, signs ---------- */
.two { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 18px 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1F1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { color: var(--ink); }
.signs { list-style: none; padding: 0; margin: 0; }
.signs li { position: relative; padding: 14px 16px 14px 44px; margin-bottom: 10px; background: var(--bg-soft); border-left: 3px solid var(--gold); border-radius: 4px; color: var(--ink); font-weight: 500; }
.signs li::before { content: "!"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pullquote { font-size: 1.3rem; line-height: 1.45; font-weight: 600; color: var(--ink); border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; margin: 8px 0 0; }

/* ---------- Human-reviewed callout ---------- */
.pg section.human { padding: 56px 0; }
.human-box { border: 2px solid var(--ink); border-radius: 10px; padding: 40px 32px; background: #fff; position: relative; }
.human-badge { position: absolute; top: -14px; left: 32px; background: var(--ink); color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.human-box > p { max-width: 780px; font-size: 1.08rem; }
.human-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.human-points li { border-top: 3px solid var(--gold); padding-top: 14px; }
.human-points strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.steps p { margin: 0; font-size: .97rem; }

/* ---------- Dark band ---------- */
.dark { background: var(--herringbone), var(--dark); color: #D9D9D9; }
.pg .dark h2 { color: #fff; }
.dark .eyebrow { color: var(--gold); }
.dark p { max-width: 760px; font-size: 1.1rem; }

/* ---------- Final call to action ---------- */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta .rule { margin: 0 auto 24px; }
.cta .lead { margin: 0 auto 8px; }
.cta .btns { justify-content: center; }
.cross { margin-top: 32px; font-size: .95rem; color: var(--muted); }
.cross a { color: var(--gold-text); font-weight: 700; }

/* ---------- Homepage ---------- */
.doors { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; text-align: left; }
.door { display: block; text-decoration: none; color: var(--body); background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 28px; transition: border-color .15s, transform .15s; }
.door:hover { border-color: var(--gold); transform: translateY(-2px); }
.pg .door h2 { font-size: 1.4rem; margin-bottom: 8px; }
.door p { margin: 0 0 14px; }
.door span { font-weight: 700; color: var(--gold-text); }
.hero-call { margin-top: 24px; font-size: .95rem; }
.hero-call a { color: var(--ink); font-weight: 700; }

.pg section.proof { background: var(--herringbone), var(--dark); padding: 28px 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.proof strong { display: block; color: var(--gold); font-size: 1.6rem; font-weight: 800; }
.proof span { color: #CFCFCF; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

.pillars { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pillars li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.pillars .step { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.pillars p { margin: 0; font-size: .97rem; }

.case { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 32px; margin-top: 32px; }
.case dl { margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.case dt { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.case dd { margin: 0; }
.big { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.25; display: block; margin-bottom: 6px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.55; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--serif); font-style: normal; font-size: 3.4rem; line-height: 1; color: var(--gold); margin-bottom: 0; }
.quote figcaption { border-top: 1px solid var(--line); padding-top: 14px; }
.quotes .quote figcaption { min-height: 4.4em; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { display: block; line-height: 1.4; font-size: .9rem; color: var(--muted); }
@supports (grid-template-rows: subgrid) {
  .quotes { grid-template-rows: auto auto; }
  .quotes .quote { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0; }
  .quotes .quote figcaption { min-height: 0; }
  @media (max-width: 960px) { .quotes { grid-template-rows: none; } .quotes .quote { grid-row: auto; grid-template-rows: auto auto; } }
}

/* ---------- Founder block ---------- */
.founder { display: grid; gap: 40px; grid-template-columns: minmax(200px, 300px) 1fr; align-items: center; }
.photo-img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 700px) { .photo-img { max-width: 260px; } .founder { grid-template-columns: 1fr; } }

/* ---------- Team page ---------- */
.tagline { font-size: .85rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 0 0 20px; }
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.member img { width: 200px; height: auto; aspect-ratio: 4/5; object-fit: cover; display: block; margin: 28px auto 0; border-radius: 10px; background: var(--bg-soft); }
.member-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.pg .member h3 { font-size: 1.3rem; margin-bottom: 2px; }
.role { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.member ul { margin: 0 0 18px; padding-left: 18px; font-size: .95rem; }
.member li { margin-bottom: 6px; }
.member a.bio { margin-top: auto; color: var(--gold-text); font-weight: 700; text-decoration: none; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.single { max-width: 760px; margin: 0 auto; }

/* ---------- Request forms ---------- */
.formwrap { max-width: 720px; margin: 0 auto; }
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.form label .req { color: var(--gold-text); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #BDB8AD; border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* =========================================================
   Header and menu
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav .sub-toggle { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.nav a:hover, .nav .sub-toggle:hover { color: var(--gold-text); }
.nav a[aria-current="page"] { color: var(--gold-text); }
.nav .top-link { display: inline-flex; align-items: center; gap: 6px; }
.nav .caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); display: inline-block; }
.nav .sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 8px 8px; box-shadow: 0 12px 30px rgba(0,0,0,.10); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; font-size: .93rem; padding: 9px 12px; }
.sub a:hover { background: var(--bg-soft); }
.sub .sub-all a { font-weight: 700; color: var(--gold-text); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--gold-text); }
.header-actions .btn { padding: 10px 18px; font-size: .95rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 1140px) {
  .header-phone { display: none; }
}
@media (max-width: 1000px) {
  :root { --header-h: 64px; }
  .brand img { height: 30px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .header-actions { display: none; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.10); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-header.open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 14px 4px; }
  .nav .top-link .caret { display: none; }
  .nav li.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav .sub-toggle { display: block; background: none; border: 0; padding: 14px 8px; cursor: pointer; }
  .nav .sub-toggle .caret { transform: rotate(45deg); }
  .nav li.has-sub.sub-open .sub-toggle .caret { transform: rotate(225deg) translate(-2px, -2px); }
  .sub { grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 12px; display: none; min-width: 0; }
  .nav li:hover > .sub, .nav li:focus-within > .sub { display: none; }
  .nav li.sub-open > .sub { display: block; }
  .sub .sub-all a { border-bottom: 0; }
  .nav .mobile-actions { display: grid; gap: 10px; padding-top: 16px; border-bottom: 0; }
  .nav .mobile-actions .btn { text-align: center; padding: 14px; }
}
.nav .mobile-actions { display: none; }
@media (max-width: 1000px) { .nav .mobile-actions { display: grid; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--herringbone), #0F0F0F; color: #CFCFCF; padding: 56px 0 24px; font-size: .95rem; border-top: 3px solid transparent; border-image: var(--gold-sheen) 1; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-logo { display: block; width: 200px; height: auto; margin: 0 0 14px; }
.footer-tag { font-family: var(--serif); color: #fff; font-size: 1.35rem; margin: 0 0 14px; }
.footer-tag span { font-family: var(--font); font-size: .95rem; letter-spacing: .14em; margin-right: 4px; }
.footer-tag em { color: var(--gold); }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #CFCFCF; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-contact p { margin: 0 0 6px; }
.footer-contact .footer-phone { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-contact .btn { margin-top: 14px; padding: 10px 18px; font-size: .95rem; }
.footer-contact .btn-primary { color: var(--ink); }
.footer-contact .btn-primary:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid #2E2E2E; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #9A9A9A; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: #9A9A9A; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .pg section { padding: 48px 0; }
  .pg section.hero { padding: 56px 0 48px; }
  .pg .btn { width: 100%; text-align: center; }
  .human-box { padding: 36px 20px 24px; }
  .human-badge { left: 20px; }
}

/* =========================================================
   Motion effects (from the approved motion preview)
   Turned off automatically for visitors whose device is set
   to "reduce motion".
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .pg section.hero { position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,164,74,.18), rgba(201,164,74,0) 70%);
    top: -160px; left: 50%; transform: translateX(-50%); pointer-events: none;
    animation: fDrift 14s ease-in-out infinite alternate;
  }
  .hero .wrap { position: relative; }
  @keyframes fDrift { from { transform: translate(-70%, 0) scale(1); } to { transform: translate(-30%, 40px) scale(1.15); } }
  @keyframes fUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes fDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .hero .eyebrow { animation: fUp .7s ease both .05s; }
  .hero h1 { animation: fUp .8s ease both .15s; }
  .hero .rule { transform-origin: left; animation: fDraw .7s ease both .45s; }
  .hero.center .rule { transform-origin: center; }
  .hero .lead, .hero .tagline { animation: fUp .8s ease both .35s; }
  .hero .btns { animation: fUp .8s ease both .55s; }
  .hero .door:nth-child(1) { animation: fUp .8s ease both .55s; }
  .hero .door:nth-child(2) { animation: fUp .8s ease both .7s; }
  .hero .hero-call { animation: fUp .8s ease both .9s; }

  /* Door cards: arrow nudge */
  .door span { display: inline-block; transition: transform .2s ease; }
  .door:hover span { transform: translateX(6px); }
  .door { transition: border-color .2s, transform .2s, box-shadow .2s; }
  .door:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); }

  /* Scroll reveal (only when JavaScript is on) */
  .js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .js .rv.on { opacity: 1; transform: none; }
  .js .rule.rv { transform: scaleX(0); transform-origin: left; }
  .js .cta .rule.rv { transform-origin: center; }
  .js .rule.rv.on { transform: scaleX(1); }

  /* Cards lift */
  .card, .quote, .pillars li, .steps li, .member { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .7s ease; }
  .card:hover, .quote:hover, .pillars li:hover, .steps li:hover, .member:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }

  /* Human-reviewed badge glow */
  .human-badge { animation: fGlow 3.5s ease-in-out infinite; }
  @keyframes fGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(176,141,63,0); } 50% { box-shadow: 0 0 0 6px rgba(176,141,63,.2); } }

  /* Primary button shine */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
  }
  .btn-primary:hover::after { left: 120%; }

  /* Photos */
  .photo-img, .member img { transition: transform .4s ease, box-shadow .4s ease; }
  .photo-img:hover { transform: scale(1.02); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
}

/* ---------- Breadcrumbs (the "Dealership Services > Page" trail) ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #B5B0A5; }
.crumbs a { color: var(--gold-text); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- FAQs ---------- */
.faq { max-width: 860px; margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 1.5rem; line-height: 1; font-weight: 600; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; max-width: 760px; }

/* ---------- Service hub list ---------- */
.svc { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; }
.svc a { display: flex; flex-direction: column; text-decoration: none; color: var(--body); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 28px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc a:hover { border-color: var(--gold); }
.svc .tag { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.pg .svc h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc p { margin: 0 0 16px; font-size: .97rem; }
.svc .go { margin-top: auto; font-weight: 700; color: var(--gold-text); }
@media (prefers-reduced-motion: no-preference) {
  .svc a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }
  .svc .go { display: inline-block; transition: transform .2s ease; }
  .svc a:hover .go { transform: translateX(6px); }
}

.dark a { color: var(--gold); font-weight: 700; }
.dark a:hover { color: #E9CC7A; }

/* ---------- Audit vs Deep Dive comparison ---------- */
.compare-wrap { overflow-x: auto; margin-top: 28px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--ink); color: #fff; font-size: 1.05rem; }
.compare thead th.hl { background: var(--herringbone), var(--dark); color: var(--gold); }
.compare thead th small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #BDBDBD; font-weight: 700; margin-bottom: 4px; }
.compare tbody th { color: var(--ink); font-size: .9rem; width: 22%; background: var(--bg-soft); }
.compare td.hl { background: #FBF8EF; }
.compare td a.btn { padding: 10px 18px; font-size: .95rem; }

/* ---------- "How this connects" note ---------- */
.connect { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 24px 28px; max-width: 900px; }
.connect .eyebrow { margin-bottom: 6px; }
.pg .connect p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.connect a { font-weight: 700; }

/* ---------- Offer cards (outsourced leadership) ---------- */
.offers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.offer { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 28px; }
.pg .offer h3 { font-size: 1.25rem; margin-bottom: 10px; }
.offer ul { margin: 12px 0 0; padding-left: 18px; }
.offer li { margin-bottom: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Even rows for 5- and 6-step lists */
.steps:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Six cards: two even rows of three */
.grid:has(> .card:nth-child(6):last-child) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Four service cards: one row of four on wide screens */
.svc:has(> a:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.nav a, .header-phone { white-space: nowrap; }

/* ---------- Lead handling funnel (Deep Dive tracking) ---------- */
.track { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.track-box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 24px 26px; }
.pg .track-box h3 { margin-bottom: 10px; }
.track-box ul { margin: 0; padding-left: 18px; }
.track-box li { margin-bottom: 6px; }
.funnel-wrap { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 28px 26px; }
.pg .funnel-wrap h3 { margin-bottom: 6px; }
.funnel-note { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.funnel li { position: relative; text-align: center; padding: 18px 10px 16px; background: var(--bg-soft); border: 1px solid var(--line); margin-right: 26px; border-radius: 8px; }
.funnel li:last-child { margin-right: 0; background: var(--herringbone), var(--dark); border-color: var(--dark); }
.funnel li:last-child strong { color: var(--gold); }
.funnel strong { display: block; color: var(--ink); font-size: 1rem; }
.funnel li:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.rates { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; }
.rates li { border-left: 3px solid var(--gold); padding: 6px 0 6px 12px; font-size: .95rem; }
.rates strong { color: var(--ink); }
.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.split div { background: var(--bg-soft); border-radius: 8px; padding: 18px 20px; }
.split h4 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; }
.split p { margin: 0; font-size: .95rem; }
@media (max-width: 760px) {
  .funnel { grid-template-columns: 1fr; gap: 26px; }
  .funnel li { margin-right: 0; }
  .funnel li:not(:last-child)::after { right: 50%; top: auto; bottom: -21px; transform: translateX(50%) rotate(135deg); }
}

.funnel li { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.rates { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }

/* ---------- Brand list (Who We've Helped) ---------- */
.brands { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.brands li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 14px; text-align: center; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.quotes:has(> .quote:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* ---------- Bio pages ---------- */
.bio-hero { display: grid; gap: 40px; grid-template-columns: minmax(200px, 300px) 1fr; align-items: center; }
.bio-hero .photo-img { max-width: 300px; }
.bio-copy p { font-size: 1.05rem; max-width: 760px; }
.oem { margin: 24px 0 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.oem div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.oem dt { font-weight: 800; color: var(--ink); }
.oem dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .bio-hero { grid-template-columns: 1fr; } .bio-hero .photo-img { max-width: 240px; } .quotes:has(> .quote:nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* Five cards in one row; brand list in even rows of four */
.grid:has(> .card:nth-child(5):last-child) { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.brands { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Client logo wall ---------- */
.logos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 18px 22px; }
.logos img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
.logos li:hover img { filter: none; opacity: 1; }
.logos-more { margin: 18px 0 0; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { height: 96px; padding: 12px; } .logos img { max-height: 56px; } }

.logos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(2, 1fr); } }

.pg .logos-more { margin: 18px 0 0; }

/* Logo wall: centered rows (6 across on desktop) so an uneven count still looks balanced */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logos li { flex: 0 0 calc((100% - 70px) / 6); height: 112px; padding: 16px 18px; }
.logos img { max-height: 64px; }
@media (max-width: 900px) { .logos li { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 600px) { .logos li { flex-basis: calc((100% - 14px) / 2); height: 96px; padding: 12px; } .logos img { max-height: 54px; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: minmax(260px, 380px) 1fr; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 18px 20px; }
.contact-card .eyebrow { margin-bottom: 4px; }
.pg .contact-card p { margin: 0; }
.contact-card a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contact-card a:hover { color: var(--gold-text); }
.form select { width: 100%; padding: 12px 14px; border: 1px solid #BDB8AD; border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }
.form select:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages (privacy, accessibility) ---------- */
.legal { max-width: 800px; }
.pg .legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.pg .legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal .caps { font-size: .9rem; }
