/* Premier Fleet Services — shared stylesheet */

:root {
  --ink: #1E1A15;
  --ink-soft: #5B564D;
  --ink-faint: #8C867A;
  --paper: #FAF8F4;
  --paper-alt: #F1EDE5;
  --paper-raised: #FFFFFF;
  --line: #E3DDD1;
  --accent: #E8720C;
  --accent-ink: #FFFFFF;
  --accent-deep: #B85607;
  --accent-wash: #FCE7D3;
  --focus: #1C6FE0;
  --nav-bg: #21262c;
  --shadow: 0 1px 2px rgba(30,26,21,0.06), 0 8px 24px -12px rgba(30,26,21,0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3EFE7;
    --ink-soft: #C9C2B4;
    --ink-faint: #918B7D;
    --paper: #17140F;
    --paper-alt: #1F1B14;
    --paper-raised: #241F17;
    --line: #362F23;
    --accent: #F0873A;
    --accent-ink: #1A1207;
    --accent-deep: #FFA35E;
    --accent-wash: #3A2A16;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"] {
  --ink: #F3EFE7;
  --ink-soft: #C9C2B4;
  --ink-faint: #918B7D;
  --paper: #17140F;
  --paper-alt: #1F1B14;
  --paper-raised: #241F17;
  --line: #362F23;
  --accent: #F0873A;
  --accent-ink: #1A1207;
  --accent-deep: #FFA35E;
  --accent-wash: #3A2A16;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px 0 0;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 84px; width: auto; border-radius: 0; display: block; }

nav.links { display: flex; gap: 26px; align-items: center; }
nav.links > a, .nav-item > button.nav-toplink {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #E7E4DD;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
nav.links > a:hover, .nav-item > button.nav-toplink:hover { color: var(--accent); }
.nav-item { position: relative; }
.nav-item .caret { width: 10px; height: 10px; opacity: 0.8; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-dropdown a:hover { background: var(--paper-alt); color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color .12s ease, color .12s ease;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost-dark { background: transparent; color: #E7E4DD; border-color: rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Page hero (photo) ---------- */
.photo-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,17,13,0.86) 0%, rgba(20,17,13,0.66) 45%, rgba(20,17,13,0.32) 100%);
}
.photo-hero .hero-inner {
  position: relative;
  z-index: 1;
  padding: 88px 28px 68px;
  max-width: 720px;
}
.photo-hero .eyebrow { color: var(--accent); }
.photo-hero h1 { color: #FFFFFF; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; margin-top: 10px; }
.photo-hero h1 em { font-style: normal; color: var(--accent); }
.photo-hero p.lede { color: #E7E4DD; font-size: 1.1rem; line-height: 1.55; max-width: 52ch; margin: 14px 0 0; }
.photo-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Plain (non-photo) page hero, for interior pages */
.plain-hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.plain-hero h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin-top: 8px; }
.plain-hero p { color: var(--ink-soft); max-width: 56ch; margin: 12px 0 0; line-height: 1.55; }

section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--ink-soft); max-width: 46ch; margin: 10px 0 0; line-height: 1.55; }

/* ---------- Services grid (home) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.svc-card { background: var(--paper-raised); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.svc-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 4px; }
.svc-icon svg { width: 20px; height: 20px; }
.svc-card h3 { font-size: 1.2rem; letter-spacing: 0; }
.svc-card h3 a { color: inherit; text-decoration: none; }
.svc-card h3 a:hover { color: var(--accent-deep); }
.svc-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; margin: 0; }
.svc-card.wide { grid-column: span 2; }
.svc-card.full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
.svc-card.full .svc-icon { margin-bottom: 0; flex-shrink: 0; }
.svc-photo { width: 100%; height: 130px; border-radius: 8px; overflow: hidden; margin-bottom: 4px; border: 1px solid var(--line); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-card.cta { background: var(--paper-alt); justify-content: center; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 560px; }
.loc-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; position: relative; }
.loc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); border-radius: 10px 10px 0 0; }
.loc-card h3 { font-size: 1.4rem; letter-spacing: 0; margin-bottom: 4px; }
.loc-card .county { font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- About ---------- */
.about { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about p { color: var(--ink-soft); line-height: 1.65; font-size: 1.02rem; }
.about p + p { margin-top: 14px; }
.cred-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cred { border: 1px solid var(--line); background: var(--paper-raised); border-radius: 999px; padding: 8px 16px; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-soft); }

/* ---------- Value props (About page) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.value-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; }
.value-card .num { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent-deep); line-height: 1; }
.value-card h3 { font-size: 1.15rem; letter-spacing: 0; margin: 10px 0 8px; }
.value-card p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin: 0; }
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Repair / callout photo strip ---------- */
.repair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.repair-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.repair-card .banner-figure { border: none; border-radius: 0; }
.repair-card p { margin: 0; padding: 14px 16px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 880px) { .repair-grid { grid-template-columns: 1fr; } }

/* ---------- Photo gallery (about page) ---------- */
.photo-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.photo-grid img { border-radius: 12px; object-fit: cover; width: 100%; height: 100%; border: 1px solid var(--line); }
.photo-grid .tall { grid-row: span 2; height: 100%; }
.photo-cell { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photo-cell img { border: none; border-radius: 0; }

/* ---------- Simple two-photo pair ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 560px) { .duo-grid { grid-template-columns: 1fr; } }

/* ---------- Photo gallery strip (e.g. Mobile Technician) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.gallery-grid img { width: 100%; height: 230px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid img { height: auto; } }

/* ---------- Find-us map cards ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.map-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.map-card iframe { width: 100%; height: 220px; display: block; border: 0; filter: grayscale(0.15); }
.map-card-body { padding: 20px 22px; }
.map-card-body h3 { font-size: 1.2rem; letter-spacing: 0; margin-bottom: 6px; }
.map-card-body address { font-style: normal; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; margin: 0 0 14px; }
@media (max-width: 880px) { .map-grid { grid-template-columns: 1fr; } }

/* ---------- Coming soon strip ---------- */
.coming-soon { display: flex; align-items: center; gap: 14px; background: var(--paper-raised); border: 1px dashed var(--line); border-radius: 10px; padding: 18px 22px; margin-top: 28px; }
.coming-soon .tag { flex-shrink: 0; background: var(--accent-wash); color: var(--accent-deep); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.coming-soon p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Service detail sections ---------- */
.detail { border-top: 1px solid var(--line); }
.detail.alt { background: var(--paper-alt); }
.detail-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: start; }
.detail-grid.reverse { grid-template-columns: 0.9fr 1.3fr; }
.detail-grid.reverse .detail-copy { order: 2; }
.detail-grid.reverse .detail-side { order: 1; }
.detail-copy p { color: var(--ink-soft); line-height: 1.65; font-size: 1.02rem; margin: 0 0 14px; }
.detail-copy p:last-child { margin-bottom: 0; }
.detail-side { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.detail.alt .detail-side { background: var(--paper); }
.detail-side h3 { font-size: 1.1rem; letter-spacing: 0; margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 13px; margin: 0 0 22px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }
.check-item svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--accent-deep); margin-top: 2px; }
.detail-note { font-size: 0.82rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; line-height: 1.5; }

/* Banner image used at top of a service detail block */
.banner-figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.banner-figure img { width: 100%; height: auto; }

/* ---------- Placeholder notice (e.g. Tyre Division awaiting copy) ---------- */
.placeholder-note { background: var(--accent-wash); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; color: var(--accent-deep); font-size: 0.9rem; font-weight: 600; margin-top: 20px; }

/* ---------- Compare list (e.g. unmanaged vs managed) ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.compare-col h3 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: 14px; }
.minus-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }
.minus-item svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--ink-faint); margin-top: 2px; }
@media (max-width: 880px) { .compare-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Contact ---------- */
.contact-panel { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 52px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.contact-panel h2 { color: var(--paper); font-size: clamp(1.9rem, 3vw, 2.4rem); }
.contact-panel p { color: color-mix(in srgb, var(--paper) 72%, transparent); line-height: 1.55; margin: 12px 0 0; max-width: 44ch; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-method { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); border-radius: 10px; padding: 16px 18px; transition: border-color 0.15s ease, background 0.15s ease; }
.contact-method:hover { border-color: var(--accent); background: color-mix(in srgb, var(--paper) 6%, transparent); }
.contact-method .ico { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.contact-method .ico svg { width: 18px; height: 18px; }
.contact-method .meta { display: flex; flex-direction: column; }
.contact-method .meta .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in srgb, var(--paper) 60%, transparent); font-weight: 700; }
.contact-method .meta .v { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; }

/* ---------- Footer ---------- */
footer { padding: 32px 0 44px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand img { height: 30px; }
footer .fine { font-size: 0.82rem; color: var(--ink-faint); }
footer .fine a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; background: none; border: none; color: #E7E4DD; padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  nav.links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav.links.open { display: flex; }
  nav.links > a, .nav-item { padding: 0 28px; }
  nav.links > a { padding: 12px 28px; }
  .nav-item > button.nav-toplink { width: 100%; justify-content: space-between; padding: 12px 0; }
  .nav-dropdown,
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; padding: 0 0 8px; min-width: 0; display: none; }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown a { color: #C9C2B4; padding: 9px 14px; }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost-dark span.label,
  .header-cta a.btn-ghost-dark { display: none; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc-card.full { flex-direction: column; align-items: flex-start; }
  .loc-grid { grid-template-columns: 1fr; max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .detail-grid, .detail-grid.reverse { grid-template-columns: 1fr; }
  .detail-grid.reverse .detail-copy, .detail-grid.reverse .detail-side { order: initial; }
  .contact-panel { grid-template-columns: 1fr; padding: 36px 26px; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-grid .tall { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
