:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #0f1c2e;
  --muted: #4a5d73;
  --accent: #0d5c63;
  --accent-hover: #094248;
  --border: #d9e0e8;
  --hero: #0c2340;
  --hero-text: #f6f4ef;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.nav-toggle-label {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--hero) 0%, #163a5f 100%);
  color: var(--hero-text);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero a {
  color: #9fd4d9;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 42rem;
  color: #c8d6e3;
}

.hero .eyebrow {
  color: #9fd4d9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
}

.entity-card {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  max-width: 36rem;
}

.entity-card dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.entity-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fd4d9;
  margin: 0;
}

.entity-card dd {
  margin: 0;
  font-size: 0.95rem;
}

/* Page header */
.page-header {
  padding: 2.5rem 1.35rem 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

.section {
  padding: 2rem 1.35rem 2.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 42rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card h2 a,
.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover {
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--hero);
  color: #c8d6e3;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: #9fd4d9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fd4d9;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
}

.fine-print {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 28rem;
}

.site-footer .fine-print {
  color: #8aa3b8;
}

.footer-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.footer-meta a {
  color: #8aa3b8;
}

/* Intake form (contact) */
.intake-section {
  padding-top: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-section-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bridge-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--border);
}

.bridge-badge {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 99px;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  max-width: 840px;
  margin: 0 auto;
}

.form-panel-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.form-panel-header h2 {
  margin: 0.5rem 0;
}

.secure-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}

.form-panel-intro {
  color: var(--muted);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(13, 92, 99, 0.25);
  border-color: var(--accent);
}

.required {
  color: #b54545;
}

.consent-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.form-consent-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.consent-label {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.5;
}

.consent-text a {
  font-weight: 600;
}

.form-submit-row {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.form-footnote {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}

.alert-error {
  background: #fdf5f5;
  border-color: #b54545;
}

.alert-success {
  background: #f4faf6;
  border-color: #1f7a4d;
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .header-inner {
    align-items: flex-start;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   Modern Global Professional refinements
   (added for contemporary global professional aesthetic)
   ======================================== */

/* Slightly richer, more sophisticated evolution of the palette */
:root {
  --accent: #0a4f55;           /* deeper, more premium teal */
  --accent-hover: #073a3f;
  --accent-light: #e0f0f2;     /* new subtle tint for accents */
  --global-line: #1a3a5c;      /* soft navy for global motif */
}

/* Sharper, more modern card treatment with global accent */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(12, 35, 64, 0.12);
  border-color: var(--accent);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card:hover h3 a {
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Global motif utility (subtle coordinate lines for Modern Global Professional) */
.global-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
  z-index: 1;
}

.global-lines .line {
  position: absolute;
  background: var(--global-line);
  height: 1px;
}

/* Light version in dark hero for visibility */
.hero .global-lines .line {
  background: #c8d6e3;
  opacity: 0.2;
}

.global-lines .line-h {
  width: 100%;
  left: 0;
}

.global-lines .line-v {
  width: 1px;
  height: 100%;
  top: 0;
}

/* Enhanced micro-interactions on CTAs (premium feel) */
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: translateX(300%);
}

/* Better nav active/hover for modern feel */
.site-nav a.active {
  color: var(--accent);
  position: relative;
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

/* Refined entity card for hero (more layered/modern) */
.entity-card {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  max-width: 38rem;
  transition: border-color 0.2s ease;
}

.entity-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Imagery support for Modern Global Professional */
.figure {
  margin: 1.5rem 0;
  max-width: 42rem;
}

.infographic {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .infographic {
    padding: 0.5rem;
    max-width: 100%;
  }
}

.infographic text {
  font-family: var(--font-body);
  fill: var(--text);
}

.infographic .accent {
  stroke: var(--accent);
  fill: var(--accent);
}

.infographic .muted {
  stroke: var(--muted);
  fill: var(--muted);
}

.hero-graphic {
  position: absolute;
  right: 92px;
  top: 42%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.73;
  z-index: 1;
  pointer-events: none;
  color: #c8d6e3; /* cool steel tone for dark hero background */
}

/* Hide graphic on narrow screens to avoid overlap with text */
@media (max-width: 900px) {
  .hero-graphic {
    display: none;
  }
}

.footer-accent {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-light), transparent);
  margin-bottom: 1rem;
  opacity: 0.6;
}