/* ==========================================================================
   Miami Computer Repair — mia-new.css
   Single coherent stylesheet · Voltage palette · city-page support
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --navy-900:   #0b1a33;
  --navy-800:   #102544;
  --navy-700:   #16345c;
  --navy-600:   #1d4a7a;
  --slate-500:  #3b5a7a;

  --amber-500:  #f2a541;
  --amber-600:  #e08e2b;
  --amber-100:  #fdf3e3;

  --teal-500:   #4fb3a9;
  --teal-100:   #e6f6f4;

  --coral-500:  #e2675c;
  --coral-600:  #c94f45;
  --coral-100:  #fceeed;

  --ink:        #1a2433;
  --ink-soft:   #3d4a5c;
  --muted:      #6b7a8f;
  --line:       #e4e9f0;
  --line-soft:  #eef2f7;
  --paper:      #ffffff;
  --paper-warm: #fafbfd;
  --paper-cool: #f3f6fb;

  /* Legacy aliases so old markup still resolves */
  --brand:      var(--amber-500);
  --brand-dark: var(--amber-600);
  --bg:         var(--paper-warm);
  --green:      #2ecc71;
  --red:        var(--coral-600);

  --font-display: "Georgia", "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(16,37,68,.04);
  --shadow-sm: 0 2px 8px rgba(16,37,68,.06);
  --shadow:    0 8px 28px rgba(16,37,68,.08);
  --shadow-lg: 0 18px 50px rgba(16,37,68,.12);
  --shadow-glow-amber: 0 12px 40px rgba(242,165,65,.28);
  --shadow-glow-coral: 0 12px 40px rgba(226,103,92,.30);

  --container: 1160px;
  --gutter: 24px;
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79,179,169,.06), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(242,165,65,.05), transparent 60%),
    var(--paper);
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500), var(--navy-600));
  z-index: 9999;
  pointer-events: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }

p { margin-bottom: 1em; }
strong { color: var(--ink); font-weight: 700; }
a { color: var(--navy-600); transition: color .25s ease; }
a:hover { color: var(--amber-600); }
::selection { background: var(--amber-100); color: var(--navy-900); }

/* ---------- LAYOUT ---------- */
.main, .wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-width: 0;
}

.clear { overflow: hidden; width: 100%; }
.clear1 { clear: both; }
.fleft { float: left; }
.fright { float: right; }
.br { display: block; }
.txt, .txt1 { position: static; display: inline; }

/* ---------- BUTTONS ---------- */
.btn, .button, .button1, .button2, .phone-cta, .button-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-glow-amber);
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
  width: auto; height: auto;
  overflow: hidden;
}
.btn::after, .button::after, .button1::after, .button2::after,
.phone-cta::after, .button-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25), transparent 55%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.btn:hover, .button:hover, .button1:hover, .button2:hover,
.phone-cta:hover, .button-slider:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(242,165,65,.42);
  color: #fff;
}
.btn:hover::after, .button:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-navy { background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); box-shadow: 0 12px 40px rgba(11,26,51,.28); }
.btn-navy:hover { box-shadow: 0 18px 48px rgba(11,26,51,.38); }
.btn-teal { background: linear-gradient(135deg, var(--teal-500), #3a9d92); box-shadow: 0 12px 40px rgba(79,179,169,.30); }
.btn-teal:hover { box-shadow: 0 18px 48px rgba(79,179,169,.42); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
}
.btn-lg { padding: 17px 42px; font-size: 1.05rem; }

/* ---------- EMERGENCY BAR ---------- */
.emergency-bar {
  background: linear-gradient(90deg, var(--coral-600), var(--coral-500));
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: .015em;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.emergency-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.04) 12px 24px);
  pointer-events: none;
}
.emergency-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  position: relative;
}

/* ---------- HEADER ---------- */
header.site {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: relative;
  z-index: 50;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  text-decoration: none;
  background: none;
  width: auto; height: auto; top: auto; left: auto;
  display: inline-block;
  line-height: 1;
}
.logo span { color: var(--amber-600); font-style: italic; }
.phone-cta { font-size: 0.98rem; padding: 12px 24px; white-space: nowrap; }

/* ---------- NAV ---------- */
nav.main {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
nav.main ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 4px;
}
nav.main a {
  display: block;
  color: rgba(255,255,255,.82);
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
nav.main a:hover { background: rgba(255,255,255,.09); color: #fff; }
nav.main li.current a,
nav.main a.active {
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(242,165,65,.35);
}

/* ==========================================================================
   HERO — two variants:
   1. .hero.hero-city  → short, non-animated (city landing pages)
   2. .hero (with .intro child) → cinematic (homepage only)
   ========================================================================== */

/* --- Base hero: city variant (safe default) --- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(79,179,169,.18), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(242,165,65,.20), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  z-index: -1;
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 em { font-style: italic; color: var(--amber-500); }
.hero p {
  font-size: 1.06rem;
  max-width: 780px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.82);
}
.hero .btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cinematic hero override (homepage only: .hero.has-intro) --- */
.hero.has-intro {
  padding: 0;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero.has-intro h1,
.hero.has-intro p,
.hero.has-intro .btn-row { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero.has-intro h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); margin-bottom: 22px; }
.hero.has-intro p  { font-size: 1.12rem; max-width: 720px; margin: 0 auto 34px; }
.hero.has-intro .btn-row { animation-delay: .3s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CINEMATIC INTRO (only inside .hero.has-intro)
   ========================================================================== */
.intro {
  position: relative;
  width: 100%;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 56px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 50% 60%, rgba(79,179,169,.18), transparent 60%),
    radial-gradient(700px 500px at 20% 20%, rgba(242,165,65,.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
}

.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  animation: gridDrift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 96px 96px, 96px 96px; }
}

.intro-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--amber-500), var(--teal-500), transparent);
  box-shadow: 0 0 26px rgba(242,165,65,.7);
  opacity: 0;
  animation: scanDown 2.6s cubic-bezier(.5,0,.5,1) .3s 1 forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes scanDown {
  0%   { opacity: 0; top: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; top: 100%; }
}

.intro-sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.08) 40%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.08) 60%, transparent 100%);
  transform: skewX(-12deg);
  pointer-events: none;
  animation: sweep 2.4s cubic-bezier(.5,0,.3,1) 1.3s 1 forwards;
  z-index: 2;
}
@keyframes sweep {
  from { left: -60%; opacity: 0; }
  20%  { opacity: .85; }
  to   { left: 130%; opacity: 0; }
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-500);
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(242,165,65,.35);
  border-radius: 999px;
  background: rgba(242,165,65,.08);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(-6px);
  animation: fadeUp .7s ease .5s 1 forwards;
  position: relative;
  z-index: 3;
}
.intro-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 0 rgba(242,165,65,.6);
  animation: badgePulse 1.6s ease-out infinite;
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(242,165,65,.6); }
  100% { box-shadow: 0 0 0 12px rgba(242,165,65,0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.intro-title {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 26px;
}
.intro-line {
  display: block;
  opacity: 0;
  transform: translateY(24px) scale(.96);
  filter: blur(6px);
  animation: lineIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.intro-line-1 { color: #fff;             animation-delay: 1.4s; }
.intro-line-2 { color: var(--amber-500); animation-delay: 1.65s; font-style: italic; }
.intro-line-3 { color: var(--teal-500); animation-delay: 1.9s; font-size: .68em; letter-spacing: .04em; }
@keyframes lineIn {
  0%   { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  75%  { transform: translateY(-3px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.intro-sub {
  position: relative;
  z-index: 3;
  max-width: 740px;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 0 auto 34px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) 2.15s 1 forwards;
}
.intro-sub strong { color: #fff; font-weight: 700; }

.intro-cta {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) 2.4s 1 forwards;
  margin-bottom: 40px;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fadeUp .8s ease 2.7s 1 forwards;
}
.intro-meta > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.intro-meta strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.intro-meta span {
  font-size: 0.72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}

.intro-progress {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(240px, 60vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .5s ease 1.6s 1 forwards;
  z-index: 3;
}
.intro-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
  border-radius: 2px;
  animation: progressFill 3.4s cubic-bezier(.5,0,.3,1) 1.6s 1 forwards;
}
@keyframes progressFill { to { width: 100%; } }

.hero.revealed .intro-progress {
  animation: fadeOutProgress .8s ease .4s 1 forwards;
}
@keyframes fadeOutProgress { to { opacity: 0; } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 88px 0; position: relative; }
.section > .wrap > h2 { text-align: center; margin-bottom: 16px; }
.section > .wrap > h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
}
.section .lead {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 52px;
  font-size: 1.05rem;
}

/* ==========================================================================
   EMERGENCY CARD
   ========================================================================== */
.emergency {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  margin: 56px auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  isolation: isolate;
  animation: emergencyGlow 4s ease-in-out infinite;
}
@keyframes emergencyGlow {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line), 0 0 0 0 rgba(226,103,92,0); }
  50%      { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line), 0 0 60px 0 rgba(226,103,92,.18); }
}
.emergency::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--coral-600), var(--amber-500), var(--coral-600));
  background-size: 200% 100%;
  animation: emergencyStripe 5s linear infinite;
}
@keyframes emergencyStripe {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
.emergency-head {
  background: linear-gradient(135deg, var(--coral-600) 0%, var(--coral-500) 100%);
  color: #fff;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.emergency-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(255,255,255,.15), transparent 40%);
  pointer-events: none;
}
.emergency-head .pulse {
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 0 rgba(255,255,255,.85);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.85); }
  70%  { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.emergency-head h2, .emergency-head span { position: relative; z-index: 1; }

.emergency-body { padding: 34px 32px; }
.emergency-body p { margin-top: 0; font-size: 1.02rem; }

.emergency-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 26px 0 28px;
}
.emergency-step {
  background: linear-gradient(180deg, var(--coral-100), #fff);
  border-radius: var(--r);
  padding: 20px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border: 1px solid rgba(226,103,92,.15);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.emergency-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(226,103,92,.16);
}
.emergency-step strong {
  display: block;
  color: var(--coral-600);
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.emergency-cta { text-align: center; margin-top: 8px; }
.emergency-cta .btn {
  font-size: 1.08rem;
  padding: 18px 44px;
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  box-shadow: var(--shadow-glow-coral);
}
.emergency-cta .btn:hover { box-shadow: 0 20px 50px rgba(226,103,92,.45); }

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(242,165,65,.35);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; font-size: 1.28rem; }
.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.card a {
  color: var(--amber-600);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease, color .2s ease;
}
.card a::after { content: "→"; transition: transform .2s ease; }
.card a:hover { color: var(--navy-700); gap: 10px; }

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */
.cases {
  background:
    radial-gradient(600px 300px at 10% 20%, rgba(79,179,169,.06), transparent 60%),
    radial-gradient(600px 300px at 90% 80%, rgba(242,165,65,.06), transparent 60%),
    var(--paper-cool);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.case {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
  overflow: hidden;
}
.case::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-500));
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case:hover::after { width: 100%; }
.case .tag {
  display: inline-block;
  background: var(--navy-700);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case:nth-child(3n+2) .tag { background: var(--teal-500); }
.case:nth-child(3n+3) .tag { background: var(--amber-600); }
.case h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.3;
}
.case p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.case .result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  color: #2c7a67;
  font-size: 0.88rem;
  background: var(--teal-100);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   AREAS (dark section)
   ========================================================================== */
.areas {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(79,179,169,.10), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(242,165,65,.08), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.areas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.areas > .wrap { position: relative; z-index: 1; }
.areas h2 { color: #fff; text-align: center; margin-bottom: 14px; }
.areas h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
}
.areas .lead { color: rgba(255,255,255,.72); text-align: center; }
.area-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.area-cols h4 {
  color: var(--amber-500);
  margin: 0 0 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
.area-cols ul { font-size: 0.92rem; color: rgba(255,255,255,.82); }
.area-cols li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s ease, padding-left .2s ease;
}
.area-cols li:hover { color: var(--amber-500); padding-left: 6px; }
.area-cols li:last-child { border-bottom: none; }

/* Road note — dark context */
.road-note {
  margin-top: 44px;
  padding: 22px 26px;
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--amber-500);
  border-radius: var(--r);
  font-size: 0.92rem;
  color: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Road note — light section context (city pages) */
.section .road-note {
  background: var(--paper-cool);
  border-left: 4px solid var(--amber-500);
  color: var(--ink-soft);
  margin-top: 32px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.section .road-note strong { color: var(--ink); }

/* ==========================================================================
   GUARANTEES
   ========================================================================== */
.guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.guarantee {
  text-align: center;
  padding: 32px 22px;
  background: linear-gradient(180deg, #fff, var(--paper-warm));
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.guarantee:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(242,165,65,.35);
}
.guarantee .icon { font-size: 2rem; line-height: 1; display: block; margin-bottom: 12px; }
.guarantee strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.guarantee span { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   FAQ
   ========================================================================== */
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
details.faq[open] { box-shadow: var(--shadow-sm); border-color: rgba(242,165,65,.35); }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 36px;
  font-family: var(--font-body);
  transition: color .2s ease;
}
details.faq summary:hover { color: var(--amber-600); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--amber-500);
  line-height: 1;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  width: 28px;
  text-align: center;
}
details.faq[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
details.faq p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  animation: faqOpen .3s ease both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */
table.price {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 28px;
  font-size: 0.94rem;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
table.price th,
table.price td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
table.price thead th {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: none;
}
table.price tbody tr:last-child td { border-bottom: none; }
table.price tbody tr:nth-child(even) td { background: var(--paper-warm); }
table.price tbody tr { transition: background .2s ease; }
table.price tbody tr:hover td { background: var(--amber-100); }
table.price td:first-child { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(79,179,169,.06), transparent 70%),
    var(--navy-900);
  color: rgba(255,255,255,.65);
  padding: 72px 0 28px;
  font-size: 0.92rem;
  position: relative;
}
footer.site::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500), var(--navy-600));
}
footer.site a { color: rgba(255,255,255,.82); transition: color .2s ease; }
footer.site a:hover { color: var(--amber-500); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h4 {
  color: #fff;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}
.footer-grid ul { font-size: 0.9rem; }
.footer-grid li { padding: 6px 0; }
.footer-grid p { line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}

/* ==========================================================================
   LEGACY JOMBLA NEUTRALIZATION
   ========================================================================== */
.tail-bottom, .tail-top, .tail-top-center,
.tail-top-box, .tail-top-box-sub, .tail-content, .tail-footer {
  background: none; height: auto; min-height: 0; padding: 0; border: none;
}
.row-logo, .row-menu, .row-slider, .row-slider1 {
  height: auto; min-height: 0; position: relative;
}
.search-box {
  position: static;
  background: var(--paper-cool);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  width: auto; height: auto;
  display: flex; gap: 6px;
  max-width: 340px;
}
.search-box #mod-search-searchword {
  position: static; flex: 1; border: none; background: transparent;
  padding: 9px 14px; font-size: 0.9rem; color: var(--ink); outline: none;
}
.search-box .button {
  position: static;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: #fff;
  width: auto; height: auto;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem; line-height: 1;
  text-indent: 0;
  box-shadow: none;
}
.search-box .button:hover { background: var(--amber-600); }

.social-img {
  position: static; background: none; width: auto; height: auto;
  display: flex; gap: 10px; padding: 0;
}
.social-img ul { display: flex; gap: 10px; padding: 0; }
.social-img ul li { display: block; float: none; }
.social-img ul li a {
  width: 36px; height: 36px; display: block; border-radius: 50%;
  background: var(--paper-cool); border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease;
}
.social-img ul li a:hover { transform: translateY(-2px); }
.social-img .bg1 { background: #4a6fa5; border-color: transparent; }
.social-img .bg2 { background: #5aa9e6; border-color: transparent; }
.social-img .bg3 { background: var(--amber-500); border-color: transparent; }

#maximenuCK, .row-menu .maximenuCKH, .maximenuCKH,
.maxiRoundedleft, .maxiRoundedright, .maxiRoundedcenter,
.floatCK, .maxidrop-top, .maxidrop-main, .maxidrop-bottom,
.row-slider .pix_diapo, .pix_diapo > div,
#pix_pag, #pix_prev, #pix_next { display: none !important; }

#right, #left, #container, #content {
  float: none; width: auto; position: static;
}
.right-indent, .left-indent { padding: 0; }
.content-indent, .home .content-indent { padding: 0; }

.top-box { padding: 0; }
.top-box .col-1, .top-box .col-2, .top-box .col-3 {
  width: 100%; margin: 0; float: none;
}
.top-box h2 { position: static; width: auto; height: auto; margin-bottom: 8px; }
.top-box h2 .text-number,
.top-box h2 .title-text1,
.top-box h2 .title-text2 {
  position: static; display: inline; font-size: inherit; color: inherit;
  background: none; text-shadow: none; width: auto;
}

.list-top li, .list-services li {
  background: none; padding: 8px 0; margin: 0;
  border-bottom: 1px solid var(--line);
}
.list-top li a, .list-services li a {
  color: var(--ink-soft); font-size: 0.94rem;
  display: block; background: none; padding: 0;
  transition: color .2s ease;
}
.list-top li a:hover, .list-services li a:hover { color: var(--amber-600); }
.list-services li a span { color: var(--amber-500); margin-right: 8px; font-weight: 700; }

.row-banner { min-height: 0; }
.row-banner .banner-text1,
.row-banner .banner-text2,
.row-banner .banner-text3 {
  position: static; display: inline; font-size: inherit; color: inherit;
  top: auto; left: auto; width: auto;
}

.sub {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: none;
  margin-bottom: 20px;
  font-weight: 700;
}

.row-custom .col-1, .row-custom .col-2,
.row1 .col-1, .row1 .col-2,
.row2 .fleft, .row2 .fright,
.row3 .fleft, .row3 .fright {
  width: 100%; float: none; margin-left: 0; padding: 0;
}

.text1 { color: var(--amber-600); }

.warranty-badge {
  display: inline-block;
  background: var(--teal-500);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .04em;
}
.warranty-item { color: var(--teal-500); font-weight: 700; }

.repair-info-box {
  margin-top: 40px;
  padding: 36px 36px 30px;
  background: linear-gradient(180deg, #fff, var(--paper-warm));
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.repair-info-box .col-half {
  width: calc(50% - 14px);
  float: left;
  padding: 0;
}
.repair-info-box .col-half + .col-half { margin-left: 28px; }
.repair-info-box h3 { margin-bottom: 14px; font-size: 1.2rem; }
.repair-info-box ul li {
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  list-style: none;
}
.repair-info-box ul li:last-child { border-bottom: none; }
.repair-info-box ul li span:first-child {
  color: var(--teal-500);
  font-weight: 700;
  margin-right: 8px;
}
.repair-info-box .cta-center {
  clear: both;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

#share-buttons { text-align: center; padding: 32px 0; }
#share-buttons a { display: inline-block; margin: 0 6px; vertical-align: middle; }
#share-buttons img {
  width: 36px; height: 36px;
  display: inline-block;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease;
  border-radius: 50%;
}
#share-buttons img:hover { opacity: 1; transform: translateY(-2px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero.has-intro { padding: 0; }
  .areas { padding: 64px 0; }
  .emergency-body { padding: 26px 24px; }
  .emergency-head { font-size: 1.25rem; padding: 20px 24px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 15px; }

  .header-row { justify-content: center; text-align: center; flex-direction: column; }
  nav.main ul { justify-content: center; }
  nav.main a { padding: 11px 16px; font-size: 0.85rem; }

  .hero { padding: 52px 0 48px; }
  .hero.has-intro { padding: 0; min-height: 620px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero.has-intro h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
  .hero p { font-size: 1rem; }

  .intro { min-height: 620px; padding: 56px 18px 44px; }
  .intro-meta { gap: 24px; }
  .intro-badge { font-size: 0.66rem; padding: 7px 14px 7px 10px; margin-bottom: 22px; }
  .intro-title { gap: 2px; margin-bottom: 22px; }
  .intro-line-3 { font-size: .62em; }
  .intro-sub { margin-bottom: 26px; font-size: 0.95rem; }
  .intro-cta { margin-bottom: 30px; flex-direction: column; width: 100%; max-width: 340px; }
  .intro-cta .btn { width: 100%; }
  .intro-progress { bottom: 22px; }

  .section { padding: 52px 0; }
  .emergency { margin: 40px 0; border-radius: var(--r-lg); }
  .emergency-head { font-size: 1.1rem; padding: 18px 20px; flex-wrap: wrap; }
  .emergency-steps { grid-template-columns: 1fr; gap: 14px; }
  .emergency-cta .btn { display: flex; width: 100%; }

  .repair-info-box { padding: 26px 22px; }
  .repair-info-box .col-half { width: 100%; float: none; margin: 0 0 20px; }
  .repair-info-box .col-half + .col-half { margin-left: 0; }

  table.price { font-size: 0.84rem; }
  table.price th, table.price td { padding: 12px 14px; }

  .btn, .button, .button1, .button2 { width: 100%; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }

  .footer-grid { gap: 28px; }

  /* City-page specifics */
  .wrap > .emergency:first-of-type { margin-top: 30px; margin-bottom: 30px; }
  .cases .case-grid { grid-template-columns: 1fr; }
  .section .grid > .card { padding: 20px 20px 18px; }
  .section .road-note { padding: 16px 18px; font-size: 0.88rem; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .emergency-head .pulse,
  .emergency,
  .emergency::before,
  .intro-grid,
  .intro-scan,
  .intro-sweep,
  .intro-progress span { animation: none !important; }
  .intro-line, .intro-badge, .intro-sub, .intro-cta, .intro-meta {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .intro-scan, .intro-sweep, .intro-progress { display: none; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  nav.main, .emergency-bar, .phone-cta, footer.site, #share-buttons { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  body::before { display: none; }
  a { color: #000; text-decoration: underline; }
  .hero, .areas, footer.site { background: #fff !important; color: #000 !important; }
  .hero h1, .hero p, .areas h2, .areas .lead,
  .area-cols h4, .area-cols ul, .road-note { color: #000 !important; }
  .card, .case, .guarantee, .emergency { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
}