/* ============ Saint George Cars — Sunset Ink (v2) ============ */

/* ---------- Design tokens ---------- */
:root {
  /* Ink */
  --ink:          #0F3D4F;
  --ink-deep:     #06293A;
  --ink-raised:   #1B4E61;
  --ink-hairline: #2F6779;
  --ink-muted:    #6D98A5;

  /* Action */
  --action:       #C24E0A;
  --action-hover: #A94209;
  --action-active:#8E3707;

  /* Warm */
  --gold:         #EFC271;
  --sand:         #F8F2E8;
  --sand-line:    #EADFCF;

  /* Cool */
  --sea:          #00707E;
  --sea-bright:   #7FC9D3;
  --sea-tint:     #E3EDEE;

  /* Neutrals */
  --paper:        #FFFFFF;
  --paper-line:   #E7EDEE;
  --body-on-dark: #CBDEE3;
  --muted-on-dark:#B9D2D8;
  --muted:        #55666D;

  --r-card: 18px;
  --r-media: 14px;
  --r-pill: 999px;
  --shadow-card: 0 2px 8px rgba(15,61,79,.07);
  --shadow-card-hover: 0 8px 20px rgba(15,61,79,.16);
  --shadow-float: 0 10px 34px rgba(15,61,79,.16);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
  --pad: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--action); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); }
h1 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; line-height: 1.03; letter-spacing: -.01em; }
h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.2; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.2; }
h2, h3, h4, p { text-wrap: pretty; }
p { max-width: 560px; }
p { font-size: 17px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: 44px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 12px;
}
.eyebrow.on-dark { color: var(--sea-bright); }

.section-head { max-width: 640px; margin-bottom: 28px; }
.section-sub { color: var(--muted); margin-top: 8px; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  line-height: 1;
}
.cta { transition: background-color .16s ease, transform .16s ease; }
.cta:hover { background: var(--action-hover); }
.cta:active { background: var(--action-active); transform: translateY(1px); }

.btn-action { background: var(--action); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-md { padding: 12px 20px; font-size: 13px; }

.btn-ghost {
  border: 1px solid var(--ink-muted);
  color: #fff;
  background: transparent;
  padding: 16px 28px;
}
.btn-ghost:hover { border-color: #fff; }

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
}
.btn-outline-light:hover { background: rgba(255,255,255,.14); }

/* ---------- Focus rings ---------- */
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.on-dark :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  padding: 18px 32px;
  border-bottom: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
/* Logo — width 200px desktop / 150px mobile; never larger */
.logo {
  width: 200px;
  height: auto;
  max-width: 200px;
  display: block;
}

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--action); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--action); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-wa {
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.header-wa:hover { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,41,58,.72) 0%, rgba(6,41,58,.50) 45%, rgba(6,41,58,.90) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(56px, 11vh, 88px);
  min-height: min(620px, 78svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sea-bright);
}
.hero-title { color: #fff; margin: 0; }
.hero-title .gold { color: var(--gold); }
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--body-on-dark); max-width: 560px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-chip {
  border: 1px solid var(--ink-hairline);
  color: var(--muted-on-dark);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.trust-link {
  color: var(--muted-on-dark);
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}
.trust-link:hover { color: #fff; }
.trust-link .star { color: var(--gold); }

.hero-eyebrow-short, .hero-p-short { display: none; }

/* ============ Trust strip ============ */
.trust-strip {
  background: var(--paper);
  padding-block: 26px;
}
.trust-strip .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-item .t-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.trust-item .t-line { font-size: 14px; color: var(--muted); }

/* ============ Inventory ============ */
.inventory { background: var(--sand); padding-block: 44px; }
.inv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.inv-head h2, .inv-head .inv-h2 { color: var(--ink); }
.inv-note { font-size: 14px; color: var(--muted); }

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.car-card {
  background: var(--paper);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, transform .18s ease;
}
.car-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.car-media { aspect-ratio: 4 / 3; overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.car-cat {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea);
}
.car-model { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); }
.car-specs { font-size: 13px; color: var(--muted); white-space: nowrap; }
.car-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.car-price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.car-price strong { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); }
.car-cta {
  background: var(--action);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.inv-footnote { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* ============ How it works ============ */
.how { background: var(--paper); padding-block: 44px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--sea-tint); }
.step-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }
.step-body { font-size: 15px; color: var(--muted); }

/* ============ Transfers / services ============ */
.svc { background: var(--ink); color: #fff; padding-block: 44px; }
.svc-head { margin-bottom: 28px; }
.svc-head h2 { color: #fff; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}
.svc-panel {
  background: var(--ink-raised);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-title { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: #fff; }
.svc-body { font-size: 15px; color: var(--body-on-dark); line-height: 1.6; }
.svc-link { color: var(--gold); font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 4px; }
.svc-link:hover { text-decoration: underline; }

/* ============ Reviews ============ */
.reviews { background: var(--sand); padding-block: 44px; }
.reviews .rev-sub { color: var(--muted); font-size: 14px; }
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
.rev-card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rev-stars { color: var(--gold); font-size: 13px; letter-spacing: .12em; }
.rev-quote { font-size: 16px; line-height: 1.65; color: var(--ink); }
.rev-attrib { font-size: 13px; color: var(--muted); }
.rev-more { text-align: center; }

/* ============ Our story ============ */
.story { background: var(--paper); padding-block: 44px; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 40px;
  align-items: center;
}
.story-text { display: flex; flex-direction: column; gap: 16px; }
.story-text p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.story-photo {
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ FAQ ============ */
.faq { background: var(--sand); padding-block: 44px; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand-line); }
.faq-item:first-child { border-top: 1px solid var(--sand-line); }
.faq-q {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  padding: 16px 0;
  position: relative;
  padding-right: 34px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--sea);
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--muted); padding-bottom: 18px; }

/* ============ Find us ============ */
.findus { background: var(--paper); padding-block: 44px; }
.findus-head h2 { margin-bottom: 4px; }
.findus-head p { color: var(--muted); font-size: 15px; }
.findus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 28px;
  align-items: stretch;
}
.findus-dl { display: flex; flex-direction: column; gap: 16px; }
.findus-row { display: flex; flex-direction: column; gap: 2px; }
.findus-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea);
}
.findus-value { font-size: 15px; color: var(--ink); }
.findus-value a { color: var(--ink); }
.findus-value a:hover { color: var(--action); }
.copy-btn {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--sea);
  background: var(--sea-tint);
  border: 0;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color .16s ease, color .16s ease;
}
.copy-btn:hover { background: var(--sea); color: #fff; }
.copy-btn.copied { background: var(--action); color: #fff; }
.findus-map {
  border-radius: var(--r-media);
  overflow: hidden;
  min-height: 320px;
  background: var(--sea-tint);
}
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  background: var(--sea-tint);
  color: var(--sea);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.map-placeholder:hover { background: var(--paper-line); }
.map-placeholder small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.map-frame { width: 100%; height: 100%; min-height: 320px; border: 0; }
.findus-footnote { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* ============ Final CTA ============ */
.final-cta {
  background: var(--ink);
  color: #fff;
  padding-block: 52px;
  text-align: center;
}
.final-inner { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.final-title { color: #fff; margin: 0; }
.final-line { color: var(--body-on-dark); font-size: 17px; max-width: 620px; }
.final-call { font-size: 13px; color: var(--muted-on-dark); }
.final-call a { color: #fff; font-weight: 600; }

/* ============ Footer ============ */
.footer { background: var(--ink-deep); color: var(--muted-on-dark); padding-block: 40px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-chip {
  display: block;
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 10px;
  margin-bottom: 14px;
}
.footer-chip .footer-logo { width: 160px; height: auto; display: block; }
.footer-tag { font-size: 14px; color: var(--muted-on-dark); line-height: 1.7; max-width: 260px; }
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer a {
  display: block;
  color: var(--muted-on-dark);
  font-size: 14px;
  text-decoration: none;
  padding: 5px 0;
}
.footer a:hover { color: #fff; }
.footer-rule {
  border-top: 1px solid var(--ink-hairline);
  margin-top: 32px;
  padding-top: 16px;
}
.footer-copy { font-size: 12px; color: var(--muted-on-dark); }

/* ============ Sticky WhatsApp bar ============ */
.sticky-wa-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-wa-bar.visible { transform: translateY(0); }
.sticky-wa-bar .btn-action {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
}
@media (min-width: 900px) { .sticky-wa-bar { display: none; } }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Responsive ============ */
@media (max-width: 899px) {
  :root { --pad: 18px; }
  .site-header { padding: 14px 18px; }
  .logo { width: 150px; max-width: 150px; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 76px 24px 24px;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -10px 0 40px rgba(6,41,58,.2);
    z-index: 40; /* below the sticky header so the hamburger stays usable */
  }
  .main-nav.open { transform: none; }
  .main-nav a {
    font-size: 16px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--paper-line);
    white-space: normal;
  }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--action); }
  .nav-toggle { display: flex; }
  .header-wa { display: none; }

  /* Mobile hero composition (background photo retained) */
  .hero-inner {
    gap: 14px;
    padding: 52px 18px 48px;
    min-height: min(540px, 76svh);
  }
  .hero-eyebrow { font-size: 11px; }
  .hero-eyebrow-full, .hero-p-full { display: none; }
  .hero-eyebrow-short, .hero-p-short { display: inline; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-cta .btn-ghost { display: none; }
  .hero-cta .btn-action { width: 100%; }
  .hero-trust { gap: 10px; }
  .hero-trust .trust-link { order: -1; }
  .trust-link { font-size: 13px; color: var(--body-on-dark); }

  .svc-grid { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .findus-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .section { padding-block: 28px; }
  .car-grid { grid-template-columns: 1fr; }
  .car-media { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-trust .hero-chip { font-size: 11px; }
}
