/* Fort Fareham Garage — site stylesheet
 * Design tokens extracted from the existing organic-stax theme + inline overrides.
 * Mobile-first; CSS custom properties drive everything.
 */

:root {
  /* Lock browser UI to light — form controls, scrollbars etc. */
  color-scheme: light;
  /* Force form controls (checkbox, radio, range, etc.) to use FFG brand
   * colour. Without this, Chrome inherits the user's OS / installed-theme
   * accent — e.g. a pink Chrome theme paints every checkbox pink. */
  accent-color: #0e1ea0;

  /* Brand */
  --ffg-blue:        #0e1ea0;
  --ffg-blue-dark:   #0a1577;
  --ffg-card-border: #D9E9E7;
  --ffg-card-bg:     #f5f7fa;

  /* Text */
  --ffg-body:    #383f40;
  --ffg-muted:   #656d6f;
  --ffg-on-blue: #ffffff;
  --ffg-on-light:#1a1a1a;

  /* Surfaces */
  --ffg-bg:    #ffffff;
  --ffg-edge:  #e5e7eb;

  /* Typography scale (matches theme.json) */
  --fs-xs:  0.75rem;
  --fs-sm:  0.9rem;
  --fs-md:  1.1rem;
  --fs-lg:  1.4rem;
  --fs-xl:  1.8rem;
  --fs-2xl: 2.2rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;
  --fs-5xl: 5rem;

  /* Layout */
  --container: 1180px;
  --container-wide: 1440px;
  --radius: 12px;
  --radius-sm: 3px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ffg-body);
  background: var(--ffg-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Defensive baseline: form controls always white-on-dark text so Chrome
 * user-themes (e.g. pink) can't tint inputs. accent-color above handles the
 * checked/active styling. */
input, select, textarea {
  background-color: #fff;
  color: var(--ffg-body);
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--ffg-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
a:hover { border-bottom-color: var(--ffg-blue); }

/* Containers */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: 1.25rem; }
.alignfull { width: 100%; }

/* Headings — Roboto, light for hero, bolder for sections */
h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  margin: 0 0 .75rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: inherit;
}
h1 { font-size: var(--fs-4xl); font-weight: 300; }
h2 { font-size: var(--fs-3xl); font-weight: 300; }
h3 { font-size: var(--fs-2xl); font-weight: 700; }
h4 { font-size: var(--fs-xl); font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Buttons */
.btn, button.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--ffg-blue);
  color: var(--ffg-on-blue);
  border: 2px solid var(--ffg-blue);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ffg-blue-dark); border-color: var(--ffg-blue-dark); border-bottom-color: var(--ffg-blue-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ffg-blue);
  border-color: var(--ffg-blue);
}
.btn-ghost:hover { background: var(--ffg-blue); color: var(--ffg-on-blue); }
.btn-white {
  background: #fff; color: var(--ffg-blue); border-color: #fff;
}
.btn-white:hover { background: var(--ffg-card-bg); border-color: var(--ffg-card-bg); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--ffg-edge);
  padding: .75rem 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo img { height: 56px; width: auto; }
/* Nav items push to the right; pills sit closer together at the end */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
  flex-wrap: nowrap;
}
.site-nav a {
  color: var(--ffg-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: .3px;
  white-space: nowrap;
}
@media (max-width: 1280px) {
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: 13.5px; }
}
@media (max-width: 1100px) {
  .site-nav { gap: .65rem; }
  .site-nav a { font-size: 13px; }
}
.site-nav a[aria-current="page"] { color: var(--ffg-blue); border-bottom-color: var(--ffg-blue); }
.site-nav .btn { margin-left: .5rem; padding: 10px 18px; }

/* Dropdown menu — used by 'Our Services'. Hover-open on desktop,
   tap-open on mobile via .is-open toggled by JS. */
.site-nav .site-nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-nav .site-nav-item.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.site-nav-caret { width: 10px; height: 7px; transition: transform .15s ease; }
.site-nav .site-nav-item.has-dropdown.is-active > a { color: var(--ffg-blue); border-bottom-color: var(--ffg-blue); }
.site-nav .site-nav-item.has-dropdown:hover .site-nav-caret,
.site-nav .site-nav-item.has-dropdown.is-open .site-nav-caret { transform: rotate(180deg); }
.site-nav-dropdown {
  position: absolute;
  top: 100%;
  left: -.5rem;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--ffg-edge);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  padding: .35rem 0;
  display: none;
  z-index: 50;
}
.site-nav .site-nav-item.has-dropdown:hover .site-nav-dropdown,
.site-nav .site-nav-item.has-dropdown:focus-within .site-nav-dropdown,
.site-nav .site-nav-item.has-dropdown.is-open .site-nav-dropdown { display: block; }
.site-nav-dropdown a {
  display: block;
  padding: .55rem 1rem;
  border-bottom: 0;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav-dropdown a:hover { background: var(--ffg-card-bg); color: var(--ffg-blue); }
/* Auth pills sit in their own span so we can control the gap between them
   independently of the main nav's gap. */
.site-nav-auth { display: inline-flex; align-items: center; gap: 4px; margin-left: .5rem; }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer;
  color: var(--ffg-blue);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--ffg-edge); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem 0; border-bottom: 1px solid var(--ffg-edge); }
  .site-nav .btn { margin: .75rem 0 0; }
  .nav-toggle { display: block; }

  /* Mobile dropdown: inline-expanded list, not absolute. */
  .site-nav .site-nav-item.has-dropdown { display: block; }
  .site-nav .site-nav-item.has-dropdown > a { padding: .75rem 0; border-bottom: 1px solid var(--ffg-edge); }
  .site-nav-dropdown {
    position: static; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 0 1rem; min-width: 0;
  }
  .site-nav-dropdown a { padding: .55rem 0; }
}

/* Page hero — full-width gradient banner at the top of inner pages.
   Matches fortfarehamgarage.co.uk's recurring royal-blue gradient
   block with centred white title. */
.page-hero {
  max-width: 1200px;
  margin: 2rem auto 2.5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0a1577 0%, #0e1ea0 55%, #2f5cd9 100%);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(10, 26, 110, .18);
}
/* Lavender variant — used on /contact */
.page-hero-lavender {
  background: linear-gradient(135deg, #8a82c4 0%, #a8a3d4 50%, #b8c2e5 100%);
  box-shadow: 0 12px 28px rgba(138, 130, 196, .25);
}
/* legacy alias */
.page-hero-dark { }
.page-hero h1 {
  margin: 0 auto;
  max-width: 24ch;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
}
.page-hero h1 strong { font-weight: 800; }
.page-hero p.lede {
  margin: 1.25rem auto 0;
  max-width: 68ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #fff;
  opacity: .95;
  line-height: 1.5;
}

/* Hero (parallax cover) */
.hero {
  position: relative;
  min-height: 640px;     /* taller so the cards' 100px overlap doesn't crowd the VRM box */
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: #000;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-bg, none);
  background-position: 50% 50%;
  background-size: cover;
  background-attachment: fixed;
  opacity: .55;
}
.hero .container-wide {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 7rem;            /* extra bottom padding so the USP
                                         tiles below don't get squished */
  text-align: left;
  max-width: 1200px;
  margin-inline: auto;
}
/* Two-column hero — text on the left, VRM lookup right-aligned. Stacks
   vertically on tablet/phone where there isn't room for a side-by-side. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
}
.hero-text { min-width: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.hero-title strong { font-weight: 800; }
.hero-sub   {
  color: #fff;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1rem;
}
.hero-lede  {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0 0 1.5rem;
  max-width: 50ch;
  line-height: 1.5;
}

/* Hero VRM lookup: yellow plate-style reg input + Book now button.
   In the two-column hero grid this sits in the right cell and aligns to
   the right edge of the container. On narrow viewports the grid collapses
   to a single column and this drops below the heading text. */
.hero-reg {
  display: flex; align-items: center; justify-content: flex-end;
  gap: .75rem;
  max-width: 560px;
  margin: 0;
  justify-self: end;
}
@media (max-width: 900px) {
  .hero-reg { justify-self: start; margin: 1.25rem 0 0; }
}
.hero-reg input[type="text"] {
  flex: 1 1 auto;
  background: #fcb900;                /* UK number-plate yellow */
  color: #111;
  border: 2px solid #c5a300;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: "Charles Wright", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,.18) inset;
  outline: none;
}
.hero-reg input[type="text"]:focus { border-color: #b58a00; box-shadow: 0 0 0 3px rgba(255,212,0,.5); }
.hero-reg input[type="text"]::placeholder { color: rgba(0,0,0,.45); letter-spacing: .08em; }
.hero-reg .btn { white-space: nowrap; padding: 14px 26px; font-size: 1rem; }
@media (max-width: 540px) {
  .hero-reg { flex-direction: column; align-items: stretch; gap: .5rem; }
  .hero-reg .btn { width: 100%; }
}

/* Pill-style auth buttons. Scoped to both .site-nav and .account-nav so the
   selectors have specificity 0,2,0 and beat .site-nav .btn (0,2,0) on later
   order. Without scoping, the more-specific .site-nav .btn padding wins and
   pills render at full button size. */
.site-nav .btn-pill,
.account-nav .btn-pill {
  margin-left: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  border-bottom: none;
  color: var(--ffg-on-blue);   /* filled variant: white text on blue bg */
}
.site-nav .btn-pill-ghost,
.account-nav .btn-pill-ghost {
  background: transparent;
  color: var(--ffg-blue);
  border: 1px solid var(--ffg-blue);
  border-bottom: 1px solid var(--ffg-blue);
}
.site-nav .btn-pill-ghost:hover,
.account-nav .btn-pill-ghost:hover {
  background: var(--ffg-blue);
  color: var(--ffg-on-blue);
  border-color: var(--ffg-blue);
}

@supports (-webkit-touch-callout: none) {
  /* iOS doesn't honour background-attachment:fixed reliably */
  .hero::before { background-attachment: scroll; }
}

/* USP cards row (negative-margin overlap onto hero) */
.usp-row {
  margin-top: -100px;       /* cards float up into the hero (overlap design) */
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.usp-card {
  background: var(--ffg-card-bg);
  border: 2px solid var(--ffg-card-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.usp-card img { width: 36px; height: 36px; margin: 0 auto 1rem; }
.usp-card h3 { color: var(--ffg-blue); font-size: var(--fs-2xl); margin-bottom: .5rem; }
.usp-card p { margin: 0; color: var(--ffg-body); }
.usp-card p + p { margin-top: .35rem; }

/* Media-text banner (big blue full-width) */
.banner {
  display: grid;
  grid-template-columns: 52% 48%;
  background: var(--ffg-blue);
  color: var(--ffg-on-blue);
  margin-block: 3rem;
}
.banner-img img { width: 100%; height: 100%; object-fit: cover; }
.banner-body { padding: 4rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.banner-body h2 { color: #fff; text-align: center; font-weight: 300; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; margin-bottom: 1rem; }
.banner-body h2 strong { font-weight: 700; }
.banner-body h3 { color: #fff; font-weight: 400; font-size: var(--fs-lg); text-align: center; margin-bottom: 1.5rem; line-height: 1.4; }
.banner-body p  { color: #fff; max-width: 56ch; margin-inline: auto; }
.banner-cta { text-align: center; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .banner { grid-template-columns: 1fr; }
}

/* Page sections */
.section { padding: 4rem 0; }
.section-heading { text-align: center; max-width: 800px; margin-inline: auto; margin-bottom: 2.5rem; }
.section-heading h2 { color: var(--ffg-blue); font-weight: 300; }
.section-heading h2 strong { font-weight: 700; }
.section-heading p { color: var(--ffg-muted); margin-top: .5rem; }
.section-light { background: var(--ffg-card-bg); }

/* Two-column grid for FAQs / service cards */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* FAQ accordion - native <details>/<summary> + JS-driven height tween (ffg.js) */
.faq { margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: var(--ffg-blue);
  color: var(--ffg-on-blue);
  font-weight: 400;
  /* Block layout — content flows naturally; the +/- icon is positioned in the corner */
  display: block;
  position: relative;
  padding-right: 3rem;        /* leave room for the icon */
  user-select: none;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255,255,255,.7);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .25s ease;
}
.faq[open] > summary::after { content: '\2212'; transform: translateY(-50%) rotate(180deg); }   /* unicode minus, with the y-centre baked in */
.faq > .faq-body {
  background: var(--ffg-card-bg);
  color: var(--ffg-body);
  overflow: hidden;        /* lets the JS height-tween clip cleanly */
}
.faq > .faq-body > .faq-inner {
  padding: 1.25rem 1.5rem;
}
.faq > .faq-body p:first-child { margin-top: 0; }
.faq > .faq-body p:last-child  { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq > .faq-body, .faq > summary::after { transition: none !important; }
}

/* Service cards (used on /service) — two-zone navy header + white body */
.service-card {
  background: #fff;
  border: 2px solid var(--ffg-card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(10, 26, 110, .12);
}
.service-card h3,
.service-card .price,
.service-card .price + p {
  background: linear-gradient(135deg, #0a1577 0%, #0e1ea0 55%, #2f5cd9 100%);
  color: #fff;
  margin: 0;
  padding: 0 2rem;
  text-align: center;
}
.service-card h3 {
  padding-top: 2rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.service-card .price {
  padding-top: .25rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.service-card .price + p {
  padding: .25rem 2rem 2rem;
  font-size: var(--fs-base);
  opacity: .95;
}
.service-card ul {
  list-style: none;
  padding: 1.5rem 2rem 0;
  margin: 0 0 1.5rem;
  text-align: center;
}
.service-card li { padding: .35rem 0; position: relative; }
.service-card li::before {
  content: '\2713';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: #a3e635;
  color: #fff;
  font-size: .8rem;
  line-height: 1.25rem;
  text-align: center;
  font-weight: 700;
  vertical-align: middle;
}
.service-card .btn {
  margin: 0 2rem 2rem;
  align-self: center;
}

/* Service grid — 3 cards, centre "Full" elevated */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  padding-top: 2.5rem; /* space for the elevated Full card */
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; padding-top: 0; }
}
/* Centre Full card sits raised above its neighbours */
.service-card-featured {
  transform: translateY(-1.75rem);
  box-shadow: 0 16px 40px rgba(10, 26, 110, .28);
  border-color: #0e1ea0;
}
.service-card-featured h3,
.service-card-featured .price { color: #fff; }
.service-card-featured li::before { color: #fff; }
.service-card-featured .btn {
  background: #fff;
  color: var(--ffg-blue);
}
.service-card-featured .btn:hover { background: #f1f5ff; }
@media (max-width: 900px) {
  .service-card-featured { transform: none; }
}

/* Contact cards — dark blue panels on /contact */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  background: linear-gradient(135deg, #0a1577 0%, #0e1ea0 55%, #2f5cd9 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.75rem 1.75rem 2.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(10, 26, 110, .25);
}
.contact-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.contact-card .icon svg { width: 1.6rem; height: 1.6rem; }
.contact-card h3 {
  color: #fff;
  font-size: var(--fs-2xl);
  margin: 0 0 1rem;
  font-weight: 800;
}
.contact-card p { margin: 0; font-size: var(--fs-lg); }
.contact-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-card a:hover { color: #d5d8f4; }

/* Contact + form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dt { font-weight: 700; color: var(--ffg-blue); margin-top: 1.25rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: .25rem 0 0; }
form.ffg-form { display: grid; gap: 1rem; }
form.ffg-form label { font-weight: 500; color: var(--ffg-body); display: block; }
form.ffg-form input,
form.ffg-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--ffg-edge);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
form.ffg-form input:focus,
form.ffg-form textarea:focus {
  outline: 2px solid var(--ffg-blue);
  outline-offset: -1px;
  border-color: var(--ffg-blue);
}
form.ffg-form textarea { min-height: 140px; resize: vertical; }
form.ffg-form .form-status { padding: .75rem 1rem; border-radius: var(--radius-sm); }
form.ffg-form .form-status.ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
form.ffg-form .form-status.err  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Reviews grid */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--ffg-card-bg);
  border: 2px solid var(--ffg-card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.review-card .stars { color: #fbbf24; font-size: 1.25rem; letter-spacing: 2px; margin-bottom: .5rem; }
.review-card .author { font-weight: 700; color: var(--ffg-body); margin-top: .75rem; }
.review-card .when { color: var(--ffg-muted); font-size: var(--fs-sm); }
.reviews-cta {
  background: var(--ffg-card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.reviews-summary { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.reviews-summary .rating { font-size: 3rem; font-weight: 700; color: var(--ffg-blue); }
.reviews-summary .small { color: var(--ffg-muted); }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1100px;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; max-width: 320px; }
}
.team-card {
  background: var(--ffg-card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ffg-card-border);
}
.team-card img { width: 100%; aspect-ratio: 724 / 1024; object-fit: cover; }
.team-card .team-name { padding: 1.25rem 1.5rem 0; font-weight: 700; color: var(--ffg-blue); font-size: var(--fs-lg); }
.team-card .team-role { padding: 0 1.5rem; color: var(--ffg-muted); font-size: var(--fs-sm); }
.team-card .team-bio  { padding: .75rem 1.5rem 1.5rem; margin: 0; }

/* Footer — matches the existing WordPress site's blue footer. */
.site-footer {
  background: linear-gradient(180deg, var(--ffg-blue) 0%, #1a3699 100%);
  color: #dbe2f0;
  padding: 3.5rem 0 1.25rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: #fff; font-size: var(--fs-md);
  margin-bottom: 1rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.site-footer a { color: #fff; }
.site-footer a:hover { text-decoration: underline; color: #fff; border-bottom-color: transparent; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-links { list-style: disc; padding-left: 1.1rem; margin: 0; display: grid; gap: .55rem; }
.footer-links a { font-weight: 500; }
.footer-contact { list-style: none; padding-left: 0; }
.footer-contact .muted-line { color: #c2cbe0; font-size: var(--fs-sm); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: center;
}
.footer-logo-mini { max-height: 56px; width: auto; }
.footer-copyright { text-align: center; color: #c2cbe0; font-size: var(--fs-sm); }
.footer-socials { display: inline-flex; gap: .6rem; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  color: #fff;
  transition: background .12s ease;
  border-bottom: 0;
}
.footer-socials a:hover { background: rgba(0,0,0,.35); }
@media (max-width: 600px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Map embed */
.map-embed { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius); }

/* Instagram feed grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  max-width: 920px;
  margin: 0 auto;
}
.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border-bottom: 0;
  background: var(--ffg-card-bg);
  transition: transform .2s ease;
}
.ig-tile:hover {
  transform: translateY(-2px);
  border-bottom: 0;
}
.ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ig-tile .ig-badge {
  position: absolute;
  top: 8px; right: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  font-size: 1.25rem;
  line-height: 1;
}

/* Postcode lookup dropdown (Ideal Postcodes) — used across booking, account
 * registration, account details, admin customers, admin new-booking. The
 * JS in /assets/js/postcode-lookup.js inserts a `.postcode-lookup-dropdown`
 * directly after the postcode <input> (or its flex wrapper) and populates
 * it with address rows. Each row is a button so keyboard / a11y work. */
.postcode-lookup-dropdown {
  position: relative;
  margin-top: .25rem;
  border: 1px solid var(--ffg-edge);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
}
.postcode-lookup-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .55rem .75rem;
  border: 0;
  border-bottom: 1px solid var(--ffg-edge);
  background: transparent;
  font: inherit;
  color: var(--ffg-body);
  cursor: pointer;
}
.postcode-lookup-item:last-child { border-bottom: 0; }
.postcode-lookup-item:hover,
.postcode-lookup-item:focus {
  background: var(--ffg-card-bg);
  color: var(--ffg-blue);
  outline: 0;
}
.postcode-lookup-empty,
.postcode-lookup-error {
  padding: .55rem .75rem;
  color: var(--ffg-muted);
  font-size: var(--fs-sm);
}
.postcode-lookup-error { color: #b00020; }
.postcode-lookup-btn.is-error { border-color: #b00020; color: #b00020; }

/* Blog index (cards grid) + single post layout. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 2rem 0;
}
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--ffg-bg);
  border: 1px solid var(--ffg-edge);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15,23,42,.08), 0 12px 26px rgba(14,30,160,.12);
}
.blog-card-imgwrap {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ffg-card-bg);
  overflow: hidden;
  border-bottom: 0;
}
.blog-card-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-imgwrap-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e6edf6, #d0dde9);
}
.blog-card-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.blog-card-date { color: var(--ffg-muted); font-size: var(--fs-xs); margin: 0; letter-spacing: .03em; }
.blog-card-title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.blog-card-title a { color: var(--ffg-on-light); border-bottom: 0; }
.blog-card-title a:hover { color: var(--ffg-blue); }
.blog-card-excerpt { color: var(--ffg-body); font-size: var(--fs-sm); margin: .35rem 0 0; line-height: 1.5; }
.blog-card-more { margin: .35rem 0 0; font-size: var(--fs-sm); }
.blog-card-more a { color: var(--ffg-blue); font-weight: 600; border-bottom: 0; }

/* Single post detail */
.blog-post-container { max-width: 760px; margin: 0 auto; }
.blog-post-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; margin: .35rem 0 1.25rem; }
.blog-post-hero { margin: 0 0 1.5rem; border-radius: var(--radius-md, 12px); overflow: hidden; }
.blog-post-hero img { display: block; width: 100%; height: auto; }
.blog-post-body { font-size: 1.05rem; line-height: 1.7; color: var(--ffg-body); }
.blog-post-body p { margin: 0 0 1rem; }
.blog-post-body h1, .blog-post-body h2, .blog-post-body h3 {
  margin: 1.75rem 0 .5rem; line-height: 1.25;
}
.blog-post-body h1 { font-size: 1.5rem; }
.blog-post-body h2 { font-size: 1.3rem; }
.blog-post-body h3 { font-size: 1.15rem; }
.blog-post-body img {
  display: block;
  max-width: 100%; height: auto;
  border-radius: var(--radius-md, 10px);
  margin: 1rem auto;
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.blog-post-body ul, .blog-post-body ol { margin: 0 0 1rem 1.4rem; line-height: 1.7; }
.blog-post-body li { margin: 0 0 .25rem; }
.blog-post-body a { color: var(--ffg-blue); }
.blog-post-body blockquote {
  border-left: 3px solid var(--ffg-blue);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--ffg-muted);
  font-style: italic;
}
.blog-more { background: var(--ffg-card-bg); padding-top: 2rem; padding-bottom: 2rem; }

/* Utility */
.text-centre { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
