/* ==========================================================================
   Quality Pest Control – main stylesheet (no framework, mobile-first)
   Colours from the old theme options: primary #99080d, secondary #3a3a3c
   ========================================================================== */

:root {
  --primary: #99080d;
  --primary-dark: #74060a;
  --primary-light: #fbeaea;
  --secondary: #3a3a3c;
  --accent: #f2d701;
  --dark: #0d1411;
  --dark-2: #1b1f1d;
  --text: #4a5258;
  --heading: #1c1c1e;
  --muted: #6b747b;
  --border: #e6e8ea;
  --bg-alt: #f5f6f7;
  --white: #fff;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(20, 24, 28, .08);
  --shadow-lg: 0 18px 48px rgba(20, 24, 28, .16);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: 16px;
  --sec: 64px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --sec: 88px; } }
@media (min-width: 1200px) { :root { --sec: 100px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.text-center { text-align: center; }
.text-center .section-title, .text-center .lead { margin-left: auto; margin-right: auto; }
.text-accent { color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark-2); color: rgba(255,255,255,.82); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark .section-title { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }
.section-dark .sub-title { color: #ff6b70; }
.section-dark .sub-title::before { background: #ff6b70; }
.section + .section:not(.section-alt):not(.section-dark) { padding-top: calc(var(--sec) * .5); }
.section-alt + .section-alt { padding-top: 0; }

.grid-2, .grid-3, .grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* ---------- Headings ---------- */
.sub-title {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
}
.sub-title::before { content: ""; width: 28px; height: 2px; background: var(--primary); border-radius: 2px; }
.text-center .sub-title::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(1.75rem, 3.8vw, 2.6rem); max-width: 820px; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.section-dark .lead { color: rgba(255,255,255,.75); }
.section-head { margin-bottom: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 2px solid transparent; border-radius: var(--pill);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg.i { width: 1.1em; height: 1.1em; transition: transform .25s; }
.btn:hover svg.i-arrow-right { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(153, 8, 13, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 26px rgba(153, 8, 13, .35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.section-dark .btn-outline, .hero-slider .btn-outline, .cta-band .btn-outline, .page-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.8); }
.section-dark .btn-outline:hover, .hero-slider .btn-outline:hover, .cta-band .btn-outline:hover, .page-hero .btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent); color: var(--heading); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-group, .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Site loader ---------- */
.site-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #fff;
  animation: loader-out .35s ease 1.6s forwards; pointer-events: none;
}
.site-loader img { width: 64px; height: 64px; animation: loader-pulse 1s ease-in-out infinite; }
body.is-loaded .site-loader { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; animation: none; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes loader-pulse { 50% { transform: scale(.85); opacity: .6; } }

/* ---------- Top bar ---------- */
.topbar { display: none; background: var(--secondary); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 58px; }
.topbar-logo img { height: 66px; width: auto; }
.topbar-info { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.topbar-info a { display: flex; align-items: center; gap: 12px; color: #fff; }
.topbar-info a:hover { color: var(--accent); }
.ti-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; flex: none; }
.ti-text { display: flex; flex-direction: column; line-height: 1.35; }
.ti-text small { font-size: .85rem; font-weight: 500; opacity: .8; }
.ti-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 992px) { .topbar { display: block; } }
@media (min-width: 992px) and (max-width: 1199px) { .topbar-info li:last-child { display: none; } }

/* ---------- Header / navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--border);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.nav-logo img { height: 40px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-call { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-light); color: var(--primary); }
.nav-call:hover { background: var(--primary); color: #fff; }
.nav-cta { display: none; padding: 12px 22px; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--secondary); color: #fff; }
.nav-toggle svg.i { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
body.nav-open .nav-toggle-open { display: none; }
body.nav-open .nav-toggle-close { display: block; }
@media (min-width: 576px) { .nav-cta { display: inline-flex; } }

/* Mobile menu panel */
.main-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: 8px var(--gutter) 32px;
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
body.nav-open { overflow: hidden; }
body.nav-open .main-nav { transform: none; visibility: visible; }
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; }
.nav-link { flex: 1; display: flex; align-items: center; gap: 6px; padding: 15px 0; color: var(--heading); font-weight: 600; font-size: 1.05rem; }
.nav-item.active > .nav-link, .nav-link:hover { color: var(--primary); }
.dd-caret { display: none; }
.dropdown-toggle { width: 44px; height: 44px; border: 0; background: var(--bg-alt); border-radius: 10px; display: grid; place-items: center; color: var(--heading); transition: transform .25s; }
.nav-item.dd-open .dropdown-toggle { transform: rotate(180deg); background: var(--primary-light); color: var(--primary); }
.dropdown { list-style: none; margin: 0; padding: 0 0 10px 12px; width: 100%; display: none; }
.nav-item.dd-open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; color: var(--text); border-left: 2px solid var(--border); font-weight: 500; }
.dropdown a:hover, .dropdown a[aria-current="page"] { color: var(--primary); border-left-color: var(--primary); }
.nav-mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
.nav-mobile-phone { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--heading); }

@media (min-width: 992px) {
  :root { --header-h: 78px; }
  .site-header { background: transparent; box-shadow: none; margin-top: -34px; margin-bottom: -42px; }
  .site-header .navbar-inner {
    background: #fff; border-radius: 40px; padding: 0 10px 0 34px; min-height: 76px;
    box-shadow: 0 12px 34px rgba(0,0,0,.08);
    width: calc(100% - var(--gutter) * 2); max-width: var(--container);
  }
  .site-header.is-stuck .navbar-inner { box-shadow: 0 12px 34px rgba(0,0,0,.18); }
  .nav-logo { display: none; }
  .site-header.is-stuck .nav-logo { display: block; }
  .nav-logo img { height: 38px; }
  .nav-toggle, .nav-call, .nav-mobile-extra { display: none; }
  .main-nav { position: static; transform: none; visibility: visible; background: none; overflow: visible; padding: 0; }
  .nav-menu { display: flex; align-items: center; gap: 4px; }
  .nav-item { border: 0; display: block; }
  .nav-link { padding: 0 16px; line-height: 76px; font-size: 1.05rem; font-weight: 500; color: #626c74; position: relative; }
  .nav-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 20px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
  .nav-item.active > .nav-link::after, .nav-link:hover::after { transform: scaleX(1); }
  .dd-caret { display: inline-flex; }
  .dd-caret svg.i { width: 16px; height: 16px; transition: transform .25s; }
  .nav-item.has-dropdown:hover .dd-caret svg.i { transform: rotate(180deg); }
  .dropdown-toggle { display: none; }
  .dropdown {
    display: block; position: absolute; top: 100%; left: 0; min-width: 280px; padding: 12px; margin-top: -8px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--primary);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
    columns: 2; column-gap: 8px; width: 520px;
  }
  .nav-item.has-dropdown:hover .dropdown, .nav-item.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
  .dropdown li { break-inside: avoid; }
  .dropdown a { border: 0; border-radius: 8px; padding: 8px 12px; font-size: .95rem; }
  .dropdown a:hover { background: var(--primary-light); }
  /* first content block sits under the overlapping pill */
  main > :first-child:not(.hero-slider):not(.page-hero) { padding-top: calc(var(--sec) + 40px); }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-link { padding: 0 10px; font-size: 1rem; }
  .nav-link::after { left: 10px; right: 10px; }
  .site-header .navbar-inner { padding-left: 20px; }
}

/* ---------- Page hero (title bar) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  background: var(--dark) center / cover no-repeat;
  padding: 90px 0 80px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,14,11,.82), rgba(8,14,11,.7)), linear-gradient(90deg, rgba(153,8,13,.35), transparent 60%); }
.page-hero-inner { max-width: 900px; }
.page-hero-title { color: #fff; margin: 0; font-size: clamp(2rem, 5vw, 2.85rem); }
.page-hero-text { margin: 14px auto 0; max-width: 680px; color: rgba(255,255,255,.85); font-size: 1.08rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .95rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.breadcrumb li + li::before { content: "›"; color: var(--accent); font-size: 1.2em; line-height: 1; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }
@media (min-width: 992px) {
  .page-hero { padding: 170px 0 120px; background-attachment: fixed; }
}

/* ---------- Hero slider (home) ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--dark); color: #fff; min-height: clamp(540px, 88vh, 820px); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: var(--dark) center / cover no-repeat;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.hero-slide:first-child, .hero-slider.is-ready .hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slider.is-ready .hero-slide:first-child:not(.active) { opacity: 0; visibility: hidden; z-index: 0; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,8,.88) 0%, rgba(5,10,8,.6) 55%, rgba(5,10,8,.25) 100%); }
.hero-slide.active { animation: hero-zoom 7s ease-out both; }
@keyframes hero-zoom { from { background-size: auto 112%; background-size: 112%; } to { background-size: cover; } }
.hero-content {
  position: relative; z-index: 1; width: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 120px var(--gutter) 110px;
}
.hero-content > * { max-width: 720px; }
.hero-content .sub-title { color: var(--accent); }
.hero-content .sub-title::before { background: var(--accent); }
.hero-content h1, .hero-content h2, .hero-content .h1 { color: #fff; font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.12; margin-bottom: 20px; }
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero-content .btn { margin: 0 10px 10px 0; }
.hero-slide.active .hero-content > * { animation: hero-up .9s var(--ease) both; }
.hero-slide.active .hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-slide.active .hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-slide.active .hero-content > :nth-child(n+4) { animation-delay: .36s; }
@keyframes hero-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08); color: #fff; display: none; place-items: center; transition: background .25s, border-color .25s;
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 12px; border: 2px solid #fff; background: transparent; transition: width .3s, background .3s; }
.hero-dots button.active { width: 34px; background: var(--primary); border-color: var(--primary); }
@media (min-width: 992px) {
  .hero-content { padding-top: 160px; }
  .hero-arrow { display: grid; }
}
@media (min-width: 1200px) { .hero-arrow.prev { left: 32px; } .hero-arrow.next { right: 32px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; color: #fff; padding: 64px 0;
  background: var(--primary) center / cover no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(153,8,13,.95), rgba(116,6,10,.88)); }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band .sub-title { color: var(--accent); }
.cta-band .sub-title::before, .cta-band .sub-title::after { background: var(--accent); }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band-inner { display: flex; flex-direction: column; gap: 28px; }
.cta-band-text h2 { margin: 0; max-width: 760px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.footer-cta { background-color: var(--dark); }
.footer-cta::before { background: linear-gradient(90deg, rgba(0,15,8,.96), rgba(0,15,8,.86)); }
.footer-cta .text-accent { color: #ff4d53; }
.cta-help { display: inline-flex; align-items: center; gap: 16px; color: #fff; }
.cta-help:hover { color: var(--accent); }
.cta-help-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 0 0 8px rgba(153,8,13,.25); animation: ring 2s infinite; flex: none; }
.cta-help-icon svg.i { width: 26px; height: 26px; }
.cta-help small { display: block; color: #ff6b70; font-size: 1rem; }
.cta-help strong { font-size: 1.35rem; font-weight: 600; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(153,8,13,.55); } 70% { box-shadow: 0 0 0 16px rgba(153,8,13,0); } }
@media (min-width: 768px) {
  .cta-band { padding: 88px 0; }
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); margin: 0; }
.card-img img, img.card-img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.card-title { font-size: 1.25rem; margin-bottom: 10px; }
.card-title a { color: var(--heading); }
.card-title a:hover, .card:hover .card-title a { color: var(--primary); }
.card-text { color: var(--muted); margin-bottom: 18px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); }
.card-link svg.i { transition: transform .25s; }
.card-link:hover svg.i, .card:hover .card-link svg.i { transform: translateX(5px); }
/* stretched link: whole card clickable when .card-link is present */
.card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.service-card { position: relative; }
.service-card .icon, .service-card .card-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(153,8,13,.3);
}
.service-card .icon svg.i, .service-card .card-icon svg.i { width: 32px; height: 32px; }
.service-card .card-img + .card-body .icon, .service-card .card-img + .card-body .card-icon { margin-top: -56px; margin-bottom: 16px; border: 4px solid #fff; box-sizing: content-box; position: relative; z-index: 2; }
.service-card:not(.card) {
  display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 30px 26px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s;
}
.service-card:not(.card):hover { transform: translateY(-6px); background: var(--primary); color: rgba(255,255,255,.88); box-shadow: var(--shadow-lg); }
.service-card:not(.card):hover h3, .service-card:not(.card):hover a, .service-card:not(.card):hover .card-title a { color: #fff; }
.service-card:not(.card):hover .icon { background: #fff; color: var(--primary); }
.service-card h3 { margin: 0; }

.icon-box { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.icon-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-box .icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--primary-light); color: var(--primary); transition: background .3s, color .3s;
}
.icon-box .icon svg.i { width: 28px; height: 28px; }
.icon-box:hover .icon { background: var(--primary); color: #fff; }
.icon-box h3 { margin: 0 0 4px; font-size: 1.2rem; }
.icon-box p { margin: 0; color: var(--muted); }
.section-dark .icon-box, .section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section-dark .icon-box p, .section-dark .card-text { color: rgba(255,255,255,.72); }
.section-dark .icon-box .icon { background: rgba(255,255,255,.1); color: #fff; }
.section-dark .icon-box:hover .icon { background: var(--primary); }
.text-center .icon-box, .icon-box.text-center { align-items: center; text-align: center; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 34px; line-height: 1.55; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.feature-list li > svg.i { display: none; }
@media (min-width: 640px) { .feature-list.cols-2 { grid-template-columns: 1fr 1fr; } }

.stat { text-align: center; padding: 10px; }
.stat-num { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.1; color: var(--primary); letter-spacing: -.02em; }
.stat-label { display: block; margin-top: 6px; font-weight: 600; color: var(--heading); }
.section-dark .stat-num { color: #fff; }
.section-dark .stat-label { color: rgba(255,255,255,.75); }

/* image helpers for 2-column sections */
.img-rounded, .media-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Prose (WordPress content) ---------- */
.prose { color: var(--text); font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.2em 0 .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--primary); }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--primary); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-alt); color: var(--heading); }
.prose strong { color: var(--heading); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 14px; }
.accordion-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.accordion-item.open { border-color: rgba(153,8,13,.35); box-shadow: var(--shadow); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 18px 22px; border: 0; background: none; color: var(--heading); font-weight: 700; font-size: 1.05rem; line-height: 1.45;
}
.accordion-btn::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399080d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s, background-color .3s;
}
.accordion-item.open .accordion-btn { color: var(--primary); }
.accordion-item.open .accordion-btn::after { transform: rotate(45deg); background-color: #f6d6d7; }
.accordion-panel { display: none; padding: 0 22px 20px; color: var(--text); }
.accordion-panel > :last-child { margin-bottom: 0; }
.accordion-item.open .accordion-panel, .accordion-panel.open { display: block; animation: acc-in .3s ease; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Reviews ---------- */
.reviews-slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 22px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.reviews-slider::-webkit-scrollbar { height: 6px; }
.reviews-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 6px; }
.reviews-slider > * { flex: 0 0 min(340px, 86%); scroll-snap-align: start; }
@media (min-width: 900px) { .reviews-slider > * { flex-basis: calc((100% - 40px) / 3); } }
.reviews-nav { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.reviews-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--heading); display: grid; place-items: center; }
.reviews-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.review-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%;
  padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card::after {
  content: ""; position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2399080d' d='M3 21c3 0 7-1 7-8V5H3v7h4c0 4-2 6-4 6zm11 0c3 0 7-1 7-8V5h-7v7h4c0 4-2 6-4 6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.review-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.review-head img, .review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review-head strong, .review-name { display: block; color: var(--heading); font-weight: 700; line-height: 1.3; }
.stars { display: inline-flex; gap: 2px; color: #fbbc04; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars svg.i { width: 16px; height: 16px; }
.review-text { margin: 0; color: var(--text); flex: 1; }
.review-date { font-size: .85rem; color: var(--muted); }
.section-dark .review-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.section-dark .review-text { color: rgba(255,255,255,.8); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form label, .form-group label { font-weight: 600; color: var(--heading); font-size: .95rem; }
.form input, .form select, .form textarea, .form-group input, .form-group select, .form-group textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--heading); background: #fff;
  border: 1px solid #d5d9dc; border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form select { appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a3a3c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(153,8,13,.12); }
.form input[type="checkbox"], .form input[type="radio"] { width: auto; }
.form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.alert-success, .alert-error { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.alert-success { background: #e9f8ef; color: #135c2f; border-color: #b6e5c7; }
.alert-error { background: #fdecec; color: #8a1014; border-color: #f3c0c2; }
.hp-field { position: absolute !important; left: -9999px !important; }
.section-dark .form label { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 52px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 80px; padding-bottom: 70px; } }
.footer-logo img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-about p { margin-bottom: 22px; }
.footer-title { color: #fff; font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--primary); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-hours { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,.14); }
.footer-hours li span:last-child { color: #fff; font-weight: 500; text-align: right; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; word-break: break-word; }
.footer-contact svg.i { color: #ff6b70; margin-top: .25em; width: 18px; height: 18px; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--accent); }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; transition: background .25s, transform .25s; }
.social-links a:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }
.social-links svg.i { width: 18px; height: 18px; }
.footer-bottom { background: var(--primary); color: #fff; font-size: .93rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--accent); }
@media (min-width: 768px) { .footer-bottom-inner { justify-content: space-between; } }

/* ---------- Floating WhatsApp + back to top ---------- */
.wa-float {
  position: fixed; right: 15px; bottom: 15px; z-index: 90; display: flex; align-items: center; gap: 10px;
  color: #fff; filter: drop-shadow(0 6px 14px rgba(0,0,0,.22));
}
.wa-float:hover { color: #fff; }
.wa-float-label { display: none; background: #fff; color: var(--heading); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .92rem; position: relative; }
.wa-float-label::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: #fff; }
.wa-float-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); transition: transform .25s; }
.wa-float-icon svg.i { width: 30px; height: 30px; }
.wa-float:hover .wa-float-icon { transform: scale(1.08); }
@media (min-width: 768px) { .wa-float-label { display: block; } }
.back-to-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 89; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--secondary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary); }

/* ---------- Scroll reveal (class added by main.js only) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-page { text-align: center; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; color: var(--primary); letter-spacing: -.04em; margin: 0 0 10px; display: flex; justify-content: center; align-items: center; gap: .1em; }
.error-page .section-title, .error-page .lead { margin-left: auto; margin-right: auto; }
.error-code svg.i { width: .8em; height: .8em; }
.error-links { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.error-links a { display: inline-block; padding: 8px 16px; border-radius: var(--pill); background: var(--bg-alt); color: var(--heading); font-weight: 500; }
.error-links a:hover { background: var(--primary); color: #fff; }

/* ---------- Page-specific helpers requested by page agents ---------- */
.h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.2; }
.hero-slide > .container { position: relative; z-index: 1; }
.hero-slide > .container > .hero-content { padding-left: 0; padding-right: 0; max-width: none; }

/* cards rendered as links, image directly as img.card-img */
a.card { color: var(--text); }
a.card:hover { color: var(--text); }
a.card:hover .card-title { color: var(--primary); }
img.card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover img.card-img { transform: scale(1.05); }
.card .card-title { transition: color .25s; }

/* trust strip under the home slider */
.trust-strip { padding: 40px 0; }
.trust-strip .icon-box { box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
@media (min-width: 992px) {
  .hero-slider + .trust-strip { padding: 0 0 var(--sec); }
  .hero-slider + .trust-strip > .container { position: relative; z-index: 5; margin-top: -70px; }
  .hero-slider:has(+ .trust-strip) .hero-dots { bottom: 96px; }
  .hero-slider:has(+ .trust-strip) .hero-content { padding-bottom: 170px; }
}

/* reviews */
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; }
.reviews-summary strong { color: var(--heading); }
.section-dark .reviews-summary strong { color: #fff; }
.reviews-section .review-head > div { min-width: 0; }
.review-initial { flex: none; }
.review-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* numbered work-process steps */
.process-step { position: relative; align-items: center; text-align: center; }
.process-step .icon { width: 72px; height: 72px; background: var(--primary); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: 0 0 0 8px var(--primary-light); }
.process-step:hover .icon { background: var(--secondary); }
@media (min-width: 1100px) {
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 64px; right: -22px; width: 16px; height: 16px; z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399080d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* certificates + video */
.cert-grid { gap: 14px; }
.cert-grid a { display: block; border-radius: 8px; overflow: hidden; transition: transform .3s var(--ease); }
.cert-grid a:hover { transform: translateY(-4px); }
.video-thumb { box-shadow: var(--shadow-lg); }
.video-thumb img { transition: transform .6s var(--ease); }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb > span > span { animation: ring 2s infinite; }

/* generic content + sidebar layout */
.layout-sidebar { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.layout-sidebar > * { min-width: 0; }
@media (min-width: 992px) {
  .layout-sidebar { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 48px; }
  .layout-sidebar > aside, .layout-sidebar > .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
}
.sidebar-box { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.sidebar-box h3 { font-size: 1.2rem; }
.sidebar-box.dark { background: var(--primary); color: rgba(255,255,255,.88); }
.sidebar-box.dark h3, .sidebar-box.dark a:not(.btn) { color: #fff; }

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .wa-float, .back-to-top, .site-loader, .cta-band, .hero-arrow, .hero-dots { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
