/* =========================================================================
   Monrovia Customs & Brokerage Firm — Stylesheet
   Palette derived directly from the company logo (navy #0B274E + amber accent)
   ========================================================================= */

:root {
  --navy-50: #eef2f7;
  --navy-100: #d7e0ec;
  --navy-200: #b0c1d9;
  --navy-300: #88a2c6;
  --navy-400: #5a7ba8;
  --navy-500: #3a5a87;
  --navy-700: #1a3153;
  --navy-800: #0f2140;
  --navy-900: #0b274e;
  --navy-950: #071a36;

  --amber-300: #efc05c;
  --amber-400: #e8a934;
  --amber-500: #d6901f;
  --amber-600: #905a13;

  --paper: #f7f5f0;
  --ink: #1a1f26;
  --ink-light: #4b5563;
  --border: #e3e0d8;

  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-card: 0 1px 2px rgba(11, 39, 78, 0.05), 0 8px 24px -8px rgba(11, 39, 78, 0.14);
  --shadow-card-hover: 0 2px 4px rgba(11, 39, 78, 0.07), 0 16px 32px -12px rgba(11, 39, 78, 0.2);
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-950);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--amber-300); color: var(--navy-950); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
}

.section--tight { padding: 3rem 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* =========================================================================
   Eyebrow / section header
   ========================================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-600);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow--light { color: var(--amber-400); }

.section-header { max-width: 640px; }
.section-header--center { margin: 0 auto; text-align: center; }

.section-header h2 {
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .section-header h2 { font-size: 2.25rem; }
}
.section-header--light h2 { color: #fff; }

.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-light);
  line-height: 1.6;
}
.section-header--light p { color: var(--navy-100); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--amber-400); box-shadow: var(--shadow-card-hover); }

.btn-secondary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover { background: var(--navy-800); box-shadow: var(--shadow-card-hover); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy-900);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: #fff; }

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--navy-950); }

.btn-block { width: 100%; }

/* =========================================================================
   Header / Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  min-width: 0;
}
.brand img { height: 2.25rem; width: auto; flex-shrink: 0; }
.brand-text {
  font-family: 'Poppins', -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--navy-950);
  white-space: nowrap;
}
.brand-text .sub {
  display: block;
  margin-top: 0.15rem;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--navy-700);
}
@media (max-width: 420px) {
  .brand-text { font-size: 0.875rem; }
  .brand-text .sub { font-size: 0.6rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy-950);
}

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  color: var(--navy-950);
}

.mobile-menu {
  position: fixed;
  inset: 5rem 0 auto 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.25rem;
}
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--ink-light);
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: var(--navy-50);
  color: var(--navy-950);
}
.mobile-menu .btn { margin-top: 0.75rem; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
}

.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,26,54,0.94) 0%, rgba(7,26,54,0.88) 30%, rgba(11,39,78,0.7) 60%, rgba(11,39,78,0.5) 100%);
}
.hero--image .hero-grid { position: relative; z-index: 1; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
  min-height: 32rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    padding: 6rem 0;
  }
}

/* Used when the hero has no side panel (e.g. principles box removed) —
   keeps the text column from stretching full-width awkwardly. */
.hero-grid--single {
  grid-template-columns: 1fr;
}
.hero-grid--single > div:first-child {
  max-width: 42rem;
}
@media (min-width: 1024px) {
  .hero-grid--single { grid-template-columns: 1fr; }
}

.hero h1 {
  color: #fff;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .hero h1 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.5rem; } }

.hero p.lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy-200);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 34rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats dt { font-size: 0.8125rem; color: var(--navy-300); }
.hero-stats dd { margin: 0.25rem 0 0; font-weight: 700; color: #fff; font-size: 1.0625rem; }

/* =========================================================================
   Page header (non-home pages)
   ========================================================================= */

.page-hero {
  position: relative;
  background: var(--navy-950);
  padding: 3.5rem 0;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .page-hero h1 { font-size: 2.75rem; } }
.page-hero p {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--navy-200);
}

/* Image-banner variant: used on About / Services / Contact page headers.
   Modifies the existing .page-hero rather than adding a second banner. */
.page-hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  min-height: 20rem;
  display: flex;
  align-items: center;
  text-align: center;
}
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,54,0.78) 0%, rgba(11,39,78,0.68) 100%);
}
.page-hero--image .container {
  position: relative;
  z-index: 1;
}
.page-hero--image h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 2rem;
}
@media (min-width: 640px) { .page-hero--image h1 { font-size: 2.5rem; } }
.page-hero--image .breadcrumb {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.82);
}
.page-hero--image .breadcrumb a {
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-hero--image .breadcrumb a:hover { color: var(--amber-400); }
.page-hero--image .breadcrumb .sep { margin: 0 0.45rem; opacity: 0.6; }
.page-hero--image .lead-in {
  margin-top: 1.25rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 639px) {
  .page-hero--image { min-height: 15rem; padding: 3.5rem 0; }
}

/* =========================================================================
   Cards / grids
   ========================================================================= */

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  scroll-margin-top: 6.5rem;
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-card-hover); }

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--navy-50);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

.card p.desc {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.6;
  flex-grow: 1;
}

.card-benefits {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-light);
}
.card-benefits svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--amber-600); }

.card-link {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}
.card:hover .card-link { color: var(--amber-600); }

/* =========================================================================
   Service image tiles (Services page) — large photo tiles with a numbered
   overlay, used above the detailed service cards.
   ========================================================================= */

.service-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .service-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .service-tile-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 15rem;
  isolation: isolate;
}
@media (min-width: 640px) {
  .service-tile { aspect-ratio: 1 / 1; }
}
@media (min-width: 1024px) {
  .service-tile { aspect-ratio: 4 / 5; }
}

.service-tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-tile-media img,
.service-tile-media .placeholder-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-tile-media .placeholder-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: rgba(255,255,255,0.35);
}
.service-tile-media .placeholder-fill svg { width: 3rem; height: 3rem; }

.service-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,26,54,0.55) 0%, rgba(7,26,54,0.4) 45%, rgba(7,26,54,0.88) 100%);
  transition: background 0.35s ease;
}

/* A couple of the supplied photos have a bright sky/glare directly behind
   the number (measured: 240-255 out of 255 in that zone), which drops
   white-text contrast below WCAG AA there even though the rest of the tile
   is fine. Rather than change every tile's overlay, only these specific
   tiles get a stronger top tint — still MCBS navy, just more opaque where
   the photo itself is unusually bright. */
.service-tile--bright-top .service-tile-overlay {
  background: linear-gradient(180deg, rgba(7,26,54,0.72) 0%, rgba(7,26,54,0.4) 45%, rgba(7,26,54,0.88) 100%);
}
.service-tile--bright-top:hover .service-tile-overlay,
.service-tile--bright-top:focus-visible .service-tile-overlay,
.service-tile--bright-top.is-revealed .service-tile-overlay {
  background: linear-gradient(180deg, rgba(7,26,54,0.75) 0%, rgba(7,26,54,0.4) 40%, rgba(11,39,78,0.94) 100%);
}

.service-tile-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.service-tile-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.service-tile-name {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.service-tile-desc {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

/* Reveal triggers: mouse hover (desktop), keyboard focus (any size),
   and JS-toggled .is-revealed for touch devices (see main.js). Kept
   separate from the zoom effect below, which is desktop-hover-only. */
.service-tile:hover .service-tile-desc,
.service-tile:focus-visible .service-tile-desc,
.service-tile.is-revealed .service-tile-desc {
  max-height: 8rem;
  opacity: 1;
  margin-top: 0.6rem;
}
.service-tile:hover .service-tile-overlay,
.service-tile:focus-visible .service-tile-overlay,
.service-tile.is-revealed .service-tile-overlay {
  background: linear-gradient(180deg, rgba(7,26,54,0.5) 0%, rgba(7,26,54,0.4) 40%, rgba(11,39,78,0.94) 100%);
}

@media (min-width: 1024px) {
  .service-tile:hover .service-tile-media img,
  .service-tile:hover .service-tile-media .placeholder-fill,
  .service-tile:focus-visible .service-tile-media img,
  .service-tile:focus-visible .service-tile-media .placeholder-fill {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-tile-media img,
  .service-tile-media .placeholder-fill { transition: none; }
  .service-tile-overlay { transition: none; }
  .service-tile-desc { transition: none; }
}

/* Mobile/touch: descriptions are always visible, no interaction required.
   IMPORTANT: this uses an explicit width breakpoint (max-width: 1023px) as
   the primary trigger, matching how this is actually tested (resizing to
   phone-width viewports) — not only (hover: none). A capability-only query
   does NOT fire when testing by narrowing an ordinary desktop browser
   window, since a desktop mouse always reports hover:hover regardless of
   window width. (hover: none) is kept as a second, comma-separated
   condition purely as a safety net for genuine touch tablets that happen
   to have a wide (1024px+) screen. Either condition alone is enough. */
@media (max-width: 1023px), (hover: none) {
  .service-tile {
    aspect-ratio: auto !important;
    min-height: 0 !important;
  }
  .service-tile-content {
    position: relative !important;
    inset: auto !important;
    min-height: 15rem;
  }
  .service-tile-desc {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    margin-top: 0.6rem !important;
  }
  .service-tile-overlay {
    background: linear-gradient(180deg, rgba(7,26,54,0.5) 0%, rgba(7,26,54,0.4) 40%, rgba(11,39,78,0.94) 100%) !important;
  }
  .service-tile--bright-top .service-tile-overlay {
    background: linear-gradient(180deg, rgba(7,26,54,0.75) 0%, rgba(7,26,54,0.4) 40%, rgba(11,39,78,0.94) 100%) !important;
  }
}

/* Meet the Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.team-avatar {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy-400);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--navy-100);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.team-card h3 {
  margin-top: 0;
  font-size: 1.125rem;
}
.team-card p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--amber-600);
  font-weight: 600;
}

/* Hero banner image (Home page) */
.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 26rem;
  object-fit: cover;
}

/* Image-beside-content pairing #1: used inside the Why-Choose-Us quote
   callout on Home, pairing an image with the existing quote + CTA. */
.quote-with-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) {
  .quote-with-image { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
}
.quote-with-image .quote-image {
  min-height: 14rem;
}
.quote-with-image .quote-image img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  display: block;
}
.quote-with-image .quote-content {
  background: var(--navy-900);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
@media (min-width: 900px) { .quote-with-image .quote-content { text-align: left; } }

/* Image-beside-content pairing #2: used in the Process section intro,
   pairing an image with the section heading. */
.process-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .process-intro { grid-template-columns: 0.9fr 1.1fr; }
}
.process-intro .process-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.4);
}
.process-intro .process-image img {
  width: 100%;
  height: 100%;
  max-height: 24rem;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .process-intro .section-header { text-align: left; margin: 0; }
  .process-intro .eyebrow { justify-content: flex-start !important; }
}

/* Why-choose-us tiles */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--navy-100);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile { background: #fff; padding: 2rem; }
.tile h3 { font-size: 1.125rem; }
.tile p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-light); line-height: 1.6; }

/* =========================================================================
   Sections: intro, mission/vision, process, CTA, contact preview
   ========================================================================= */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: 4fr 8fr; gap: 4rem; }
}
.intro-grid p { font-size: 1.125rem; line-height: 1.7; color: var(--ink-light); margin-bottom: 1.25rem; }
.intro-grid p:last-child { margin-bottom: 0; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.mv-card--dark { background: var(--navy-900); color: #fff; }
.mv-card--light { background: #fff; border: 2px solid var(--navy-900); }
.mv-card h3 { font-size: 1.5rem; }
.mv-card--dark h3 { color: #fff; }
.mv-card p { margin-top: 1rem; font-size: 1.125rem; line-height: 1.7; }
.mv-card--dark p { color: var(--navy-200); }
.mv-card--light p { color: var(--ink-light); }

.mv-icon {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.mv-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-section { background: var(--navy-950); }
.process-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.process-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.process-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(232,169,52,0.4);
  background: rgba(232,169,52,0.1);
  color: var(--amber-300);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-item h3 { color: #fff; font-size: 1.25rem; }
.process-item p { margin-top: 0.5rem; max-width: 28rem; font-size: 0.9375rem; color: var(--navy-300); line-height: 1.6; }

.cta-band {
  background: var(--amber-500);
  padding: 3.5rem 0;
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) {
  .cta-band-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.cta-band h2 { font-size: 1.875rem; }
@media (min-width: 640px) { .cta-band h2 { font-size: 2.25rem; } }
.cta-band p { margin-top: 0.5rem; color: rgba(11,39,78,0.8); }
.cta-band-actions { display: flex; flex-direction: column; gap: 0.75rem; flex-shrink: 0; }
@media (min-width: 640px) { .cta-band-actions { flex-direction: row; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 4fr 8fr; } }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card .label { font-size: 0.875rem; color: var(--ink-light); font-weight: 500; }
.contact-card .value {
  margin-top: 0.25rem;
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy-950);
  word-break: break-word;
}
.contact-card .value:hover { color: var(--amber-600); }

/* =========================================================================
   Forms
   ========================================================================= */

.form-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-950);
}
.field .required { color: var(--amber-600); margin-left: 0.15rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--navy-100);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field .hint { font-size: 0.8125rem; color: var(--ink-light); }
.field .error {
  font-size: 0.8125rem;
  color: #b42318;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b42318;
}
.field.has-error .error { display: block; }

.form-footer {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--ink-light);
}

.form-success,
.form-error-banner {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.form-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}
.form-error-banner {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}
.form-success.is-visible,
.form-error-banner.is-visible { display: flex; }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--navy-950);
  color: var(--navy-100);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-grid img { height: 2.25rem; width: auto; filter: brightness(0) invert(1); }
.footer-about p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; color: var(--navy-300); line-height: 1.6; }
.footer-about .btn { margin-top: 1.5rem; }

.footer-grid h4 { color: #fff; font-size: 0.875rem; font-weight: 600; }
.footer-grid ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-grid ul a { font-size: 0.875rem; color: var(--navy-300); transition: color 0.15s ease; }
.footer-grid ul a:hover { color: var(--amber-400); }

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact-icon {
  flex-shrink: 0;
  color: var(--navy-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: center; text-align: center; }
}
.footer-bottom p { font-size: 0.875rem; color: var(--navy-400); }

/* =========================================================================
   Utility
   ========================================================================= */

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.bg-alt { background: #eef2f7; }
.legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-content p, .legal-content li { color: var(--ink-light); margin-top: 0.75rem; line-height: 1.7; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }
.legal-content { max-width: 46rem; }
