/* =========================================================
   CrestHive — Design tokens
   ========================================================= */
:root {
  /* Brand palette — derived from the school's existing gold/green/rust identity */
  --green-950: #0B2611;
  --green-900: #113A1A;
  --green-800: #164C22;
  --green-700: #1B5E29;
  --green-600: #23732F;
  --gold-600: #E0A100;
  --gold-500: #FFB800;
  --gold-400: #FFCB4D;
  --gold-100: #FFF3D6;
  --rust-700: #8F3B08;
  --rust-600: #B5510B;
  --rust-500: #CE640F;

  --cream-50: #FBF6EA;
  --cream-100: #F4ECD8;
  --paper: #FFFFFF;

  --ink-900: #1C2419;
  --ink-700: #3A4436;
  --ink-500: #62705F;
  --line: rgba(28, 36, 25, 0.12);
  --line-soft: rgba(28, 36, 25, 0.07);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1220px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(17, 26, 15, 0.06);
  --shadow-md: 0 14px 34px rgba(17, 26, 15, 0.12);
  --shadow-lg: 0 24px 60px rgba(17, 26, 15, 0.18);
  --ease: cubic-bezier(.22, .8, .32, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-950);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; color: var(--ink-700); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust-600);
  margin-bottom: .6em;
}
.eyebrow--center { display: block; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-title--center { text-align: center; margin-bottom: 1.2em; }

/* =========================================================
   Buttons
   ========================================================= */
.btn, .navbtn, .navbtn2, .s2btn, .s5btn, .footer-button {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .95rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--gold, .navbtn2, .s2btn, .s5btn, .footer-button {
  background: var(--gold-500);
  color: var(--green-950);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover, .navbtn2:hover, .s2btn:hover, .s5btn:hover, .footer-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--gold-400);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.navbtn { background: var(--green-800); color: #fff; }
.navbtn:hover { background: var(--green-700); transform: translateY(-2px); }
.navbtn--ghost { background: transparent; color: var(--green-900); padding: .7em 1.1em; }
.navbtn--ghost:hover { background: var(--cream-100); }
.navbtn--solid { background: var(--green-800); color: #fff; padding: .75em 1.4em; }
.navbtn--solid:hover { background: var(--green-700); transform: translateY(-2px); }

/* =========================================================
   Top utility bar
   ========================================================= */
.topbar {
  background: var(--green-950);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
}
.topbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}
.topbar__contact { display: flex; gap: 1.6em; }
.topbar__contact i { color: var(--gold-500); margin-right: .4em; }
.topbar__social { display: flex; gap: .9em; }
.topbar__social a {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  transition: background .2s var(--ease), transform .2s var(--ease);
  font-size: .78rem;
}
.topbar__social a:hover { background: var(--gold-500); color: var(--green-950); transform: translateY(-2px); }
@media (max-width: 760px) { .topbar__contact span:last-child { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

/* =========================================================
   Main nav
   ========================================================= */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(251, 246, 234, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav__container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
.school-name { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 999px; box-shadow: 0 0 0 3px var(--gold-100); }
.school-name h4 {
  margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--green-950);
  letter-spacing: -.01em;
}
.brand-accent { color: var(--gold-500); }

.nav__menu { display: flex; align-items: center; gap: 2.1em; font-weight: 600; font-size: .96rem; }
.nav__menu > li > a { display: flex; align-items: center; gap: .35em; color: var(--green-950); padding: .4em 0; position: relative; }
.nav__menu > li > a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--gold-500); transition: width .25s var(--ease);
}
.nav__menu > li > a:hover::after { width: 100%; }

.school-dropdown { position: relative; }
.school-submenu {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 260px;
  background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  border: 1px solid var(--line-soft);
}
.school-dropdown:hover .school-submenu,
.school-dropdown:focus-within .school-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.school-submenu li a {
  display: block; padding: .7em .8em; border-radius: 8px; font-weight: 500; color: var(--ink-700);
}
.school-submenu li a:hover { background: var(--cream-100); color: var(--green-800); }

.nav__cta { display: flex; align-items: center; gap: .6em; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; z-index: 600;
}
.nav-toggle span { width: 100%; height: 2.5px; background: var(--green-950); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: 0; z-index: 550;
  background: var(--green-950);
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
  display: none;
}
.nav-menu.active { transform: translateX(0); display: block; }
.nav-menu .navi { padding: 90px 8px 40px; }
.nav-menu .nav__container { flex-direction: column; align-items: flex-start; gap: 28px; }
.nav-menu .school-name h4 { color: #fff; }
.nav-menu .nav__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1em; width: 100%; }
.nav-menu .nav__menu > li > a { color: #fff; font-size: 1.1rem; }
.nav-menu .school-submenu {
  position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
  background: rgba(255, 255, 255, .06); margin-top: .6em; display: none;
}
.nav-menu .school-dropdown:hover .school-submenu,
.nav-menu .school-dropdown:focus-within .school-submenu { display: block; }
.nav-menu .school-submenu li a { color: rgba(255, 255, 255, .85); }
.nav-menu .navbtn, .nav-menu .navbtn2 { width: 100%; justify-content: center; margin-top: .5em; }

@media (max-width: 980px) {
  .navbar .nav__menu, .navbar .nav__cta { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__slider { position: absolute; inset: 0; z-index: -2; }
.hero__slider figure { margin: 0; position: absolute; inset: 0; }
.hero__slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroFade 20s infinite;
}
.hero__slider img:nth-child(1) { animation-delay: 0s; }
.hero__slider img:nth-child(2) { animation-delay: 5s; }
.hero__slider img:nth-child(3) { animation-delay: 10s; }
.hero__slider img:nth-child(4) { animation-delay: 15s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  22% { opacity: 1; }
  27% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slider img { animation: none; opacity: 0; }
  .hero__slider img:first-child { opacity: 1; }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 38, 17, .78) 0%, rgba(11, 38, 17, .55) 40%, rgba(11, 38, 17, .82) 100%);
}
.hero__hex {
  position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 48%, var(--gold-500) 49%, var(--gold-500) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, var(--gold-500) 49%, var(--gold-500) 51%, transparent 52%);
  background-size: 64px 110px;
}

.hero-contaianer {
  position: relative; z-index: 2; width: 100%;
  max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; color: #fff;
}
.hero__eyebrow {
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem;
  color: var(--gold-400); margin-bottom: 1em;
}
.hero-contaianer h1 {
  color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 600; margin-bottom: .38em;
}
.hero-contaianer #herosub {
  color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 620px; margin: 0 auto 1.8em;
}
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 1em; flex-wrap: wrap; }
.hero__actions button { padding: 1em 1.9em; font-size: 1rem; }

.hero__scrolldown {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 20px;
}
.hero__scrolldown span {
  display: block; width: 4px; height: 8px; background: var(--gold-500); border-radius: 3px;
  margin: 7px auto; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 640px) {
  .hero { min-height: 85vh; }
}

/* =========================================================
   Values strip
   ========================================================= */
.values { background: var(--paper); padding: 56px 0; border-bottom: 1px solid var(--line-soft); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { text-align: left; padding: 6px; }
.value i {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--cream-100); color: var(--rust-600); font-size: 1.2rem; margin-bottom: .9em;
}
.value h3 { font-size: 1.05rem; margin-bottom: .3em; }
.value p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .values__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Section 2 / Section 3 — alternating story rows
   ========================================================= */
.section2, .section3 {
  display: flex; align-items: center; gap: 64px;
  max-width: var(--container); margin: 0 auto; padding: 96px 24px;
}
.section3 { padding-top: 20px; }
.s2-left, .s3-left, .s2-right, .s3-right { flex: 1; min-width: 0; }
.s2-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.1;
}
.s2-right h2, .s3-right h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.s2-right p, .s3-right p { font-size: 1.02rem; max-width: 46ch; }

@media (max-width: 860px) {
  .section2, .section3 { flex-direction: column; padding: 64px 20px; gap: 32px; }
  .section3 { flex-direction: column-reverse; }
}

/* =========================================================
   Mission / Vision
   ========================================================= */
.section4 { padding: 100px 24px 110px; background: var(--cream-100); }
.slidor { max-width: var(--container); margin: 0 auto; display: flex; gap: 28px; }
.vm {
  flex: 1; border-radius: var(--radius-lg); padding: 46px 40px; color: #fff; position: relative;
  overflow: hidden;
}
.vm--mission { background: linear-gradient(145deg, var(--rust-700), var(--rust-600)); }
.vm--vision { background: linear-gradient(145deg, var(--green-950), var(--green-700)); }
.vm__icon { font-size: 1.7rem; color: rgba(255, 255, 255, .55); margin-bottom: .6em; }
.vm h3 { color: #fff; font-size: 1.5rem; margin-bottom: .5em; }
.tsc { position: relative; }
.quote-mark { font-family: var(--font-display); font-size: 2.6rem; opacity: .35; line-height: .4; display: inline-block; }
.quote-mark--close { display: block; text-align: right; }
.supporting-text2 { font-size: 1.08rem; line-height: 1.65; color: rgba(255, 255, 255, .92); font-family: var(--font-display); font-weight: 400; font-style: italic; }

@media (max-width: 780px) { .slidor { flex-direction: column; } .vm { padding: 34px 26px; } }

/* =========================================================
   Academic pathway — honeycomb
   ========================================================= */
.section5 { padding: 110px 24px 130px; max-width: var(--container); margin: 0 auto; }
.s5-cta { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.s5-cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.s5-cta h4 { font-family: var(--font-body); font-weight: 600; color: var(--rust-600); font-size: 1rem; margin-bottom: .8em; }
.s5-cta p { max-width: 50ch; margin-left: auto; margin-right: auto; }

.hex-grid { display: flex; flex-direction: column; align-items: center; gap: 0; }
.hex-row { display: flex; justify-content: center; gap: 14px; }
.hex-row--offset { margin-top: -46px; }

.image-container.hex {
  position: relative;
  width: 232px;
  aspect-ratio: 1 / 1.02;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  overflow: hidden;
  background: var(--green-800);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease);
}
.image-container.hex:hover { transform: translateY(-6px) scale(1.02); z-index: 3; }
.image-container.hex img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease);
  filter: grayscale(.15) brightness(.86);
}
.image-container.hex:hover img { transform: scale(1.1); filter: grayscale(0) brightness(.7); }

.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(11, 38, 17, .15) 10%, rgba(11, 38, 17, .88) 100%);
  display: flex; align-items: flex-end; justify-content: center; padding: 18% 14% 20%;
}
.overlay-contents { text-align: center; color: #fff; }
.hex__num {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: var(--gold-400); letter-spacing: .12em; margin-bottom: .35em;
}
.overlay-contents h2 { color: #fff; font-size: 1.05rem; margin-bottom: .3em; }
.overlay-contents p {
  color: rgba(255, 255, 255, .85); font-size: .8rem; margin: 0;
  opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s var(--ease), max-height .3s var(--ease);
}
.image-container.hex:hover .overlay-contents p { opacity: 1; max-height: 100px; }

@media (max-width: 980px) {
  .image-container.hex { width: 200px; }
  .hex-row--offset { margin-top: -40px; }
}
@media (max-width: 760px) {
  .hex-row { flex-wrap: wrap; row-gap: 20px; }
  .hex-row--offset { margin-top: 0; }
  .image-container.hex { width: 44vw; max-width: 220px; }
}

/* =========================================================
   News section
   ========================================================= */
.section6 {
  display: flex; gap: 40px; max-width: var(--container); margin: 0 auto; padding: 100px 24px;
  align-items: flex-start;
}
.s6left { width: 280px; flex-shrink: 0; }
.s6left-container h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.highlight { color: var(--rust-600); }
.bicon { display: flex; gap: 12px; margin-top: 1.6em; }
.next-icon, .next-icon1 {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--green-900); transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.next-icon:hover, .next-icon1:hover { background: var(--green-900); color: #fff; transform: translateY(-2px); }

.s6right { flex: 1; min-width: 0; width: 100%; }
.blog-card-container {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
  width: 100%; max-width: 100%; min-width: 0;
}
.blog-card-container:empty::after {
  content: "News will appear here shortly.";
  color: var(--ink-500); font-size: .95rem; padding: 40px 0;
}

/* Matches the exact markup script.js builds for each testimonial:
   <div class="blog-card">
     <img class="blog-card-image">
     <p class="blog-card-title">...</p>
     <div class="blog-card-paragraph"><p>full text</p></div>
     <p>Read More...</p>
   </div>
   The full text is intentionally clamped here — clicking the card opens
   the complete text in the modal via the existing openModal() call. */
.blog-card {
  scroll-snap-align: start;
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-image {
  width: 100%; height: 190px; object-fit: contain; object-position: center; display: block;
  background: var(--cream-100);
}
.blog-card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--green-950); padding: 18px 20px 0; margin: 0 0 .3em; line-height: 1.3;
}
.blog-card-paragraph { padding: 0 20px; flex: 1; }
.blog-card-paragraph p {
  margin: 0; font-size: .9rem; color: var(--ink-700); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* the trailing "Read More..." <p>, appended directly as the card's last child */
.blog-card > p:last-child {
  margin: 0; padding: 10px 20px 20px; font-size: .82rem; font-weight: 700;
  letter-spacing: .02em; color: var(--rust-600);
}

@media (max-width: 860px) {
  .section6 { flex-direction: column; padding: 64px 20px; max-width: 100%; overflow-x: hidden; }
  .s6left { width: 100%; }
}

/* =========================================================
   Modal
   ========================================================= */
.modal {
  display: none; position: fixed; inset: 0; background: rgba(11, 38, 17, .72);
  justify-content: center; align-items: center; z-index: 2000; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-content {
  background: var(--paper); padding: 28px; min-width: min(640px, 92vw); border-radius: var(--radius-md);
  max-width: 90vw; max-height: 86vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
}
.modal-image {
  display: block; width: 100%; max-width: 900px; height: auto; max-height: 60vh;
  margin: 0 auto 20px; object-fit: contain; border-radius: var(--radius-sm); background: var(--cream-100);
}
.modal-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--green-950); margin-top: 10px; }
.modal-content-text { font-size: 1rem; line-height: 1.7; margin-top: 10px; color: var(--ink-700); }
.modal-columns { display: flex; gap: 12px; margin-top: 16px; }
.modal-column-image {
  flex: 1; height: 180px; background-size: contain; background-repeat: no-repeat; background-position: center;
  background-color: var(--cream-100); border-radius: var(--radius-sm); display: none;
}
.close-modal {
  position: absolute; top: 12px; right: 12px; font-size: 22px; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-700); background: var(--cream-100);
  border-radius: 50%; transition: background .2s var(--ease), color .2s var(--ease);
}
.close-modal:hover { background: var(--rust-600); color: #fff; }

/* =========================================================
   Staff section
   ========================================================= */
.section7 { padding: 100px 0 120px; text-align: center; background: var(--paper); }
.section7 h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 1.2em; }
.staff-cards-container {
  display: flex; gap: 22px; overflow-x: auto; padding: 4px 24px 12px;
  max-width: var(--container); margin: 0 auto; scroll-behavior: auto;
}
.staff-cards-container::-webkit-scrollbar { display: none; }
.staff-cards-container:empty::after {
  content: "Meet the team — coming soon.";
  color: var(--ink-500); font-size: .95rem; padding: 20px 0; width: 100%;
}

/* Matches script.js's staff card markup: <div class="staff-card"><img><h3><p></div> */
.staff-card { flex: 0 0 170px; width: 170px; text-align: center; }
.staff-card img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; box-shadow: var(--shadow-sm);
}
.staff-card h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 .3em; color: var(--green-950); }
.staff-card p { font-size: .82rem; color: var(--ink-500); margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--green-950); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 48%, var(--gold-500) 49%, var(--gold-500) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, var(--gold-500) 49%, var(--gold-500) 51%, transparent 52%);
  background-size: 64px 110px;
}
.footer-content { position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: 110px 24px 70px; }
.footer-header { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .3em; }
.footer-header-fasthand { color: var(--gold-400); font-style: italic; font-weight: 500; }
.footer-text { color: rgba(255, 255, 255, .78); font-size: 1.05rem; max-width: 46ch; margin: 0 auto 1.6em; }

.footer-content2 { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-columns {
  max-width: var(--container); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px;
}
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer-col ul li { margin-bottom: .7em; }
.footer-col ul li a { color: rgba(255, 255, 255, .75); font-size: .95rem; transition: color .2s var(--ease); }
.footer-col ul li a:hover { color: var(--gold-400); }
.contact-info p { display: flex; align-items: center; gap: .6em; color: rgba(255, 255, 255, .82); font-size: .95rem; margin-bottom: .8em; }
.contact-info i { color: var(--gold-500); }
.social-icons { display: flex; gap: .8em; margin-top: 1.2em; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); transition: background .2s var(--ease), transform .2s var(--ease);
}
.social-icons a:hover { background: var(--gold-500); color: var(--green-950); transform: translateY(-3px); }

.copyright {
  max-width: var(--container); margin: 0 auto; padding: 22px 24px 34px;
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(255, 255, 255, .6);
}

@media (max-width: 820px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .footer-col.contact-info { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-columns { grid-template-columns: 1fr; } }

/* =========================================================
   Floating buttons
   ========================================================= */
.floating-icon { position: fixed; right: 24px; bottom: 24px; z-index: 400; }
.icon-bg {
  display: flex; align-items: center; gap: .5em; background: var(--rust-600); color: #fff;
  padding: .8em 1.2em; border-radius: 999px; box-shadow: var(--shadow-md); font-weight: 600; font-size: .9rem;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.icon-bg:hover { background: var(--rust-700); transform: translateY(-3px); }

.back-to-top {
  position: fixed; right: 24px; bottom: 90px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%; background: var(--green-950); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--green-950); }

@media (max-width: 560px) {
  .floating-icon { right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 76px; width: 42px; height: 42px; }
  .icon-bg span, .icon-bg { font-size: .82rem; padding: .7em 1em; }
}

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