/* Hampshire Mobile Mechanics - Navy / Orange scheme */
:root {
  --navy: #0D1B2A;
  --navy-light: #1B3A4B;
  --orange: #FF6B35;
  --orange-dark: #E55A2B;
  --white: #FFFFFF;
  --off-white: #F4F7FA;
  --gray: #6B7280;
  --dark: #1F2937;
  --silver: #E5E7EB;
  --black: #0D1B2A;
  --lime: #FF6B35;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --radius: 10px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: #061018;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 3px solid var(--orange);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: var(--silver);
  text-decoration: none;
  margin-left: 15px;
}

.header-top a:hover {
  color: var(--orange);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 70px;
  width: auto;
  background: transparent;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 9999;
}

.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 12px 18px;
  color: #0D1B2A !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.dropdown a:hover {
  background: #F4F7FA;
  color: #FF6B35 !important;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 100;
}

.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--orange);
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.cta-btn {
  background: var(--orange);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  background: #0D1B2A !important;
  color: #FFFFFF !important;
  padding: 60px 0;
  text-align: center;
  border-bottom: 4px solid #FF6B35;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FFFFFF !important;
  text-shadow: none;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  color: #E5E7EB !important;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 35px 0;
}

section:nth-child(even) {
  background: var(--off-white);
}

h2 {
  font-size: 2.3rem;
  color: var(--navy);
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.service-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 15px;
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 15px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--lime);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial .name {
  font-weight: 600;
  color: var(--black);
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.why-item {
  text-align: center;
}

.why-item h3 {
  color: var(--navy);
  margin: 15px 0;
}

/* Images */
.feature-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 420px;
  object-fit: cover;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* FAQ */
.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.faq-question {
  display: block;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.faq-question::after {
  content: "+";
  float: right;
  margin-left: 12px;
}

.faq-item.active .faq-question::after { content: "−"; }

.faq-answer {
  padding: 20px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 30px 0 15px;
  border-top: 4px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  margin-bottom: 15px;
  color: var(--orange);
}

.footer-grid a {
  color: #E5E7EB;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #E5E7EB;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li > a {
    display: block;
    padding: 8px 4px;
  }

  .nav-links .dropdown {
    display: block;
    position: static;
    min-width: 0;
    width: 100%;
    background: rgba(255,255,255,0.08);
    box-shadow: none;
    border-radius: 6px;
    margin: 4px 0 8px;
    padding: 4px 0;
  }

  .nav-links .dropdown a {
    color: var(--white) !important;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .nav-links .dropdown a:hover,
  .nav-links .dropdown a:focus {
    background: rgba(255,255,255,0.12);
    color: var(--orange) !important;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--orange);
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
}


/* Major and full service information cards */
.service-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}
.service-level-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.service-level-card h3, .service-callout h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.service-level-card h4 {
  color: var(--navy-light);
  margin: 20px 0 8px;
}
.service-level-card ul {
  margin: 10px 0 18px 20px;
  line-height: 1.8;
}
.service-level-card li { padding-left: 3px; margin-bottom: 4px; }
.service-note {
  color: var(--gray);
  font-size: .92rem;
  margin: 18px 0 22px;
}
.service-callout {
  margin-top: 28px;
  padding: 28px;
  text-align: center;
  background: var(--off-white);
  border-radius: var(--radius);
}
.service-callout p { max-width: 800px; margin: 0 auto 20px; }
.service-level-card .cta-btn { margin-top: 4px; }
@media (max-width: 768px) {
  .service-level-card { padding: 22px; }
}


/* Floating WhatsApp contact button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #20c767;
  color: #fff;
  box-shadow: 0 8px 24px rgba(32, 199, 103, .35);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover {
  background: #17b85a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(32, 199, 103, .42);
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--navy, #172b4d);
  outline-offset: 4px;
}
.whatsapp-float svg { width: 27px; height: 27px; display: block; }
.whatsapp-float-label {
  position: absolute;
  right: 68px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  color: #172b4d;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(5px);
  transition: opacity .18s ease, transform .18s ease;
}
.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label { opacity: 1; transform: translateX(0); }
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 18px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { transition: none; } }


/* Floating website assistant */
.chat-assistant-launcher{position:fixed;right:24px;bottom:92px;z-index:9998;border:0;border-radius:50%;width:58px;height:58px;background:#f47718;color:#fff;box-shadow:0 7px 22px rgba(244,119,24,.35);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.chat-assistant-launcher:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(244,119,24,.42)}
.chat-assistant-launcher:focus-visible,.chat-assistant-send:focus-visible,.chat-assistant-close:focus-visible{outline:3px solid #172b4d;outline-offset:3px}
.chat-assistant-launcher svg{width:28px;height:28px}
.chat-assistant-panel{position:fixed;right:20px;bottom:162px;width:min(360px,calc(100vw - 28px));height:min(510px,calc(100dvh - 190px));z-index:9999;background:#101019;color:#f8f8fb;border:1px solid rgba(255,255,255,.12);border-radius:15px;box-shadow:0 16px 50px rgba(0,0,0,.3);display:none;flex-direction:column;overflow:hidden;font-family:inherit}
.chat-assistant-panel.is-open{display:flex}
.chat-assistant-header{background:#f47718;color:#fff;display:flex;align-items:center;gap:10px;padding:13px 14px;flex-shrink:0}
.chat-assistant-avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chat-assistant-avatar svg{width:21px;height:21px}
.chat-assistant-heading{flex:1;min-width:0}.chat-assistant-heading strong{display:block;font-size:15px;line-height:1.3}.chat-assistant-heading small{display:block;font-size:11px;margin-top:2px;opacity:.95}
.chat-assistant-close{border:0;background:transparent;color:#fff;font-size:25px;line-height:1;cursor:pointer;padding:0 2px}
.chat-assistant-messages{padding:14px 12px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.chat-assistant-message{max-width:92%;padding:11px 12px;border-radius:11px;font-size:13px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.chat-assistant-message.bot{align-self:flex-start;background:#23232d;border:1px solid #34343e;border-bottom-left-radius:4px;color:#f3f3f6}
.chat-assistant-message.user{align-self:flex-end;background:#f47718;color:#fff;border-bottom-right-radius:4px}
.chat-assistant-message a{color:#ffb16d;text-decoration:underline;font-weight:600}.chat-assistant-message.user a{color:#fff}
.chat-assistant-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.chat-assistant-quick button{border:1px solid #f47718;color:#ffd0ad;background:transparent;border-radius:18px;padding:7px 10px;font-size:12px;cursor:pointer}
.chat-assistant-quick button:hover{background:rgba(244,119,24,.14)}
.chat-assistant-form{display:flex;gap:7px;padding:9px;background:#171720;border-top:1px solid #30303a;flex-shrink:0}
.chat-assistant-input{min-width:0;flex:1;border:1px solid #3b3b46;border-radius:8px;background:#292933;color:#fff;padding:11px 12px;font:inherit;font-size:13px;outline:none}
.chat-assistant-input::placeholder{color:#aaaab5}.chat-assistant-input:focus{border-color:#f47718}
.chat-assistant-send{width:42px;min-width:42px;border:0;border-radius:8px;background:#f47718;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}.chat-assistant-send svg{width:19px;height:19px}
.chat-assistant-note{font-size:10px;color:#a8a8b2;padding:0 12px 8px;background:#171720}
@media(max-width:600px){.chat-assistant-launcher{right:18px;bottom:86px;width:54px;height:54px}.chat-assistant-panel{right:10px;bottom:150px;width:calc(100vw - 20px);height:min(500px,calc(100dvh - 170px))}}
@media(prefers-reduced-motion:reduce){.chat-assistant-launcher,.chat-assistant-messages{transition:none;scroll-behavior:auto}}

/* Modern automotive layout refinements */
:root { scroll-behavior:smooth; }
body { line-height:1.7; }
header { position:relative; z-index:50; }
header nav { min-height:82px; }
.logo img { max-height:64px; width:auto; }
.nav-links a { transition:color .2s ease,background .2s ease; }
.nav-links a:hover,.nav-links a:focus-visible { color:var(--orange); }
.dropdown { box-shadow:0 16px 36px rgba(10,12,24,.22); border:1px solid rgba(255,255,255,.08); }
.hero { position:relative; overflow:hidden; padding:clamp(72px,9vw,126px) 0; }
.hero:before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 85% 20%,rgba(255,112,24,.18),transparent 42%),linear-gradient(90deg,rgba(15,16,29,.12),transparent); }
.hero .container { position:relative; z-index:1; max-width:1180px; }
.hero h1 { max-width:820px; font-size:clamp(2.4rem,5vw,4.2rem); line-height:1.08; letter-spacing:-.035em; }
.hero p { max-width:760px; font-size:1.08rem; line-height:1.8; }
.hero-buttons { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.cta-btn,.btn-secondary { min-height:46px; display:inline-flex; align-items:center; justify-content:center; padding:12px 20px; border-radius:6px; font-weight:700; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }
.cta-btn:hover,.btn-secondary:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.16); }
section { padding:clamp(48px,6vw,78px) 0; }
section h2 { font-size:clamp(1.8rem,3vw,2.65rem); line-height:1.18; letter-spacing:-.025em; margin-bottom:14px; }
.section-subtitle { max-width:780px; margin:0 auto 32px; }
.services-grid { gap:22px; }
.service-card,.why-item { border-radius:12px; transition:transform .2s ease,box-shadow .2s ease; }
.service-card { padding:28px; border:1px solid rgba(25,26,45,.08); box-shadow:0 8px 24px rgba(18,20,36,.055); }
.service-card:hover,.why-item:hover { transform:translateY(-4px); box-shadow:0 16px 32px rgba(18,20,36,.10); }
.service-card h3 { margin-top:12px; }
.feature-img { border-radius:14px; }
.trust-strip { padding:0 0 22px; background:transparent; }
.trust-strip-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.trust-strip-grid>div { background:var(--off-white); border:1px solid rgba(25,26,45,.07); border-radius:9px; padding:17px 18px; display:flex; flex-direction:column; }
.trust-strip-grid strong { color:var(--dark); font-size:.98rem; }
.trust-strip-grid span { color:var(--text-muted); font-size:.86rem; }
.faq-item { border-radius:8px; overflow:hidden; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(255,112,24,.55); outline-offset:3px; }
@media(max-width:760px){.trust-strip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:64px 0}.hero-buttons a{flex:1 1 100%}}
@media(max-width:420px){.trust-strip-grid{grid-template-columns:1fr}}


/* Layout refinement: retain the original navy/orange identity with a more varied, balanced hierarchy */
header .container { width: 100%; }
header nav { gap: 24px; padding: 10px 0; min-height: 88px; }
.header-top { padding: 7px 0; }
.logo img { height: 58px; max-width: 210px; object-fit: contain; }
.nav-links { gap: 20px; }
.nav-links > li > a { display: inline-block; padding: 12px 0; }
header .cta-btn { white-space: nowrap; padding: 11px 18px; }

/* Inner-page banners: compact and left aligned rather than oversized centred blocks */
.hero { padding: 54px 0 58px; text-align: left; }
.hero .container { max-width: 1200px; }
.hero h1 { font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: 1.12; max-width: 850px; margin: 0 0 16px; }
.hero p { font-size: 1.08rem; line-height: 1.75; max-width: 780px; margin: 0 0 24px; }
.hero-buttons { justify-content: flex-start; }
.hero .cta-btn, .hero .btn-secondary { min-height: 46px; }

/* Home page gets a more distinctive split-content feel without copying the reference site */
body:has(.trust-strip) .hero { padding: clamp(52px, 7vw, 86px) 0; background: linear-gradient(115deg, #0D1B2A 0%, #13283A 66%, #1B3A4B 100%) !important; }
body:has(.trust-strip) .hero .container { max-width: 1200px; }
body:has(.trust-strip) .hero h1 { max-width: 760px; font-size: clamp(2.35rem, 4.7vw, 3.75rem); }
body:has(.trust-strip) .hero p { max-width: 740px; }
.trust-strip { padding: 0 0 24px !important; }
.trust-strip-grid { margin-top: -2px; }
.trust-strip-grid > div { border-left: 3px solid var(--orange); background: #F4F7FA; }
section { padding: clamp(38px, 5vw, 62px) 0; }
section h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.2; }
.service-card { padding: 24px; border-top: 3px solid var(--orange); }
.service-card p { line-height: 1.7; }
.dropdown { top: calc(100% - 2px); }
.nav-links li:hover .dropdown, .nav-links li:focus-within .dropdown { display: block; }
@media (max-width: 900px) {
  header nav { flex-wrap: wrap; }
  .nav-links { gap: 13px; }
  .logo img { height: 52px; }
}
@media (max-width: 760px) {
  .header-top .container { flex-direction: column; gap: 5px; text-align: center; }
  .header-top a { margin: 0 6px; }
  header nav { justify-content: space-between; gap: 12px; }
  .nav-links { gap: 8px 14px; }
  .hero { padding: 42px 0 46px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .hero p { font-size: 1rem; }
  .hero-buttons { align-items: stretch; }
  .hero-buttons a { flex: 1 1 100%; text-align: center; }
}
