/* ============================================================
   TAYLOR ENGINEERING AGENCIES LIMITED — BASE STYLES
   tayeng.com
   ============================================================ */

/* ── 1. TOKENS ───────────────────────────────────────────────── */
:root {
  --navy:        #0f1f38;
  --navy-dark:   #0a1628;
  --navy-card:   #152840;
  --white:       #ffffff;
  --gold:        #f0a500;
  --gold-dark:   #c88a00;
  --gray-light:  #f4f7fb;
  --gray-mid:    #6b7990;
  --text:        #1a2a3a;
  --border:      #dde3ed;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-height:  72px;
  --container:   1160px;
  --radius:      8px;
  --radius-sm:   4px;
  --ease:        200ms ease;

  /* Motion — strong custom curves (built-in easings lack punch). */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);   /* entrances, feedback */
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);   /* on-screen movement  */
  --reveal-dur:   640ms;
}

/* ── MOTION FOUNDATION ────────────────────────────────────────
   Scroll-reveal primitives. The hidden state is gated behind scripting being
   enabled — pure CSS, no inline flag needed per page — so without JS (or in a
   non-rendering crawler) every section ships fully visible, never blank. */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--reveal-dur) var(--ease-out),
                transform var(--reveal-dur) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  /* Deeper, filmic variant — more travel + a brief blur, for hero/section
     moments where a cinematic arrival is wanted. */
  [data-reveal="deep"] {
    transform: translateY(40px) scale(0.985);
    filter: blur(10px);
    transition: opacity 880ms var(--ease-out),
                transform 880ms var(--ease-out),
                filter 880ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal="deep"].is-visible {
    transform: none;
    filter: blur(0);
  }
}

/* Reduced motion: reveal instantly, no movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-height);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.hidden { display: none !important; }

.show-on-mobile { display: none; }

/* ── 3. LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section--gray { background: var(--gray-light); }
.section--navy { background: var(--navy); }

/* ── 4. TYPOGRAPHY UTILITIES ─────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-top: 0.625rem;
}
.section-title--light { color: var(--white); }

.section-lead {
  font-size: 1.0625rem;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 1rem;
  text-wrap: pretty;
}
.section-lead--light { color: rgba(255,255,255,0.68); }

.divider {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 2rem;
}

/* Rounded media box — crops a photo, map, or iframe to fill its frame.
   Pages set their own size (height / aspect-ratio) on the same element. */
.photo-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
}
.photo-wrap picture,
.photo-wrap img,
.photo-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* ── 5. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.625rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform 160ms var(--ease-out), box-shadow var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
/* Press feedback — instant confirmation the interface heard the tap. */
.btn:active { transform: scale(0.97); }
.btn-gold:hover { box-shadow: 0 8px 22px rgba(240,165,0,0.22); }

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

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

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

.btn-primary       { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--gold-dark); }

/* ── 6. NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}
/* Nav spans the full viewport width (not the 1160px content container) so the
   logo sits at the far left and the links have room for a growing menu. */
.nav .container {
  height: 100%;
  max-width: none;
  padding: 0 2.25rem;
}
/* Solidifies once the page is scrolled past the hero crest. */
.nav--scrolled {
  background: rgba(10, 22, 40, 0.88);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;     /* links centred; logo sits left (absolute) */
  height: 100%;
}

/* Brand lockup — sits top-left on every page, links home. */
.nav__brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  transition: opacity var(--ease);
}
.nav__brand:hover { opacity: 0.82; }
.nav__brand-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--ease);
  padding: 8px 4px;
}
.nav__link:hover,
.nav__link--active { color: var(--white); }

.nav__hamburger {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Collapse to the hamburger before the centred links would meet the left
   logo (earlier than the 768px global mobile layout). 1100px covers landscape
   phones. MUST come after the .nav__links/.nav__hamburger base rules above —
   same specificity, so source order decides which wins. */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link {
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1rem;
}
.nav__mobile .btn { margin-top: 1.25rem; align-self: flex-start; }

/* Desktop "Sectors" dropdown */
.nav__dropdown { position: relative; }
.nav__link--has-caret::after {
  content: '\25BE';
  margin-left: 0.35rem;
  font-size: 0.7em;
  vertical-align: middle;
}
.nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
  z-index: 200;
}
.nav__dropdown:hover .nav__submenu,
.nav__dropdown:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
}
.nav__submenu a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.nav__submenu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* Mobile "Sectors" group */
.nav__mobile-label {
  padding: 0.9rem 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__mobile .nav__link--sub { padding-left: 1rem; color: rgba(255,255,255,0.62); }

/* ── 7. PAGE HERO (about / services / coverage / contact) ────── */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-height));
  background: var(--navy-dark);
  background-size: cover;
  background-position: center;
}

/* Optional photo layer behind the overlay (sector/services heroes). */
.page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-hero__bg picture,
.page-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  /* Soft top highlight + a low gold glow rising from below = cinematic depth
     on the navy hero, without forcing a colour at the section seam. */
  background:
    radial-gradient(130% 100% at 50% -10%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(100% 80% at 50% 116%, rgba(240,165,0,0.08) 0%, rgba(240,165,0,0) 55%);
}
/* With a photo behind, the decorative glow becomes a real navy scrim so the
   title and lead keep AA contrast over any image. */
.page-hero--photo .page-hero__overlay {
  background: linear-gradient(180deg,
    rgba(10,22,40,0.88) 0%,
    rgba(10,22,40,0.72) 48%,
    rgba(10,22,40,0.88) 100%);
}
.page-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Inner-page hero entrance — pure CSS, runs on load, no per-page hooks. */
@media (prefers-reduced-motion: no-preference) {
  .page-hero__content > * {
    opacity: 0;
    animation: heroRise 0.72s var(--ease-out) both;
  }
  .page-hero__content > *:nth-child(1) { animation-delay: 0.06s; }
  .page-hero__content > *:nth-child(2) { animation-delay: 0.14s; }
  .page-hero__content > *:nth-child(3) { animation-delay: 0.22s; }
  .page-hero__content > *:nth-child(4) { animation-delay: 0.30s; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero__content .eyebrow {
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) 0 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}

.page-hero .hero__lead {
  font-size: 1.0625rem;
  color: var(--white);
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* ── 8. CONTACT CTA BANNER (used on every page) ──────────────── */
.contact-cta {
  background: var(--navy);
  padding: 3.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-cta__text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.contact-cta__sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
  max-width: 55ch;
}

/* ── 8b. SECTOR CARDS (navy grid on home + services) ─────────── */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.sector-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 280ms var(--ease-out),
              transform 280ms var(--ease-out),
              background 280ms var(--ease-out),
              box-shadow 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sector-card:hover {
    border-color: rgba(240,165,0,0.5);
    transform: translateY(-3px);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
  }
}
.sector-card:active { transform: translateY(-1px) scale(0.995); }
.sector-card__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.sector-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  flex: 1;
}
.sector-card__link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
}
.sector-card__arrow {
  display: inline-block;
  transition: transform 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sector-card:hover .sector-card__arrow { transform: translateX(4px); }
}
@media (max-width: 680px)  { .sectors__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .sectors__grid { grid-template-columns: 1fr; } }

/* ── 9. FORMS (used on contact page) ─────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,165,0,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7990' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit { margin-top: 1.5rem; }
.form-submit .btn { width: auto; }

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.form-message--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-message--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.banner {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  text-align: center;
}
.banner--success { background: #ecfdf5; color: #065f46; }

/* Honeypot field — hide visually but stay focusable for bots that look */
.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── 10. FOOTER ──────────────────────────────────────────────── */
.footer__wrapper {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

.footer__logo {
  height: 100px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  max-width: 28ch;
}

.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.52);
  transition: color var(--ease);
}
.footer__link:hover { color: var(--white); }

/* Two-column rows: fixed label column + value column, so every value
   (phone, email, the multi-line address) lines up vertically. */
.footer__contact-line {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer__contact-line strong {
  flex: 0 0 5.75rem;
  white-space: nowrap;
}

/* Contact page phone list: align the numbers in a column. */
.contact__detail-value strong {
  display: inline-block;
  min-width: 5.75rem;
  margin-right: 0.25rem;
  vertical-align: top;
}

/* Centered call-to-action below the footer columns. */
.footer__cta {
  text-align: center;
  margin-top: 3rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.32);
}

.footer__legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer__legal-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.32);
  transition: color var(--ease);
}
.footer__legal-link:hover { color: rgba(255,255,255,0.65); }

/* ── 11. RESPONSIVE ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .container { padding: 0 1.5rem; }

  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: block; }

  .nav { background: rgba(10, 22, 40, 0.85); }
  .nav .container { height: 100%; }
  .nav__inner { height: var(--nav-height); padding-top: 0; }
  .nav__brand-img { height: 32px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .page-hero {
    justify-content: flex-start;
  }
  .page-hero__overlay {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.25) 35%,
      rgba(0,0,0,0.30) 65%,
      rgba(0,0,0,0.60) 100%);
  }
  .page-hero__content { padding: calc(var(--nav-height) + 1.75rem) 1.25rem 2.25rem; }
  .page-hero__title { font-size: clamp(1.875rem, 7.5vw, 2.5rem); margin-top: 1rem; }
  .page-hero .hero__lead { font-size: 1rem; line-height: 1.6; max-width: 32ch; }

  .contact-cta { padding: 2.75rem 0; }
  .contact-cta__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .contact-cta__inner .btn { width: auto; min-width: 220px; align-self: center; }

  .form-row { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; padding: 2.75rem 0 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal-links { flex-wrap: wrap; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .page-hero__content { padding: calc(var(--nav-height) + 1.5rem) 1rem 1.75rem; }
  .page-hero__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .page-hero .hero__lead { font-size: 0.95rem; max-width: 30ch; }
}

/* Ultra-narrow phones (iPhone SE, small Android) */
@media (max-width: 380px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .btn { padding: 0.7rem 1.25rem; font-size: 0.8125rem; }
}
