/* ==========================================================================
   A One Insurance Services – main stylesheet
   Sections:
     1. Design tokens (colours, sizes) + dark theme
     2. Base / reset
     3. Layout helpers
     4. Buttons
     5. Header & navigation
     6. Mobile menu
     7. Hero
     8. Services
     9. Partner logos (marquee)
    10. Why choose us
    11. Claims & renewal panels
    12. Contact (info, form, map)
    13. Footer & floating WhatsApp
    14. Scroll-reveal + motion preferences
    15. Responsive tweaks
    16. Phone fixes (tap sizes, small-screen navbar, open menu)
   ========================================================================== */


/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:          #F7F8F4;
  --bg-alt:      #EEF1EA;
  --surface:     #FFFFFF;
  --dark-section:#14213D;

  /* Text */
  --text:        #14213D;
  --text-soft:   #4A5568;
  --muted:       #5B6679;

  /* Lines */
  --border:      #DDE2DA;

  /* Brand */
  --green:       #5E9E2E;
  --green-light: #8DC63F;
  --blue:        #1F7BA8;
  --whatsapp:    #25A244;

  /* Buttons: primary flips between themes */
  --btn-bg:      #14213D;
  --btn-text:    #FFFFFF;

  /* Soft tints used on the claim / renewal panels */
  --tint-green:  #E4EFD8;
  --tint-blue:   #E1ECF3;

  /* Header glass */
  --glass:       rgba(255, 255, 255, .78);
  --glass-line:  rgba(20, 33, 61, .08);
  --shadow-nav:  0 12px 40px rgba(20, 33, 61, .12);
  --shadow-card: 0 22px 44px rgba(20, 33, 61, .14);

  /* Type */
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-head:   'DM Serif Display', Georgia, serif;

  --radius:      28px;
  --header-h:    96px;
}

[data-theme="dark"] {
  --bg:          #0B1220;
  --bg-alt:      #111A2C;
  --surface:     #162036;
  --dark-section:#0A0F1C;

  --text:        #E8EDF7;
  --text-soft:   #A9B4C9;
  --muted:       #9AA6BC;
  --border:      #26324A;

  --btn-bg:      #8DC63F;
  --btn-text:    #0B1220;

  --tint-green:  #1B2E22;
  --tint-blue:   #14283A;

  --glass:       rgba(22, 32, 54, .72);
  --glass-line:  rgba(255, 255, 255, .09);
  --shadow-nav:  0 12px 40px rgba(0, 0, 0, .45);
  --shadow-card: 0 22px 44px rgba(0, 0, 0, .45);
}


/* 2. BASE ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background .3s, color .3s;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }

/* Every icon uses the sprite in index.html */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }


/* 3. LAYOUT HELPERS ------------------------------------------------------ */
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.section       { padding: 104px 0; }
.section--alt  { background: var(--bg-alt); }
.section--tight{ padding-top: 0; }

.section__head { text-align: center; margin-bottom: 48px; }
.section__head--left { text-align: left; }
.section__head h2 { margin-top: 14px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}


/* 4. BUTTONS ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 .95rem var(--font-body);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 33, 61, .2); filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn .icon  { transition: transform .3s; }
.btn:hover .icon { transform: rotate(-10deg) scale(1.12); }

.btn--primary  { background: var(--btn-bg); color: var(--btn-text); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--ghost    { border-color: var(--text); color: var(--text); }


/* 5. HEADER & NAVIGATION ------------------------------------------------- */
/* The header floats above the hero (negative margin) as a glass pill. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  margin-bottom: calc(var(--header-h) * -1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 10px 0 24px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-nav);
  transition: height .3s, box-shadow .3s;
}
.site-header.is-scrolled .nav { height: 62px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.1rem; font-weight: 800; }
.brand__text small  { font-size: .65rem; letter-spacing: .08em; color: var(--muted); }
.brand--small strong { font-size: 1rem; }

.nav__links {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20, 33, 61, .05);
}
[data-theme="dark"] .nav__links { background: rgba(255, 255, 255, .05); }

.nav__links a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background .25s, color .25s, box-shadow .25s;
}
.nav__links a:hover { background: rgba(94, 158, 46, .14); color: var(--green); }
/* .is-active is set by the scroll-spy in js/main.js */
.nav__links a.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(20, 33, 61, .1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid transparent;
  cursor: pointer;
  flex: none;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.nav__phone:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 20px rgba(20, 33, 61, .2);
  filter: brightness(1.08);
}
.nav__phone:active {
  transform: scale(.95);
}
.nav__phone .icon {
  width: 19px;
  height: 19px;
  transition: transform .3s;
}
.nav__phone:hover .icon {
  transform: rotate(-10deg) scale(1.1);
}

/* Theme toggle: a pill with a sliding thumb */
.theme-toggle {
  position: relative;
  width: 72px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(20, 33, 61, .2);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.theme-toggle__thumb .icon { grid-area: 1 / 1; width: 16px; height: 16px; }
.theme-toggle .icon--moon { opacity: 0; }
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(32px); }
[data-theme="dark"] .theme-toggle .icon--sun  { opacity: 0; }
[data-theme="dark"] .theme-toggle .icon--moon { opacity: 1; }

.menu-toggle {
  display: none;               /* shown on phones, see section 16 */
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 33, 61, .06);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; margin: auto; }


/* 6. MOBILE MENU --------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 48;                    /* above the page and the floating WhatsApp button, below the header */
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 12px) 24px 28px;
  overflow-y: auto;
  background: var(--surface);
  animation: slide-down .35s ease;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__links a {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font: 1.9rem var(--font-head);
}
.mobile-menu__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mobile-menu__actions p { text-align: center; font-size: .75rem; color: var(--muted); }


/* 7. HERO ---------------------------------------------------------------- */
.hero {
  padding: 150px 0 96px;
  text-align: center;
  /* Two soft colour glows that drift slowly, fading into the next section */
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(141, 198, 63, .2), transparent 70%),
    radial-gradient(800px 480px at 88% 25%, rgba(31, 123, 168, .17), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  animation: drift 18s ease-in-out infinite;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(141, 198, 63, .14), transparent 70%),
    radial-gradient(800px 480px at 88% 25%, rgba(31, 123, 168, .26), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
}

.hero h1       { margin: 20px 0 0; }
.accent        { color: var(--green); }
.hero__lead    { max-width: 560px; margin: 24px auto 0; font-size: 1.15rem; color: var(--text-soft); }
.hero__cta     { margin-top: 36px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero__types {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 52px;
}
.hero__types li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__types a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: transform .25s, color .25s;
}
.hero__types .icon { width: 30px; height: 30px; color: var(--blue); transition: transform .3s, color .3s; }
.hero__types a:hover       { transform: translateY(-4px); color: var(--green); }
.hero__types a:hover .icon { transform: scale(1.15) rotate(-5deg); color: var(--green); }

/* Hero stats strip */
.hero__stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding: 16px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20, 33, 61, .06);
}
[data-theme="dark"] .hero__stats {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-item strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.stat-item span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}


/* 8. SERVICES ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.split__intro h2 { margin: 16px 0 20px; }
.split__intro p:last-child { color: var(--text-soft); font-size: 1.05rem; }

.service-list { border-bottom: 1px solid var(--border); }
.service {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 12px;
  border-top: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: padding-left .3s, background-color .3s;
}
.service:hover {
  padding-left: 20px;
  background: rgba(94, 158, 46, .05);
}
.service:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
  transition: transform .3s, border-color .3s;
}
.service__icon .icon { width: 28px; height: 28px; }
.service:hover .service__icon { transform: scale(1.08); border-color: var(--green); }

.service__body { flex: 1; }
.service__body h3 { font-size: 1.5rem; }
.service__body p  { margin-top: 4px; font-size: .95rem; color: var(--muted); }

.service__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  transition: all .25s;
}
.service__arrow   { transition: transform .3s; width: 16px; height: 16px; }
.service:hover .service__action {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
.service:hover .service__arrow { transform: translateX(4px); }


/* 9. PARTNER LOGOS (marquee) -------------------------------------------- */
.marquee {
  overflow: hidden;
  margin-top: 16px;
  /* Fade the left and right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-right: 16px;                 /* equals the gap, keeps the loop seamless */
  animation: scroll-x 40s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track    { animation-play-state: paused; }

/* Logo tiles stay clean in both themes */
.logo-tile {
  display: grid;
  place-items: center;
  width: 220px;
  height: 104px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: transform .3s, box-shadow .3s, background-color .3s;
}
.logo-tile img { max-width: 86%; max-height: 76px; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 28px rgba(20, 33, 61, .14); }
[data-theme="dark"] .logo-tile {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .logo-tile:hover {
  background: #ffffff;
}


/* 10. WHY CHOOSE US ------------------------------------------------------ */
.section--dark { background: var(--dark-section); color: #fff; }
.section--dark .eyebrow { color: var(--green-light); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.why__num { font: 2.75rem var(--font-head); color: var(--green-light); }
.why-grid h3 { margin: 14px 0 8px; font: 700 1.2rem var(--font-body); }
.why-grid p  { color: #B5BFD3; }


/* 11. CLAIMS & RENEWAL PANELS ------------------------------------------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel  { padding: 44px; border-radius: var(--radius); transition: transform .35s, box-shadow .35s; }
.panel:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.panel--green { background: var(--tint-green); }
.panel--blue  { background: var(--tint-blue); }
.panel > p    { margin: 12px 0 24px; color: var(--text-soft); }

.panel__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.steps { counter-reset: step; margin-bottom: 28px; }
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 33, 61, .12);
  font-weight: 600;
}
[data-theme="dark"] .steps li { border-color: rgba(255, 255, 255, .12); }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 32px;
  font: 1.4rem var(--font-head);
  color: var(--green);
}


/* 12. CONTACT ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__info h2 { margin: 14px 0 32px; }

.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.info-list .icon { margin-top: 3px; color: var(--blue); }
.info-list span  { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.info-list a     { border-bottom: 1px dashed var(--green); }
.info-list li div { font-size: 1.05rem; font-weight: 600; }

/* Callback form */
.callback {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .4s ease, border-color .4s ease;
}
.callback.is-highlighted {
  animation: form-pulse 1.2s ease-out;
}
@keyframes form-pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 158, 46, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(94, 158, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 158, 46, 0); }
}

.callback h3 { font-size: 2rem; }
.callback > p:first-of-type { margin: 8px 0 12px; color: var(--muted); }

.field { margin-top: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }

.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  font: 500 1rem var(--font-body);
  color: var(--text);
  transition: border-color .25s;
}
.field select { cursor: pointer; }
.field input:hover, .field select:hover,
.field input:focus, .field select:focus { border-color: var(--green); outline: none; }

/* Phone input with country code */
.phone-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  transition: border-color .25s;
}
.phone-prefix {
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted);
  padding-right: 8px;
  user-select: none;
}
.phone-input-wrap input {
  border: 0 !important;
  flex: 1;
  padding: 0;
}
.phone-input-wrap:focus-within {
  border-color: var(--green);
}
.field.has-error .phone-input-wrap {
  border-color: #D93025;
}

.field.has-error input,
.field.has-error select { border-color: #D93025; }
.field__error { display: block; min-height: 1.2em; font-size: .8rem; color: #D93025; margin-top: 4px; }

.callback .btn { margin-top: 20px; width: 100%; }
.callback__consent { margin-top: 14px; font-size: .75rem; line-height: 1.6; color: var(--muted); text-align: center; }
.callback__consent a { text-decoration: underline; }

.callback__success {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: var(--tint-green);
  border: 1px solid rgba(94, 158, 46, .3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slide-down .35s ease;
}
.callback__success .icon {
  width: 22px;
  height: 22px;
  color: var(--green);
  stroke-width: 2.5;
  margin-top: 2px;
}
.callback__success strong { display: block; color: var(--text); font-size: 1rem; }
.callback__success p { margin-top: 2px; font-size: .85rem; color: var(--text-soft); }
.callback__success[hidden] { display: none; }

/* Map spans both columns under the info + form */
.map {
  position: relative;
  grid-column: 1 / -1;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map__directions { position: absolute; left: 24px; bottom: 24px; box-shadow: 0 10px 30px rgba(20, 33, 61, .25); }


/* 13. FOOTER & FLOATING WHATSAPP ---------------------------------------- */
.site-footer { padding: 36px 0; background: #0E1830; color: #B5BFD3; font-size: .9rem; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer a:hover { color: #fff; }

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 30px rgba(20, 33, 61, .3);
  animation: pulse 2.4s infinite;
  transition: transform .25s;
}
.whatsapp-float .icon { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.1); }


/* 14. SCROLL REVEAL + MOTION -------------------------------------------- */
/* Only hide elements when JS is running, so the page still works without it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes drift    { 0%, 100% { background-position: 0% 0%, 100% 0%, 0 0; } 50% { background-position: 8% 10%, 92% 12%, 0 0; } }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-12px); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 162, 68, .5); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 162, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 162, 68, 0); }
}

/* Respect people who ask their device for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}


/* 15. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  .section { padding: 64px 0; }
  .site-header { padding: 10px 12px; }
  .container { width: min(1200px, 100% - 40px); }

  .nav { height: 56px; padding: 0 8px 0 14px; }
  .brand__text small { display: none; }
  .nav__phone { width: 36px; height: 36px; }
  .nav__phone .icon { width: 16px; height: 16px; }
  .theme-toggle { width: 64px; height: 36px; }
  .theme-toggle__thumb { width: 28px; height: 28px; }
  [data-theme="dark"] .theme-toggle__thumb { transform: translateX(28px); }

  .hero { padding: 124px 0 40px; }
  .hero__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 12px; margin-top: 36px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .hero__stats {
    display: flex;
    flex-wrap: wrap;
    border-radius: 20px;
    gap: 16px 24px;
    padding: 16px 20px;
    margin-top: 36px;
  }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 40%; }

  .service { gap: 14px; padding: 18px 8px; }
  .service__icon { width: 48px; height: 48px; }
  .service__icon .icon { width: 22px; height: 22px; }
  .service__body h3 { font-size: 1.25rem; }
  .service__body p  { font-size: .8rem; }
  .service__action-text { display: none; }
  .service__action { padding: 8px; border-radius: 50%; }
  .service__arrow { display: block; }

  .logo-tile { width: 160px; height: 76px; }
  .logo-tile img { max-height: 50px; }

  .why-grid, .panels { grid-template-columns: 1fr; gap: 24px; }
  .panel { padding: 28px; }
  .callback { padding: 24px 20px; }
  .map { height: 340px; }
  .map__directions { left: 12px; right: 12px; bottom: 12px; }
  .site-footer__inner { justify-content: center; text-align: center; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}


/* 16. PHONE FIXES --------------------------------------------------------
   Tap targets of at least 44px, a navbar that fits 320px phones, and a
   menu that sits cleanly on top of the page. */
.site-footer a { display: inline-block; padding: 6px 2px; }
.info-list a   { display: inline-block; padding: 4px 0; }

/* While the mobile menu is open: solid header, no floating WhatsApp, no page scroll */
body.menu-open .nav { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .whatsapp-float { display: none; }

@media (max-width: 768px) {
  .brand__text strong { white-space: nowrap; font-size: .98rem; }
  .brand img { width: 28px; height: auto; }

  .nav__actions { gap: 8px; }
  .nav__phone,
  .menu-toggle { width: 44px; height: 44px; }
  .theme-toggle { width: 80px; height: 44px; }
  .theme-toggle__thumb { width: 36px; height: 36px; }
  [data-theme="dark"] .theme-toggle__thumb { transform: translateX(36px); }

  .site-footer { padding-bottom: 92px; }          /* keeps footer text clear of the WhatsApp button */
  .panel .btn { white-space: nowrap; font-size: .88rem; padding-inline: 16px; }
}

@media (max-width: 400px) {
  .nav { padding: 0 6px 0 12px; }
  .nav__phone { display: none; }                   /* the Call button is inside the menu instead */

  /* Theme switch becomes a single round icon button */
  .theme-toggle { width: 44px; padding: 0; }
  .theme-toggle__thumb { position: static; width: 100%; height: 100%; background: transparent; box-shadow: none; transform: none !important; }
}

@media (max-width: 360px) {
  .nav { gap: 8px; padding: 0 6px 0 10px; }
  .nav__actions { gap: 6px; }
  .theme-toggle,
  .menu-toggle { width: 40px; height: 40px; }
  .brand { gap: 6px; }
  .brand__text strong { font-size: .82rem; }
  .brand img { width: 22px; }
  .panel .btn { white-space: normal; text-align: center; }
}
