/* ==========================================================================
   Khuaish Insurance — Design System
   ========================================================================== */

:root {
  --navy-900: #081b2e;
  --navy-800: #0a2e4d;
  --navy-700: #123a63;
  --navy-600: #1b4f8c;
  --blue-500: #2569b3;
  --gold-500: #e8a33d;
  --gold-600: #c9862a;
  --teal-500: #159c85;
  --teal-050: #e7f6f3;
  --bg-light: #f6f8fb;
  --bg-white: #ffffff;
  --text-dark: #16233a;
  --text-body: #3d4a5c;
  --text-muted: #6b7787;
  --border-light: #e3e8ef;
  --shadow-sm: 0 2px 8px rgba(10, 46, 77, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 46, 77, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 46, 77, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text-dark);
  margin: 0 0 0.5em;
  line-height: 1.22;
  font-weight: 600;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 12px 20px;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(232, 163, 61, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(232, 163, 61, 0.45); }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 46, 77, 0.28);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  font-size: 0.86rem;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-bar a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.top-bar a:hover { color: var(--gold-500); }
.top-bar-hours { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-social { display: flex; gap: 14px; align-items: center; }
.top-bar-social a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; }
.top-bar-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.top-bar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  transition: padding 0.3s ease;
}
.site-header.is-scrolled .navbar { padding: 10px 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-900); font-weight: 700; letter-spacing: 0.2px; }
.brand-text span { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-500); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy-900); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone { display: flex; align-items: center; gap: 10px; }
.nav-phone-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-050); color: var(--teal-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-phone-icon svg { width: 18px; height: 18px; }
.nav-phone-text { line-height: 1.15; }
.nav-phone-text small { display: block; font-size: 0.72rem; color: var(--text-muted); }
.nav-phone-text strong { font-family: var(--font-head); color: var(--navy-900); font-size: 1rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: all 0.3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8,27,46,0.94) 0%, rgba(10,46,77,0.86) 45%, rgba(10,46,77,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 120px 0 90px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--gold-500); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-500); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.86); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.hero-trust svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }

.hero-quote-card {
  position: absolute; right: 6%; bottom: 60px; z-index: 2;
  background: #fff; color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
  width: 300px;
  display: none;
}
.hero-quote-card strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-900); }
.hero-quote-card .stars { color: var(--gold-500); margin: 8px 0; }
.hero-quote-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  color: #fff;
  padding: 150px 0 90px;
  text-align: center;
  overflow: hidden;
}
.page-header .hero-bg { transform: scale(1); }
.page-header .hero-overlay { background: linear-gradient(180deg, rgba(8,27,46,0.92) 0%, rgba(10,46,77,0.88) 100%); }
.page-header-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.breadcrumbs { display: flex; justify-content: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--gold-500); }

/* ---------- Section basics ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section-header { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-header h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-header .eyebrow { color: var(--gold-600); }
.section-header.align-left { margin: 0 0 50px; text-align: left; }
.bg-light { background: var(--bg-light); }
.bg-navy { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
.reveal-delay-4.is-visible { transition-delay: 0.4s; }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 34px 0; border-bottom: 1px solid var(--border-light); }
.trust-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.trust-strip-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.trust-strip-item svg { width: 22px; height: 22px; color: var(--teal-500); flex-shrink: 0; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-050), #dff0f5);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-icon { background: var(--navy-900); color: var(--gold-500); transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800); font-size: 0.92rem; }
.service-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* ---------- Service detail cards (services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail.reverse .service-detail-body { order: 1; }
.service-detail-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.service-detail-media img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.6s ease; }
.service-detail-media:hover img { transform: scale(1.05); }
.service-detail-tag {
  position: absolute; top: 22px; left: 22px;
  background: rgba(255,255,255,0.92);
  color: var(--navy-900);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.service-detail-tag svg { width: 16px; height: 16px; color: var(--teal-500); }
.service-detail-body .service-icon { margin-bottom: 20px; }
.service-detail-body h3 { font-size: 1.9rem; }
.check-list { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--text-body); }
.check-list svg { width: 20px; height: 20px; color: var(--teal-500); flex-shrink: 0; margin-top: 2px; }
.service-detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Process / how it works ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { text-align: center; position: relative; padding: 0 10px; }
.process-step-num {
  width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.process-step h4 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; color: var(--text-muted); }
.process-connector {
  position: absolute; top: 32px; left: calc(50% + 45px); width: calc(100% - 90px);
  height: 2px; background: repeating-linear-gradient(90deg, var(--border-light) 0 8px, transparent 8px 16px);
}

/* ---------- Stats band ---------- */
.stats-band {
  position: relative;
  color: #fff;
  padding: 90px 0;
  overflow: hidden;
}
.stats-band .hero-overlay { background: linear-gradient(115deg, rgba(8,27,46,0.95), rgba(10,46,77,0.90)); }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--gold-500); }
.stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.78); margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: #fff; border-radius: var(--radius-md);
  padding: 34px 30px; border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--gold-500); display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-quote { font-size: 0.98rem; color: var(--text-body); margin-bottom: 24px; font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 14px; }
.testimonial-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 0.95rem; color: var(--navy-900); }
.testimonial-person span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 70px 60px;
  color: #fff;
  text-align: center;
  margin: 0 24px;
}
.cta-band .hero-overlay { background: linear-gradient(115deg, rgba(8,27,46,0.93), rgba(20,80,110,0.75)); }
.cta-band-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 26px; background: none; border: none; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy-900);
}
.faq-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-050); color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-item.is-open .faq-icon { background: var(--navy-900); color: var(--gold-500); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 26px 24px; color: var(--text-muted); font-size: 0.95rem; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ---------- About page ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 460px; object-fit: cover; }
.about-media-badge {
  position: absolute; bottom: -28px; left: -28px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 22px 26px; display: flex; align-items: center; gap: 16px;
}
.about-media-badge .stat-num { color: var(--navy-900); font-size: 2rem; }
.about-media-badge .stat-label { color: var(--text-muted); margin: 0; }
.about-body .eyebrow { color: var(--gold-600); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value-card { text-align: center; padding: 34px 22px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border-light); transition: transform .3s ease, box-shadow .3s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .service-icon { margin: 0 auto 20px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-photo { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.team-photo img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-card h4 { margin-bottom: 2px; font-size: 1.05rem; }
.team-card span { color: var(--teal-500); font-size: 0.86rem; font-weight: 600; }

.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px; background: var(--border-light); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.contact-info-card {
  background: var(--navy-900); color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg); padding: 46px 40px;
  position: relative; overflow: hidden;
}
.contact-info-card h3 { color: #fff; }
.contact-info-list { margin-top: 28px; display: flex; flex-direction: column; gap: 26px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.08);
  color: var(--gold-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list .icon-badge svg { width: 20px; height: 20px; }
.contact-info-list strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-list span, .contact-info-list a { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.contact-info-list a:hover { color: var(--gold-500); }
.contact-social { display: flex; gap: 12px; margin-top: 34px; }
.contact-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.contact-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.contact-social svg { width: 16px; height: 16px; }

.contact-form-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 46px 44px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.96rem; color: var(--text-dark); background: var(--bg-light);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-control:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(21,156,133,0.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-error { color: #d0433a; font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.has-error .form-control { border-color: #d0433a; }
.form-group.has-error .form-error { display: block; }
.form-success {
  display: none; align-items: center; gap: 14px; background: var(--teal-050); color: var(--teal-500);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 24px; font-weight: 600; font-size: 0.92rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); height: 340px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.05); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { margin-top: 46px; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin-top: 28px; }
.legal-content p, .legal-content li { color: var(--text-body); }
.legal-content ul { margin: 16px 0; padding-left: 22px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-updated {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal-050); color: var(--teal-500); font-weight: 600; font-size: 0.85rem;
  padding: 10px 18px; border-radius: 100px; margin-bottom: 36px;
}
.legal-toc { background: var(--bg-light); border-radius: var(--radius-md); padding: 28px 32px; margin-bottom: 46px; }
.legal-toc h4 { margin-bottom: 14px; }
.legal-toc ol { padding-left: 20px; margin: 0; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--navy-800); font-weight: 500; }
.legal-toc a:hover { color: var(--teal-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.65); padding-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.92rem; margin: 20px 0 24px; max-width: 320px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.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: var(--gold-500); color: var(--navy-900); }
.footer-social svg { width: 16px; height: 16px; }
.site-footer h5 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.footer-links li { margin-bottom: 13px; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-500); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 18px; font-size: 0.9rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--gold-500); }
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  border: none; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--teal-050); color: var(--teal-500);
  font-size: 0.8rem; font-weight: 700; padding: 8px 16px; border-radius: 100px; margin-bottom: 16px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.icon-list { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.icon-list li { display: flex; gap: 18px; }
.icon-list .service-icon { width: 50px; height: 50px; flex-shrink: 0; margin: 0; }
.icon-list .service-icon svg { width: 24px; height: 24px; }
.icon-list h4 { margin-bottom: 4px; font-size: 1.02rem; }
.icon-list p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .process-connector { display: none; }
  .hero-quote-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 46px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-right .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(340px, 84vw);
    background: #fff; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 100px 32px 32px; box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transition: right 0.35s ease; z-index: 1000; overflow-y: auto;
  }
  .nav-links.is-open { display: flex; right: 0; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border-light); font-size: 1.02rem; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(8,27,46,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .about-split, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .about-media-badge { position: static; margin-top: -50px; margin-left: 20px; width: fit-content; }
  .service-detail { grid-template-columns: 1fr; gap: 34px; padding: 50px 0; }
  .service-detail.reverse .service-detail-media, .service-detail.reverse .service-detail-body { order: initial; }
  .service-detail-media img { height: 300px; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .top-bar-social { display: none; }
  .top-bar-left { gap: 14px 18px; }
  .top-bar-hours { display: none; }
  .top-bar { font-size: 0.78rem; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 1.05rem; }
  .services-grid, .testimonials-grid, .team-grid, .values-grid, .stats-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { padding: 50px 26px; margin: 0 16px; }
  .contact-form-card, .contact-info-card { padding: 32px 24px; }
  .hero { min-height: auto; padding-top: 40px; }
  .hero-content { padding: 90px 0 60px; }
  .page-header { padding: 120px 0 60px; }
  .legal-toc { padding: 22px 20px; }
}
