/* ── Reset & Variables ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0A2540;
  --teal:       #00B5A8;
  --teal-light: #E0F5F3;
  --cream:      #F8F4EE;
  --charcoal:   #2C3E50;
  --muted:      #607080;
  --border:     #D8E4E2;
  --white:      #FFFFFF;
  --lgray:      #F4F7F6;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --nav-h:      64px;
  --max-w:      1100px;
  --pad:        clamp(24px, 5vw, 56px);
}

html { scroll-behavior: smooth; }

/* ── Site wrapper - centers all content ────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Nav ────────────────────────────────────────────────────────────── */
#navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2.5px solid var(--teal);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  cursor: pointer;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  color: var(--white);
  border-bottom: 2px solid var(--teal);
}

.nav-link:focus {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-cta {
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #009e93;
}

.nav-cta:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

.hamburger:focus {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Pages ──────────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: clamp(40px, 6vw, 64px) var(--pad) clamp(32px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 181, 168, 0.07);
  pointer-events: none;
}

.hero-short {
  padding-bottom: clamp(28px, 4vw, 40px);
}

.hero-h1-sm {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--white);
  line-height: 1.2;
  font-weight: 600;
  max-width: 520px;
  margin-bottom: 16px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--teal);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.5vw, 38px);
  color: var(--white);
  line-height: 1.18;
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 680px;
}

h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.78;
  margin-bottom: 30px;
  font-weight: 300;
  max-width: 520px;
}

.btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #009e93;
}

.btn-primary:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-full { width: 100%; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
}

.stat {
  flex: 1 1 120px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 20px;
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
  line-height: 1;
}

.stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 5px;
  letter-spacing: 0.05em;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section {
  padding: clamp(32px, 5vw, 52px) var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.section-cream {
  background: var(--cream);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--teal);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.25;
}

.section-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
  max-width: 600px;
  margin-bottom: 28px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 var(--pad);
}

/* ── Ideal Engagements Block ────────────────────────────────────────── */
.ideal-block {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.ideal-block h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ideal-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ideal-block li {
  font-size: 13px;
  color: var(--charcoal);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.ideal-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 24px 20px;
}

.card-icon {
  width: 38px;
  height: 38px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
}

.card h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Spec Band ──────────────────────────────────────────────────────── */
.spec-band {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 32px var(--pad);
}

.spec-band h2 {
  margin-bottom: 10px;
  max-width: 640px;
}

.spec-band p {
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.78;
  max-width: 680px;
  margin-bottom: 20px;
}

.spec-why {
  margin-top: 4px;
}

.spec-why strong {
  font-size: 12px;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.spec-why ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-why li {
  font-size: 13px;
  color: var(--charcoal);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.spec-why li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

/* ── Tags / Chips ───────────────────────────────────────────────────── */
.tag {
  background: var(--teal);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.tag-sm {
  background: var(--teal-light);
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  display: inline-block;
  font-weight: 500;
  white-space: nowrap;
}

.chip {
  font-size: 11px;
  color: var(--muted);
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 5px 12px;
  letter-spacing: 0.04em;
  display: inline-block;
}

/* ── About ──────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  align-items: start;
}

.headshot-wrap {
  width: 100%;
}

.headshot-img { width: 100%; height: auto; display: block; border-radius: 4px; border: 3px solid var(--teal); }

.creds-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.creds-list li {
  font-size: 12px;
  color: var(--charcoal);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.creds-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.about-right p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ── Sites Band ─────────────────────────────────────────────────────── */
.sites-band {
  background: var(--navy);
  padding: clamp(28px, 4vw, 44px) var(--pad);
}

.sites-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.sites-band h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.sites-band > .sites-inner > p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.site-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  padding: 10px 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.site-chip strong {
  display: block;
  color: var(--white);
  font-size: 11px;
  margin-bottom: 2px;
}

/* ── Timeline ───────────────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-year {
  font-size: 11px;
  color: var(--teal);
  min-width: 100px;
  padding-top: 2px;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tl-content h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

.tl-content p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Services ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--white);
  padding: 28px 24px;
}

.svc-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--border);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1;
}

.service-card h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.service-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ── Expertise ──────────────────────────────────────────────────────── */
.expertise-hero {
  background: var(--navy);
  padding: clamp(32px, 5vw, 48px) var(--pad);
}

.expertise-hero p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  line-height: 1.8;
}

/* ── Study Table ────────────────────────────────────────────────────── */
.study-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.study-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
}

.study-table th:nth-child(1) { width: 140px; }
.study-table th:nth-child(2) { width: 130px; }
.study-table th:nth-child(3) { width: auto; }
.study-table th:nth-child(4) { width: 150px; }

.study-table td {
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--charcoal);
  vertical-align: top;
  line-height: 1.55;
}

.study-table tbody tr:nth-child(even) td {
  background: var(--lgray);
}

.study-table tbody tr:hover td {
  background: var(--teal-light);
}

/* ── Contact ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 24px);
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--charcoal);
}

.contact-detail a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--teal);
}

.contact-detail a:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 500;
}

.req {
  color: var(--teal);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 181, 168, 0.12);
}

.form-row input.invalid,
.form-row textarea.invalid {
  border-color: #e24b4a;
}

.form-row textarea {
  resize: vertical;
  min-height: 96px;
}

.field-error {
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  display: block;
  min-height: 16px;
}

.form-success {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.65;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 24px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 2.5px solid var(--teal);
}

.footer-name {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.footer-name span {
  color: var(--teal);
}

.footer-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tl-item {
    flex-direction: column;
    gap: 4px;
  }

  .tl-year {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px var(--pad) 24px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: none;
  }

  .nav-link.active {
    border-bottom: none;
    color: var(--teal);
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  #navbar {
    position: relative;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    min-width: 100px;
  }

  .study-table th:nth-child(2),
  .study-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 540px) {
  .sites-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .study-table th:nth-child(4),
  .study-table td:nth-child(4) {
    display: none;
  }
}

/* ── Hero inner centering ────────────────────────────────────────── */
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Spec band inner centering ───────────────────────────────────── */
.spec-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Ideal block max width ───────────────────────────────────────── */
.ideal-block {
  max-width: 720px;
}

/* ── GEMS Media credit ───────────────────────────────────────────── */
.footer-gems {
  margin-top: 4px;
}

.footer-gems a {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-gems a:hover {
  color: var(--teal);
}
