/* ============================================================
   ESCOTO CUSTOMS BROKERS — HOMEPAGE STYLES
   Single-file CSS, no build step required.
   ============================================================ */

/* ----- Design tokens ----- */
:root {
  --navy: #0A2540;
  --navy-deep: #081C30;
  --navy-light: #1B3A5A;
  --gold: #C9A227;
  --gold-dark: #B8911E;
  --cream: #F8F7F4;
  --slate: #475569;
  --ink: #1B2A3B;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --max-w: 1280px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* ----- Focus rings ----- */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Layout helpers ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowPan {
  0%, 100% { transform: scale(1.05) translateX(0); }
  50% { transform: scale(1.1) translateX(-1.5%); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.9s ease-out forwards;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }

/* ----- Typography helpers ----- */
.italic { font-style: italic; }
.muted { color: var(--slate); }
.gold { color: var(--gold); }
.light { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.display-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.display-h2.light { color: #fff; }

/* ----- Icons ----- */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.header-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.header-solid {
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
@media (min-width: 1024px) {
  .header-inner { padding: 16px 32px; }
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .logo-img { height: 52px; }
}
/* Footer logo is slightly smaller and uses the grey variant */
.footer .logo-img { height: 56px; }

/* Legacy SVG logo styles (kept for backward compat in case any pages still use SVG) */
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.header-transparent .logo-mark rect { fill: var(--cream); }
.header-solid .logo-mark rect { fill: var(--navy); }
.logo-mark path { stroke: var(--gold); }
.logo-mark circle { fill: var(--gold); }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.header-transparent .logo-name { color: var(--cream); }
.header-solid .logo-name { color: var(--navy); }

.logo-tagline {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.header-transparent .logo-tagline { color: rgba(248, 247, 244, 0.7); }
.header-solid .logo-tagline { color: var(--slate); }

/* Logo light variant (footer) */
.logo-light .logo-mark rect { fill: var(--cream); }
.logo-light .logo-name { color: var(--cream); }
.logo-light .logo-tagline { color: rgba(248, 247, 244, 0.7); }

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.header-transparent .nav-link { color: rgba(255, 255, 255, 0.9); }
.header-transparent .nav-link:hover { color: #fff; }
.header-solid .nav-link { color: var(--navy); }
.header-solid .nav-link:hover { color: var(--gold); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 288px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--gold);
}

/* Header CTA group */
.header-cta {
  display: none;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1024px) {
  .header-cta { display: flex; }
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.header-transparent .header-phone { color: #fff; }
.header-transparent .header-phone:hover { color: var(--gold); }
.header-solid .header-phone { color: var(--navy); }
.header-solid .header-phone:hover { color: var(--gold); }

/* Mobile toggle */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}
.header-transparent .mobile-toggle { color: #fff; }
.header-solid .mobile-toggle { color: var(--navy); }
.mobile-toggle .icon-menu { display: block; width: 24px; height: 24px; }
.mobile-toggle .icon-close { display: none; width: 24px; height: 24px; }
.mobile-toggle.is-open .icon-menu { display: none; }
.mobile-toggle.is-open .icon-close { display: block; }

/* Mobile sheet */
.mobile-sheet {
  border-top: 1px solid rgba(10, 37, 64, 0.1);
  background: var(--cream);
}
.mobile-sheet-inner { padding: 24px; }
.mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
}
.mobile-group { padding: 12px 0; }
.mobile-group-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.mobile-sublink {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  color: var(--slate);
}
.mobile-cta-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.mobile-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-lg {
  padding: 14px 28px;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: rgba(10, 37, 64, 0.9); }
.btn-outline-navy {
  background: transparent;
  border: 1px solid rgba(10, 37, 64, 0.15);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-image {
  position: absolute;
  inset: -4%; /* slight overscan so the zoom never reveals edges */
  background-image: url('https://images.unsplash.com/photo-1494412651409-8963ce7935a7?fm=jpg&q=80&w=2400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurnsEscoto 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurnsEscoto {
  0% { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image { animation: none; transform: scale(1.05); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.75) 50%, rgba(10, 37, 64, 0.55) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(to right, rgba(10, 37, 64, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 37, 64, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 128px;
  padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .hero-content { padding-top: 96px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
}
.dot-gold {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-title {
  max-width: 56rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title-accent {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  max-width: 42rem;
  margin-top: 32px;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  z-index: 1;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--cream);
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
}
.trust-strip > .container { padding-top: 40px; padding-bottom: 40px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(5, 1fr); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}
.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(10, 37, 64, 0.05);
  color: var(--navy);
}
.trust-icon svg { width: 20px; height: 20px; }

/* ============================================================
   FOUNDER NOTE
   ============================================================ */
.founder {
  background: var(--cream);
  padding: 96px 0;
}
@media (min-width: 1024px) {
  .founder { padding: 128px 0; }
}
.founder-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .founder-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.founder-portrait-wrap { position: relative; }
.founder-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}
.founder-portrait-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}
.founder-portrait-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.founder-monogram {
  width: 128px;
  height: 128px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  background: var(--navy);
}
.founder-monogram span {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
}
.founder-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}
.founder-role {
  margin-top: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.founder-note-text {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.founder-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.founder-glow-tr {
  top: -24px;
  right: -24px;
  width: 96px;
  height: 96px;
  background: rgba(201, 162, 39, 0.2);
}
.founder-glow-bl {
  bottom: -32px;
  left: -32px;
  width: 128px;
  height: 128px;
  background: rgba(201, 162, 39, 0.1);
}

.founder-floating-card {
  display: none;
  position: absolute;
  bottom: -24px;
  right: -24px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  outline: 1px solid rgba(10, 37, 64, 0.05);
}
@media (min-width: 640px) {
  .founder-floating-card { display: flex; }
}
.founder-floating-card .gold { color: var(--gold); }
.founder-floating-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.founder-floating-phone {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.quote-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: rgba(201, 162, 39, 0.3);
}

.founder-prose {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
}

.founder-signature {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
}
.founder-signature-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
}
.founder-signature-role {
  font-size: 14px;
  color: var(--slate);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: #fff;
  padding: 96px 0;
}
@media (min-width: 1024px) {
  .services { padding: 128px 0; }
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 64px;
}
.section-intro-lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
}

.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--cream);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius-xl);
  transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .service-card-wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .service-card-wide { grid-column: auto; }
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--navy);
}
.service-icon svg { width: 24px; height: 24px; }

.service-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.service-desc {
  flex: 1;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.service-cta svg { transition: transform 0.2s; }
.service-card:hover .service-cta svg { transform: translateX(4px); }

/* ============================================================
   WHY ESCOTO (stats)
   ============================================================ */
.why {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 96px 0;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .why { padding: 128px 0; }
}
.why-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.why-glow {
  position: absolute;
  right: -128px;
  top: 50%;
  transform: translateY(-50%);
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  filter: blur(80px);
}
.why-inner { position: relative; }

.stats-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--navy);
  padding: 32px;
}
@media (min-width: 1024px) {
  .stat { padding: 40px; }
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.stat-sub {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--cream);
  padding: 96px 0;
}
@media (min-width: 1024px) {
  .process { padding: 128px 0; }
}
.process-steps {
  position: relative;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
.process-line {
  display: none;
}
@media (min-width: 1024px) {
  .process-line {
    display: block;
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(10, 37, 64, 0.2), transparent);
  }
}
.process-step { position: relative; }
.process-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: 1px solid rgba(10, 37, 64, 0.08);
  z-index: 1;
}
.process-icon-wrap svg {
  width: 24px; height: 24px;
  color: var(--navy);
}
.process-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
}
.process-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
}
.process-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(to right, var(--navy), var(--navy), var(--navy-light));
  color: #fff;
  overflow: hidden;
}
.cta-band-glow {
  position: absolute;
  left: -128px;
  top: 0;
  bottom: 0;
  width: 384px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  filter: blur(80px);
}
.cta-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}
.cta-lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.cta-card {
  padding: 32px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 1024px) {
  .cta-card { justify-self: end; }
}
.cta-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.cta-phone {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s;
}
.cta-phone:hover { color: var(--gold); }
.cta-card-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   CONTACT SECTION (homepage)
   ============================================================ */
.contact-section {
  background: #fff;
  padding: 96px 0;
}
@media (min-width: 1024px) {
  .contact-section { padding: 128px 0; }
}
.contact-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-map {
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  min-height: 420px;
  height: 100%;
  border: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-row-link { transition: transform 0.15s; }
.contact-row-link:hover { transform: translateX(2px); }

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(10, 37, 64, 0.05);
  color: var(--navy);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-row-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.contact-row-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
}
.contact-row-link:hover .contact-row-value { color: var(--gold); }
.contact-row-sub {
  font-size: 14px;
  color: var(--slate);
}
.contact-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 64px 0 0;
}
@media (min-width: 1024px) {
  .footer { padding-top: 80px; }
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
  }
}

.footer-brand .logo { margin-bottom: 24px; }
.footer-blurb {
  max-width: 24rem;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
a.footer-contact-row:hover { color: var(--gold); }
.footer-contact-row svg { flex-shrink: 0; margin-top: 2px; }

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.footer-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer-list a:hover { color: #fff; }
.footer-portal {
  margin-top: 32px;
}

.footer-bottom {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}
.footer-copy {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
}
.footer-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Hide elements that are visible only beyond mobile breakpoint */
@media (max-width: 639px) {
  .founder-floating-card { display: none; }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  background: #fff;
  padding: 96px 0;
}
@media (min-width: 1024px) {
  .video-section { padding: 128px 0; }
}

/* Centered intro variant */
.section-intro-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-intro-center .eyebrow {
  /* allow centering of an inline-flex element */
  display: inline-flex;
}

/* Video frame container */
.video-frame {
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(10, 37, 64, 0.35);
  outline: 1px solid rgba(10, 37, 64, 0.08);
  background: var(--navy);
}
.video-frame::before {
  /* Reserve aspect ratio so layout doesn't shift when the iframe loads */
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

/* Thumbnail button (initial state — no YouTube loaded yet) */
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
  overflow: hidden;
  display: block;
  transition: transform 0.3s ease;
}
.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s ease;
}
.video-thumb:hover .video-thumb-img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

/* Dark overlay so the play button + text are always readable */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 37, 64, 0.55) 0%,
    rgba(10, 37, 64, 0.15) 40%,
    rgba(10, 37, 64, 0.25) 100%
  );
}

/* Play button — large, centered, gold */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(248, 247, 244, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}
@media (min-width: 768px) {
  .video-play {
    width: 104px;
    height: 104px;
  }
}
.video-play svg {
  width: 36px;
  height: 36px;
  /* Optical centering: the play triangle's visual center is offset right of geometric center */
  margin-left: 4px;
}
@media (min-width: 768px) {
  .video-play svg {
    width: 44px;
    height: 44px;
  }
}
.video-thumb:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--gold-dark);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(248, 247, 244, 0.18);
}
.video-thumb:focus-visible .video-play {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* Pulsing ring around play button (subtle attention-grabber) */
@keyframes videoPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(248, 247, 244, 0.15), 0 0 0 8px rgba(201, 162, 39, 0); }
  50% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(248, 247, 244, 0.15), 0 0 0 24px rgba(201, 162, 39, 0); }
}
.video-play {
  animation: videoPulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .video-play { animation: none; }
}

/* Meta info anchored bottom-left */
.video-thumb-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  pointer-events: none;
}
@media (min-width: 768px) {
  .video-thumb-meta {
    left: 32px;
    right: 32px;
    bottom: 28px;
  }
}
.video-thumb-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.video-thumb-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .video-thumb-title {
    font-size: 24px;
  }
}

/* Iframe (replaces the thumbnail after click) */
.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   SERVICE PAGES
   ============================================================ */

/* Page hero (smaller than homepage hero, on inner pages) */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .page-hero { padding: 200px 0 96px; }
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.page-hero-glow-tr {
  top: -128px;
  right: -128px;
  width: 384px;
  height: 384px;
  background: rgba(201, 162, 39, 0.1);
}
.page-hero-glow-bl {
  bottom: -128px;
  left: -128px;
  width: 384px;
  height: 384px;
  background: rgba(27, 58, 90, 0.4);
}
.page-hero-inner { position: relative; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumbs a {
  color: inherit;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumb-current { color: rgba(255, 255, 255, 0.85); }
.breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-hero-sub {
  max-width: 48rem;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* Active state in nav */
.nav-link-active { color: var(--gold) !important; }
.dropdown-active {
  background: var(--cream);
  color: var(--gold) !important;
}

/* Header on inner pages: solid by default + slight elevation when scrolled */
.header.header-scrolled {
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08);
}

/* ----- Service content layout ----- */
.service-content {
  background: var(--cream);
  padding: 80px 0;
}
@media (min-width: 1024px) {
  .service-content { padding: 112px 0; }
}
.service-layout {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: 8fr 4fr;
    gap: 48px;
  }
}

/* Numbered content blocks */
.service-block {
  margin-bottom: 56px;
}
.service-block:last-child { margin-bottom: 0; }
.service-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.service-block-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.service-block-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.service-block-intro {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
}

/* Check item grid */
.check-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.check-item:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-1px);
}
.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold);
}
.check-icon svg { width: 100%; height: 100%; }

/* FAQ */
.faq-block { margin-top: 80px; }
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.faq-open {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  margin-top: 4px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.05);
  color: var(--navy);
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-open .faq-icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
}
.faq-open .faq-a { display: block; }

/* ----- Sticky sidebar ----- */
.service-aside {
  position: relative;
}
.service-sticky {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .service-sticky {
    position: sticky;
    top: 112px;
  }
}

.aside-card {
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.aside-card-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.aside-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 8px;
}
.aside-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.aside-title.light { color: #fff; font-size: 20px; }
.aside-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}
.aside-btn {
  display: flex;
  width: 100%;
  margin-top: 24px;
}
.aside-divider {
  height: 1px;
  margin: 24px 0;
  background: rgba(10, 37, 64, 0.1);
}
.aside-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aside-phone-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.aside-phone-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
}

.aside-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s, color 0.2s;
}
.aside-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.aside-links svg {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.aside-links a:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

/* ============================================================
   CONTACT FORM (Escoto navy/gold variant)
   ============================================================ */
.contact-form-card {
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
@media (min-width: 640px) {
  .contact-form-card { padding: 40px; }
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(10, 37, 64, 0.15);
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}
.form-success {
  display: none;
  padding: 32px;
  text-align: center;
  background: rgba(201, 162, 39, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-md);
}
.form-success.show { display: block; }
.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
}
.form-success-icon svg { width: 28px; height: 28px; }
