/* =========================================================
   Protea Glen College — design system
   navy / cream / signal green, editorial serif + grotesk
   ========================================================= */

:root {
  --navy: #06102f;
  --navy-2: #0a1a45;
  --navy-3: #12265c;
  --ink: #0a1330;
  --paper: #fbfaf6;
  --cream: #f4efe4;
  --cream-2: #ece5d6;
  --green: #14b04a;
  --green-deep: #0b8c39;
  --lime: #c9f27a;
  --muted: #5d6478;
  --muted-light: rgba(255, 255, 255, 0.62);
  --line: rgba(10, 19, 48, 0.12);
  --line-strong: rgba(10, 19, 48, 0.2);
  --line-light: rgba(255, 255, 255, 0.14);

  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 8.5vw, 132px);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 70px -40px rgba(6, 16, 47, 0.55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); letter-spacing: -0.01em; line-height: 1.1; }
h4 { font-size: 1.2rem; letter-spacing: 0; line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection {
  background: var(--green);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
  position: relative;
  z-index: 2;
}

.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .lede,
.section--navy p { color: var(--muted-light); }

.grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 56px);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 176, 74, 0.14);
}

.section--navy .eyebrow { color: var(--lime); }
.section--navy .eyebrow::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 242, 122, 0.16); }

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

.italic { font-style: italic; }
.accent { color: var(--green); }
.hl {
  font-style: italic;
  background: linear-gradient(transparent 68%, rgba(201, 242, 122, 0.55) 68%);
}

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-head .lede { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.btn svg { flex: none; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: #04240f;
}
.btn--primary:hover { background: var(--lime); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(10, 19, 48, 0.04); }

.section--navy .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.section--navy .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s;
}
.link-arrow svg { transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--green-deep); border-color: var(--green-deep); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- topbar + header ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}

.topbar a { color: rgba(255, 255, 255, 0.82); transition: color 0.25s; }
.topbar a:hover { color: var(--lime); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-left span, .topbar-left a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(201, 242, 122, 0.18);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 30px -28px rgba(6, 16, 47, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
/* the supplied logo is a flattened PNG on white; multiply drops the white plate into the paper */
.brand img { height: 42px; width: auto; mix-blend-mode: multiply; }
.brand-tag {
  display: none;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #202844;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav a:hover { color: var(--navy); background: rgba(10, 19, 48, 0.05); }

.nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  background: rgba(20, 176, 74, 0.1);
  box-shadow: inset 0 0 0 1px rgba(20, 176, 74, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-actions .btn { padding: 12px 20px; font-size: 0.83rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 18px var(--gutter) 30px;
}

.mobile-nav.is-open { display: block; animation: drop 0.35s var(--ease); }

@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 500;
}

.mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(20, 176, 74, 0.12), transparent 62%),
    linear-gradient(to bottom, rgba(244, 239, 228, 0.9), rgba(251, 250, 246, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.hero-copy { padding-block: clamp(16px, 3vw, 38px); }

.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; color: var(--green-deep); }

.hero-sub {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: #414a63;
  max-width: 46ch;
  line-height: 1.72;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--green-deep); flex: none; }

/* collage */
.hero-visual { position: relative; }

.collage {
  display: grid;
  grid-template-columns: 1.34fr 0.66fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.collage figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.collage figure:hover img { transform: scale(1.04); }

.collage .shot-a {
  grid-row: span 2;
  aspect-ratio: 3 / 4.15;
}

.collage .shot-b { aspect-ratio: 1 / 1; }
.collage .shot-b img { object-position: 50% 22%; }
.collage .shot-c { aspect-ratio: 1 / 1; }

.badge-float {
  position: absolute;
  left: -18px;
  bottom: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.badge-float .ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 176, 74, 0.12);
  color: var(--green-deep);
  flex: none;
}

.badge-float strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
}

.badge-float span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 5px;
}

.stamp {
  position: absolute;
  top: -22px;
  right: -10px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--lime);
  color: #04240f;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 12px;
  transform: rotate(-8deg);
  box-shadow: 0 18px 40px -24px rgba(6, 16, 47, 0.6);
}

.stamp span { display: block; font-family: var(--display); font-size: 1.7rem; letter-spacing: 0; text-transform: none; line-height: 1; margin-bottom: 2px; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
}

.marquee-track .sep { color: var(--lime); font-size: 0.7rem; }

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 30px 26px 0 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stat strong sup { font-size: 0.4em; top: -0.9em; color: var(--green-deep); }
.stat span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- intro / about split ---------- */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}

.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }

.frame-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  background: rgba(6, 16, 47, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.frame-note svg { color: var(--lime); flex: none; }

.intro-copy h2 { margin-bottom: 24px; }
.intro-copy p { color: var(--muted); max-width: 54ch; }
.intro-copy .btn { margin-top: 30px; }

.pull-quote {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.9vw, 1.62rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  overflow: hidden;
}

.course::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.course:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -42px rgba(6, 16, 47, 0.55);
  border-color: rgba(20, 176, 74, 0.4);
}
.course:hover::after { transform: scaleX(1); }

.course-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.course-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--navy);
  flex: none;
}

.course-icon img { width: 22px; height: 22px; object-fit: contain; }

.course-no {
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.course h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  min-height: 2.2em;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(10, 19, 48, 0.05);
  color: #323b57;
  white-space: nowrap;
}

.chip--green { background: rgba(20, 176, 74, 0.1); color: var(--green-deep); }

.course p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.course .link-arrow { margin-top: auto; align-self: flex-start; font-size: 0.8rem; }

/* ---------- why / bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
}

.bento-card:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(201, 242, 122, 0.4); }

.bento-card--wide { grid-column: span 2; }

.bento-card h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 10px;
}

.bento-card p { font-size: 0.87rem; color: var(--muted-light); line-height: 1.6; }

.bento-card .num {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 22px;
  display: block;
}

.bento-card--stat { justify-content: flex-end; }
.bento-card--stat strong {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  color: var(--lime);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.bento-card--stat span { font-size: 0.82rem; color: var(--muted-light); line-height: 1.5; }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.member { position: relative; }

.member-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 4 / 4.9;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: saturate(0.92);
}

.member:hover .member-photo img { transform: scale(1.04); filter: saturate(1.05); }

.member-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.member h3 { font-size: 1.35rem; }
.member span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.member .social {
  display: inline-flex;
  gap: 6px;
  color: var(--muted);
}

.member .social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.member .social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- testimonials ---------- */
.quotes { position: relative; }

.quote-slide {
  display: none;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.quote-slide.is-active { display: grid; animation: fadeUp 0.6s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.quote-body blockquote {
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.quote-body blockquote::before {
  content: "“";
  display: block;
  font-size: 3.4em;
  line-height: 0.6;
  color: var(--green);
  margin-bottom: 0.18em;
}

.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-author img {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--cream-2);
}
.quote-author strong { display: block; font-size: 0.95rem; }
.quote-author span { display: block; font-size: 0.78rem; color: var(--muted); }

.quote-aside {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--cream-2);
}
.quote-aside img { width: 100%; height: 100%; object-fit: cover; }
.quote-aside .badge-float { left: 16px; bottom: 16px; right: 16px; animation: none; }

.quote-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.dot-btn {
  width: 34px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(10, 19, 48, 0.15);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.dot-btn[aria-selected="true"] { background: var(--green); width: 52px; }
.dot-btn:hover { background: rgba(10, 19, 48, 0.35); }

.quote-nav { margin-left: auto; display: flex; gap: 8px; }
.quote-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.quote-nav button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- project feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.feature .frame { aspect-ratio: 5 / 4; }
.feature h2 { color: #fff; margin-bottom: 22px; }
.feature p { color: var(--muted-light); }

.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.feature-list svg { color: var(--lime); flex: none; margin-top: 3px; }

/* ---------- gallery strip ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: var(--cream-2);
}

.gallery-strip figure:nth-child(even) { aspect-ratio: 3 / 4.4; }
.gallery-strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: grayscale(0.15);
}
.gallery-strip figure:hover img { transform: scale(1.06); filter: none; }

/* ---------- gallery page ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
  aspect-ratio: 4 / 3;
}

.gallery-grid figure.wide { grid-column: span 2; aspect-ratio: 8 / 3; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: saturate(0.95);
}

.gallery-grid figure:hover img { transform: scale(1.05); filter: saturate(1.05); }

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(6, 16, 47, 0.82));
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.gallery-grid figure:hover figcaption,
.gallery-grid figure:focus-within figcaption { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure.wide { grid-column: auto; }
}

/* ---------- accreditation ---------- */
.accred {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.accred figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 88px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.4s, opacity 0.4s;
}
.accred figure:hover { filter: none; opacity: 1; }
.accred img { max-height: 54px; width: auto; object-fit: contain; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(20, 176, 74, 0.22), transparent 66%);
}

.cta-band h2 { max-width: 19ch; margin-bottom: 20px; position: relative; }
.cta-band p { color: var(--muted); max-width: 46ch; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; position: relative; }

.cta-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  position: relative;
}

.cta-contact div span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}

.cta-contact a, .cta-contact p {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}
.cta-contact a:hover { color: var(--green-deep); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(30px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 88% 0%, rgba(20, 176, 74, 0.1), transparent 64%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.4; }

.page-hero h1 { max-width: 20ch; margin-bottom: 24px; }
.page-hero h1 em { font-style: italic; color: var(--green-deep); }
.page-hero .lede { font-size: clamp(1.02rem, 1.35vw, 1.2rem); }

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* ---------- course detail rows ---------- */
.course-row {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(34px, 4.5vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.course-row:last-of-type { border-bottom: 1px solid var(--line); }

.course-row .side h3 { font-size: 1.7rem; margin-bottom: 12px; }
.course-row .side .chips { margin-bottom: 0; }

.course-row .side .course-no {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--green-deep);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.modules {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
}

.modules li {
  font-size: 0.86rem;
  color: #3c4459;
  padding: 7px 0;
  display: flex;
  gap: 9px;
  line-height: 1.4;
  border-bottom: 1px dotted rgba(10, 19, 48, 0.12);
}

.modules li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 7px;
}

.course-row details { margin-top: 20px; }
.course-row summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
}
.course-row summary::-webkit-details-marker { display: none; }
.course-row summary:hover { color: var(--green-deep); border-color: var(--green-deep); }
.course-row details[open] summary { margin-bottom: 12px; }

.muted-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-deep); }

.faq-item .plus {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.faq-item .plus::before,
.faq-item .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-item .plus::before { width: 11px; height: 1.5px; }
.faq-item .plus::after { width: 1.5px; height: 11px; transition: opacity 0.3s; }
.faq-item[open] .plus { background: var(--green); border-color: var(--green); color: #04240f; transform: rotate(180deg); }
.faq-item[open] .plus::after { opacity: 0; }

.faq-item .answer { padding: 0 60px 26px 2px; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #3c4459;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d6478' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 176, 74, 0.14);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .err { font-size: 0.74rem; color: #b3261e; display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #b3261e; }
.field.is-invalid .err { display: block; }

.form-note { font-size: 0.74rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }

.form-success {
  display: none;
  background: rgba(20, 176, 74, 0.1);
  border: 1px solid rgba(20, 176, 74, 0.35);
  color: #0a5c2a;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.87rem;
  margin-bottom: 18px;
}
.form-success.is-visible { display: block; }

.contact-list { display: grid; gap: 2px; margin-top: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--navy);
  flex: none;
}
.contact-item span.label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item a, .contact-item p { font-size: 0.93rem; line-height: 1.5; margin: 0; }
.contact-item a:hover { color: var(--green-deep); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  background: var(--cream-2);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* ---------- values / misc ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.value {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.value:hover { transform: translateY(-4px); border-color: rgba(20, 176, 74, 0.4); }
.value .v-no {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--green-deep);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--green-deep);
  line-height: 1;
  padding-top: 3px;
}
.timeline p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.62; }
.timeline strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(56px, 7vw, 92px);
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}

.footer-brand img {
  height: 46px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.footer-brand p { font-size: 0.86rem; line-height: 1.7; max-width: 34ch; color: rgba(255, 255, 255, 0.62); }

.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.footer-social a:hover { background: var(--lime); color: var(--navy); border-color: var(--lime); }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col p { font-size: 0.87rem; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.25s, border-color 0.25s;
}
.footer-credit a:hover { color: var(--lime); border-color: var(--lime); }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

/* ---------- floating whatsapp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 13px;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -16px rgba(4, 36, 15, 0.7);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.whatsapp-float:hover { transform: translateY(-3px); background: #188f47; }
.whatsapp-float svg { flex: none; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 38px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .collage .shot-a { aspect-ratio: 3 / 3.6; }

  .split { grid-template-columns: 1fr; }
  .split .frame { max-width: 560px; }

  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid .member:last-child { grid-column: span 2; max-width: 50%; }

  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .accred { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }

  .quote-slide { grid-template-columns: 1fr; }
  .quote-aside { max-width: 420px; aspect-ratio: 4 / 3.6; }

  .feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-contact { grid-template-columns: 1fr 1fr; }
  .course-row { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 92px; }

  .topbar-left span:nth-child(2) { display: none; }
  .topbar .container { min-height: 38px; gap: 12px; }
  .topbar-left, .topbar-right { min-width: 0; }
  .topbar-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right a { display: none; }
  .nav-wrap { min-height: 70px; }

  h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  h2 { font-size: clamp(2rem, 8.4vw, 2.7rem); }

  .hero { padding-top: 22px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .badge-float { left: 8px; bottom: 12px; padding: 12px 14px; }
  .stamp { width: 84px; height: 84px; font-size: 0.52rem; top: -14px; right: 0; }
  .stamp span { font-size: 1.35rem; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .course-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: auto; }
  .bento-card { min-height: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .team-grid .member:last-child { grid-column: auto; max-width: none; }
  .value-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .accred { grid-template-columns: 1fr 1fr; }
  .accred figure { padding: 12px; min-height: 72px; }
  .accred img { max-height: 38px; }

  .cta-band { padding: 28px 22px; border-radius: 20px; }
  .cta-contact { grid-template-columns: 1fr; gap: 20px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .field-row { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .faq-item .answer { padding-right: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }
  .quote-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .whatsapp-float, .marquee, .quote-nav { display: none; }
  body::before { display: none; }
  body { background: #fff; }
}

/* =========================================================
   WordPress integration
   ========================================================= */

/* the theme owns body typography even if a page builder kit loads later */
html body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

html body h1,
html body h2,
html body h3,
html body h4,
html body .site-footer h4 {
  font-family: var(--display);
}

/* admin bar offset for the sticky header */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav { margin-top: 0; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* screen-reader utility used by WordPress core markup */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* menu markup produced by wp_nav_menu */
.nav ul.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul.menu li { position: relative; }
.nav ul.menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #202844;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav ul.menu a:hover { color: var(--navy); background: rgba(10, 19, 48, 0.05); }
.nav ul.menu .current-menu-item > a,
.nav ul.menu a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  background: rgba(20, 176, 74, 0.1);
  box-shadow: inset 0 0 0 1px rgba(20, 176, 74, 0.2);
}
.nav ul.menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 50px -30px rgba(6, 16, 47, 0.5);
}
.nav ul.menu .sub-menu a { font-size: 0.82rem; padding: 9px 12px; }
.nav ul.menu li:hover > .sub-menu,
.nav ul.menu li:focus-within > .sub-menu { display: block; }

/* honeypot for the enquiry form */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* long-form content (blog posts and any generic page) */
.entry-content { max-width: 72ch; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-top: 1.6em; }
.entry-content h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-top: 1.4em; }
.entry-content p,
.entry-content li { color: #3c4459; line-height: 1.75; }
.entry-content a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ink); }
.entry-content ul,
.entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img { border-radius: 12px; height: auto; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding-left: 22px;
  border-left: 2px solid var(--green);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.35;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.entry-content th,
.entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* news listing */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(20, 176, 74, 0.4); }
.post-meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.post-card h3 { font-size: 1.4rem; }
.post-card h3 a:hover { color: var(--green-deep); }
.post-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0; }
.post-card .link-arrow { margin-top: auto; padding-top: 8px; }
.pagination { margin-top: 40px; display: flex; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
}
