:root {
  --navy: #083e83;
  --navy-dark: #062e62;
  --navy-deep: #041e42;
  --teal: #3bb9a6;
  --teal-dark: #2a9a8a;
  --teal-soft: #e8f8f5;
  --teal-mid: #d3f1eb;
  --text: #1a2332;
  --muted: #4b5565;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --white: #ffffff;
  --focus: #083e83;
  --shadow: 0 10px 30px rgba(8, 62, 131, 0.08);
  --shadow-sm: 0 2px 8px rgba(8, 62, 131, 0.06);
  --radius: 16px;
  --header-h: 4.5rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 3.15rem;
  width: auto;
  max-width: 13.5rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 720px) {
  .logo img {
    height: 3.5rem;
    max-width: 16rem;
  }
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}

.site-nav a:not(.btn):hover {
  color: var(--teal-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.5rem;
}

.phone-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.98rem;
}

.phone-link:hover {
  color: var(--teal-dark);
}

@media (max-width: 899px) {
  .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1.1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .site-nav,
  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    margin: 0.8rem 0 0;
    gap: 0.55rem;
  }

  .nav-cta .btn {
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8rem 1.2rem;
  border-radius: 0.7rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  color: var(--white);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--teal-soft);
  color: var(--navy);
}

.btn-teal {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--teal-soft) 0%, #f3fbf9 42%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
}

@media (min-width: 800px) {
  .hero {
    padding: 3.4rem 0 4rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.7rem;
}

.hero h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero .lede {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-row svg {
  flex-shrink: 0;
  color: var(--teal-dark);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.35rem 1.5rem;
  margin-top: 1.6rem;
}

@media (min-width: 800px) {
  .hero-card {
    margin-top: 0;
  }
}

.hero-card h2 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.hero-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-card .btn {
  width: 100%;
  margin-bottom: 0.55rem;
}

.hero-card .btn:last-of-type {
  margin-bottom: 0.9rem;
}

.hero-card .contact-mini {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-card .contact-mini a {
  font-weight: 700;
  text-decoration: none;
}

/* Sections */
section {
  padding: 3.4rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-kicker {
  margin: 0 0 0.4rem;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-title {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Services */
.cards-2 {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 760px) {
  .cards-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.45rem;
  box-shadow: var(--shadow-sm);
}

.service-card .icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--teal-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.3rem;
}

.service-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.service-card ul {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.1rem;
  color: var(--text);
}

.service-card li + li {
  margin-top: 0.3rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  position: relative;
}

.step h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.2rem;
  padding-left: 3rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  padding-left: 3rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

/* Why */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.25rem;
}

.why-item h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
}

/* States */
.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.state-list li {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.state-list li.resident {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.state-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 48rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.15rem 0.2rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.85rem 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--teal-dark);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0 1rem 1rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.contact-panel,
.contact-cta-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.contact-panel h3,
.contact-cta-card h3 {
  margin: 0 0 0.8rem;
  color: var(--navy);
}

.contact-rows {
  margin: 0;
}

.contact-rows div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.contact-rows div:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-rows dt {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.contact-rows dd {
  margin: 0;
}

.contact-rows a {
  font-weight: 700;
  text-decoration: none;
}

.contact-cta-card .btn {
  width: 100%;
  margin-bottom: 0.6rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d7e0ee;
  padding: 2.2rem 0 1.8rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #f3f7fc;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.footer-meta {
  margin: 0 0 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0 0 1.2rem;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.disclaimer {
  margin: 0 0 0.75rem;
  color: #c5d0e0;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 54rem;
}

.legal-page {
  padding: 2.4rem 0 3.5rem;
}

.legal-page article {
  max-width: 44rem;
}

.legal-page h1 {
  color: var(--navy);
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.legal-page .updated {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}

.legal-page h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 1.6rem 0 0.45rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
}

.legal-page ul {
  padding-left: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Language switcher */
.header-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-inline-start: auto;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.15rem;
}

.lang-switch a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.28rem 0.42rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
}

.lang-switch a:hover {
  background: var(--teal-soft);
  color: var(--navy);
}

.lang-switch a[aria-current="page"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.lang-switch a[aria-current="page"]:hover {
  color: var(--white);
}

/* Photos */
.hero-grid-photo {
  align-items: center;
}

.hero-media figure,
.service-photo figure {
  margin: 0;
}

.hero-media img,
.service-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.service-photo img {
  aspect-ratio: 16 / 11;
  margin-bottom: 0.35rem;
}

.photo-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.spanish-note {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  background: var(--teal-soft);
  border-inline-start: 3px solid var(--teal);
  border-radius: 0.5rem;
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Quote form */
.quote-page {
  padding: 2.2rem 0 3.5rem;
  background: linear-gradient(180deg, var(--teal-soft) 0%, var(--white) 18rem);
}

.quote-wrap {
  max-width: 38rem;
}

.quote-page h1 {
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.quote-lede {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.25rem 1.4rem;
}

.form-row {
  margin: 0 0 0.95rem;
}

.form-row label,
.consent-box {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  border: 1px solid #c9d2de;
  border-radius: 0.55rem;
  padding: 0.7rem 0.75rem;
  background: var(--white);
  min-height: 2.75rem;
}

.form-row input:focus,
.form-row select:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--navy);
}

.form-grid {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.consent-box {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.4rem 0 1rem;
  padding: 0.85rem 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.consent-box input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--navy);
}

.quote-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-legal {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.55rem;
  display: none;
}

.form-status.is-on {
  display: block;
}

.form-status.is-ok {
  background: var(--teal-soft);
  color: var(--navy-dark);
}

.form-status.is-err {
  background: #fde8e8;
  color: #8a1c1c;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-identity {
  color: var(--white);
  font-weight: 700;
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

/* RTL */
html[dir="rtl"] {
  font-family: "Noto Sans Arabic", var(--font);
}

html[dir="rtl"] .lang-switch {
  justify-content: flex-start;
}

html[dir="rtl"] .logo img {
  object-position: right center;
}

html[dir="rtl"] .step h3,
html[dir="rtl"] .step p {
  padding-left: 0;
  padding-right: 3rem;
}

html[dir="rtl"] .step::before {
  left: auto;
  right: 1.2rem;
}

html[dir="rtl"] .nav-cta {
  margin-left: 0;
}

html[dir="rtl"] .spanish-note,
html[dir="rtl"] .lang-note {
  border-inline-start: 3px solid var(--teal);
}

@media (max-width: 899px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-end {
    margin-inline-start: 0;
  }

  .lang-switch {
    order: 0;
  }
}

@media (min-width: 800px) {
  .hero-grid-photo {
    grid-template-columns: 1.05fr 1fr;
  }
}

@media (min-width: 900px) {
  .header-end { margin-inline-start: 0.75rem; order: 3; }
  .site-nav { order: 2; flex: 1; justify-content: flex-end; }
  .logo { order: 1; }
}
