/* ==========================================================================
   Rotary Club of Sakkare Naadu Mandya
   District 3192 — single page stylesheet

   Contents
   01. Tokens
   02. Base + typography
   03. Buttons & shared bits
   04. Navigation
   05. Hero
   06. About
   07. Leadership
   08. Projects
   09. Statistics
   10. Gallery
   11. Join
   12. Contact
   13. Footer + back to top
   14. Responsive
   15. Motion preferences
   ========================================================================== */


/* 01. TOKENS ============================================================== */
:root {
  /* Colour */
  --blue:        #17458F;   /* Rotary blue   */
  --blue-deep:   #0E2A5C;   /* darker shade for gradients */
  --gold:        #F7A81B;   /* Rotary gold   */
  --gold-soft:   #FFD98A;
  --bg:          #FFFFFF;
  --bg-alt:      #F8FAFC;
  --ink:         #1F2937;
  --ink-soft:    #55617A;
  --line:        #E4E9F2;

  /* Type */
  --display: 'Outfit', system-ui, sans-serif;
  --body:    'Poppins', system-ui, sans-serif;

  /* Space & shape */
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius:    22px;
  --radius-sm: 14px;

  /* Shadow */
  --shadow-sm: 0 4px 16px rgba(15, 34, 70, .06);
  --shadow:    0 18px 44px rgba(15, 34, 70, .10);
  --shadow-lg: 0 28px 70px rgba(15, 34, 70, .16);
}


/* 02. BASE + TYPOGRAPHY =================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--blue-deep);
  letter-spacing: -.02em;
  line-height: 1.15;
}

p { color: var(--ink-soft); }

a { color: var(--blue); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--blue);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Section shells */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.section-head .eyebrow { justify-content: center; }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow-light { color: var(--gold-soft); }
.eyebrow-light::before { background: var(--gold-soft); }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.section-intro { font-size: 1.02rem; margin-bottom: 0; }

.lead-text {
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 400;
}

/* Frosted panel used in a few places */
.glass {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .22);
}

/* Image placeholder blocks — visible until real photos are dropped in */
.img-ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #EDF1F8 0 14px, #F5F8FC 14px 28px);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-ph::after {
  content: attr(data-label);
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #98A6C0;
}
.img-ph > img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.img-ph > img + * , .img-ph:has(img)::after { content: none; }
.img-ph-tall { aspect-ratio: 4 / 5; min-height: 380px; }


/* 03. BUTTONS & SHARED BITS =============================================== */
.btn {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: .8rem 1.9rem;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-lg { padding: 1rem 2.4rem; font-size: 1.02rem; }

.btn-gold {
  background: var(--gold);
  color: var(--blue-deep);
  box-shadow: 0 10px 26px rgba(247, 168, 27, .34);
}
.btn-gold:hover {
  background: #ffb733;
  color: var(--blue-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(247, 168, 27, .44);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; color: var(--blue-deep); transform: translateY(-3px); }

.btn-ghost-dark {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.btn-ghost-dark:hover { background: #fff; color: var(--blue-deep); transform: translateY(-3px); }

/* Shine sweep on primary buttons */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
}
.btn-shine:hover::after { left: 115%; }

.link-arrow {
  font-family: var(--display);
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.link-arrow i { transition: transform .25s ease; }
.link-arrow:hover i { transform: translateX(5px); }


/* 04. NAVIGATION ========================================================== */
.site-nav {
  padding: 1.1rem 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-nav.scrolled {
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 34, 70, .09);
  padding: .55rem 0;
}

.navbar-brand { display: flex; align-items: center; gap: .8rem; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--blue-deep);
  font-size: 1.25rem;
  flex: none;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark img + i { display: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  transition: color .35s ease;
}
.brand-text small {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  transition: color .35s ease;
}
.scrolled .brand-text strong { color: var(--blue-deep); }
.scrolled .brand-text small { color: var(--ink-soft); }

.site-nav .nav-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: .97rem;
  color: rgba(255, 255, 255, .88);
  padding: .5rem 1rem;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .25rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link:hover { color: #fff; }
.scrolled .nav-link { color: var(--ink); }
.scrolled .nav-link:hover,
.scrolled .nav-link.active { color: var(--blue); }

/* Custom burger */
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: background .35s ease;
}
.scrolled .toggler-bar { background: var(--blue-deep); }


/* 05. HERO ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-color: var(--blue-deep);
  transform: scale(1.06);
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(14, 42, 92, .94) 0%, rgba(23, 69, 143, .82) 46%, rgba(14, 42, 92, .55) 100%);
}

/* Signature: slow-turning service wheel */
.hero-wheel {
  position: absolute;
  z-index: -1;
  right: -8vw;
  bottom: -14vw;
  width: min(64vw, 720px);
  color: rgba(247, 168, 27, .22);
  animation: turn 90s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

.hero-inner { padding: 8rem 0 7rem; }

.hero-logos {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.logo-slot img { max-height: 46px; width: auto; }
.logo-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .34); }

.hero-eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-title .accent {
  color: var(--gold);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: rgba(255, 255, 255, .88);
  max-width: 34ch;
  margin-bottom: 2.4rem;
}

.hero-facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  padding: 1.1rem 1.8rem;
  border-radius: var(--radius);
  margin-bottom: 2.4rem;
}
.fact { display: flex; flex-direction: column; }
.fact-value {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.fact-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.fact-rule { width: 1px; height: 34px; background: rgba(255, 255, 255, .26); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255, 255, 255, .78);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.scroll-cue:hover { color: var(--gold); }
.cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}


/* 06. ABOUT =============================================================== */
.about-media { position: relative; padding-bottom: 2.5rem; }
.about-media .img-ph { box-shadow: var(--shadow); }

.member-card {
  position: absolute;
  right: -1rem;
  bottom: 0;
  width: 190px;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.member-count {
  display: block;
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.member-label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-top: .35rem;
}
.member-note {
  display: block;
  font-size: .72rem;
  color: rgba(255, 255, 255, .66);
  margin-top: .2rem;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1.2rem;
}
.focus-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
}
.focus-list i {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(23, 69, 143, .08);
  color: var(--blue);
  font-size: .88rem;
}


/* 07. LEADERSHIP ========================================================== */
.leader-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(247, 168, 27, .5);
}

.leader-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border: 3px solid var(--gold);
  color: #B8C4DA;
  font-size: 2.6rem;
  position: relative;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.leader-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .2rem;
}
.leader-role {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.leader-bio { font-size: .95rem; margin-bottom: 1.4rem; }

.leader-social { display: flex; justify-content: center; gap: .6rem; }
.leader-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.leader-social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }


/* 08. PROJECTS ============================================================ */
.project-card {
  position: relative;
  height: 100%;
  padding: 2.1rem 1.7rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-card:hover::before { transform: scaleX(1); }

.project-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(23, 69, 143, .08);
  color: var(--blue);
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.project-card:hover .project-icon {
  background: var(--gold);
  color: var(--blue-deep);
  transform: rotate(-6deg) scale(1.06);
}

.project-card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: .6rem; }
.project-card p { font-size: .93rem; margin-bottom: 0; }


/* 09. STATISTICS ========================================================== */
.stats-band {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  overflow: hidden;
}
.stats-band::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -60%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 168, 27, .28), transparent 65%);
}

.stat { position: relative; z-index: 2; }
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.05;
}
.stat-label {
  display: block;
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-top: .5rem;
}


/* 10. GALLERY ============================================================= */
.masonry {
  column-count: 3;
  column-gap: 1.25rem;
}
.tile {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #E7EDF7 0 14px, #F1F5FB 14px 28px);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.tile-tall { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.07); }

.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.1rem .95rem;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(14, 42, 92, .88), transparent);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.tile:hover .tile-caption { transform: translateY(0); opacity: 1; }
/* Caption stays visible while a photo is missing, so the grid still reads */
.tile:not(:has(img)) .tile-caption {
  opacity: 1;
  transform: none;
  color: #7D8CA8;
  background: none;
}


/* 11. JOIN ================================================================ */
.join {
  padding: var(--section-y) 0;
  background:
    linear-gradient(115deg, rgba(14, 42, 92, .96), rgba(23, 69, 143, .9)),
    url('../images/join.jpg') center / cover no-repeat,
    var(--blue-deep);
}

.join-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 28px;
  text-align: center;
  color: #fff;
}
.join-inner .eyebrow { justify-content: center; }
.join-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.join-text {
  color: rgba(255, 255, 255, .84);
  max-width: 52ch;
  margin: 0 auto 2rem;
}
.join-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }


/* 12. CONTACT ============================================================= */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list h3 {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.contact-list p { margin: 0; font-size: .97rem; }
.contact-list em { font-size: .82rem; color: #9AA6BE; font-style: normal; }

.contact-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(23, 69, 143, .08);
  color: var(--blue);
}

.social-row { display: flex; gap: .7rem; }
.social-row a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.social-row a:hover { background: var(--gold); color: var(--blue-deep); transform: translateY(-3px); }

.map-frame {
  min-height: 420px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-deep);
}
.map-pin i { color: var(--gold); }


/* 13. FOOTER + BACK TO TOP ================================================ */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, .72);
  padding: 3.5rem 0 2rem;
}
.footer-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.footer-meta { font-size: .88rem; color: rgba(255, 255, 255, .6); margin: 0; }

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
  font-family: var(--display);
  font-size: .94rem;
}
.footer-nav a { color: rgba(255, 255, 255, .78); }
.footer-nav a:hover { color: var(--gold); }

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
}
.footer-base p { margin: 0; color: rgba(255, 255, 255, .6); }
.heart { color: var(--gold); }

.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
  z-index: 1200;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--blue-deep); }


/* 14. RESPONSIVE ========================================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    margin-top: .9rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }
  .site-nav .nav-link,
  .scrolled .nav-link { color: var(--ink); }
  .site-nav .nav-link::after { left: 0; right: auto; width: 22px; }
  .navbar-collapse .btn-gold { width: 100%; margin-top: .6rem; }

  .masonry { column-count: 2; }
  .footer-nav { justify-content: flex-start; }
  .about-media { padding-bottom: 3rem; }
  .member-card { right: 0; width: 168px; }
}

@media (max-width: 575.98px) {
  html { scroll-padding-top: 76px; }
  .hero-inner { padding: 7rem 0 6rem; }
  .hero-facts { gap: 1.1rem; padding: 1rem 1.2rem; }
  .fact-rule { display: none; }
  .hero-cta .btn { width: 100%; }
  .focus-list { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .tile, .tile-tall { aspect-ratio: 4 / 3; }
  .member-card {
    position: static;
    width: 100%;
    margin-top: 1.2rem;
    animation: none;
  }
  .about-media { padding-bottom: 0; }
  .join-cta .btn { width: 100%; }
}


/* 15. MOTION PREFERENCES ================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
/* 16. MOBILE OVERFLOW FIX ================================================= */

/* Stop the whole page from scrolling sideways.
   'clip' is used instead of 'hidden' so position:sticky keeps working. */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* AOS slides elements in from the side. On narrow screens that push
   sticks out past the right edge, so make those animations vertical. */
@media (max-width: 991.98px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 40px, 0);
  }
  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
  }
}

/* Safety net: nothing inside the page may exceed the screen width. */
.container,
.row {
  max-width: 100%;
}