/* ==========================================================
   In N' Out Towing — Calgary
   ========================================================== */
:root {
  --black: #0a0a0a;
  --charcoal: #141414;
  --charcoal-2: #1f1f1f;
  --red-900: #1a0506;
  --red-700: #b3141b;
  --red-500: #e0242b;
  --accent: #ff3130;
  --accent-2: #ff6b60;
  --white: #ffffff;
  --ink: #111111;
  --text: #4a4a4f;
  --muted: #8a8a90;
  --line: #e7e7e9;
  --tint: #f5f5f6;

  --grad-accent: linear-gradient(135deg, #ff4a3d 0%, #ff3130 55%, #d91e1e 100%);
  --grad-dark: linear-gradient(135deg, #0a0a0a 0%, #151515 55%, #2b0a0c 100%);
  --grad-black: linear-gradient(135deg, #2e2e33 0%, #0a0a0a 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(10, 10, 10, .06);
  --shadow: 0 10px 30px -10px rgba(10, 10, 10, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .5);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip (unlike hidden) doesn't make body a scroll container, so the sticky header keeps working */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.grad-text {
  background: linear-gradient(90deg, #ff6b60, #ff3130);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, background-position .4s ease, border-color .2s, background-color .2s, color .2s;
  white-space: nowrap;
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #ff4f45 0%, #ff3130 45%, #d11a1a 100%);
  background-size: 200% 200%; background-position: 0% 50%;
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(255, 49, 48, .55);
}
.btn-primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(255, 49, 48, .6); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.04); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.btn-white:hover { transform: translateY(-2px); color: var(--accent); }
.btn-dark { background: var(--grad-dark); color: var(--white); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--grad-accent); }
.eyebrow-light { color: var(--accent-2); }
.eyebrow .ic + * {}
.hero .eyebrow::before { display: none; }
.hero .eyebrow { background: rgba(255,49,48,.12); border: 1px solid rgba(255,49,48,.35); padding: .45rem .85rem; border-radius: 999px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #c9c9ce; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 1rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar-phone { color: var(--white); font-weight: 700; white-space: nowrap; }
.topbar-phone:hover { color: var(--accent-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s ease, background .3s ease;
}
.header.scrolled { background: rgba(10, 10, 10, .97); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
/* Brand: big round logo, then the company name as its own wordmark */
.brand { display: inline-flex; align-items: center; gap: 1.1rem; color: var(--white); flex-shrink: 0; }
.logo-img { width: 88px; height: 88px; border-radius: 50%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.55)); transition: transform .3s ease; }
.brand:hover .logo-img { transform: rotate(-6deg) scale(1.04); }
.brand-divider { width: 2px; height: 52px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--accent), transparent); }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; line-height: .9; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-name small { font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .22em; color: #a8a8ad; margin-top: 7px; }
.footer-brand .brand { flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-brand .logo-img { width: 140px; height: 140px; }
.footer-brand .brand-divider { display: none; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { color: #d9d9dd; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-quote { display: none; }
.header-call { padding: .75rem 1.2rem; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #d4d4d8; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 9vw, 130px); background: var(--black); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(200, 20, 28, .30), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 49, 48, .28), transparent 60%),
    radial-gradient(600px 400px at 0% 0%, rgba(90, 8, 12, .35), transparent 60%),
    linear-gradient(160deg, rgba(10,10,10,.9) 0%, rgba(18,12,12,.88) 60%, rgba(30,6,8,.9) 100%),
    url("images/accident-recovery.jpg") center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero-lead { font-size: 1.15rem; max-width: 36em; color: #c4c4c9; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-phone, .quote-call { display: inline-flex; align-items: center; gap: .9rem; color: var(--white); }
.hero-phone small, .quote-call small { display: block; font-size: .8rem; color: #a8a8ad; font-weight: 500; letter-spacing: .02em; }
.hero-phone strong, .quote-call strong { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; letter-spacing: .5px; line-height: 1; transition: color .2s; }
.hero-phone:hover strong { color: var(--accent-2); }
.hero-phone-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-accent); box-shadow: 0 0 0 6px rgba(255,49,48,.2); flex-shrink: 0; }
.hero-phone-icon svg { width: 24px; height: 24px; color: var(--white); }
.hero-checks { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-checks .ic { color: var(--accent-2); }

.hero-media { position: relative; isolation: isolate; }
.hero-img {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)); }
.hero-media::before {
  content: ""; position: absolute; inset: -18px -18px 18px 18px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,49,48,.9), rgba(120,10,14,.8)); z-index: -1; opacity: .55; filter: blur(2px);
}
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.97); color: var(--ink); padding: .85rem 1.1rem; border-radius: 14px;
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.hero-badge strong { display: block; font-size: .98rem; line-height: 1.2; }
.hero-badge small { display: block; color: var(--muted); font-size: .8rem; }
.hero-badge-top { top: 26px; left: -34px; }
.hero-badge-bottom { bottom: 30px; right: -24px; animation-delay: -3s; flex-direction: column; align-items: flex-start; gap: .3rem; }
.badge-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-accent); flex-shrink: 0; }
.badge-icon svg { width: 22px; height: 22px; color: var(--white); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.stars { display: inline-flex; gap: 2px; color: #ffb020; }
.stars svg { width: 17px; height: 17px; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -54px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; padding: 0; width: calc(100% - 48px);
}
.stat { padding: 1.8rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--grad-black); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat strong small { font-size: 1.1rem; margin-left: 3px; }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: linear-gradient(180deg, #f7f7f8 0%, #efeff1 100%); }
.section-dark { background: var(--grad-dark); color: #b8b8bd; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(255,49,48,.18), transparent 65%); pointer-events: none; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head p { font-size: 1.1rem; margin: 0; }
.section-head .eyebrow { justify-content: center; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem 1.7rem; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--grad-black); box-shadow: 0 10px 20px -10px rgba(0,0,0,.6);
  transition: background .3s ease, transform .3s ease;
}
.service-icon svg { width: 28px; height: 28px; color: var(--white); }
.service-card:hover .service-icon { background: var(--grad-accent); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; color: var(--red-500); }
.service-link .ic { transition: transform .2s; }
.service-link:hover { color: var(--accent); }
.service-link:hover .ic { transform: translateX(4px); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; }
.trust-item {
  display: flex; gap: 1.1rem; padding: 1.7rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.trust-item:hover { transform: translateY(-4px); border-color: rgba(255,49,48,.45); background: linear-gradient(160deg, rgba(255,49,48,.1), rgba(255,255,255,.03)); }
.trust-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-accent); flex-shrink: 0; box-shadow: 0 10px 22px -10px rgba(255,49,48,.8); }
.trust-icon svg { width: 26px; height: 26px; color: var(--white); }
.trust-item h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.trust-item p { margin: 0; font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-media { position: relative; padding: 0 60px 70px 0; }
.about-img-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.about-img-sub { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: 24px; bottom: 20px; background: var(--grad-dark); color: var(--white); padding: 1rem 1.3rem; border-radius: 14px; box-shadow: var(--shadow); max-width: 190px; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.7rem; text-transform: uppercase; line-height: 1; color: var(--accent-2); }
.about-badge span { font-size: .85rem; color: #c9c9ce; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 500; }
.check-list .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255,49,48,.12); color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 1rem; }
.gallery-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-tall { grid-row: span 2; grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.8)); }
.gallery-item figcaption { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; color: var(--white); font-weight: 700; font-size: .95rem; }
.gallery-item figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .5rem; vertical-align: middle; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.area-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.8rem 0 1.2rem; }
.area-lists h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .8rem; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { padding: .4rem .8rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.tag-list li:hover { background: var(--red-700); color: var(--white); border-color: var(--red-700); }
.area-note { font-size: .92rem; color: var(--muted); }
.area-map { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; background: var(--tint); }
.area-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.area-map-card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.97); padding: .9rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); }
.area-map-card strong { display: block; color: var(--ink); line-height: 1.2; }
.area-map-card small { color: var(--muted); }

/* ---------- Reviews ---------- */
.rating-inline { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; }
.review {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.8rem; color: var(--text);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 1rem;
  transition: transform .3s ease;
}
.review:hover { transform: translateY(-5px); }
.review blockquote { margin: 0; flex: 1; font-size: .98rem; color: #333336; }
.review blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3rem; line-height: .6; color: var(--accent); margin-bottom: .4rem; }
.review figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; color: var(--ink); line-height: 1.2; }
.review figcaption small { color: var(--muted); font-size: .82rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-black); color: var(--white); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.reviews-cta { text-align: center; margin-top: 2.5rem; position: relative; }

/* ---------- Quote ---------- */
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.quote-call { margin: .5rem 0 .5rem; color: var(--ink); }
.quote-call small { color: var(--muted); }
.quote-call:hover strong { color: var(--accent); }
.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem;
  box-shadow: var(--shadow-lg); display: grid; gap: 1.1rem; position: relative;
}
.quote-form::before { content: ""; position: absolute; top: 0; left: 2.2rem; right: 2.2rem; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--red-500), var(--accent)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.quote-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: .98rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--red-500); background: var(--white); box-shadow: 0 0 0 4px rgba(255,49,48,.12); }
.quote-form .invalid { border-color: #e5484d; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: grid; gap: .4rem; }
.captcha-widget { min-height: 78px; max-width: 100%; }
.captcha-widget.invalid { outline: 2px solid #e5484d; outline-offset: 3px; border-radius: 4px; }
.captcha-error { margin: 0; font-size: .9rem; font-weight: 600; color: #d0343a; }
.captcha-error:empty { display: none; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #16833a; }
.form-status.err { color: #d0343a; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: .9rem; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.faq[open] { box-shadow: var(--shadow); border-color: rgba(255,49,48,.25); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); position: relative; flex-shrink: 0; transition: background .3s, transform .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .3s, background .3s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon { background: var(--grad-accent); transform: rotate(180deg); }
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: var(--white); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body { padding: 0 1.5rem 1.3rem; }
.faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #b3141b 0%, #ff3130 45%, #1a0506 100%); padding: 70px 0; color: rgba(255,255,255,.9); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3rem; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #9d9da3; padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand p { margin: 1.2rem 0 1.4rem; max-width: 22em; }
.footer h4 { color: var(--white); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--accent-2); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ic { color: var(--accent); margin-top: .25rem; }
.footer-contact strong { color: var(--white); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--charcoal-2); color: #d0d0d5; transition: background .25s, transform .25s, color .25s; }
.socials a:hover { background: var(--grad-accent); color: var(--white); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-meta { display: grid; gap: .3rem; }
.credit { font-size: .8rem; color: #8a8a90; }
.footer .credit a { color: #c9c9ce; text-decoration: underline; text-decoration-color: rgba(201,201,206,.4); text-underline-offset: 3px; }
.footer .credit a:hover { color: var(--accent-2); text-decoration-color: currentColor; }
.footer a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 2px; }
.footer-mini { padding-top: 0; }
.footer-bottom nav { display: flex; gap: 1.5rem; }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }

/* ---------- WhatsApp chat widget ---------- */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2fe06f 0%, #25d366 50%, #128c7e 100%);
  box-shadow: 0 12px 28px -8px rgba(18, 140, 126, .7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-fab:hover { transform: scale(1.07); box-shadow: 0 16px 32px -8px rgba(18, 140, 126, .8); }
.wa-fab svg { width: 34px; height: 34px; }
.wa-badge { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.wa.open .wa-badge, .wa.seen .wa-badge { display: none; }
/* Step aside while the quote form is on screen so it never covers the reCAPTCHA or submit button */
.wa.away:not(.open) .wa-fab { opacity: 0; transform: scale(.6); pointer-events: none; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }

.wa-panel {
  width: 340px; max-width: calc(100vw - 32px); border-radius: 18px; overflow: hidden; background: #efeae2;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.45);
  transform-origin: bottom right; transform: translateY(12px) scale(.94); opacity: 0; visibility: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility .28s;
}
.wa.open .wa-panel { transform: none; opacity: 1; visibility: visible; }
.wa-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: #fff; background: linear-gradient(135deg, #075e54 0%, #128c7e 100%); }
.wa-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.wa-head strong { display: block; font-size: 1rem; line-height: 1.2; }
.wa-head small { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; opacity: .9; }
.wa-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.wa-close { margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s; }
.wa-close:hover { background: rgba(255,255,255,.3); }
.wa-body { padding: 1rem; display: grid; gap: .8rem; }
.wa-msg { position: relative; background: #fff; color: #111b21; font-size: .92rem; line-height: 1.5; padding: .7rem .9rem; border-radius: 0 12px 12px 12px; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 92%; }
.wa-msg::before { content: ""; position: absolute; left: -7px; top: 0; border: 8px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 8px 8px 0; }
.wa-options { display: grid; gap: .45rem; }
.wa-options button {
  text-align: left; font: inherit; font-size: .9rem; font-weight: 600; color: #075e54; cursor: pointer;
  background: #fff; border: 1.5px solid #d1e7dd; border-radius: 12px; padding: .6rem .85rem; min-height: 44px;
  transition: background .2s, border-color .2s, transform .2s;
}
.wa-options button:hover { background: #dcf8c6; border-color: #25d366; transform: translateX(3px); }
.wa-form { display: flex; gap: .5rem; }
.wa-form input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; padding: .65rem .95rem; border-radius: 999px; border: 0; background: #fff; color: #111b21; }
.wa-form input:focus { outline: 2px solid #25d366; }
.wa-form button { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; background: #25d366; color: #fff; display: grid; place-items: center; transition: background .2s; }
.wa-form button:hover { background: #128c7e; }
.wa-form button svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1140px) {
  .nav a { padding: .5rem .55rem; font-size: .9rem; }
  .header-call span { display: none; }
  .header-call { padding: .75rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-grid, .area-grid, .quote-grid { gap: 3rem; }
}
.nowrap { white-space: nowrap; }

@media (max-width: 960px) {
  :root { --header-h: 92px; }
  .logo-img { width: 74px; height: 74px; }
  .brand-name { font-size: 1.8rem; }
  .menu-toggle { display: block; }
  .header-call { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; gap: 0; padding: 1rem 24px 2rem;
    background: var(--black); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease, visibility .3s; margin: 0;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 1.15rem; padding: 1rem .25rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .nav-quote { display: block; margin-top: 1.2rem; text-align: center; border: 0; border-radius: 10px; background: var(--grad-accent); color: var(--white); font-weight: 700; }
  body.menu-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-badge-top { left: -8px; }
  .hero-badge-bottom { right: -8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .area-grid, .quote-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-media { max-width: 600px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(10,10,10,.96); backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(0,0,0,.3);
  }
  .mobile-bar .btn { padding: .95rem 1rem; }
  .wa { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .wa-fab { width: 56px; height: 56px; }
  .wa-fab svg { width: 30px; height: 30px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .reviews-cta .btn { width: 100%; }
  .stats-grid { width: calc(100% - 32px); }
  .mobile-bar .btn { white-space: nowrap; padding: .95rem .6rem; font-size: .95rem; }
  .topbar-inner { font-size: .78rem; }
  .topbar .hide-sm { display: none; }
  :root { --header-h: 80px; }
  .brand { gap: .8rem; }
  .logo-img { width: 64px; height: 64px; }
  .brand-divider { height: 40px; }
  .brand-name { font-size: 1.5rem; }
  .brand-name small { font-size: .56rem; letter-spacing: .16em; margin-top: 5px; }
  .hero-lead { font-size: 1.02rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-phone strong { font-size: 1.8rem; }
  .hero-badge { padding: .65rem .85rem; }
  .hero-badge-top { top: 14px; left: 10px; }
  .hero-badge-bottom { bottom: 14px; right: 10px; }
  .hero-media::before { inset: -10px -10px 10px 10px; }
  .stat { padding: 1.3rem .8rem; }
  .stat strong { font-size: 2rem; }
  .services-grid, .trust-grid, .reviews-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 1.4rem; }
  .about-media { padding: 0 30px 50px 0; }
  .about-badge { left: 12px; bottom: 10px; padding: .8rem 1rem; }
  .about-badge strong { font-size: 1.35rem; }
  .area-lists { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 1.5rem; }
  .quote-call strong { font-size: 1.8rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Small phones (iPhone SE, Galaxy mini, etc.) */
@media (max-width: 400px) {
  .topbar-inner { font-size: .72rem; }
  .topbar-item { white-space: nowrap; }
  .stat { padding: 1.1rem .5rem; }
  .stat span { font-size: .78rem; line-height: 1.35; display: block; }
  .brand { gap: .6rem; }
  .logo-img { width: 56px; height: 56px; }
  .brand-name { font-size: 1.25rem; }
  .brand-name small { font-size: .5rem; letter-spacing: .1em; }
  .hero-phone strong, .quote-call strong { font-size: 1.6rem; }
}
