/* Henley Motors — brand tokens sampled from the physical shopfront signage (grey/blue).
   Fixed grey theme throughout — intentionally not swapped by OS light/dark preference. */
:root {
  --color-bg: #3c4045;            /* page background — signage grey */
  --color-surface: #45494e;       /* cards / alternate sections — one step lighter */
  --color-fg: #f2f3f4;            /* primary text — near white */
  --color-fg-muted: #b6bbc0;      /* secondary text */
  --color-grey: #2f3236;          /* deep grey — hero, sister banner */
  --color-grey-dark: #202225;     /* darkest — footer */
  --color-blue: #3d7de0;          /* signage script blue, brightened for contrast on grey */
  --color-blue-dark: #2a63c2;     /* hover state */
  --color-blue-light: #263349;    /* dark navy chip background for badges/icons */
  --color-blue-soft: #a8c8fb;     /* light blue text/icon on top of blue-light chips */
  --color-border: #5a5f64;
  --color-star: #f5b942;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25), 0 1px 1px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; margin: 0 0 .5em; color: var(--color-fg); }
p { margin: 0 0 1em; color: var(--color-fg-muted); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--color-blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--color-blue); display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-blue); color: #fff; }
.btn-primary:hover { background: var(--color-blue-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-ghost { background: var(--color-blue-light); color: var(--color-blue-soft); }
.btn-ghost:hover { background: #2f4064; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 14px 0; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 40px; width: auto; border-radius: 6px; flex-shrink: 0; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 16.5px; line-height: 1.2; white-space: nowrap; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--color-fg-muted); letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; }
.main-nav a {
  font-weight: 600; font-size: 14.5px; color: var(--color-fg-muted); white-space: nowrap;
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: color 150ms ease, border-color 150ms ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--color-blue); border-color: var(--color-blue); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--color-fg);
  white-space: nowrap; padding-right: 18px; border-right: 1px solid var(--color-border);
}
.header-phone svg { color: var(--color-blue); flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; border-radius: 8px; color: var(--color-fg);
}
.nav-toggle:hover { background: var(--color-blue-light); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-grey) 0%, var(--color-grey-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(28,95,196,0.35), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center; padding: 96px 0 80px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero-badge svg { color: var(--color-star); }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #7fb1ff; }
.hero p.lede { color: rgba(255,255,255,0.82); font-size: 17.5px; max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: #fff; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.7); }

.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px; padding: 28px; backdrop-filter: blur(6px);
}
.hero-card img { border-radius: 10px; margin-bottom: 20px; background: var(--color-grey-dark); padding: 18px; }
.hero-card-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-card-row:first-of-type { border-top: none; }
.hero-card-row svg { color: #7fb1ff; flex-shrink: 0; }
.hero-card-row div { font-size: 14px; color: rgba(255,255,255,0.85); }
.hero-card-row strong { display: block; color: #fff; font-size: 14.5px; }

/* Trust strip */
.trust-strip { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--color-fg-muted); }
.trust-item svg { color: var(--color-blue); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--color-blue-light);
  color: var(--color-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--color-surface);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item .gallery-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 32px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 14px; font-size: 13.5px; color: var(--color-fg-muted); }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-photo {
  background: var(--color-grey); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-md);
}
.about-photo img { border-radius: 8px; }
.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--color-fg); }
.about-list svg { color: var(--color-blue); flex-shrink: 0; margin-top: 2px; }
.award-banner {
  margin-top: 28px; display: flex; gap: 14px; align-items: center; background: var(--color-blue-light);
  border-radius: 12px; padding: 16px 20px;
}
.award-banner svg { color: var(--color-blue); flex-shrink: 0; }
.award-banner strong { display: block; font-size: 14.5px; color: var(--color-fg); }
.award-banner span { font-size: 13.5px; color: var(--color-fg-muted); }

/* Rating block */
.rating-block { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.rating-stars { display: flex; gap: 3px; color: var(--color-star); }
.rating-score { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; }

/* Sister banner */
.sister-banner {
  background: var(--color-grey); border-radius: 20px; padding: 48px; color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.sister-banner img { height: 56px; width: auto; background: #d7dade; padding: 8px 10px; border-radius: 8px; }
.sister-banner h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.sister-banner p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 52ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 32px;
}
.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { color: var(--color-blue); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-row span, .contact-row a { font-size: 14.5px; color: var(--color-fg-muted); }
.contact-row a:hover { color: var(--color-blue); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table td { padding: 6px 0; color: var(--color-fg-muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--color-fg); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: 8px; padding: 11px 14px;
  font-family: inherit; font-size: 14.5px; background: var(--color-bg); color: var(--color-fg);
  min-height: 44px; transition: border-color 150ms ease;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-blue); }
.form-note { font-size: 12.5px; color: var(--color-fg-muted); margin-top: 10px; }

/* Footer */
.site-footer { background: var(--color-grey-dark); color: rgba(255,255,255,0.75); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 64px 0 32px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 14.5px; transition: color 150ms ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* Utility */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.badge-affiliate {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-blue-light); color: var(--color-blue-soft);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-card { order: -1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sister-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 64px 16px auto 16px; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: 12px; flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform 200ms ease, opacity 200ms ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 10px; border-bottom: none; border-radius: 8px; }
  .main-nav a:hover { background: var(--color-blue-light); }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .brand-name span { display: none; }
  .brand-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .brand { min-width: 0; overflow: hidden; }
  .brand img { height: 34px; flex-shrink: 0; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { padding: 10px 14px; font-size: 13.5px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 0 24px; }
  .section { padding: 56px 0; }
}
@media (max-width: 400px) {
  .header-cta .btn-primary { padding: 10px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
