/*
 Theme Name:   Leadership with Ed
 Theme URI:    https://leadershipwithed.com
 Description:  Genesis child theme for Leadership with Ed (LED podcast)
 Author:       Lawton Marketing Group
 Author URI:   https://lawtonmg.com
 Template:     genesis
 Version:      1.4.2
 License:      GPL-2.0-or-later
 Text Domain:  led
*/

/* mfin1 — custom styles on top of Tailwind
   Placeholders replaced at build time: #000000 -> primary, #000000 -> secondary */

:root {
  --color-primary: #000000;
  --color-secondary: #000000;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  /* Offset for fixed header when jumping to anchors */
}

/* Header: scrolled state */
#site-header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
#site-header.scrolled .logo-white { display: none; }
#site-header.scrolled .logo-color { display: block; }
#site-header.scrolled .nav-link,
#site-header.scrolled .menu-toggle { color: var(--color-primary); }
#site-header.scrolled .portal-btn {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
#site-header.scrolled .portal-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Mobile menu open state */
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------
   Top-level nav: animated gold bar under each link.
   - Hover/focus: bar scales in from center (scaleX 0 -> 1).
   - `.is-active` keeps the bar pinned for the current page.
   ------------------------------------------------------------ */
#site-header .nav-link {
  position: relative;
  padding-bottom: 6px;
}
#site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
#site-header .nav-link:hover::after,
#site-header .nav-link:focus-visible::after,
#site-header .nav-link.is-active::after {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   Submenu: white card + staggered item entrance.
   Container visibility is handled by Tailwind utilities on the HTML
   (invisible/opacity-0 + group-hover:visible/group-hover:opacity-100).
   The card + per-item animations below trigger on `.nav-item:hover`.
   ------------------------------------------------------------ */
.nav-submenu-card {
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top center;
  transition: opacity 220ms ease-out, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-item:hover .nav-submenu-card,
.nav-item:focus-within .nav-submenu-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-submenu-card > a {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 300ms ease-out, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease-out, background-color 180ms ease-out;
}
.nav-item:hover .nav-submenu-card > a,
.nav-item:focus-within .nav-submenu-card > a {
  opacity: 1;
  transform: translateX(0);
}
.nav-item:hover .nav-submenu-card > a:nth-child(1),
.nav-item:focus-within .nav-submenu-card > a:nth-child(1) { transition-delay: 80ms, 80ms, 0ms, 0ms; }
.nav-item:hover .nav-submenu-card > a:nth-child(2),
.nav-item:focus-within .nav-submenu-card > a:nth-child(2) { transition-delay: 140ms, 140ms, 0ms, 0ms; }
.nav-item:hover .nav-submenu-card > a:nth-child(3),
.nav-item:focus-within .nav-submenu-card > a:nth-child(3) { transition-delay: 200ms, 200ms, 0ms, 0ms; }
.nav-item:hover .nav-submenu-card > a:nth-child(4),
.nav-item:focus-within .nav-submenu-card > a:nth-child(4) { transition-delay: 260ms, 260ms, 0ms, 0ms; }

/* Sub-item active state: gold text for the current page link. */
.nav-submenu-card > a.is-active {
  color: var(--color-secondary);
}

/* ------------------------------------------------------------
   Bio modal (<dialog> element).
   - Native <dialog> handles ESC + focus trap + body scroll lock.
   - @starting-style drives the elegant scale + fade entrance.
   ------------------------------------------------------------ */
dialog.bio-modal,
dialog.content-modal {
  max-width: 1200px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 4rem);
  padding: 0;
  border: none;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
dialog.content-modal {
  max-width: 800px;
}
dialog.bio-modal[open],
dialog.content-modal[open] {
  animation: bioModalIn 320ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
dialog.bio-modal::backdrop,
dialog.content-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  animation: bioModalBackdropIn 320ms ease-out both;
}
@keyframes bioModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bioModalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Shared modal internals — applies to bio-modal and content-modal */
.content-modal-body {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2rem;
}
@media (min-width: 768px) { .content-modal-body { padding: 3rem; } }
@media (min-width: 1024px) { .content-modal-body { padding: 4rem; } }

.content-modal-close {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1), background-color 200ms ease-out, color 200ms ease-out;
}
.content-modal-close:hover,
.content-modal-close:focus-visible {
  background: var(--color-secondary);
  transform: rotate(90deg) scale(1.05);
  outline: none;
}

.content-modal-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #f8fafc;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

body:has(dialog.bio-modal[open]),
body:has(dialog.content-modal[open]) { overflow: hidden; }

/* Clickable headshot */
.team-card .headshot {
  cursor: pointer;
  transition: opacity 220ms ease-out, transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.team-card .headshot:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Service cards
   ------------------------------------------------------------ */
.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 320ms ease-out, border-color 320ms ease-out;
  overflow: hidden;
}
.service-card:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.18);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #f8fafc;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  transition: background-color 320ms ease-out, color 320ms ease-out, transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: scale(1.05);
}

.service-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-primary);
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 220ms ease-out, gap 220ms ease-out;
}
.service-more-btn i {
  font-size: 10px;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.service-more-btn:hover {
  color: var(--color-secondary);
  gap: 1rem;
}
.service-more-btn:hover i {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   Process steps — large numeral + title + description row.
   ------------------------------------------------------------ */
.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.process-step:last-child { border-bottom: 0; }

@media (min-width: 640px) {
  .process-step {
    grid-template-columns: auto 1fr;
    padding: 2.5rem 0;
  }
}
@media (min-width: 1024px) {
  .process-step {
    grid-template-columns: minmax(140px, 200px) minmax(240px, 360px) 1fr;
    gap: 3rem;
    padding: 3rem 0;
  }
}

.step-number {
  font-family: Georgia, 'Times New Roman', ui-serif, serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
@media (min-width: 1024px) {
  .step-number { font-size: 5rem; }
}

.step-title {
  font-family: Georgia, 'Times New Roman', ui-serif, serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .step-title { font-size: 2rem; }
}

.step-description {
  color: #475569;
  line-height: 1.65;
  max-width: 640px;
}

/* ------------------------------------------------------------
   Contact form
   ------------------------------------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
  appearance: none;
  -webkit-appearance: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #cbd5e1;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.select-wrap { position: relative; }
.select-wrap select { padding-right: 2.75rem; cursor: pointer; }
.select-caret {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 11px;
  pointer-events: none;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: var(--color-primary);
  color: #ffffff;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 220ms ease-out, transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 220ms ease-out, gap 220ms ease-out;
}
.submit-btn i { font-size: 10px; transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1); }
.submit-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35);
  gap: 1rem;
}
.submit-btn:hover i { transform: translateX(3px); }
.submit-btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Contact sidebar
   ------------------------------------------------------------ */
.contact-panel {
  background: #f8fafc;
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--color-secondary);
}
@media (min-width: 1024px) {
  .contact-panel { padding: 3rem 2.5rem; }
}

.contact-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.contact-info-row--last { border-bottom: 0; }
.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.35rem;
}
.contact-info-value {
  color: var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-info-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 180ms ease-out;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-info-link:hover { color: var(--color-secondary); }

.contact-social { margin-top: 2rem; padding: 0 2rem; }
@media (min-width: 1024px) {
  .contact-social { padding: 0 2.5rem; }
}

/* Feature card: downward-pointing triangle notch at top-center */
.card-notch {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 14px solid #f1f5f9; /* slate-100, must match card bg */
}

/* ------------------------------------------------------------
   LED site overrides — pure black/white brand (colors extracted
   from LED Logo - Black.png; no brand guidelines supplied).
   ------------------------------------------------------------ */

/* Single supplied logo (black disc, white text, transparent bg).
   The "white" header/footer variant is a CSS inversion of the same
   file — white disc, black text — for use over dark backgrounds. */
.logo-white { filter: invert(1); }

/* Nav underline bar: white while the header is transparent over the
   dark hero video/banners; black once the header scrolls to white. */
#site-header:not(.scrolled) .nav-link::after { background: #ffffff; }
#site-header.scrolled .nav-link::after { background: #000000; }

/* Hero video: heavy dark casting requested in the site plan so the
   audience members aren't a focal point. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage hero: 45° shade from the bottom-left only (behind the headline). */
.hero-overlay {
  background: linear-gradient(45deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 30%, rgba(0,0,0,0) 62%);
}

/* Phones held sideways: the hero is too short for text to clear Ed's face,
   so the photo fills the screen un-shaded and the heading sits in a black
   band below it. (.hero/.page-hero prefixes outrank the Tailwind utilities.) */
@media (orientation: landscape) and (max-height: 500px) {
  .hero:has(.hero-media),
  .page-hero:has(.hero-media) {
    display: block;
    min-height: 0;
    background: #000;
  }
  .hero .hero-media,
  .page-hero .hero-media {
    position: relative;
    display: block;
    width: 100%;
    height: calc(100vh - 5.5rem);
    height: calc(100svh - 5.5rem); /* headline peeks above the fold */
  }
  .hero .hero-shade,
  .page-hero .hero-shade { display: none; }
  .hero .hero-copy,
  .page-hero:has(.hero-media) .hero-copy {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

/* ------------------------------------------------------------
   Footer social icons — each platform's brand color scheme
   (client-requested deviation from the black/white-only palette).
   ------------------------------------------------------------ */
.social-brand {
  border: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1), filter 200ms ease-out;
}
.social-brand:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.social-youtube   { background: #FF0000; }
.social-linkedin  { background: #0A66C2; }
.social-tiktok    { background: #010101; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); }
.social-instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.social-spotify   { background: #1DB954; }
.social-apple     { background: linear-gradient(180deg, #B150E2 0%, #872EC4 100%); }
.social-brand.social-amazon { background: #25D1DA; color: #0F1111; }

/* ------------------------------------------------------------
   Header logo — ~3x size at rest, ~2x once the header scrolls
   (client request). ID selector outranks the Tailwind h-14/h-16
   utilities the CDN injects after this sheet.
   ------------------------------------------------------------ */
#site-header .logo-white,
#site-header .logo-color {
  height: 7rem; /* mobile at rest */
  transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
#site-header.scrolled .logo-white,
#site-header.scrolled .logo-color {
  height: 4.5rem; /* mobile scrolled */
}
@media (min-width: 1024px) {
  #site-header .logo-white,
  #site-header .logo-color {
    height: 12rem; /* ~3x the original 4rem */
  }
  #site-header.scrolled .logo-white,
  #site-header.scrolled .logo-color {
    height: 8rem; /* ~2x */
  }
}

/* ------------------------------------------------------------
   Reveal / entrance animations (client request).
   - [data-reveal] elements rise+fade in when they enter the
     viewport (js/reveal.js adds .is-revealed via IntersectionObserver).
   - Above-the-fold elements intersect immediately on load, so their
     staggered --reveal-delay values become the entrance sequence.
   - The gate class .reveal-ready is added by JS before first paint;
     without JS nothing is ever hidden.
   - The fixed header enters as one piece via a keyframe.
   ------------------------------------------------------------ */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease-out,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Header holds hidden behind the preloader, then enters as one piece
   the moment the preloader lifts (html.led-loaded). */
.reveal-ready:not(.led-loaded) #site-header { opacity: 0; }
html.led-loaded #site-header {
  animation: ledHeaderIn 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes ledHeaderIn {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-ready:not(.led-loaded) #site-header { opacity: 1; }
  #site-header { animation: none !important; }
}

/* ------------------------------------------------------------
   Preloader — black screen, white pulsing LED logo. Only exists
   under .reveal-ready (JS on); JS fades it out on window load
   (3.5s failsafe) and removes it after the transition.
   ------------------------------------------------------------ */
#led-preloader { display: none; }
.reveal-ready #led-preloader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000000;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 600ms ease-out, visibility 0s linear 600ms;
}
.reveal-ready #led-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#led-preloader .preloader-logo {
  width: clamp(9rem, 24vw, 14rem);
  height: auto;
  filter: invert(1); /* white disc / black text, same treatment as .logo-white */
  animation: ledPreloaderPulse 1.6s ease-in-out infinite;
}
@keyframes ledPreloaderPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.94); }
  50%      { opacity: 1;    transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #led-preloader { display: none !important; }
}

/* ============================================================
   WordPress additions — Genesis structural + menus + Gravity
   Forms skin. Everything above is the static site's styles.css
   verbatim; everything below adapts it to WP markup.
   ============================================================ */

/* Genesis structural wrappers must never constrain the full-width
   sections that page content is built from. */
.site-inner,
.content-sidebar-wrap,
.content,
.entry,
.entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* WP menus: replicate the static nav's "no border on last mobile item" */
#mobile-menu nav a:last-child { border-bottom: 0; }

/* Genesis skip links — visually hidden until focused */
.genesis-skip-link { list-style: none; margin: 0; }
.genesis-skip-link .screen-reader-shortcut {
  position: absolute;
  top: -1000em;
  left: -1000em;
}
.genesis-skip-link .screen-reader-shortcut:focus {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1.25rem;
  clip: auto !important;
}

/* ------------------------------------------------------------
   Gravity Forms — skin the form to match the static contact form
   (.form-grid / .form-field / .submit-btn styles above).
   ------------------------------------------------------------ */
.gform_wrapper .gform_fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem !important;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .gform_wrapper .gform_fields {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.75rem !important;
  }
}
.gform_wrapper .gfield { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .gform_wrapper .gfield[data-field-span="6"],
  .gform_wrapper .gfield--width-half { grid-column: span 6; }
}

/* reCAPTCHA v2 is a fixed 304×78 iframe: shrink it to fit narrow form cards
   on phones (negative margin closes the gap the transform leaves). */
.gform_wrapper .gfield--type-captcha { container-type: inline-size; }
.gform_wrapper .ginput_recaptcha { transform-origin: 0 0; }
@container (max-width: 303px) { .gform_wrapper .ginput_recaptcha { transform: scale(.9); margin-bottom: -8px; } }
@container (max-width: 273px) { .gform_wrapper .ginput_recaptcha { transform: scale(.84); margin-bottom: -12px; } }
@container (max-width: 255px) { .gform_wrapper .ginput_recaptcha { transform: scale(.78); margin-bottom: -17px; } }
@container (max-width: 237px) { .gform_wrapper .ginput_recaptcha { transform: scale(.67); margin-bottom: -26px; } }

.gform_wrapper .gfield_label {
  display: block;
  font-size: 11px !important;
  letter-spacing: 0.22em;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}
/* Static form showed plain labels (required conveyed via the HTML
   attribute only) — hide GF's "(Required)" suffix. aria-required
   still announces the state to assistive tech. */
.gform_wrapper .gfield_required {
  display: none;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select,
.gform_wrapper textarea {
  width: 100%;
  padding: 0.875rem 1rem !important;
  background: #ffffff;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem !important;
  line-height: 1.4;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
  appearance: none;
  -webkit-appearance: none;
}
.gform_wrapper textarea {
  resize: vertical;
  min-height: 8rem;
}
/* GF's Orbital theme pins controls to height/line-height 38px; combined with
   our 14px vertical padding that leaves an 8px content box and the selected
   <option> text gets clipped (select looked blank). Let controls size to content. */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
}
.gform_wrapper select {
  padding-right: 2.75rem !important; /* room for the chevron */
}
.gform_wrapper input[type="text"]:hover,
.gform_wrapper input[type="email"]:hover,
.gform_wrapper input[type="tel"]:hover,
.gform_wrapper textarea:hover {
  border-color: #cbd5e1 !important;
}
.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus {
  outline: none;
  border-color: var(--color-secondary) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.gform_wrapper .gform_footer { padding: 0 !important; margin: 0 !important; }
.gform_wrapper input[type="submit"],
.gform_wrapper .gform_footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 220ms ease-out, transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 220ms ease-out;
}
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper .gform_footer button:hover {
  background: var(--color-secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35);
}
.gform_wrapper input[type="submit"]:focus-visible,
.gform_wrapper .gform_footer button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

.gform_confirmation_message {
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
  padding: 2rem;
  background: #f8fafc;
  border-top: 4px solid var(--color-secondary);
}

/* ------------------------------------------------------------
   404 page
   ------------------------------------------------------------ */
.led-404 {
  padding: 6rem 1.5rem;
  text-align: center;
}
.led-404 h2 {
  font-family: Georgia, 'Times New Roman', ui-serif, serif;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.led-404 p {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.led-404 .led-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 220ms ease-out, color 220ms ease-out;
}
.led-404 .led-404-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}
