/* ==========================================================================
   Auto Direct Hornchurch — main stylesheet
   Modern, fast, no framework. Palette: deep navy + electric blue + cyan.
   ========================================================================== */

/* ------------------------------ fonts ---------------------------------- */
@font-face {
  font-family: 'InterVariable';
  src: url('../fonts/inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SpaceGroteskVariable';
  src: url('../fonts/space-grotesk.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------ tokens --------------------------------- */
:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-soft: #e9eef5;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eaf1ff;
  --accent: #06b6d4;
  --dark: #0a1428;
  --dark-2: #0c1a36;
  --green: #16a34a;
  --wa: #25d366;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, .05), 0 10px 26px -14px rgba(11, 18, 32, .16);
  --shadow-2: 0 2px 6px rgba(11, 18, 32, .07), 0 22px 44px -18px rgba(11, 18, 32, .28);
  --font-body: 'InterVariable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'SpaceGroteskVariable', 'InterVariable', system-ui, sans-serif;
  --header-h: 72px;
  --announce-h: 41px;
}

/* ------------------------------ reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg, iframe { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
ul, ol { padding: 0; }

.icon { width: 1.15em; height: 1.15em; stroke-width: 2; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; width: 1.15em; height: 1.15em; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap-narrow { max-width: 840px; }
.only-desktop { display: none; }
@media (min-width: 960px) { .only-desktop { display: inline; } }

.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1.1rem;
  border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: .8rem; }

/* ------------------------------ buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 650; font-size: .95rem; line-height: 1.1;
  padding: .74rem 1.3rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.disabled { pointer-events: none; opacity: .45; }

.btn-primary {
  background: linear-gradient(135deg, #2f6bff, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(37, 99, 235, .75); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, .3); color: #fff;
  background: rgba(255, 255, 255, .07);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .15); transform: translateY(-1px); }
.btn-ghost-light .icon-fill { color: var(--wa); }

.btn-wa { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(37, 211, 102, .16); }
.btn-wa:hover { background: rgba(37, 211, 102, .26); }
.btn-wa .icon-fill { color: var(--wa); }

.btn-wa-solid { background: #1da851; color: #fff; box-shadow: 0 10px 22px -10px rgba(29, 168, 81, .6); }
.btn-wa-solid:hover { transform: translateY(-1px); background: #1b9b4b; }

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

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); background: #fef2f2; }
.icon-btn.ok:hover { border-color: var(--green); color: var(--green); background: #f0fdf4; }

/* ------------------------------ brand ----------------------------------- */
.brand { display: inline-flex; align-items: center; gap: .68rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, #2f6bff, #153fa8);
  display: grid; place-items: center; color: #fff;
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-mark-img { padding: 0; background: #020f28; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); }
.brand-mark-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.03rem; color: #fff; letter-spacing: .01em; white-space: nowrap; }
.brand-text em { font-style: normal; font-size: .66rem; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; color: #7fb1ff; white-space: nowrap; }

/* ------------------------------ header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(10, 20, 40, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }

.main-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.main-nav a {
  color: #b9c9e8; text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: .55rem .95rem; border-radius: 999px; transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a.active { color: #fff; background: rgba(255, 255, 255, .11); }
.main-nav .nav-quote { color: #8ab5ff; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .icon-btn.wa {
  border-radius: 999px; border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05); color: var(--wa); width: 42px; height: 42px;
}
.header-actions .icon-btn.wa:hover { background: rgba(255, 255, 255, .12); }
.btn-call { white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 12px; place-items: center; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 65;
    background: var(--dark-2);
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1rem 1.3rem; margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 40px -20px rgba(4, 10, 24, .8);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  body.nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: .85rem 1rem; border-radius: 10px; font-size: 1rem; }
  .nav-cta-mobile { display: flex; flex-direction: column; gap: .6rem; margin-top: .9rem; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: grid; }
}
@media (max-width: 680px) {
  .btn-call { display: none; }
}

/* ------------------------------ hero ------------------------------------ */
.hero, .page-hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero.webp') center / cover no-repeat var(--dark);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 14, 30, .95) 0%, rgba(7, 14, 30, .82) 42%, rgba(13, 36, 84, .48) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 730px; padding-block: clamp(4.2rem, 11vw, 8.2rem); }
.hero h1 { font-size: clamp(2.15rem, 5.6vw, 3.7rem); line-height: 1.05; margin: 1.1rem 0 1rem; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.16rem); color: #c6d4ee; max-width: 570px; line-height: 1.65; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.9rem; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem; border-radius: 999px; font-size: .84rem; font-weight: 650;
}
.chip-light { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #dbe7ff; }
.chip-light .icon { color: #67e8f9; width: 1em; height: 1em; }

.trust-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.3rem; list-style: none; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem; font-weight: 600; color: #dbe7ff;
}
.trust-chips .icon { color: #67e8f9; width: 1.05em; height: 1.05em; }

.page-hero .hero-bg::after {
  background: linear-gradient(100deg, rgba(7, 14, 30, .96) 0%, rgba(7, 14, 30, .88) 55%, rgba(13, 36, 84, .62) 100%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; padding-block: clamp(3.2rem, 7vw, 5.2rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 1rem 0 .8rem; }
.page-hero p { color: #c6d4ee; font-size: 1.02rem; max-width: 540px; }

/* ------------------------------ sections -------------------------------- */
.section { padding-block: clamp(3.4rem, 7vw, 6rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-dark {
  background: radial-gradient(90% 130% at 88% -10%, #142a58 0%, var(--dark) 58%);
  color: #fff;
}

.section-head { max-width: 660px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2 { font-size: clamp(1.65rem, 3.1vw, 2.35rem); margin: .6rem 0 .7rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-dark .section-head p { color: #b9c9e8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: #7fb1ff; }

/* ------------------------------ cards & grids --------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--brand); font-weight: 650; font-size: .9rem; text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-link .icon { width: 1em; height: 1em; }

.icon-tile {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background-color .18s ease, color .18s ease;
}
.icon-tile .icon, .icon-tile .icon-fill { width: 22px; height: 22px; }
.icon-tile.round { border-radius: 999px; }
.icon-tile.tile-wa { background: #e7f9ee; color: #1da851; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.1rem;
}
.card-service {
  padding: 1.5rem; display: flex; flex-direction: column; gap: .55rem;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-service h3 { font-size: 1.06rem; margin-top: .5rem; }
.card-service p { color: var(--muted); font-size: .92rem; flex-grow: 1; }
.card-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(37, 99, 235, .35); }
.card-service:hover .icon-tile { background: var(--brand); color: #fff; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1.1rem; }
.card-why { padding: 1.7rem 1.5rem; }
.card-why h3 { font-size: 1.04rem; margin: .95rem 0 .45rem; }
.card-why p { color: var(--muted); font-size: .92rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.1rem; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 999px;
  background: linear-gradient(135deg, #2f6bff, #1d4ed8); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.steps h3 { font-size: 1.04rem; margin: 1rem 0 .45rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ------------------------------ FAQ ------------------------------------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin-bottom: .75rem; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.3rem; font-weight: 650; font-size: .99rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s ease; width: 1.1em; height: 1.1em; }
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--brand); }
.faq details p { padding: 0 1.3rem 1.15rem; color: var(--ink-2); font-size: .95rem; }

/* ------------------------------ quote section --------------------------- */
.quote-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.quote-layout-page { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .quote-layout, .quote-layout-page { grid-template-columns: 1fr; } }

.quote-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .6rem 0 .8rem; }
.quote-intro > p { color: #b9c9e8; }
.quote-points { list-style: none; margin-top: 1.3rem; }
.quote-points li { display: flex; align-items: center; gap: .6rem; color: #cfe0ff; font-size: .95rem; margin: .55rem 0; }
.quote-points .icon { color: #4ade80; width: 1.1em; height: 1.1em; }
.quote-points-dark li { color: var(--ink-2); }
.quote-points-dark .icon { color: var(--green); }

.quote-direct { display: grid; gap: .8rem; margin-top: 1.8rem; }
.direct-card {
  display: flex; align-items: center; gap: .95rem;
  padding: 1rem 1.25rem; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  color: #fff; text-decoration: none; transition: background-color .16s ease;
}
.direct-card:hover { background: rgba(255, 255, 255, .12); }
.direct-card .icon { width: 1.7rem; height: 1.7rem; color: #7fb1ff; }
.direct-card .icon-fill { width: 1.7rem; height: 1.7rem; color: var(--wa); }
.direct-card em { display: block; font-style: normal; font-size: .8rem; color: #9db4dd; }
.direct-card strong { font-size: 1.06rem; }

.quote-form { padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: var(--shadow-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: .4rem; color: var(--ink); }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 500; }

.field input, .field select, .field textarea, .input-icon input {
  width: 100%; padding: .72rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcfe; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus, .input-icon input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
}

.plate-input {
  background: #ffd60a !important; color: #0b1220 !important;
  border: 2px solid #0b1220 !important; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; text-align: center;
}
.plate-input:focus { box-shadow: 0 0 0 4px rgba(245, 158, 11, .3) !important; }
.plate-input::placeholder { color: rgba(11, 18, 32, .45); letter-spacing: .13em; }

.quote-form .btn-block { margin-top: 1.2rem; }
.form-note { display: flex; align-items: center; gap: .45rem; justify-content: center; margin-top: .85rem; font-size: .85rem; color: var(--muted); }
.form-note .icon { color: var(--green); width: 1.05em; height: 1.05em; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-errors {
  display: flex; gap: .6rem; align-items: flex-start;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.1rem; font-size: .92rem;
}
.form-errors .icon { margin-top: .15rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }

.notice { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 12px; font-size: .95rem; margin-bottom: 1.2rem; }
.notice .icon { margin-top: .15rem; flex-shrink: 0; }
.notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.notice-error a { color: inherit; font-weight: 650; }

/* success panel */
.quote-success-wrap { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.quote-success { text-align: center; padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.4rem, 5vw, 3rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; box-shadow: var(--shadow-1); }
.success-icon { width: 74px; height: 74px; border-radius: 999px; background: #dcfce7; color: var(--green); display: grid; place-items: center; }
.success-icon .icon { width: 36px; height: 36px; }
.quote-success h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.quote-success p { color: var(--muted); max-width: 480px; }

.quote-side { display: flex; flex-direction: column; gap: 1.1rem; }
.side-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.side-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.side-card h3 .icon { color: var(--brand); }
.side-card p { color: var(--muted); font-size: .93rem; }

/* ------------------------------ contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.card-contact { padding: 1.7rem 1.5rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .45rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-contact:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(37, 99, 235, .35); }
.card-contact h3 { font-size: 1.02rem; margin-top: .7rem; }
.contact-value { color: var(--ink-2); font-weight: 600; font-size: .97rem; }
.contact-email { word-break: break-all; }

.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: var(--surface); }
.map-frame iframe { width: 100%; height: 400px; border: 0; }
.map-frame-lg iframe { height: 460px; }

.location-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .location-layout { grid-template-columns: 1fr; } }
.location-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .6rem 0 1rem; }
.location-info address { font-style: normal; display: flex; gap: .8rem; font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.location-info address .icon { color: var(--brand); margin-top: .35rem; }
.location-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ------------------------------ services page --------------------------- */
.services-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 860px) { .services-detail-grid { grid-template-columns: 1fr; } }
.card-detail { padding: 1.8rem 1.7rem; display: flex; flex-direction: column; gap: .65rem; scroll-margin-top: calc(var(--header-h) + var(--announce-h) + 1rem); }
.card-detail h2 { font-size: 1.25rem; margin-top: .6rem; }
.card-detail > p { color: var(--muted); font-size: .95rem; }
.check-list { list-style: none; margin: .4rem 0 .6rem; display: flex; flex-direction: column; gap: .5rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.check-list .icon { color: var(--green); margin-top: .18rem; width: 1.05em; height: 1.05em; }
.card-wide { margin-top: 1.2rem; }
.card-wide-head { display: flex; gap: 1.1rem; align-items: flex-start; }
.card-wide-head p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.check-list-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem .9rem; }

.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.cta-band p { color: #b9c9e8; }
.cta-band-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ------------------------------ tables (thin borders) ------------------- */
.table-wrap {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.table th {
  background: #f8fafc; text-align: left; font-weight: 650;
  color: var(--ink-2); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase;
}
.table th, .table td { padding: .8rem .95rem; border: 1px solid var(--line-soft); vertical-align: middle; }
.table thead th { border-top: 0; }
.table th:first-child, .table td:first-child { border-left: 0; }
.table th:last-child, .table td:last-child { border-right: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .12s ease; }
.table tbody tr:hover { background: #f8fafc; }
.table small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: .12rem; }
.table a { color: var(--brand); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.td-nowrap { white-space: nowrap; }
.th-actions { width: 1%; white-space: nowrap; }
.td-actions { white-space: nowrap; }
.td-actions form { display: inline-block; margin-left: .3rem; }
.td-actions .icon-btn { width: 36px; height: 36px; }
.row-new td { background: #f5f9ff; }

.plate {
  display: inline-block; background: #ffd60a; color: #0b1220;
  border: 1.5px solid #0b1220; border-radius: 6px;
  font-weight: 750; font-size: .8rem; letter-spacing: .09em;
  padding: .12rem .5rem; white-space: nowrap;
}

.badge { display: inline-flex; align-items: center; padding: .22rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.badge-new { background: #fef3c7; color: #92400e; }
.badge-ok { background: #dcfce7; color: #166534; }

/* ------------------------------ flash ----------------------------------- */
.flash-stack { position: fixed; top: 1rem; right: 1rem; z-index: 120; display: flex; flex-direction: column; gap: .6rem; max-width: min(92vw, 380px); }
.flash {
  display: flex; gap: .55rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: .8rem 1.05rem;
  box-shadow: var(--shadow-2); font-size: .92rem; font-weight: 550;
  animation: flash-in .3s ease; transition: opacity .3s ease, transform .3s ease;
}
.flash .icon { color: var(--brand); }
.flash-success { border-left-color: var(--green); }
.flash-success .icon { color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash-error .icon { color: var(--red); }
.flash.hide { opacity: 0; transform: translateX(10px); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------ footer ---------------------------------- */
.site-footer { background: var(--dark); color: #94a3b8; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr 1.6fr; gap: 2.2rem; padding-block: clamp(2.8rem, 6vw, 4rem) 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .92rem; line-height: 1.7; margin-top: 1.1rem; max-width: 340px; }
.site-footer h4 { color: #e2e8f0; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: .55rem 0; }
.site-footer a { color: #94a3b8; text-decoration: none; transition: color .14s ease; }
.site-footer a:hover { color: #fff; }
.footer-contact a { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { color: #7fb1ff; margin-top: .2rem; width: 1.05em; height: 1.05em; }
.footer-contact .icon-fill { color: var(--wa); margin-top: .2rem; width: 1.05em; height: 1.05em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.3rem; font-size: .84rem;
}
.footer-admin { color: #475569 !important; }
.footer-admin:hover { color: #fff !important; }

/* ------------------------------ bottom nav + wa float ------------------- */
body.public { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
}
.bnav-item, .bnav-fab {
  display: flex; flex-direction: column; align-items: center; gap: .16rem;
  color: #64748b; text-decoration: none; font-size: .67rem; font-weight: 650;
  padding: .3rem 0; border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.bnav-item .icon { width: 22px; height: 22px; }
.bnav-item.active { color: var(--brand); }
.bnav-fab { margin-top: -1.5rem; }
.fab-circle {
  width: 54px; height: 54px; border-radius: 999px;
  background: linear-gradient(135deg, #2f6bff, #1d4ed8); color: #fff;
  display: grid; place-items: center;
  border: 4px solid #fff; box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .65);
}
.fab-circle .icon { width: 24px; height: 24px; }
.bnav-fab.active span:last-child { color: var(--brand); }

.wa-float {
  position: fixed; right: .95rem; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 55;
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .65);
  transition: transform .16s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon-fill { width: 27px; height: 27px; }

@media (min-width: 900px) {
  body.public { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .wa-float { bottom: 1.4rem; right: 1.4rem; }
}

/* ------------------------------ reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card-service, .card-contact, .wa-float { transition: none; }
}

/* ---------------------------- uploaded logo ----------------------------- */
.brand-logo { display: block; height: 42px; width: auto; max-width: 210px; object-fit: contain; }
.site-header .brand-logo { height: 40px; }
.footer-brand .brand-logo { height: 44px; }
@media (max-width: 480px) {
  .brand-logo { max-width: 160px; }
}

/* --------------------------- announcement bar --------------------------- */
.announce {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  background: linear-gradient(92deg, #123a9e 0%, #2563eb 50%, #123a9e 100%);
  color: #fff;
  border-bottom: 1px solid rgba(160, 200, 255, .28);
}
.announce:hover { filter: brightness(1.07); }
.announce::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 36%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .18) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: announce-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--announce-h); padding-block: .4rem;
}
.announce-truck { position: relative; display: inline-flex; align-items: center; margin-right: .2rem; }
.announce-truck .announce-truck-icon {
  width: 21px; height: 21px; color: #fff;
  filter: drop-shadow(0 2px 6px rgba(3, 10, 26, .5));
  animation: announce-drive 1.05s ease-in-out infinite;
}
.announce-lines { position: absolute; right: calc(100% + 4px); top: 50%; width: 15px; height: 12px; margin-top: -6px; }
.announce-lines i {
  position: absolute; right: 0; height: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  animation: announce-line 1s linear infinite;
}
.announce-lines i:nth-child(1) { top: 1px; width: 10px; }
.announce-lines i:nth-child(2) { top: 5px; width: 14px; animation-delay: .18s; }
.announce-lines i:nth-child(3) { top: 9px; width: 7px; animation-delay: .36s; }
.announce-text {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .015em; white-space: nowrap;
}
.announce-more { font-size: .82rem; font-weight: 600; color: #cfdfff; white-space: nowrap; }
.announce-arrow { width: 16px; height: 16px; color: #bcd4ff; transition: transform .18s ease; flex: none; }
.announce:hover .announce-arrow { transform: translateX(3px); }

@keyframes announce-drive {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-1.5px) rotate(-1.4deg); }
  65% { transform: translateY(.6px) rotate(.9deg); }
}
@keyframes announce-line {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translateX(-12px); opacity: 0; }
}
@keyframes announce-sheen {
  0%, 55% { transform: skewX(-18deg) translateX(0); }
  100% { transform: skewX(-18deg) translateX(560%); }
}
@media (max-width: 800px) {
  .announce-more { display: none; }
}
@media (max-width: 680px) {
  :root { --announce-h: 37px; }
  .announce-inner { gap: .5rem; }
  .announce-text { font-size: .8rem; letter-spacing: .01em; }
  .announce-truck .announce-truck-icon { width: 19px; height: 19px; }
  .announce-arrow { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .announce::after { display: none; }
  .announce-truck .announce-truck-icon { animation: none; }
  .announce-lines { display: none; }
}

/* ------------------------- photo cards & galleries ---------------------- */
.card-media {
  margin: -1.5rem -1.5rem .2rem;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  aspect-ratio: 16 / 10;
  background: var(--dark);
}
.card-detail .card-media { margin: -1.8rem -1.7rem .2rem; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.card-service:hover .card-media img,
.card-detail:hover .card-media img { transform: scale(1.05); }

.card-media + .icon-tile {
  position: relative; z-index: 1;
  margin-top: -38px;
  width: 52px; height: 52px; border-radius: 15px;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px rgba(11, 18, 32, .16);
}

.card-media-wide { aspect-ratio: unset; height: clamp(150px, 24vw, 230px); }

/* --------------------- collection & delivery band ----------------------- */
.collect-layout {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 3.6rem); align-items: center;
}
@media (max-width: 900px) { .collect-layout { grid-template-columns: 1fr; } }
.collect-band h2 { font-size: clamp(1.65rem, 3.1vw, 2.35rem); margin: .6rem 0 .8rem; }
.collect-copy > p { color: #b9c9e8; max-width: 54ch; line-height: 1.7; }
.collect-copy .quote-points { margin-top: 1.15rem; }
.collect-copy .hero-cta { margin-top: 1.6rem; }
.collect-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-2);
}
.collect-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.collect-photo figcaption {
  position: absolute; left: .9rem; bottom: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(10, 16, 28, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #eaf1ff; font-size: .82rem; font-weight: 600;
  padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.collect-photo figcaption .icon { width: 1.05em; height: 1.05em; color: #8fd0ff; }

/* ---------------------------- workshop gallery --------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-1); background: var(--dark);
}
.gallery-item img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: .7rem; bottom: .7rem;
  display: inline-flex; align-items: center;
  background: rgba(10, 16, 28, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #eaf1ff; font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
}

@media (prefers-reduced-motion: reduce) {
  .card-media img, .gallery-item img { transition: none; }
  .card-service:hover .card-media img,
  .card-detail:hover .card-media img,
  .gallery-item:hover img { transform: none; }
}
