/* =====================================================================
   iRepair Service Allen — main stylesheet
   ===================================================================== */
:root {
  --red: #d7262e;
  --red-dark: #b81d24;
  --red-soft: rgba(215, 38, 46, 0.06);
  --navy: #1a3d7c;
  --navy-deep: #0f2b5c;
  --navy-2: #15356d;
  --navy-hover: #3a5789;
  --ink: #1e293b;
  --body: #64748b;
  --muted: #94a3b8;
  --line: #e4e7ec;
  --line-soft: #eff1f5;
  --bg-alt: #f7f8fa;
  --white: #fff;
  --footer: #2c1f23;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 40px rgba(15, 43, 92, 0.12);
  --container: 1170px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(215, 38, 46, .45); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; border-radius: var(--radius-sm); border: 1.6px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.1; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; box-shadow: 0 10px 22px rgba(215, 38, 46, .3); }
.btn-outline-light { background: transparent; border-color: #899ab8; color: #fff; }
.btn-outline-light:hover { background: var(--navy-hover); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 12px 18px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 16px;
  border-radius: 50px; border: .8px solid rgba(215, 38, 46, .14); background: rgba(215, 38, 46, .04);
  color: var(--red); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; line-height: 1.4;
}
.eyebrow-dark { background: rgba(215, 38, 46, .14); border-color: rgba(215, 38, 46, .3); color: #ffc5c7; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 40px; margin-bottom: 14px; }
.section-head p { font-size: 16.5px; margin: 0; }

/* ---------- Top bar ---------- */
.topbar { background: #d11c1e; color: #fff; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #ffe1e2; }
.topbar .icon { width: 14px; height: 14px; }
.social { display: flex; gap: 10px; list-style: none; }
.social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; }
.social a:hover { background: rgba(255, 255, 255, .15); }
.social .icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-img { display: block; height: 72px; width: auto; }
.main-nav ul { display: flex; align-items: center; list-style: none; gap: 2px; }
.main-nav a { display: block; white-space: nowrap; padding: 12px 13px; font-size: 14.5px; font-weight: 500; color: #333; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #d11c1e; }
.main-nav a[aria-current="page"] { font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--navy);
  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: 44px 44px;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 38, 46, .22), transparent 65%); pointer-events: none;
}
.hero { padding: 80px 0 90px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; margin-bottom: 22px;
  border-radius: 50px; background: rgba(39, 39, 39, .28); border: .8px solid rgba(160, 160, 160, .49);
  color: #ffc5c7; font-size: 13px; font-weight: 600; letter-spacing: .4px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 46, .3); }
.hero h1 { color: #fff; font-size: 54px; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 22px; }
.hero-lead { color: #e9e9e9; font-size: 17px; font-weight: 500; line-height: 1.65; max-width: 560px; margin-bottom: 32px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin-top: 30px; font-size: 14px; font-weight: 500; color: #e9e9e9; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 18px; height: 18px; color: var(--red); background: #fff; border-radius: 50%; padding: 3px; }
.hero-visual { position: relative; }
.hero-card { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.hero-card svg, .hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 440; object-fit: cover; border-radius: 14px; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); color: var(--ink); font-size: 13.5px; font-weight: 700;
}
.float-chip small { display: block; font-weight: 500; color: var(--body); font-size: 12px; }
.float-chip .chip-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--red); }
.float-chip .chip-icon .icon { width: 20px; height: 20px; }
.chip-1 { left: -26px; bottom: 36px; }
.chip-2 { right: -18px; top: 30px; }
.chip-2 .chip-icon { background: var(--green); }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 44px; margin-bottom: 10px; }
.page-hero p { color: #e9e9e9; font-size: 17px; font-weight: 500; max-width: 640px; margin-bottom: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13.5px; margin-bottom: 14px; color: #c9d3e6; }
.breadcrumbs a { color: #fff; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---------- Stats band ---------- */
.stats { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; flex: none; border-radius: 12px; background: #fff; color: var(--red); display: grid; place-items: center; }
.stat-icon .icon { width: 24px; height: 24px; }
.stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .88); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: .8px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service-card { display: flex; flex-direction: column; }
.icon-tile { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.icon-tile .icon { width: 26px; height: 26px; }
.tone-blue { --tone: var(--blue); }
.tone-violet { --tone: var(--violet); }
.tone-green { --tone: var(--green); }
.tone-red { --tone: var(--red); }
.tone-navy { --tone: var(--navy); }
[class*="tone-"] .icon-tile { color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, white); }
[class*="tone-"] .link-arrow { color: var(--tone); }
.service-card h3 { font-size: 20px; margin-bottom: 14px; }
.dot-list { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; flex: 1; font-size: 14.5px; }
.dot-list li { display: flex; align-items: center; gap: 10px; }
.dot-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--red)); flex: none; }

/* ---------- Why choose us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.media-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-alt); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.glass-card {
  position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
}
.glass-card strong { display: block; font-size: 15px; }
.glass-card small { font-size: 12.5px; opacity: .9; }
.glass-card .chip-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--red); display: grid; place-items: center; }
.glass-card .icon { width: 21px; height: 21px; }
.split h2 { font-size: 40px; margin-bottom: 16px; }
.split-lead { margin-bottom: 28px; }
.pill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; }
.pill-grid li {
  display: flex; align-items: center; gap: 11px; padding: 15px 16px; border-radius: 14px;
  background: var(--bg-alt); border: .8px solid var(--line-soft); color: var(--ink); font-size: 14.5px; font-weight: 600;
  transition: background .25s, border-color .25s;
}
.pill-grid li:hover { background: #fff; border-color: rgba(215, 38, 46, .25); }
.check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.check .icon { width: 13px; height: 13px; }

/* ---------- Process ---------- */
.step { position: relative; }
.step-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.step .icon-tile { margin: 0; color: #fff; background: var(--tone); }
.step-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--line-soft); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }

/* ---------- Reviews ---------- */
.rating-summary { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -16px 0 36px; color: var(--ink); }
.rating-summary strong { font-size: 18px; letter-spacing: 1px; }
.stars { display: inline-flex; gap: 2px; color: #f6b01e; }
.stars .icon { width: 20px; height: 20px; }
.review { background: #f4f4f4; border-radius: 14px; padding: 22px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--navy); flex: none; }
.review-head strong { display: block; color: var(--ink); font-size: 15px; }
.review-head small { font-size: 12.5px; }
.review .stars .icon { width: 16px; height: 16px; }
.review p { margin: 10px 0 0; font-size: 14.5px; color: #333; }
.review blockquote, .review figure { margin: 0; }
figure.review { margin: 0; }
.reviews-cta { text-align: center; margin-top: 30px; }

/* ---------- CTA box ---------- */
.cta-box {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 24px; padding: 72px 40px;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy-2));
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: 46px; max-width: 760px; margin: 0 auto 16px; }
.cta-box p { color: #d5dcea; max-width: 620px; margin: 0 auto 32px; font-size: 16.5px; }
.cta-box .btn-row { justify-content: center; }
.cta-box .trust-list { justify-content: center; }

/* ---------- SEO block ---------- */
.seo-block h2 { font-size: 28px; }
.seo-intro { max-width: 820px; margin-bottom: 34px; }
.seo-group { margin-bottom: 26px; }
.seo-group h3 { font-size: 19px; margin-bottom: 8px; }
.seo-links { display: flex; flex-wrap: wrap; list-style: none; font-size: 14px; line-height: 1.9; }
.seo-links li:not(:last-child)::after { content: "•"; color: var(--muted); margin: 0 9px; }

/* ---------- Service page layout ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding: 56px 0 80px; }
.content-box { border: .8px solid var(--line); border-radius: var(--radius); padding: 44px; background: #fff; }
.sidebar { position: sticky; top: 112px; display: grid; gap: 22px; }
.side-box { border: .8px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.side-box h3 { font-size: 19px; margin-bottom: 16px; }
.side-links { list-style: none; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.side-links a:hover, .side-links a[aria-current="page"] { background: var(--red-soft); color: var(--red); }
.side-links .icon { width: 16px; height: 16px; }
.side-cta { background: linear-gradient(180deg, var(--navy-deep), var(--navy-2)); color: #d5dcea; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta .btn { width: 100%; margin-top: 10px; }
.side-hours { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.side-hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.side-hours strong { color: var(--ink); }

.prose { color: var(--body); font-size: 16px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 30px; margin: 1.7em 0 .55em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--red); }
.prose img { border-radius: 14px; margin: 1.6em auto; height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--red); background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--ink); font-style: italic; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.prose code { background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; margin: 1.6em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; } .prose .ql-indent-3 { padding-left: 6em; }
.prose .ql-size-small { font-size: .85em; } .prose .ql-size-large { font-size: 1.35em; } .prose .ql-size-huge { font-size: 1.8em; }
.cover-img { width: 100%; border-radius: 14px; margin: 0 0 30px; aspect-ratio: 16 / 9; object-fit: cover; }

.feature-list { display: grid; gap: 22px; margin: 8px 0 10px; }
.feature { display: flex; gap: 16px; }
.feature .check { width: 30px; height: 30px; margin-top: 2px; }
.feature .check .icon { width: 15px; height: 15px; }
.feature h3 { font-size: 17.5px; margin: 0 0 4px; }
.feature p { margin: 0; font-size: 15px; }
.check-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 10px; padding: 0 !important; }
.check-grid li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; margin: 0; }
.timeline { list-style: none; padding: 0 !important; display: grid; gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 26px 58px; margin: 0; }
.timeline li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.timeline h3 { font-size: 17.5px; margin: 0 0 4px; }
.timeline p { margin: 0; font-size: 15px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 !important; }
.tag-list li { margin: 0; padding: 8px 14px; border-radius: 50px; background: var(--bg-alt); border: 1px solid var(--line-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.inline-cta { margin-top: 40px; padding: 34px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line-soft); }
.inline-cta h2 { margin-top: 0 !important; font-size: 26px !important; }

/* ---------- About ---------- */
.about-text p { margin-bottom: 1em; }
.values { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-grid h2 { font-size: 38px; }
.info-list { list-style: none; display: grid; gap: 22px; margin: 30px 0; }
.info-list li { display: flex; gap: 16px; }
.info-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.info-icon .icon { width: 22px; height: 22px; }
.info-list h3 { font-size: 17px; margin: 0 0 2px; }
.info-list a, .info-list p { color: var(--body); margin: 0; }
.info-list a:hover { color: var(--red); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.form-card { border: .8px solid var(--line); border-radius: 20px; padding: 38px; box-shadow: var(--shadow); background: #fff; }
.form-card h2 { font-size: 26px; text-align: center; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d4d9e1; border-radius: 9px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 46, .1); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; text-align: center; margin: 14px 0 0; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Legal ---------- */
.legal { max-width: 860px; padding: 64px 20px 90px; }
.legal h1 { font-size: 42px; }
.legal .updated { font-size: 14px; margin-bottom: 28px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: .8px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img .icon { width: 48px; height: 48px; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 14px; height: 14px; }
.post-card h2, .post-card h3 { font-size: 19.5px; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: 14.5px; flex: 1; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.post-hero .post-meta { color: #c9d3e6; font-size: 14px; margin: 0; }
.post-hero h1 { max-width: 900px; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 14px; }
.share a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); }
.share a:hover { background: var(--red); color: #fff; }
.share .icon { width: 17px; height: 17px; }
.recent-posts { list-style: none; display: grid; gap: 14px; }
.recent-posts a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.recent-posts img, .recent-posts .ph { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-alt); }
.recent-posts a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .7); font-size: 14.5px; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.site-footer .logo { display: inline-block; margin-bottom: 18px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.site-footer .logo-img { height: 96px; }
.site-footer h2 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .78); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 14px; margin-bottom: 18px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--red); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; list-style: none; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: #383838; color: #fff; display: grid; place-items: center; transition: background .25s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-social .icon { width: 17px; height: 17px; }
.footer-map { border-radius: 12px; overflow: hidden; height: 140px; }
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.footer-bottom { border-top: .8px solid rgba(255, 255, 255, .18); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom ul { display: flex; gap: 22px; list-style: none; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: #fff; }

/* Mobile call button */
.call-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; place-items: center; box-shadow: 0 12px 28px rgba(215, 38, 46, .45); }
.call-fab .icon { width: 25px; height: 25px; }
.call-fab:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.not-found { text-align: center; padding: 110px 20px; }
.not-found .big { font-size: 120px; font-weight: 800; color: var(--line-soft); line-height: 1; }

/* =====================================================================
   Responsive
   ===================================================================== */
/* Header: menu button (☰) up to 1100px so links never get squeezed onto two lines */
@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; z-index: 70; padding: 90px 22px 30px;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 40px rgba(0, 0, 0, .12); overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 16px; border-radius: 10px; }
  .main-nav a[aria-current="page"] { background: var(--red-soft); }
  .main-nav .mobile-only { display: block; margin-top: 14px; }
  .main-nav .mobile-only .btn { display: flex; color: #fff; background: var(--red); }
  .nav-toggle { position: relative; z-index: 80; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}
@media (max-width: 1100px) {
  .hero h1 { font-size: 46px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1101px) { .mobile-only, .nav-backdrop { display: none; } }
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .topbar .container { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
  .topbar .social { display: none; }
  .header-inner { min-height: 76px; }
  .site-header .logo-img { height: 58px; }
  .hero { padding: 54px 0 64px; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 34px; }
  .section-head h2, .split h2, .contact-grid h2 { font-size: 30px; }
  .cta-box { padding: 50px 22px; }
  .cta-box h2 { font-size: 32px; }
  .grid-4, .grid-3, .grid-2, .pill-grid, .check-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat { flex-direction: column; text-align: center; gap: 8px; }
  .content-box { padding: 26px 20px; }
  .form-card { padding: 26px 20px; }
  .chip-1 { left: 8px; bottom: -18px; } .chip-2 { right: 8px; top: -18px; }
  .call-fab { display: grid; }
  .btn-row .btn { flex: 1 1 auto; }
  .prose h2 { font-size: 25px; }
}

/* ---------- Final responsive overrides (keep at the end) ---------- */
/* Side spacing: tablets 20px, phones 10px */
@media (max-width: 1024px) { .container { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 767px) { .container { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 680px) {
  /* footer: brand + contact full width, Quick Links and Services side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .site-footer { padding-top: 48px; }
  .footer-links { gap: 4px; }
  .footer-links a { display: inline-block; padding: 6px 0; }              /* bigger tap targets */
  .footer-bottom { padding-bottom: 92px; justify-content: center; text-align: center; }   /* room for the round call button */
  .footer-bottom ul { justify-content: center; }
}
@media (max-width: 400px) {
  .hero h1, .page-hero h1 { font-size: 29px; }
  .topbar { font-size: 12.5px; }
  .topbar-info { justify-content: center; gap: 4px 14px; }
  .site-footer .logo-img { height: 84px; }
}
