
/* =====================================================
   BASE / GLOBAL – base.css
===================================================== */

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --bg-page:#3a3834;
  --bg-header:#2f2d2a;
  --bg-section:#4a4742;
  --bg-section-dark:#262421;
  --bg-card:#514e48;
  --bg-border-dark:#3a372f;

  --brand-primary:#2f8f94;
  --brand-cta:#3aa6ad;
  --brand-whatsapp:#25D366;
  --brand-google-star:#f4c430;

  --text-primary:#f3f2ef;
  --text-muted:#c6c2bb;
  --text-inverse:#ffffff;

  --border-soft:rgba(255,255,255,.06);
  --border-strong:rgba(0,0,0,.35);
  --border-divider: var(--bg-border-dark);

  --shadow-soft:0 6px 14px rgba(0,0,0,.25);
  --shadow-medium:0 10px 30px rgba(167,167,167,.45);
  --shadow-strong:0 20px 45px rgba(0,0,0,.6);
  --shadow-embed: 0 15px 35px rgba(0,0,0,.45);

  --overlay-hero:rgba(0,0,0,.6);
  --overlay-cta:rgba(47,45,42,.85);
  --overlay-image-fade: rgba(0,0,0,.45);

  --shadow-cta: 0 6px 14px rgba(58,166,173,.35);
  --shadow-cta-hover: 0 10px 22px rgba(58,166,173,.45);
  --shadow-whatsapp: 0 6px 14px rgba(37,211,102,.35);
  --shadow-whatsapp-hover: 0 10px 22px rgba(37,211,102,.45);

  --accent: var(--brand-primary);
  --bg-secondary: var(--bg-section);
  --bg-dark: var(--bg-page);
  --text-light: var(--text-primary);
}

/* =====================================================
   RESET / BASE
===================================================== */
* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
}

img,
iframe,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:visited,
a:hover,
a:active,
a:focus {
  color: var(--brand-primary);
  text-decoration: none;
}

/* =====================================================
   HEADER / NAVIGATION
===================================================== */
header {
  position: sticky;
  top: 0;
  background: var(--bg-header);
  border-bottom: 2px solid var(--brand-cta);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: 220px;
  image-rendering: -webkit-optimize-contrast;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-primary);
  position: relative;
  white-space: nowrap;
}

/* Hover underline (non-CTA) */
.main-nav a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width .25s ease;
}

.main-nav a:not(.cta):hover::after {
  width: 100%;
}

/* Active page underline glow */
.main-nav a.active {
  color: var(--text-primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  box-shadow:
    0 0 6px rgba(47,143,148,.8),
    0 0 12px rgba(47,143,148,.4);
  border-radius: 2px;
}

/* CTA active in nav */
.main-nav .cta.active {
  background: var(--brand-primary);
  box-shadow: var(--shadow-cta);
}

/* =====================================================
   NAV – INFO DROPDOWN
===================================================== */
.nav-dropdown {
  position: relative;
}

.nav-trigger {
  background: none;
  border: none;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
  padding: 0;
  position: relative;
}

/* Active underline for trigger */
.nav-trigger.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  box-shadow:
    0 0 6px rgba(47,143,148,.8),
    0 0 12px rgba(47,143,148,.4);
}

/* Dropdown panel */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

/* Show on hover / focus */
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: block;
}

/* Menu links */
.nav-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--brand-primary);
  white-space: nowrap;
}

.nav-menu a:hover {
  background: rgba(47,143,148,.08);
}

/* =====================================================
   BUTTON SYSTEM
===================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-inverse);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cta,
.cta:visited,
.cta:hover,
.cta:focus {
  color: #ffffff;
}

/* Primary */
.cta-primary,
.main-nav .cta {
  background: var(--brand-cta);
  box-shadow: var(--shadow-cta);
}

.cta-primary:hover,
.main-nav .cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

/* WhatsApp */
.cta-whatsapp,
.cta.whatsapp {
  background: var(--brand-whatsapp);
  box-shadow: var(--shadow-whatsapp);
}

.cta-whatsapp:hover,
.cta.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-whatsapp-hover);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.cta:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Centered CTA row helper */
.featured-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

@media (max-width: 600px) {
  .cta {
    padding: 14px 24px;
    width: min(100%, 320px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: normal;
  }
}

/* =====================================================
   PAGE HEADING (GENERIC)
===================================================== */
.page-heading {
  background: var(--bg-page);
  padding: 80px 30px 40px;
  text-align: center;
}

.page-heading-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-heading h1 {
  margin-bottom: 14px;
}

.page-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =====================================================
   SECTIONS
===================================================== */
section {
  padding: 60px 30px;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header p {
  color: var(--text-muted);
}

/* =====================================================
   FINAL CTA (Shared)
===================================================== */
.final-cta {
  background:
    linear-gradient(var(--overlay-cta), var(--overlay-cta)),
    url("../images/cta-bg.webp") center / cover no-repeat;
  padding: 120px 30px;
  text-align: center;
}

.final-cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--bg-header);
  color: var(--text-muted);
  border-top: 2px solid var(--brand-cta);
  padding: 80px 30px 30px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
  justify-items: center;
}

.site-footer h3,
.site-footer h4 {
  color: var(--text-primary);
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  display: inline-block;
}

.footer-links a:hover,
.site-footer a:hover,
.site-footer a:focus {
  color: var(--brand-primary);
}

/* Footer brand + rating */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  opacity: 0.95;
}

.footer-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.footer-stars {
  color: var(--brand-google-star);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.footer-rating-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Socials */
.footer-socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color .2s ease, transform .2s ease;
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-socials a:hover {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* Footer bottom */
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border-divider);
  text-align: center;
  font-size: 0.85rem;
}

/* Footer column width cap */
.footer-col {
  max-width: 320px;
}

/* Footer mobile polish */
@media (max-width: 600px) {
  header {
    padding: 10px 18px;
  }

  .logo img {
    max-width: 180px;
  }

  section {
    padding: 48px 20px;
  }

  .page-heading {
    padding: 62px 20px 34px;
  }

  .page-heading h1,
  .page-hero h1 {
    overflow-wrap: anywhere;
  }

  .final-cta {
    padding: 82px 20px;
  }

  .footer-socials { gap: 14px; }
  .footer-brand-row {
    flex-direction: column;
    gap: 8px;
  }
  .footer-rating { align-items: center; }
  .footer-logo { height: 32px; }
}

/* =====================================================
   FLOATING WHATSAPP
===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  background: var(--brand-whatsapp);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}
.email-float svg {
  width: 28px;
  height: 28px;
}
.email-float {
  position: fixed;
  bottom: 100px; /* sits above WhatsApp */
  right: 20px;
  z-index: 1000;

  width: 56px;
  height: 56px;
  background: #1a73e8;
  color: #ffff;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
  .whatsapp-float,
  .email-float {
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float {
    bottom: 14px;
  }

  .email-float {
    bottom: 82px;
  }

  .whatsapp-float svg,
  .email-float svg {
    width: 24px;
    height: 24px;
  }
}
/* =====================================================
   ANIMATIONS
===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   MOBILE NAV (HAMBURGER)
===================================================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Mobile layout */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-header);
    width: 100%;
    max-width: none;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-strong);
    display: none;
  }

  .main-nav.open { display: flex; }

  /* Disable hover dropdown on mobile */
  .nav-dropdown:hover .nav-menu { display: none; }

  .nav-dropdown .nav-menu {
    position: static;
    margin-top: 10px;
    box-shadow: none;
    border: none;
    padding-left: 10px;
  }
}

/* Hamburger animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Info dropdown fix (JS toggled) */
@media (max-width: 768px) {
  .nav-dropdown .nav-menu { display: none; }
  .nav-dropdown.open .nav-menu { display: block; }
  .nav-trigger {
    width: 100%;
    text-align: left;
  }
}

/* =====================================================
   SEO BLURB (Shared)
===================================================== */
.seo-blurb {
  background: var(--bg-dark);
  padding: 60px 30px;
}

.seo-inner {
  max-width: 900px;
  margin: 0 auto;
}

.seo-blurb p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-blurb strong {
  color: var(--text-light);
  font-weight: 600;
}

/* =====================================================
   ACCORDION (GLOBAL)
   Used by: vehicles, faqs (and any future pages)
===================================================== */

/* Toggle button */
.accordion-toggle {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  gap: 14px;
}

.accordion-toggle span:first-child {
  min-width: 0;
}

.accordion-toggle:hover {
  color: var(--brand-primary);
}

/* Icon */
.accordion-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .25s ease;
}

/* Active state (JS toggles .active) */
.accordion-toggle.active .accordion-icon {
  transform: rotate(45deg);
}

/* Content panel */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 20px;
}

/* Open state (JS toggles .open) */
.accordion-content.open {
  padding: 14px 20px 22px;
}

/* Default text inside accordions */
.accordion-content p,
.accordion-content li {
  color: var(--text-muted);
  line-height: 1.7;
}
