/* ==========================================================================
   AccelStart Global Stylesheet
   Theme: Black + White + Orange
   ========================================================================== */

/* ---------- 1. CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

/* ---------- 2. Design Tokens ---------- */
:root {
  --c-orange:        #FF6A1A;
  --c-orange-dark:   #E55A0F;
  --c-orange-light:  #FF8A4A;
  --c-orange-tint:   #FFF1E8;

  --c-black:         #0A0A0A;
  --c-ink:           #1A1A1A;
  --c-ink-2:         #3A3A3A;
  --c-mute:          #6B6B6B;
  --c-line:          #E6E6E6;
  --c-soft:          #F7F7F7;
  --c-bg:            #FFFFFF;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm:  0 2px 8px rgba(10,10,10,.06);
  --shadow:     0 8px 24px rgba(10,10,10,.08);
  --shadow-lg:  0 24px 60px rgba(10,10,10,.12);
  --shadow-orange: 0 12px 32px rgba(255,106,26,.28);

  --container: 1200px;
  --gutter: 1.25rem;

  --t-fast: .15s ease;
  --t-base: .25s ease;
  --t-slow: .4s cubic-bezier(.22,.61,.36,1);
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-dark { background: var(--c-black); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-soft { background: var(--c-soft); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Services grid (homepage "Hire Us For"): force a clean 3 × 2 layout on desktop */
.services-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .services-grid { grid-template-columns: 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; gap: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-orange { color: var(--c-orange); }
.text-mute { color: var(--c-mute); }
.text-white { color: #fff; }
.text-small { font-size: .85rem; }
.text-h3 { font-size: 1.5rem; }

/* Spacing utilities (used to replace inline styles for cleaner HTML & better PageSpeed) */
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.25rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 2rem; }

/* Section header (centered eyebrow + heading + lead) */
.section-head { max-width: 720px; margin: 0 auto 3rem; }
.lead-mt { margin: 1rem auto 0; }

/* Footer paragraph width */
.max-38 { max-width: 38ch; }

/* Misc */
.d-block { display: block; }
.d-none { display: none; }
.cursor-default { cursor: default; }
.opacity-60 { opacity: .6; }
.fw-600 { font-weight: 600; }

/* Breadcrumb (in blog posts) */
.breadcrumb { color: var(--c-mute); }

/* Section divider used between blog post body and CTA */
.rule { margin: 3rem 0; border: none; border-top: 1px solid var(--c-line); }

/* Contact page two-column layout (form + sidebar) */
.contact-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Visually-hidden honeypot (anti-spam form trap) */
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; pointer-events: none; }

/* Email obfuscation — JS replaces the placeholder with the real address at runtime */
.email[data-u]:empty::before { content: "[email protected]"; }
.email[data-u].ready::before { content: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-orange);
  padding: .4rem .9rem; border: 1px solid var(--c-orange);
  border-radius: 999px; background: var(--c-orange-tint);
}
.section-dark .eyebrow { background: rgba(255,106,26,.12); }

h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--c-ink-2); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--c-ink-2); max-width: 65ch; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 2px solid transparent;
  transition: all var(--t-base); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--c-orange); color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--c-orange-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--c-ink); border-color: var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.section-dark .btn-outline { color: #fff; border-color: #fff; }
.section-dark .btn-outline:hover { background: #fff; color: var(--c-black); }
.btn-ghost { color: var(--c-orange); }
.btn-ghost:hover { color: var(--c-orange-dark); gap: .8rem; }
.btn-arrow::after { content: "→"; transition: transform var(--t-base); }
.btn:hover.btn-arrow::after { transform: translateX(4px); }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 2rem; }
.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.25rem; color: var(--c-ink); line-height: 0; }
.brand-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
}
/* Source logo is white-on-transparent. Invert it for the light header so the wordmark reads on white. */
.site-header .brand-img { filter: invert(1); }
/* Footer + dark sections keep the white original */
.site-footer .brand-img,
.section-dark .brand-img { filter: none; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu > li { position: relative; }
.nav-menu a {
  font-weight: 500; font-size: .95rem; color: var(--c-ink);
  padding: .5rem 0; position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--c-orange); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-orange); border-radius: 2px;
}
.has-submenu > a::after { content: " ▾"; font-size: .7rem; color: var(--c-mute); }

.submenu {
  position: absolute; top: calc(100% + 12px); left: -16px;
  background: #fff; min-width: 240px; padding: .75rem;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--t-base);
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .85rem; border-radius: 8px;
  font-size: .95rem; color: var(--c-ink); font-weight: 500;
}
.submenu li a:hover { background: var(--c-orange-tint); color: var(--c-orange); }
.submenu .icon-box {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--c-orange-tint); display: grid; place-items: center;
  color: var(--c-orange); flex-shrink: 0;
}

.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: 10px; background: var(--c-ink); color: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-black); color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(255,106,26,.30), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(255,106,26,.18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  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: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--c-orange); }
.hero p { color: rgba(255,255,255,.78); margin-top: 1.25rem; font-size: 1.125rem; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  margin-top: 3rem; display: grid; grid-template-columns: repeat(3, auto);
  gap: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; color: var(--c-orange); font-weight: 700;
}
.hero-stats .stat span { color: rgba(255,255,255,.7); font-size: .85rem; }

.hero-visual {
  position: relative; aspect-ratio: 1/1; max-width: 480px;
  justify-self: end; width: 100%;
}
.hero-visual .orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-orange) 0%, var(--c-orange-dark) 60%, transparent 70%);
  filter: blur(4px); opacity: .85;
  animation: float 6s ease-in-out infinite;
}
.hero-visual .card {
  position: absolute; background: #fff; color: var(--c-ink);
  padding: 1rem 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem;
  font-weight: 600; font-size: .9rem;
}
.hero-visual .card .icon-box {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--c-orange-tint); color: var(--c-orange);
  display: grid; place-items: center;
}
.hero-visual .card.c1 { top: 10%; left: -8%; animation: float 5s ease-in-out infinite; }
.hero-visual .card.c2 { top: 50%; right: -10%; animation: float 6s ease-in-out infinite reverse; }
.hero-visual .card.c3 { bottom: 8%; left: 12%; animation: float 7s ease-in-out infinite .5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 7. Service Cards ---------- */
.service-card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--t-base); position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, var(--c-orange-tint), transparent);
  transition: opacity var(--t-base);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--c-orange); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card .icon-box {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--c-black); color: var(--c-orange);
  display: grid; place-items: center; margin-bottom: 1.25rem;
  transition: all var(--t-base);
}
.service-card:hover .icon-box { background: var(--c-orange); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card .icon-box svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .65rem; }
.service-card p { color: var(--c-mute); font-size: .95rem; }

/* ---------- 8. Feature blocks ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
  background: var(--c-soft);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { margin-top: 1.5rem; display: grid; gap: .75rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; color: var(--c-ink-2); }
.checklist li::before {
  content: "✓"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-orange); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  margin-top: 2px;
}

/* ---------- 9. Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.why-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid var(--c-line); transition: all var(--t-base);
}
.why-card:hover { border-color: var(--c-orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card .num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem;
  font-weight: 700; color: var(--c-orange); display: block; margin-bottom: .5rem;
}

/* ---------- 10. CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-dark));
  color: #fff; border-radius: var(--radius-xl); padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner h2 { color: #fff; max-width: 28ch; position: relative; }
.cta-banner p { color: rgba(255,255,255,.92); margin-top: .5rem; max-width: 50ch; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .btn-outline { border-color: #fff; color: #fff; }
.cta-banner .btn-outline:hover { background: #fff; color: var(--c-orange); }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--c-black); color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem; position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid a { color: rgba(255,255,255,.7); display: inline-block; padding: .25rem 0; transition: color var(--t-base); }
.footer-grid a:hover { color: var(--c-orange); }
.footer-grid p { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-grid .brand { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5);
}
.social { display: flex; gap: .5rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: #fff !important; padding: 0;
}
.social a:hover { background: var(--c-orange); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- 12. Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.form-field { display: grid; gap: .4rem; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.form-field label .req { color: var(--c-orange); }
.form-control {
  width: 100%; padding: .9rem 1rem; border: 2px solid var(--c-line);
  border-radius: var(--radius); background: #fff; color: var(--c-ink);
  transition: all var(--t-base);
}
.form-control:focus { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 4px rgba(255,106,26,.12); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-msg {
  padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500;
  display: none;
}
.form-msg.success { display: block; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-msg.error { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- 13. Page Hero (sub pages) ---------- */
.page-hero {
  background: var(--c-black); color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 100% 0%, rgba(255,106,26,.25), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,.78); margin-top: 1rem; max-width: 60ch; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb .sep { opacity: .5; }

/* ---------- 14. Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--c-line); transition: all var(--t-base);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--c-orange); box-shadow: var(--shadow-lg); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--c-soft); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.blog-card .tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-orange);
}
.blog-card h3 { font-size: 1.2rem; }
.blog-card .meta { margin-top: auto; font-size: .85rem; color: var(--c-mute); padding-top: .5rem; border-top: 1px solid var(--c-line); }

.post {
  max-width: 760px; margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.post header { margin-bottom: 2.5rem; }
.post .meta { color: var(--c-mute); font-size: .9rem; margin-top: 1rem; }
.post .featured-img {
  border-radius: var(--radius-lg); overflow: hidden;
  margin: 2rem 0; aspect-ratio: 16/9;
}
.post .featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post h2 { margin: 2.5rem 0 1rem; }
.post h3 { margin: 1.5rem 0 .75rem; }
.post p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--c-ink-2); }
.post ul, .post ol { margin: 1rem 0 1.5rem 1.5rem; }
.post ul li, .post ol li { margin-bottom: .5rem; color: var(--c-ink-2); list-style: disc; }
.post ol li { list-style: decimal; }
.post blockquote {
  border-left: 4px solid var(--c-orange);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--c-orange-tint); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--c-ink);
}
.post a { color: var(--c-orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. Contact info cards ---------- */
.contact-info { display: grid; gap: 1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--c-line);
}
.info-card .icon-box {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: var(--c-orange-tint); color: var(--c-orange);
  display: grid; place-items: center;
}
.info-card h4 { margin-bottom: .25rem; font-size: 1rem; }
.info-card p, .info-card a { color: var(--c-mute); font-size: .95rem; }
.info-card a:hover { color: var(--c-orange); }

/* ---------- 16. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 17. Responsive ---------- */

/* Tablet landscape & smaller — stack big two-column layouts */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 380px; margin-top: 2rem; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Contact page: form + sidebar should stack */
  .container > .grid[style*="1.4fr"] { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}

/* Tablet portrait & mobile — switch to hamburger menu */
@media (max-width: 1024px) {
  .nav { gap: 1rem; }
  .nav-toggle { display: inline-flex !important; }

  /* Off-canvas drawer — hidden via display:none for guaranteed paint when reopened */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem;
    gap: 0;
    margin: 0;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    animation: drawerIn .35s cubic-bezier(.22,.61,.36,1);
  }
  .nav-menu.open { display: flex; }

  .nav-menu > li {
    list-style: none;
    width: 100%;
    border-bottom: 1px solid var(--c-line);
    position: relative;
  }
  .nav-menu > li > a {
    display: block !important;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--c-ink) !important;
    background: transparent;
    text-decoration: none;
  }
  .nav-menu > li > a:hover { color: var(--c-orange) !important; }
  .nav-menu > li > a.active { color: var(--c-orange) !important; }
  .nav-menu > li > a.active::after { display: none; }

  .has-submenu > a::after {
    float: right;
    transition: transform .25s ease;
    color: var(--c-mute);
  }
  .has-submenu.open > a::after { transform: rotate(180deg); }

  /* Submenu becomes an inline accordion under its parent */
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 .75rem .75rem;
    display: none;
    min-width: 0;
    background: transparent;
  }
  .has-submenu.open .submenu { display: block; }
  .submenu li { list-style: none; }
  .submenu li a {
    color: var(--c-ink) !important;
    background: transparent;
  }

  /* Hide the "Get a Quote" CTA next to the hamburger to save space */
  .nav-cta .btn { display: none; }

  /* Lock body scroll when drawer is open (added by JS via .body-scroll-lock helper too) */
  body.nav-open { overflow: hidden; }
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateX(8%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Phone — tighter spacing, full-width inputs */
@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-stats .stat strong { font-size: 1.5rem; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .brand-img { height: 32px; max-width: 140px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav { gap: .5rem; }
  .brand-img { height: 28px; max-width: 120px; }
  .nav-toggle { width: 40px; height: 40px; }
  h1 { font-size: 2rem; }
}

/* ---------- 18. A11y helpers ---------- */
.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;
}
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
