/* AN Repair Services — Design System
   Static site, no build step. System fonts only (zero font-load latency / CLS). */

/* ===== Tokens ===== */
:root {
  --navy-900: #0a2540;
  --navy-800: #0d3255;
  --navy-700: #0f3d63;
  --navy-600: #134a78;
  --blue-500: #1d6fa5;
  --amber-500: #f0a202;
  --amber-600: #c98200;
  --green-600: #128c4a;
  --green-700: #0f7a3f;
  --gray-50: #f7f9fb;
  --gray-100: #eef2f6;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #516170;
  --gray-700: #3a4552;
  --gray-800: #27323d;
  --gray-900: #161e27;
  --white: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --success: #1e8449;
  --success-bg: #eafaf0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.16);

  --container-w: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--navy-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { color: var(--gray-700); }
strong { color: var(--gray-900); }

/* ===== Layout utilities ===== */
.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 6vw, 96px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-alt { background: var(--gray-50); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--gray-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #c7d4e0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-500); background: #eaf3fa; padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-dark .eyebrow { background: rgba(255,255,255,0.1); color: #bcd9ef; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.text-lead { font-size: 1.1rem; color: var(--gray-600); margin-top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy-900); color: var(--white); padding: 12px 18px;
  border-radius: var(--radius-sm); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.98rem;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--amber-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: var(--green-600); color: var(--white); }
.btn-whatsapp:hover { background: var(--green-700); }
.btn-outline { background: transparent; color: var(--navy-800); border: 2px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--navy-700); }
.section-dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy-900); }
.brand-mark {
  width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--navy-800);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.brand-text-sub { display: block; font-size: 0.7rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0.03em; }

.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop > ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--gray-700); font-size: 0.96rem;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy-800); background: var(--gray-100); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--gray-100); }
.dropdown a span.d-title { font-weight: 700; color: var(--navy-900); font-size: 0.93rem; }
.dropdown a span.d-desc { font-size: 0.8rem; color: var(--gray-600); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative;
}
.menu-toggle::before { transform: translateY(-6px); }
.menu-toggle::after { transform: translateY(4px); }

.nav-mobile {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
  z-index: 999; overflow-y: auto; padding: 20px;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile .nav-link { padding: 16px 14px; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
.nav-mobile .submenu { padding-left: 14px; display: none; flex-direction: column; }
.nav-mobile .submenu.is-open { display: flex; }
.nav-mobile .submenu a { padding: 12px 14px; color: var(--gray-600); font-weight: 600; font-size: 0.95rem; }
.nav-mobile-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 960px) {
  .nav-desktop, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 65%, var(--blue-500)); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding-block: 44px; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #dfeaf4; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; }
.hero h1 { color: var(--white); }
.hero .text-lead { color: #cfe0ee; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; }
.hero-media .media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.15);
  aspect-ratio: 4 / 3;
}
.hero-stat-card {
  position: absolute; bottom: -22px; left: -22px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
@media (max-width: 900px) { .hero-stat-card { position: static; margin-top: 16px; } }
.hero-stat-card strong { display: block; font-size: 1.3rem; color: var(--navy-900); }
.hero-stat-card span { font-size: 0.8rem; color: var(--gray-600); }

.media-frame { position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Placeholder graphic frame (used instead of real photos) ===== */
.ph-frame {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--gray-500); position: relative;
}
.ph-frame svg { width: 46%; height: 46%; opacity: 0.55; }
.ph-frame figcaption {
  position: absolute; bottom: 10px; left: 10px; right: 10px; font-size: 0.68rem; color: var(--gray-500);
  background: rgba(255,255,255,0.85); border-radius: var(--radius-sm); padding: 4px 8px; text-align: center;
}

/* ===== Cards ===== */
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: #eaf3fa; color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin-bottom: 16px; font-size: 0.95rem; }
.service-card .card-link { font-weight: 700; color: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link:hover { color: var(--blue-500); }

.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-100); color: var(--gray-700); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.badge-amber { background: #fdf1dc; color: var(--amber-600); }
.badge-green { background: var(--success-bg); color: var(--success); }

/* ===== Stats ===== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--white); }
.stat-item span { font-size: 0.85rem; color: #c7d4e0; }

/* ===== Testimonials ===== */
.testimonial-card { display: flex; flex-direction: column; gap: 14px; }
.stars { color: var(--amber-500); letter-spacing: 2px; font-size: 0.95rem; }
.testimonial-card p.quote { color: var(--gray-700); font-style: italic; }
.testimonial-who { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.testimonial-who strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.testimonial-who span { font-size: 0.78rem; color: var(--gray-600); }

/* ===== Process steps ===== */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-row { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 8px; }
.process-num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}
.process-num::before { content: counter(step); }

/* ===== Breadcrumbs ===== */
.breadcrumb-strip { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-block: 14px; font-size: 0.85rem; color: var(--gray-600); }
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list a { color: var(--gray-600); font-weight: 600; }
.breadcrumb-list a:hover { color: var(--navy-800); }
.breadcrumb-list li[aria-current] { color: var(--navy-900); font-weight: 700; }

/* ===== Accordion (FAQ) — native details/summary, zero JS ===== */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white); overflow: hidden;
}
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue-500); flex-shrink: 0; transition: transform 0.2s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 22px 20px; color: var(--gray-600); }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 0.96rem;
  background: var(--white); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(29,111,165,0.15); outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 0.78rem; color: var(--gray-600); }
.field .error-msg { font-size: 0.8rem; color: var(--danger); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }
.file-drop {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-md); padding: 22px; text-align: center; color: var(--gray-600);
}
.form-alert { border-radius: var(--radius-md); padding: 16px 18px; font-weight: 600; margin-bottom: 20px; display: none; }
.form-alert.is-visible { display: block; }
.form-alert.success { background: var(--success-bg); color: var(--success); }
.form-alert.error { background: var(--danger-bg); color: var(--danger); }

/* ===== FABs (floating action buttons) ===== */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); color: var(--white);
}
.fab-whatsapp { background: var(--green-600); }
.fab-call { background: var(--navy-800); }
.fab svg { width: 26px; height: 26px; }
.back-to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.sticky-book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: var(--white);
  border-top: 1px solid var(--gray-200); box-shadow: 0 -8px 24px rgba(10,37,64,0.08);
  padding: 10px 16px; display: none; gap: 10px;
}
@media (max-width: 720px) { .sticky-book-bar { display: flex; } body { padding-bottom: 74px; } }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Pricing table ===== */
.price-table { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.price-table table { font-size: 0.95rem; }
.price-table th, .price-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--gray-100); }
.price-table th { background: var(--gray-50); color: var(--navy-900); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.amount { font-weight: 800; color: var(--navy-900); white-space: nowrap; }
.price-note { font-size: 0.82rem; color: var(--gray-600); padding: 14px 20px; background: var(--gray-50); }

/* ===== Blog cards ===== */
.blog-card .blog-meta { font-size: 0.78rem; color: var(--gray-600); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card h3 { margin-bottom: 10px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #b9c8d6; }
.footer-top { padding-block: 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-top ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-top a:hover { color: var(--white); }
.footer-brand p { color: #94a7b8; font-size: 0.9rem; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-block: 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #8398aa;
}
.footer-bottom a:hover { color: var(--white); }

/* ===== Misc ===== */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
.divider { height: 1px; background: var(--gray-200); margin-block: 40px; }
.brand-logo-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.brand-chip { padding: 10px 18px; border: 1px solid var(--gray-200); border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem; color: var(--gray-700); background: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.list-check { display: flex; flex-direction: column; gap: 14px; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; }
.list-check .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--success-bg); color: var(--success); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; margin-top: 2px; }
