/* ============================================================
   DAT Geoscience — style.css
   Palette: deep slate anchor + green→blue geological ramp
   Type: Montserrat (display, tracked) · Inter (body)
   Signature: strata bands offset across a normal-fault line
   ============================================================ */

:root {
  /* Brand palette (from the DAT Geoscience brand guide) */
  --slate:       #0F2A43;   /* anchor: dark bg, headings, body-on-light */
  --slate-deep:  #0A2036;   /* deeper slate for layered dark sections   */
  --slate-line:  #1d4260;   /* hairlines on slate                        */
  --green:       #1D9E75;   /* signature accent — links, highlights     */
  --green-light: #5DCAA5;   /* mint — subtitles on dark, hovers          */
  --green-deep:  #14795a;   /* green for hover on light                  */
  --blue:        #378ADD;   /* structural blue — data/technical accents  */
  --blue-deep:   #185FA5;   /* blue on white                             */

  --text:      #16222e;     /* primary text (slate-tinted near-black)    */
  --text-soft: #4a5b68;     /* secondary text                           */
  --text-mute: #7c8892;     /* muted / captions                         */

  --bg:        #ffffff;
  --bg-off:    #f4f6f8;     /* cool off-white with a slate tint         */
  --bg-subtle: #eaeff3;

  --border: rgba(15,42,67,0.12);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow:    0 1px 3px rgba(15,42,67,0.06), 0 6px 20px rgba(15,42,67,0.06);
  --shadow-lg: 0 10px 40px rgba(15,42,67,0.14);

  --wrap: 1160px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------- eyebrow / section headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-intro {
  max-width: none;
  color: var(--text-soft);
  font-size: 18px;
  margin-top: 14px;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--slate);
  text-transform: uppercase;
}
.nav-brand .brand-sub {
  letter-spacing: 0.14em;
  color: var(--green-deep);
  font-weight: 500;
}
.nav-logo-img { height: 34px; width: auto; display: block; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .has-dropdown > a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links > a:hover, .has-dropdown > a:hover { color: var(--slate); background: var(--bg-off); }
.nav-links a.active { color: var(--green-deep); }

.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.dropdown-menu a:hover { color: var(--slate); background: var(--bg-off); }

/* mega-menu (Services) — full-width panel under the nav */
.has-mega { position: static; }
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.has-mega.open .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { padding: 26px 28px 30px; }
.mega-all {
  display: inline-block; font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
  color: var(--green-deep); margin-bottom: 18px;
}
.mega-all:hover { color: var(--slate); }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.mega-col .mega-head {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.mega-col .mega-head a { color: var(--slate); transition: color .15s; }
.mega-col .mega-head a:hover { color: var(--green-deep); }
.mega-col a.mega-item {
  display: block; font-size: 13.5px; color: var(--text-soft);
  padding: 6px 0; line-height: 1.35; transition: color .15s;
}
.mega-col a.mega-item:hover { color: var(--green-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--slate); border-radius: 2px; margin: 4px 0; transition: .25s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--green-light); color: var(--green-light); }
.btn--dark-outline { background: transparent; color: var(--slate); border-color: var(--border); }
.btn--dark-outline:hover { border-color: var(--green); color: var(--green-deep); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   HERO  — slate, with the fault-strata signature
   ============================================================ */
.hero {
  position: relative;
  background: var(--slate);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 84px;
}
.hero::before {
  /* faint contour texture */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(55,138,221,0.18), transparent 60%),
    radial-gradient(900px 500px at -5% 110%, rgba(29,158,117,0.16), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero-lead {
  color: rgba(255,255,255,0.82);
  font-size: 19px;
  max-width: 540px;
  margin: 22px 0 30px;
}

/* the strata/fault signature figure */
.fault-figure { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

/* stats band under hero */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 60px; padding-top: 38px;
  border-top: 1px solid rgba(93,202,165,0.22);
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600; color: #fff; line-height: 1;
}
.stat-item .stat-num span { color: var(--green-light); }
.stat-item .stat-label {
  margin-top: 8px; font-size: 13px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 84px 0; }
.section--off { background: var(--bg-off); }
.section--slate { background: var(--slate); color: #fff; }
.section--slate .section-title { color: #fff; }
.section--slate .section-intro { color: rgba(255,255,255,0.7); }
.section--slate .eyebrow { color: var(--green-light); }

/* fault divider — the signature structural device */
.fault-divider { display: block; width: 100%; height: 34px; }

/* ============================================================
   SERVICE CARDS  (photo cards)
   ============================================================ */
.services-grid-photos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.svc-photo-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.svc-photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-subtle); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.svc-photo-card:hover .svc-photo img { transform: scale(1.05); }
.svc-photo-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-group-tag {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 9px;
}
.svc-photo-body h3 { font-size: 19px; margin-bottom: 8px; }
.svc-photo-body p { color: var(--text-soft); font-size: 15px; }
.service-more {
  margin-top: auto; padding-top: 14px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500; color: var(--green-deep);
}

/* grouped services blocks (services page) */
.services-block { margin-top: 8px; scroll-margin-top: 90px; }
.services-block + .services-block { margin-top: 56px; }
.services-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.services-block-head h2 { font-size: 24px; }
.group-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ============================================================
   WORLD MAP
   ============================================================ */
.worldmap-wrap { position: relative; width: 100%; max-width: 960px; margin: 0 auto; }
#worldmap { width: 100%; }
.worldmap-svg { width: 100%; height: auto; }
.map-countries path { fill: rgba(15,42,67,0.08); stroke: rgba(15,42,67,0.14); stroke-width: 0.15; }
.section--slate .map-countries path { fill: rgba(255,255,255,0.07); stroke: rgba(255,255,255,0.12); }
.map-pin { transform-box: fill-box; transform-origin: center; }
.pin-dot { fill: var(--green); }
.pin-pulse { fill: var(--green); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: pin 2.6s ease-out infinite; }
@keyframes pin { 0% { transform: scale(0.6); opacity: 0.5; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--slate); color: #fff; padding: 74px 0 62px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 90% -20%, rgba(55,138,221,0.18), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 18px; max-width: none; margin-top: 14px; }
.page-hero .eyebrow { color: var(--green-light); }

/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.svc-detail-banner { width: 100%; height: clamp(240px, 32vw, 480px); overflow: hidden; background: var(--bg-subtle); }
.svc-detail-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cv-narrative p { font-size: 18px; color: var(--text); line-height: 1.75; }
.cv-narrative p + p { margin-top: 18px; }

/* ============================================================
   ABOUT / PRINCIPALS
   ============================================================ */
.about-lead { font-size: clamp(20px, 3vw, 26px); font-family: var(--font-display); font-weight: 500; color: var(--slate); line-height: 1.4; }
.about-body p { color: var(--text-soft); font-size: 18px; margin-top: 18px; }
.principals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.principal-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.principal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.principal-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--slate); color: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  overflow: hidden;
}
.principal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.principal-head h3 { font-size: 19px; }
.principal-role { font-size: 13px; color: var(--blue-deep); font-family: var(--font-display); font-weight: 500; margin-top: 3px; }
.principal-card p { color: var(--text-soft); font-size: 15px; }
.principal-links { display: flex; gap: 14px; margin-top: 16px; }
.principal-links a { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--green-deep); }
.principal-links a:hover { color: var(--slate); }

/* what-we-do intro rows */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: var(--slate); color: #fff; border-radius: var(--radius-lg);
  padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.contact-card h2 { color: #fff; }
.contact-detail { margin-top: 18px; }
.contact-detail .lbl { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-light); font-family: var(--font-display); font-weight: 600; }
.contact-detail .val { font-size: 17px; color: #fff; margin-top: 4px; }
.contact-detail .val a { color: #fff; border-bottom: 1px solid var(--green-light); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { background: var(--slate-deep); color: #fff; padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 14px auto 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--slate-deep); color: rgba(255,255,255,0.72); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 320px; }
.footer-legal { font-size: 12.5px; color: rgba(255,255,255,0.4); margin-top: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color .15s; }
.footer-nav a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px; color: rgba(255,255,255,0.45);
}

/* ============================================================
   COURSE CARDS (training hub pages) + course pages
   ============================================================ */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 24px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--green), var(--blue));
}
a.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-duration {
  align-self: flex-start;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-ghost, #E1F5EE);
  padding: 4px 11px; border-radius: 100px; margin-bottom: 12px;
}
.course-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.25; }
.course-card p { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.course-card .service-more { margin-top: 14px; }

.glance-box {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px;
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px;
  align-items: baseline;
}
.glance-lbl { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.glance-val { color: var(--text); font-size: 15px; }
.glance-box--wide { grid-template-columns: auto 1fr; }

/* two-column course layout with sticky "at a glance" card on the right */
.course-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.course-main { min-width: 0; }
.course-main .cv-narrative p:first-child { margin-top: 0; }
.course-main .course-h2:first-child { margin-top: 0; }
.course-aside { position: sticky; top: 92px; }
.glance-card {
  background: var(--slate); color: #fff;
  border-radius: var(--radius-lg); padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}
.glance-card-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-light);
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(93,202,165,0.25);
}
.gc-row { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.gc-row:last-of-type { border-bottom: 0; }
.gc-lbl {
  display: block; font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-light); margin-bottom: 4px;
}
.gc-val { display: block; font-size: 14.5px; color: rgba(255,255,255,0.9); line-height: 1.45; }
.gc-val a { color: #fff; border-bottom: 1px solid var(--green-light); }
.glance-cta { width: 100%; justify-content: center; margin-top: 20px; }
.course-backlink { margin-top: 40px; }

/* consultancy service pages */
.benefits { display: grid; gap: 20px; }
.benefit { padding-left: 18px; border-left: 3px solid var(--green); }
.benefit-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.benefit-text { color: var(--text-soft); font-size: 15.5px; }
.second-opinion {
  margin-top: 40px; padding: 24px 26px;
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); border-top: 3px solid var(--blue);
}
.second-opinion h3 { font-family: var(--font-display); font-size: 19px; color: var(--slate); margin-bottom: 12px; }
.second-opinion p { color: var(--text-soft); font-size: 16px; }
.second-opinion p + p { margin-top: 12px; }
.help-list { list-style: none; margin: 4px 0 4px; display: grid; gap: 10px; }
.help-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: rgba(255,255,255,0.9); }
.help-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 6px;
  border-left: 2px solid var(--green-light); border-bottom: 2px solid var(--green-light);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .course-layout { display: flex; flex-direction: column; }
  .course-aside { position: static; order: -1; width: 100%; }
}


/* rich course page */
.course-h2 { font-size: 22px; margin: 40px 0 16px; }
.course-p { color: var(--text-soft); font-size: 17px; }
.course-lead {
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  color: var(--slate); line-height: 1.5;
  border-left: 3px solid var(--green); padding-left: 18px; margin-top: 22px;
}
.day-figure { display: none; margin-top: 14px; }
.day-figure.loaded { display: block; }
.day-figure img { width: 100%; border-radius: var(--radius-sm); }
.day-figure figcaption { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; }
.covered-list { list-style: none; display: grid; gap: 10px; }
.covered-list li { position: relative; padding-left: 28px; color: var(--text); font-size: 16px; }
.covered-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.day-list { display: grid; gap: 16px; }
.day-card { display: grid; grid-template-columns: 92px 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.day-num {
  background: var(--slate); color: var(--green-light);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 18px 8px;
}
.day-body { padding: 20px 22px; }
.day-body h3 { font-size: 18px; }
.day-localities { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--blue-deep); margin: 6px 0 8px; }
.day-body p { color: var(--text-soft); font-size: 15px; }
.course-optional-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--slate); margin: 28px 0 6px; }
.course-optional-note { color: var(--text-soft); font-size: 15px; margin-bottom: 14px; }
.day-card--optional { border-style: dashed; background: var(--bg-off); }
.day-num--optional {
  background: transparent; color: var(--green-deep);
  border-right: 1px dashed var(--border);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.prereq-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.prereq-row:last-child { border-bottom: 0; }
.prereq-lbl { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); padding-top: 2px; }
.prereq-row p { color: var(--text-soft); font-size: 15px; }
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.incl-col { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.incl-head { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.incl-list { list-style: none; display: grid; gap: 8px; }
.incl-list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--text); }
.incl-list li.yes::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.incl-list li.no::before { content: "—"; position: absolute; left: 0; color: var(--text-mute); }
.course-pubs { margin-top: 4px; }
.pub-primary { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 16px 34px; margin-left: -0px; }
.pub-primary::before { left: 12px; top: 17px; }
.pub-badge { display: inline-block; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); background: var(--green-ghost, #E1F5EE); padding: 3px 9px; border-radius: 100px; margin-bottom: 8px; }

/* injected semantic HTML body (e.g. GIS course) */
.course-content > p { color: var(--text-soft); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.course-content > h3 {
  font-family: var(--font-display); font-size: 22px; color: var(--slate);
  margin: 38px 0 14px; line-height: 1.2;
}
.course-content > h4 {
  font-family: var(--font-display); font-size: 16.5px; color: var(--slate);
  margin: 24px 0 6px; padding-left: 14px; border-left: 3px solid var(--green); line-height: 1.3;
}
.course-content > h4 + p { padding-left: 14px; color: var(--text-soft); font-size: 15.5px; margin-bottom: 14px; }
.course-content > ul, .course-content > ol { margin: 0 0 16px 20px; color: var(--text-soft); }
.course-content > ul li, .course-content > ol li { margin-bottom: 6px; }

/* keep course-card summaries from blowing out the grid when long */
.course-card p {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   PROFILE PAGES
   ============================================================ */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.profile-aside { position: sticky; top: 92px; }
.profile-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--slate); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.profile-photo .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .ph-initials { font-family: var(--font-display); font-weight: 600; font-size: 64px; color: var(--green-light); }
.profile-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.profile-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--slate); padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .18s, color .18s;
}
.profile-links a:hover { border-color: var(--green); color: var(--green-deep); }
.profile-body .cv-narrative p { font-size: 17px; }
.profile-section-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep);
  margin: 34px 0 14px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--slate);
  background: var(--bg-off); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 100px;
}
.recognition-list { list-style: none; }
.recognition-list li { position: relative; padding-left: 20px; color: var(--text-soft); margin-bottom: 8px; }
.recognition-list li::before { content: "▸"; position: absolute; left: 0; color: var(--green); }
.placeholder-note {
  border: 1px dashed rgba(15,42,67,0.28); border-radius: var(--radius);
  background: var(--bg-off); padding: 16px 18px; color: var(--text-mute);
  font-size: 14.5px;
}
.pub-list { list-style: none; counter-reset: pub; }
.pub {
  position: relative; padding: 0 0 16px 34px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pub:last-child { border-bottom: 0; margin-bottom: 0; }
.pub::before {
  counter-increment: pub; content: counter(pub);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--green-deep); background: var(--green-ghost, #E1F5EE);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pub-title {
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  color: var(--slate); line-height: 1.4; display: inline; border-bottom: 1px solid transparent;
}
.pub-title:hover { color: var(--green-deep); border-bottom-color: var(--green); }
.pub-meta { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; }
.card-profile-link {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--green-deep);
}
a.principal-card { text-decoration: none; }
a.principal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; transition: transform .2s, box-shadow .2s; }

/* ============================================================
   COURSE HUB + CARDS (training branch)
   ============================================================ */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.course-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.course-card-top h3 { font-size: 18px; }
.duration-pill {
  flex: none; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--blue-deep); background: rgba(55,138,221,0.10);
  border: 1px solid rgba(55,138,221,0.25); padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.course-card p { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.course-card .service-more { margin-top: 14px; }
.duration-inline {
  display: inline-block; font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--green-light); margin-top: 8px;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
  .nav-toggle { display: block; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; padding: 0 0 0 12px; transition: max-height .25s; }
  .has-dropdown.open .dropdown-menu { max-height: 600px; }
  /* mega-menu collapses to an in-panel accordion on mobile */
  .mega-menu {
    position: static; box-shadow: none; border: 0; background: transparent;
    opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .has-mega.open .mega-menu { max-height: 1400px; }
  .mega-inner { padding: 8px 0 8px 12px; }
  .mega-all { margin-bottom: 12px; }
  .mega-cols { grid-template-columns: 1fr; gap: 16px; }
  .mega-col .mega-head { margin-bottom: 8px; padding-bottom: 6px; }
  .mega-col a.mega-item { padding: 7px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { max-width: 420px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-grid-photos, .expertise-grid, .principals-grid, .course-grid { grid-template-columns: 1fr; }
  .incl-grid { grid-template-columns: 1fr; }
  .day-card { grid-template-columns: 64px 1fr; }
  .prereq-row { grid-template-columns: 1fr; gap: 4px; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 68px 0 60px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* keyboard focus */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
