/* ==========================================================================
   Tejas Restore - main.css
   Mobile-first. No framework, no web fonts, no third-party requests.
   Layers: tokens -> reset -> base -> layout -> components -> utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Brand colors sampled from the approved logo. Do not introduce new hues
   without a reason; add a token here rather than a one-off hex in a rule.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #071A38;
  --navy-800: #0E2A56;
  --navy-700: #163A6B;
  --navy-600: #1F4C86;
  --red-700:  #9E0C24;
  --red-600:  #C8102E;
  --red-500:  #E01B38;

  /* Neutrals */
  --white:    #FFFFFF;
  --gray-50:  #F6F8FB;
  --gray-100: #ECEFF4;
  --gray-200: #DCE1E9;
  --gray-300: #C2CAD6;
  --gray-500: #6B7685;
  --gray-700: #3C4553;
  --gray-900: #1A1F27;

  /* Semantic */
  --color-bg: var(--white);
  --color-bg-alt: var(--gray-50);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-border: var(--gray-200);
  --color-primary: var(--red-600);
  --color-primary-dark: var(--red-700);
  --color-accent: var(--navy-800);
  --color-error: #B3261E;
  --color-focus: #1F7AE0;

  /* Type - system stack, zero network cost */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.125rem;
  --fs-3xl:  2.625rem;

  /* Space - 4px base scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Other */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 56, 0.08);
  --shadow-md: 0 4px 16px rgba(7, 26, 56, 0.10);
  --shadow-lg: 0 12px 32px rgba(7, 26, 56, 0.16);
  --container: 1140px;
  --container-prose: 720px;
  --tap: 44px; /* minimum touch target */
  --header-h: 68px;
}

@media (min-width: 48em) {
  :root {
    --fs-2xl: 2.5rem;
    --fs-3xl: 3.25rem;
    --header-h: 84px;
  }
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  /* Room for the mobile sticky CTA bar. */
  padding-bottom: 64px;
}

/* Matches the sticky CTA breakpoint below - reclaim the space only once the
   bar is actually gone. */
@media (min-width: 60em) {
  body { padding-bottom: 0; }
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

a { color: var(--navy-700); }
a:hover { color: var(--color-primary); }

ul, ol { padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 48em) {
  .container { padding-inline: var(--sp-5); }
}

.container--prose { max-width: var(--container-prose); }

.section { padding-block: var(--sp-7); }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--navy-800); color: var(--white); }

@media (min-width: 48em) {
  .section { padding-block: var(--sp-8); }
}

.section > * + *,
.container--prose > * + * { margin-top: var(--sp-4); }

.container--prose h2 { margin-top: var(--sp-7); }
.container--prose h3 { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   4. COMPONENTS
   -------------------------------------------------------------------------- */

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

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

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

.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-900); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--gray-100); color: var(--navy-900); }

.btn--sm { min-height: 38px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn--lg { min-height: 54px; padding: var(--sp-4) var(--sp-6); font-size: var(--fs-md); }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.site-header__brand { display: block; flex: 0 0 auto; }
.site-header__brand img { width: 132px; height: auto; }

@media (min-width: 48em) {
  .site-header__brand img { width: 180px; }
}

/* --- Nav toggle (mobile) --- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Nav --- */
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--sp-4);
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { color: var(--color-primary); }

.site-nav__cta { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.site-nav__cta .btn { width: 100%; }
.site-nav__cta .icon { width: 1.125rem; height: 1.125rem; }

/* Phone: full-width button in the mobile menu, text link in the desktop bar. */
.site-nav__phone { display: none; }
.site-nav__phone-btn .icon { width: 1.25rem; height: 1.25rem; }

/* Inline desktop nav needs ~1080px for logo + five links + phone + button on
   one line; below that the menu stays collapsed so nothing wraps. */
@media (min-width: 68em) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav__list { display: flex; align-items: center; gap: var(--sp-5); }
  .site-nav__list a { padding: var(--sp-3) 0; border: 0; }
  .site-nav__cta { margin-top: 0; display: flex; align-items: center; gap: var(--sp-4); }
  .site-nav__cta .btn { width: auto; }

  .site-nav__phone-btn { display: none; }
  .site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    min-height: var(--tap);
    color: var(--navy-800);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
  }
  .site-nav__phone .icon { color: var(--color-primary); }
  .site-nav__phone:hover { color: var(--color-primary); }
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  padding-block: var(--sp-7);
  /* Background photography drops in here later via --hero-image; the layout
     already accounts for an overlay so adding real photos needs no restructure. */
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,56,.82), rgba(7,26,56,.92));
  opacity: var(--hero-overlay, 0);
  pointer-events: none;
}

.hero__inner { position: relative; display: grid; gap: var(--sp-6); }
.hero__copy h1 { color: var(--white); }
.hero__intro { font-size: var(--fs-md); color: rgba(255,255,255,.88); margin-top: var(--sp-4); }
.hero--urgent { background: var(--navy-900); }

/* Secondary call option under hero copy - a text link, not a competing button. */
.hero__call { margin-top: var(--sp-4); font-size: var(--fs-md); color: rgba(255,255,255,.88); }
.hero__call a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.hero__call a:hover { color: var(--white); text-decoration: underline; }
.hero__call .icon { width: 1.125rem; height: 1.125rem; color: var(--red-500); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--red-500);
  margin-bottom: var(--sp-3);
}

@media (min-width: 62em) {
  .hero { padding-block: var(--sp-8); }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-7);
    align-items: start;
  }
}

/* --- CTA pair --- */
.cta-pair {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
@media (min-width: 30em) {
  .cta-pair { flex-direction: row; flex-wrap: wrap; }
}

/* --- Page head --- */
.page-head {
  background: var(--navy-800);
  color: var(--white);
  padding-block: var(--sp-7);
}
.page-head h1 { color: var(--white); }
.page-head__intro {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: rgba(255,255,255,.88);
  max-width: 48ch;
}

/* --- Emergency bar --- */
.emergency-bar { background: var(--red-600); color: var(--white); }
.emergency-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
}
.emergency-bar__text { font-size: var(--fs-sm); }
.emergency-bar .btn--call { background: var(--white); color: var(--red-700); }
.emergency-bar .btn--call:hover { background: var(--gray-100); color: var(--red-700); }

@media (min-width: 48em) {
  .emergency-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .emergency-bar__text { font-size: var(--fs-base); }
}

/* --- Trust --- */
.trust { background: var(--gray-50); border-bottom: 1px solid var(--color-border); }
.trust__list {
  list-style: none;
  margin: 0;
  padding: var(--sp-6) 0;
  display: grid;
  gap: var(--sp-5);
}
.trust__headline {
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--navy-800);
}
.trust__support { color: var(--color-text-muted); font-size: var(--fs-sm); margin-top: var(--sp-1); }

@media (min-width: 48em) {
  .trust__list { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}

/* --- Cards --- */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 48em) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card__title { font-size: var(--fs-lg); color: var(--navy-800); }
.card__text { margin-top: var(--sp-3); color: var(--color-text-muted); flex: 1; }
.card__link { margin-top: var(--sp-4); font-weight: 700; text-decoration: none; }
.card__link::after { content: " \2192"; }

/* --- CTA band --- */
.cta-band { background: var(--navy-800); color: var(--white); padding-block: var(--sp-7); }
.cta-band__inner { display: grid; gap: var(--sp-5); }
.cta-band__title { color: var(--white); }
.cta-band__text { color: rgba(255,255,255,.85); margin-top: var(--sp-2); }
.cta-band .cta-pair { margin-top: 0; }

@media (min-width: 55em) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--sp-6);
  }
}

/* --- Forms --- */
.lead-form {
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.lead-form__title { font-size: var(--fs-lg); color: var(--navy-800); }
.lead-form__note { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--color-text-muted); }

.field { margin-top: var(--sp-4); }
.field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gray-700);
}
.req { color: var(--color-primary); }

.field input,
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus { border-color: var(--color-focus); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--color-error); }

.field__error {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-error);
}

.lead-form .btn { margin-top: var(--sp-5); }
.lead-form__legal {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* Honeypot - hidden from humans, not from bots. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Form status messages */
.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  border-left: 4px solid;
}
.form-status--error { background: #FDECEA; border-color: var(--color-error); color: #6B1710; }
.form-status--notice { background: var(--gray-50); border-color: var(--navy-600); color: var(--gray-900); }
.form-status--success { background: #E7F6EC; border-color: #1B7F3B; color: #12532A; }
.form-status p + p { margin-top: var(--sp-2); }

/* --- Sticky mobile CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  border-top: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 -2px 12px rgba(7,26,56,.18);
}
.sticky-cta__btn {
  flex: 1 1 50%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--white);
}
.sticky-cta__btn--call { background: var(--color-primary); }
.sticky-cta__btn--form { background: var(--navy-800); }
.sticky-cta__btn--full { flex-basis: 100%; }
.sticky-cta__btn:hover { color: var(--white); }

@media (min-width: 60em) { .sticky-cta { display: none; } }

/* --- Landing (paid traffic) --- */
.landing-bar { background: var(--white); border-bottom: 3px solid var(--navy-800); }
.landing-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.landing-bar__logo { width: 132px; height: auto; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.78);
  padding-top: var(--sp-7);
  font-size: var(--fs-sm);
}
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer__top { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-6); }

/* The logo lockup is navy-on-light. On a dark ground it needs a light plate -
   a layout treatment, never a recolor of the logo itself. */
.logo-plate {
  display: inline-block;
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border-radius: var(--radius);
}
.site-footer__brand img { width: 180px; }

.site-footer__heading {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { line-height: 1.3; }
/* Link rows need a real touch target, not a 20px line of text. */
.site-footer__col a,
.site-footer__col li { display: block; }
.site-footer__col a { padding-block: var(--sp-2); min-height: var(--tap); }
.site-footer__col li:not(:has(a)) { padding-block: var(--sp-2); }
.site-footer__col .btn { margin-top: var(--sp-3); }

.site-footer__bottom {
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
}

@media (min-width: 48em) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
}

/* --------------------------------------------------------------------------
   5. UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.lede { font-size: var(--fs-md); color: var(--color-text-muted); }

/* Build-time content placeholder. Visible in dev, and impossible to mistake
   for finished copy. Remove as real content lands. */
.todo {
  padding: var(--sp-4);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.todo::before {
  content: "CONTENT PENDING";
  display: block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}

/* ==========================================================================
   6. HOMEPAGE
   Namespaced components. The shared .hero / .trust / .cta-band used by the
   service pages are deliberately untouched so those pages stay as-is until
   they get their own design pass.
   ========================================================================== */

.icon { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }

/* --- Section heads --- */
.section-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.section-head__title { margin-top: var(--sp-2); }
.section-head__lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}
.section-head--invert .section-head__title { color: var(--white); }
.section-head--invert .section-head__lede { color: rgba(255,255,255,.78); }

.eyebrow--center { text-align: center; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: var(--white);
  padding-block: var(--sp-6) var(--sp-7);
  overflow: hidden;
}

/* Designed ground: navy gradient plus a faint red wash. Carries the hero on
   its own with zero photography. Set --hero-image and raise
   --hero-photo-opacity when real job photos exist. */
.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--navy-900);
  background-image:
    var(--hero-image, none),
    radial-gradient(120% 90% at 82% 8%, rgba(31,76,134,.55), transparent 62%),
    linear-gradient(160deg, rgba(200,16,46,.20) 0%, transparent 42%),
    linear-gradient(180deg, #0B2149 0%, #071A38 100%);
  background-size: cover, auto, auto, auto;
  background-position: center;
}

.home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,56,.55), rgba(7,26,56,.88));
  opacity: var(--hero-photo-opacity, 0);
}

.home-hero__inner { display: grid; gap: var(--sp-6); }

.home-hero__title {
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  text-wrap: initial;
}
.home-hero__title-accent { color: var(--red-500); display: inline-block; }

.home-hero__lede {
  margin-top: var(--sp-4);
  max-width: 34rem;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

/* --- Hero form card --- */
.lead-form--hero { box-shadow: 0 20px 50px rgba(0,0,0,.34); }
.lead-form__eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}

@media (min-width: 64em) {
  .home-hero { padding-block: var(--sp-8); }
  /* Copy on the left, form on the right. On mobile the DOM order puts the
     form directly after the copy, separated by the grid gap. */
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    column-gap: var(--sp-7);
    align-items: start;
  }

  .home-hero__title { font-size: clamp(3rem, 4.4vw, 4rem); }
  .home-hero__lede { font-size: var(--fs-lg); line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--color-border);
}
.trust-bar__inner {
  display: grid;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
}
.trust-bar__item { display: flex; align-items: center; gap: var(--sp-3); }
.trust-bar__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
}
.trust-bar__text { font-size: var(--fs-sm); line-height: 1.35; }
.trust-bar__text strong { display: block; color: var(--navy-800); }
.trust-bar__text span { color: var(--color-text-muted); }

@media (min-width: 55em) {
  .trust-bar__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
  }
  .trust-bar__item + .trust-bar__item {
    border-left: 1px solid var(--color-border);
    padding-left: var(--sp-5);
  }
}

/* --------------------------------------------------------------------------
   SERVICE CARDS
   -------------------------------------------------------------------------- */
.service-grid {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

/* Media slot: a designed navy panel until real photography lands. */
.service-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-800); }
/* Absolutely positioned so a photo's own ratio can never resize the 16:9 slot. */
.service-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.service-card__media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image:
    radial-gradient(90% 120% at 72% 12%, rgba(31,76,134,.75), transparent 60%),
    linear-gradient(145deg, #12315F 0%, #0B2149 100%);
}
.service-card__watermark { color: rgba(255,255,255,.14); }
.service-card__watermark .icon { width: 5.5rem; height: 5.5rem; stroke-width: 1.1; }

.service-card__badge {
  position: absolute;
  left: var(--sp-4);
  bottom: calc(-1 * var(--sp-5));
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: calc(var(--sp-5) + var(--sp-3)) var(--sp-5) var(--sp-5);
}
.service-card__title { font-size: var(--fs-lg); color: var(--navy-800); }
.service-card__title a { color: inherit; text-decoration: none; }
/* Stretched link: the whole card is the target, the anchor stays the accessible name. */
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card:hover .service-card__title a { color: var(--color-primary); }

.service-card__text {
  margin-top: var(--sp-3);
  flex: 1;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.service-card__link .icon { width: 1.05rem; height: 1.05rem; transition: transform .18s ease; }
.service-card:hover .service-card__link .icon { transform: translateX(3px); }

@media (min-width: 48em) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}
@media (min-width: 64em) {
  .service-grid { gap: var(--sp-5); }
}

/* --------------------------------------------------------------------------
   PROCESS
   -------------------------------------------------------------------------- */
.home-process {
  position: relative;
  background: var(--navy-900);
  background-image:
    radial-gradient(85% 70% at 12% 0%, rgba(31,76,134,.42), transparent 60%),
    linear-gradient(180deg, #0B2149 0%, #071A38 100%);
  color: var(--white);
  padding-block: var(--sp-7);
}

.process-list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}

.process-step { position: relative; padding-left: 68px; }
.process-step__marker { position: absolute; left: 0; top: 0; }
.process-step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 800;
}
.process-step__icon {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
}
.process-step__icon .icon { width: 1rem; height: 1rem; }

.process-step__title { font-size: var(--fs-md); color: var(--white); }
.process-step__text {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.76);
}

@media (min-width: 48em) {
  .process-list { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}
@media (min-width: 64em) {
  .home-process { padding-block: var(--sp-8); }
  .process-list { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
  .process-step { padding-left: 0; padding-top: 68px; }
  .process-step__marker { top: 0; }
}

/* --------------------------------------------------------------------------
   WHY TEJAS
   -------------------------------------------------------------------------- */
.home-why { background: var(--color-bg); }
.home-why__inner { display: grid; gap: var(--sp-6); }
.home-why__copy h2 { margin-top: var(--sp-2); }
.home-why__copy p { margin-top: var(--sp-4); }
.home-why__copy .lede { color: var(--color-text-muted); }

.home-why__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }

.why-point {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
}
.why-point__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
}
.why-point__headline { font-weight: 800; color: var(--navy-800); }
.why-point__support { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--color-text-muted); }

@media (min-width: 62em) {
  .home-why__inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-7); align-items: center; }
}

/* --------------------------------------------------------------------------
   CLOSING CTA
   -------------------------------------------------------------------------- */
.home-closing {
  position: relative;
  isolation: isolate;
  background: var(--navy-800);
  color: var(--white);
  padding-block: var(--sp-7);
  overflow: hidden;
}
.home-closing__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    var(--closing-image, none),
    radial-gradient(80% 120% at 88% 50%, rgba(200,16,46,.34), transparent 62%),
    linear-gradient(120deg, #0B2149 0%, #102E5C 100%);
  background-size: cover, auto, auto;
  background-position: center;
}

.home-closing__inner { display: grid; gap: var(--sp-5); }
.home-closing__title { color: var(--white); font-size: var(--fs-2xl); }
.home-closing__text { margin-top: var(--sp-3); color: rgba(255,255,255,.86); font-size: var(--fs-md); }

.home-closing__actions { display: flex; flex-direction: column; gap: var(--sp-3); }

@media (min-width: 30em) {
  .home-closing__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (min-width: 62em) {
  .home-closing { padding-block: var(--sp-8); }
  .home-closing__inner { grid-template-columns: 1.15fr auto; align-items: center; gap: var(--sp-7); }
  .home-closing__actions { justify-content: flex-end; }
}

/* ==========================================================================
   7. SERVICE PAGE SECTIONS
   Full-width content sections for service pages that opt in with
   `fullWidthSections: true`. Reuses .card, .process-list and .section-head;
   these rules only fill the gaps. Nothing here touches shared components.
   ========================================================================== */
.svc-cards { margin-top: var(--sp-6); }

.svc-factors {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}
.svc-factors li {
  padding-left: var(--sp-4);
  border-left: 3px solid var(--color-primary);
  color: var(--color-text-muted);
}
.svc-factors strong {
  display: block;
  color: var(--navy-800);
}

@media (min-width: 48em) {
  .svc-factors { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}
/* Five steps: one row on wide screens instead of wrapping 4 + 1. */
@media (min-width: 64em) {
  .svc-process { grid-template-columns: repeat(5, 1fr); }
}
