:root{
  --navy:#0f2742;
  --navy-600:#163755;
  --bg:#ffffff;
  --text:#111111;
  --muted:#6b7280;
  --border:#e5e7eb;
}

/* Base */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
.container{max-width:1100px;margin:0 auto;padding:0 1rem}
.narrow{max-width:780px}

/* Accessibility */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#fff;border:2px solid var(--navy);padding:.5rem 1rem;z-index:1000}

/* Header / Nav */
.site-header{border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--navy);font-weight:700}
.site-nav ul{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.site-nav a{color:#111;text-decoration:none;padding:.5rem .25rem;border-radius:.375rem}
.site-nav a[aria-current="page"], .site-nav a:hover{background:#f3f4f6}
.nav-toggle{display:none;background:transparent;border:1px solid var(--border);padding:.4rem .6rem;border-radius:.5rem}

/* Mobile nav */
@media(max-width:760px){
  .nav-toggle{display:block}
  .site-nav{display:none;position:absolute;right:1rem;top:3.25rem;background:#fff;border:1px solid var(--border);border-radius:.75rem;box-shadow:0 10px 30px rgba(0,0,0,.06)}
  .site-nav.open{display:block}
  .site-nav ul{flex-direction:column;padding:.5rem}
}

/* Hero */
.hero{background:linear-gradient(180deg, #fafafa, #fff);border-bottom:1px solid var(--border)}
.hero-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;align-items:center;padding:3rem 0}
.hero h1{font-size:2.4rem;line-height:1.15;margin:0 0 .6rem}
.lead{color:var(--muted);font-size:1.1rem}
.cta-row{display:flex;gap:.75rem;margin-top:1rem}

/* Buttons */
.btn{display:inline-block;border:1px solid var(--border);padding:.65rem 1rem;border-radius:.75rem;text-decoration:none;color:#111;background:#fff}
.btn:hover{background:#f8fafc}
.btn-primary{background:var(--navy);border-color:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-600)}

/* Header logo sizing (you liked 380px) */
.site-logo{width:380px;height:auto;display:inline-block;vertical-align:middle}

/* Hero image final sizing (stable + responsive) */
.hero-media img,
img.hero-img{
  width:auto !important;
  height:auto !important;
  max-height:300px !important;
  max-width:560px !important;
  border-radius:12px;
  display:block;
}
@media (max-width:900px){
  .hero-media img,
  img.hero-img{ max-height:240px !important; max-width:100% !important; }
}

/* Sections */
.section{padding:1.5rem 0}
.section-alt{background:#f9fafb;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}

/* Cards (Why Choose) */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{border:1px solid var(--border);border-radius:.75rem;padding:1rem;background:#fff}
@media(max-width:900px){.cards{grid-template-columns:1fr}}

/* Gallery grid (if used elsewhere) */
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}
.gallery-grid img{width:100%;height:auto;border-radius:.5rem;border:1px solid var(--border)}
@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}

/* Pricing */
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.price-card{border:1px solid var(--border);border-radius:.75rem;padding:1rem;background:#fff}
.price{font-size:1.5rem;color:var(--navy);margin:.25rem 0 .5rem}
@media(max-width:900px){.pricing{grid-template-columns:1fr}}

/* Make the condensed guarantee card span all columns in the pricing grid */
.price-card.wide { grid-column: 1 / -1; }

/* Testimonials */
.testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.testimonials figure{margin:0;border:1px solid var(--border);border-radius:.75rem;padding:1rem;background:#fff}
.testimonials blockquote{margin:0 0 .5rem;font-style:italic}
@media(max-width:900px){.testimonials{grid-template-columns:1fr}}

/* Helpers */
.cta-center{text-align:center;margin-top:1rem}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.divider{border:0;border-top:1px solid var(--border);margin:2rem 0}

/* Forms */
.contact-form{display:grid;gap:.5rem}
.contact-form input,.contact-form textarea{border:1px solid var(--border);border-radius:.5rem;padding:.6rem}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--navy);outline-offset:1px}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff;margin-top:2rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:1rem;padding:2rem 0}
.footer-brand{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.footer-bottom{padding:1rem 0;border-top:1px solid var(--border)}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}.footer-grid div:first-child{grid-column:1/-1}}
@media(max-width:600px){.footer-grid{grid-template-columns:1fr}}

/* Cookie banner */
.cookie-banner{position:fixed;bottom:1rem;right:1rem;left:1rem;max-width:760px;margin:0 auto;background:#111;color:#fff;padding:1rem;border-radius:.75rem;display:none;gap:.75rem;align-items:center;border:1px solid #2b2b2b}
.cookie-banner a{color:#d1e8ff}
.cookie-banner .btn{background:#fff;color:#111;border-color:#fff}

/* Trust list in hero */
.hero .trust-list{margin:1rem 0 0;padding-left:1rem}
.hero .trust-list li{margin:.25rem 0}

/* Blog card grid fix */
.post-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.5rem;
  margin:2rem 0;
  padding:0;
  list-style:none;
}
.post-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:1.5rem;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.post-card:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,0.1)}
.post-card .card-title{font-size:1.25rem;font-weight:600;color:#0f2742;margin:0 0 .5rem}
.post-card .card-excerpt{font-size:1rem;color:#555;margin:0}
.post-card a{text-decoration:none;color:inherit;display:block;height:100%}

/* Home hero before/after image (if used elsewhere) */
img[src*="before-after.png"]{max-width:820px;height:auto}

/* === Our Work: single-row auto-scroller (8 images) === */
.work-scroller{overflow:hidden;margin:28px 0}
.work-scroller .track{
  display:flex;
  align-items:center;
  gap:24px;
  width:max-content;
  animation:ff-marquee 28s linear infinite;
}
.work-scroller img{
  height:160px;
  width:auto;
  flex:0 0 auto;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
@keyframes ff-marquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (max-width:1024px){.work-scroller img{height:140px}}
@media (max-width:640px){
  .work-scroller img{height:120px}
  .work-scroller .track{animation-duration:22s}
}

/* Tighten spacing on Services page */
#pricing-intro{
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}
#pricing-intro h1{ margin-bottom: 0.5rem; }
#pricing-intro p{ margin-bottom: 0.9rem; }

/* Pull the pricing grid closer */
#pricing-intro + .section.container{ padding-top: 0.75rem; }

/* If you want it even tighter, target the pricing section directly */
.section.container.services-intro{ padding-top: 0.5rem; }

/* Services page: compress intro-to-pricing spacing */
#pricing-intro{
  padding-top: 0.75rem;     /* was 1.25rem */
  padding-bottom: 0.25rem;  /* shrink the bottom pad */
}
#pricing-intro h1{
  margin-bottom: 0.35rem;   /* smaller gap under H1 */
}
#pricing-intro p{
  margin-bottom: 0.7rem;    /* smaller gaps between paras */
}
#pricing-intro p:last-of-type{
  margin-bottom: 0.4rem;    /* extra-tight before grid */
}
/* tighten the next section's top pad */
#pricing-intro + .section.container{
  padding-top: 0.25rem;     /* was 0.75rem */
}
/* slightly trim the spacing above the "Services & Pricing" heading */
#pricing-intro + .section.container h1{
  margin-top: 0; 
  margin-bottom: 0.65rem;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Content */
.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  animation: popup-fade 0.3s ease;
}

.popup-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--navy);
}

.popup-content p {
  margin: 1rem 0;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Small fade-in animation */
@keyframes popup-fade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Booking popup */
.popup-overlay{
  position: fixed; inset: 0; display: none;
  background: rgba(0,0,0,.5); z-index: 1000;
}
.popup-content{
  max-width: 560px; margin: 10vh auto; background: #fff;
  border-radius: 12px; padding: 1.25rem; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.popup-close{
  position: absolute; top: .5rem; right: .75rem;
  background: transparent; border: none; font-size: 1.5rem; cursor: pointer;
}
.popup-logo{ height:28px; width:auto; display:block; margin-bottom:.5rem; }
.popup-header h2{ margin:.25rem 0 .25rem; font-size:1.4rem; line-height:1.2; }
.popup-sub{ margin:0; color:#6b7280; }
.popup-body{ margin-top:1rem; }
.popup-list{ margin:.25rem 0 1rem; padding-left:1rem; }
.popup-list li{ margin:.35rem 0; }
.popup-actions{ display:flex; gap:.75rem; flex-wrap:wrap; margin:.75rem 0 0; }
.popup-actions .btn{ padding:.7rem 1rem; }

@media (max-width:520px){
  .popup-content{ padding:1rem; }
  .popup-actions{ flex-direction:column; }
  .popup-actions .btn{ text-align:center; }
}

/* Center booking popup buttons */
.popup-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
  
/* Booking popup list: centered block, left-aligned text */
#booking-popup ul {
  list-style: disc;
  list-style-position: outside; /* normal bullet alignment */
  display: inline-block;        /* center the whole list */
  text-align: left;             /* but keep the text aligned */
  margin: 0.5rem auto;          /* center within popup */
  padding-left: 1.2rem;         /* slight padding so bullets don’t overlap text */
}

#booking-popup li {
  margin: 0.3rem 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left; /* keep the text left-aligned */
}

.price-card .btn {
  align-self: center;   /* centers the button horizontally */
  margin-top: 1rem;     /* adds a little space above the button */
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
}

/* Global Heading Styles */
h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .75rem;
  color: var(--navy);
}

/* Page titles (hero or top section) */
.big-title, h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
@media (min-width: 900px) {
  .big-title, h1 {
    font-size: 2.25rem;
  }
}

/* Section titles (like "Why It Matters") */
h2 {
  font-size: 1.5rem;
  margin-top: 0;
}
@media (min-width: 900px) {
  h2 {
    font-size: 1.75rem;
  }
}

/* Card titles (like "Safety", "Savings", "Value") */
h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
@media (min-width: 900px) {
  h3 {
    font-size: 1.3rem;
  }
}

/* Small subtitles (rare use, like footers or disclaimers) */
h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.blog-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-intro h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.blog-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* image smaller, text wider */
  gap: 2rem;
  align-items: center;
}

.intro-photo img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  max-width: 100%;
  height: auto;
  display: block;
}

@media(max-width:900px){
  .intro-layout {
    grid-template-columns: 1fr; /* stack image on top for mobile */
    text-align: center;
  }
  .intro-photo {
    margin-bottom: 1.5rem;
  }
}

/* --- Services intro: text left, image right on desktop --- */
.intro-layout{
  display:grid;
  grid-template-columns: 1.2fr .9fr; /* text a bit wider than image */
  gap:1.5rem;
  align-items:center;
}
.intro-photo img{
  width:100%; height:auto;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
@media (max-width: 900px){
  .intro-layout{ grid-template-columns:1fr; }
  /* On mobile, stack; this keeps text above, image below for easier reading */
}

/* --- Guarantee highlight inside pricing grid --- */
.price-card.wide{ grid-column:1 / -1; } /* you already had this; keep it */

/* Override the default .price-card flex for the guarantee layout */
.price-card.guarantee{
  background:#f6f9ff;               /* subtle highlight */
  border-color:#dbe4ff;
  display:block;                     /* reset from flex so we can control inner layout */
}
.price-card.guarantee h2{
  margin:0 0 .35rem;
}
.price-card.guarantee .guarantee-inner{
  display:flex;
  gap:1rem;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.price-card.guarantee .copy{
  flex:1 1 520px;     /* grows, minimum width for readability */
}
.price-card.guarantee .points{
  margin:.35rem 0 0 1rem; /* nice indent for bullets */
}
.price-card.guarantee .actions{
  align-self:center;
  flex:0 0 auto;
}
@media (max-width: 800px){
  .price-card.guarantee .actions{ width:100%; margin-top:.5rem; text-align:left; }
}

/* Full-width band for alt sections */
.section-alt{
  background:#f9fafb;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

/* Force Areas We Serve back to a full-width band (no card) */
section.section-alt { 
  background:#f9fafb;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

/* Make sure nothing is turning the inner container into a card */
section.section-alt > .container {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding: 1.25rem 1rem; /* adjust if you want tighter/looser */
}

/* Intro: two-column grid, equal heights */
#pricing-intro .intro-layout{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;   /* keep your proportions */
  gap:2rem;
  align-items: stretch;                 /* <-- was 'start'; this makes both columns equal height */
}

/* Make the image fill its grid area height */
#pricing-intro .intro-photo{
  display:grid;                         /* creates a box the img can fill */
}
#pricing-intro .intro-photo img{
  width:100%;
  height:100% !important;               /* force fill the column height */
  object-fit:cover;                     /* crop instead of distort */
  border-radius:12px;
}

/* Mobile: stack and let the image size itself naturally */
@media (max-width: 900px){
  #pricing-intro .intro-layout{ grid-template-columns: 1fr; }
  #pricing-intro .intro-photo img{ height:auto !important; max-height:60vh; }
}

/* =============== CONTACT PAGE FIXES =============== */

/* 1) Make the cards use same grid as blog */
.section .post-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  padding: 0;
  list-style: none;
}

/* Match blog card look/feel */
.post-card > a {
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  text-decoration: none;
}
.post-card > a:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* Titles/excerpts inside cards */
.card-title { margin: 0 0 .35rem; font-size: 1.125rem; line-height: 1.35; }
.card-excerpt { margin: 0; color: var(--muted, rgba(0,0,0,.7)); }

/* 2) Form field sizing + spacing */
.contact-form .form-row {
  margin-bottom: .85rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  padding: .65rem .75rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-actions .btn {
  padding: .7rem 1rem;
  border-radius: 10px;
}

/* 3) Anchor targets stop underneath sticky header */
#fleet, #contact-form { scroll-margin-top: 96px; }

/* Small screens: keep the grid airy */
@media (max-width: 640px) {
  .post-card > a { padding: .85rem; }
}

/* ================== CONTACT FORM: UNIFORM WIDTHS ================== */
.contact-form {
  /* lock the whole form to one column width and center it */
  max-width: 720px;
  margin-inline: auto;
}

.contact-form * { box-sizing: border-box; }

.contact-form .form-row {
  display: block;            /* one field per row */
  margin: 0 0 .8rem;
}

/* Force the exact same width for all fields */
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100% !important;    /* override any inherited max-widths */
  max-width: none !important;
  padding: .65rem .75rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
  font: inherit;             /* consistent typography */
  line-height: 1.25;
}

/* Normalize controls across browsers */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"] {
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.5) 50%),
    linear-gradient(135deg, rgba(0,0,0,.5) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 12px) center;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2rem; /* room for arrow */
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Buttons / actions */
.contact-form .form-actions {
  margin-top: 1rem;
}
.contact-form .form-actions .btn {
  padding: .7rem 1rem;
  border-radius: 10px;
}

/* Optional: tighten vertical rhythm a touch */
.contact-form label { display: block; margin: 0 0 .35rem; }

/* Keep anchor targets from hiding under the sticky header */
#contact-form { scroll-margin-top: 96px; }

/* Contact form: center the button + dark navy style */
.contact-form .form-actions {
  text-align: center;      /* centers the button */
  margin-top: 1.2rem;
}

.contact-form .form-actions .btn {
  background-color: #0f2742;  /* Foggy Fixer dark navy */
  color: #fff;
  border: none;
  padding: .8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.contact-form .form-actions .btn:hover {
  background-color: #0c1f34; /* a shade darker on hover */
}

/* Contact form: fix textarea size */
.contact-form textarea {
  resize: none;          /* disables drag-resizing */
  min-height: 140px;     /* fixed height */
  max-height: 140px;     /* prevent growing */
  overflow-y: auto;      /* scroll if text exceeds */
}

/* CONTACT PAGE: make intro → cards spacing tight */
.contact-page .section {
  /* shrink the built-in vertical padding */
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  margin-top: 0 !important;      /* keep margins neutral */
  margin-bottom: 0 !important;
}

/* First two blocks even tighter: intro + card grid */
.contact-page .section:first-of-type { 
  padding-bottom: 0.25rem !important; 
}
.contact-page .section:first-of-type + .section {
  padding-top: 0.25rem !important;
}

/* Kill the big default UL margin inside the cards section */
.contact-page .section .post-list {
  margin: 0.5rem 0 0 0 !important;  /* small top margin only */
  padding: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center; /* centered text */
}

.comparison-table th {
  background-color: #0f2742; /* your dark blue */
  color: #fff;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.comparison-table tr:hover {
  background-color: #eef6ff;
}

/* Related-reading mini grid (reuses post-card styling) */
.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:1rem;
  list-style:none;
  margin:1rem 0 1.5rem;
  padding:0;
}

/* Slightly tighten cards inside narrow article columns */
.related-grid .post-card{
  padding:1rem 1.1rem;
}
.related-grid .card-title{
  font-size:1.05rem;      /* a touch smaller in-article */
  margin:0 0 .4rem;
}
.related-grid .card-excerpt{
  font-size:.95rem;
  margin:0;
}