/* =========================================================
   AAKHIKH - ENHANCED STYLES.CSS
   ========================================================= */

:root {
  --ink: #0a1a2e;
  --night: #081425;
  --cream: #f8f6f2;
  --paper: #faF8f5;
  --gold: #c9a84d;
  --muted: #8892a2;
  --serif: 'Playfair Display', serif;
  --sans: 'DM Sans', sans-serif;
  --soft: #f0e8e2;
  --accent: #d4b46c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  line-height: 1.6;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   FOCUS STYLES
   ========================================================= */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* The message artwork is visual-only; remove the unused play-symbol overlay. */
.video-thumb button {
  display: none;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  height: 88px;
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5.5%;

  color: #fff;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .3),
    transparent
  );

  transition: .35s;
}

.site-header.scrolled {
  height: 70px;

  background: rgba(7, 19, 35, .94);

  backdrop-filter: blur(18px);
}

/* =========================================================
   LOGO
   ========================================================= */

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;

  color: #fff;

  position: relative;

  white-space: nowrap;
}

.brand span {
  color: var(--gold);
}

.brand small {
  display: block;

  font-size: 7px;
  letter-spacing: 2px;
  font-weight: 500;

  margin-top: 6px;

  color: #fff;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.desktop-nav {
  display: flex;
  align-items: center;

  gap: 23px;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
}

.desktop-nav a {
  color: #fff;

  opacity: .85;

  transition:
    color .25s ease,
    opacity .25s ease,
    transform .25s ease;

  position: relative;
}

.desktop-nav a::after {
  content: '';

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: var(--gold);

  transition: width .25s ease;
}

.desktop-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.desktop-nav a.active {
  color: var(--gold);
  opacity: 1;
}

.desktop-nav a.active::after {
  width: 100%;
}

/* =========================================================
   NAVIGATION BUTTON
   ========================================================= */

.button {
  display: inline-flex;

  gap: 16px;
  align-items: center;
  justify-content: center;

  padding: 14px 21px;

  background: var(--gold);
  border: 1px solid var(--gold);
  color: #fff;

  font-weight: 700;
  font-size: 12px;

  letter-spacing: .3px;

  cursor: pointer;

  transition: .25s;
}

.button:hover {
  background: #af803c;
  border-color: #af803c;

  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 77, .25);
}

.button-small {
  padding: 10px 15px;
  font-size: 11px;
}

/* Ghost button variant */
.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.button-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: none;
}

.button-light {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

.button-light:hover {
  background: rgba(255, 255, 255, .2);
  transform: none;
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-button {
  display: none;

  flex-direction: column;

  gap: 5px;

  border: 0;

  background: transparent;

  padding: 10px;

  cursor: pointer;
}

.menu-button span {
  display: block;

  width: 25px;
  height: 2px;

  background: #fff;

  transition: .25s;
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
  position: fixed;

  z-index: 200;

  inset: 0;

  background: var(--night);

  color: #fff;

  padding: 100px 10%;

  display: flex;

  flex-direction: column;

  gap: 22px;

  font: 500 29px var(--serif);

  transform: translateX(100%);

  transition: transform .35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: #fff;

  transition: color .2s ease;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu .button {
  width: max-content;

  font:
    700 13px var(--sans);

  margin-top: 10px;
}

.close-menu {
  position: absolute;

  right: 8%;
  top: 25px;

  border: 0;

  background: transparent;

  color: #fff;

  font-size: 38px;

  cursor: pointer;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.eyebrow {
  font-size: 11px;

  letter-spacing: 2.3px;

  text-transform: uppercase;

  font-weight: 700;

  color: var(--gold);

  margin: 0 0 18px;
}

.eyebrow.light {
  color: #ead4a7;
}

.eyebrow.soft {
  color: #a3b1bf;
}

h2 {
  font:
    600 clamp(37px, 4.2vw, 62px)/1.08
    var(--serif);

  letter-spacing: -1.9px;

  margin: 0 0 24px;
}

h2 em {
  font-weight: 500;

  color: var(--gold);
}

.text-link {
  font-size: 12px;

  font-weight: 700;

  letter-spacing: .3px;

  display: inline-flex;

  gap: 12px;

  align-items: center;
}

.text-link b {
  font-size: 18px;

  color: var(--gold);

  transition: .2s;
}

.text-link:hover b {
  transform: translateX(4px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 760px;

  height: 100vh;

  position: relative;

  display: flex;

  align-items: center;

  color: #fff;

  overflow: hidden;
}

.hero-image {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(4,14,29,.83) 0%,
      rgba(4,14,29,.48) 53%,
      rgba(4,14,29,.65)
    ),
    url('https://images.unsplash.com/photo-1519491050282-cf00c82424b4?auto=format&fit=crop&w=2100&q=85')
    center / cover;

  animation:
    slowZoom 16s ease alternate infinite;
}

.hero:after {
  content: '';

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(7,19,35,.5),
      transparent 40%
    );
}

@keyframes slowZoom {
  to {
    transform: scale(1.08);
  }
}

.hero-content {
  z-index: 1;

  margin: 100px 10% 0;

  max-width: 700px;
}

.hero h1 {
  font-size: clamp(55px, 8vw, 118px);

  line-height: .86;

  letter-spacing: -4px;

  margin: 0;

  font-weight: 600;
}

/* =========================================================
   SECTION BASE STYLE
   ========================================================= */

.section {
  padding: 120px 5%;
}

.section.narrow {
  max-width: 960px;
  margin: 0 auto;
}

.section .section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section .section-heading .eyebrow {
  margin-bottom: 12px;
}

.section .section-heading h2 {
  margin: 0 0 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #050f1f;

  color: #fff;

  padding: 70px 5% 20px;
}

footer .footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

footer .copyright {
  border-top: 1px solid #1a2535;

  padding-top: 18px;

  font-size: 10px;

  color: #6b7a8a;
}

footer a {
  color: #818d9d;
  transition: color .2s;
}

footer a:hover {
  color: var(--gold);
}

.footer-links {
  max-width: 1200px;
  margin: 30px auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 160px;
}

.footer-links h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 0 10px 0;
}

.footer-links a {
  font-size: 13px;
  color: #818d9d;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.brand footer {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand footer span {
  color: var(--gold);
}

.brand footer small {
  display: inline;
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #fff;
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .desktop-nav {
    gap: 13px;
  }

  .desktop-nav a {
    font-size: 10px;
  }

  .button-small {
    padding: 9px 11px;
    font-size: 10px;
  }
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .site-header {
    height: 74px;

    padding: 0 6%;
  }

  /* Hide desktop navigation */

  .desktop-nav {
    display: none;
  }

  /* Hide desktop join button */

  .site-header > .button-small {
    display: none;
  }

  /* Show hamburger */

  .menu-button {
    display: flex;
  }

  /* Page */

  .page {
    padding: 120px 7% 65px;
  }

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

    gap: 45px;
  }

  .page h1 {
    font-size: clamp(45px, 13vw, 65px);
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .site-header {
    padding: 0 6%;

    height: 74px;
  }

  .brand {
    font-size: 19px;
  }

  .brand small {
    font-size: 6px;
  }

  .mobile-menu {
    padding: 95px 9%;
  }

  .mobile-menu a {
    font-size: 27px;
  }

  .page {
    padding: 115px 7% 60px;
  }

  .page h1 {
    letter-spacing: -2px;
  }

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

    gap: 35px;
  }

  footer {
    padding: 55px 7% 20px;
  }
}

/* =========================================================
   UTIL - CLEARFIX
   ========================================================= */

.clearfix::after {
  content: "";

  display: table;

  clear: both;
}

/* =========================================================
   INNER PAGES — SHARED POLISH (the home page keeps its own hero)
   ========================================================= */
body:not(:has(.hero)) {
  background: #f8f5ef;
}

body:not(:has(.hero)) .site-header.scrolled {
  box-shadow: 0 10px 30px rgba(3, 13, 27, .14);
}

body:has(.about-hero) .desktop-nav a[href$="about.html"],
body:has(.contact-section) .desktop-nav a[href$="contact.html"],
body:has(.event-hero) .desktop-nav a[href$="events.html"],
body.donate-page .desktop-nav a[href$="donate.html"],
body:has(.locations-page) .desktop-nav a[href$="locations.html"],
body:has(.giving-hero) .desktop-nav a[href$="giving.html"],
body:has(.resources-hero) .desktop-nav a[href$="resources.html"],
body:not(:has(.hero)):has(.message-grid) .desktop-nav a[href$="messages.html"] {
  color: var(--gold);
  opacity: 1;
}

body:not(:has(.hero)) .button-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--ink);
}

body:not(:has(.hero)) .button-outline:hover { color: #fff; }

body:not(:has(.hero)) footer {
  position: relative;
  overflow: hidden;
}

body:not(:has(.hero)) footer::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -130px;
  top: -210px;
  border: 1px solid rgba(201, 168, 77, .22);
  border-radius: 50%;
}

body:not(:has(.hero)) footer .copyright { position: relative; max-width: 1200px; margin: auto; }

/* Simple page heroes */
body:not(:has(.hero)) .page.dark,
body:not(:has(.hero)) .giving-hero,
body:not(:has(.hero)) .event-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body:not(:has(.hero)) .page.dark::before,
body:not(:has(.hero)) .giving-hero::before,
body:not(:has(.hero)) .event-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 80% 10%, rgba(211, 177, 99, .25), transparent 28%);
}

body:not(:has(.hero)) .page.dark h1 em,
body:not(:has(.hero)) .giving-hero h1 em,
body:not(:has(.hero)) .event-hero h1 em { color: #e7c67e; font-weight: 500; }

body:not(:has(.hero)) .message-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

body:not(:has(.hero)) .message-card {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(8, 22, 41, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}

body:not(:has(.hero)) .message-card:hover { transform: translateY(-7px); box-shadow: 0 26px 48px rgba(8, 22, 41, .16); }
body:not(:has(.hero)) .message-card h3 { margin: 12px 24px 8px; font: 500 27px var(--serif); }
body:not(:has(.hero)) .message-card > p:last-child { margin: 0 24px 27px; color: #64707a; font-size: 14px; }
body:not(:has(.hero)) .message-card .meta { margin: 22px 24px 0; color: var(--gold); font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
body:not(:has(.hero)) .video-thumb { height: 220px; display: grid; place-items: center; background-size: cover; background-position: center; position: relative; }
body:not(:has(.hero)) .video-thumb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(5, 15, 28, .08), rgba(5, 15, 28, .58)); }
body:not(:has(.hero)) .video-thumb button { position: relative; z-index: 1; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 18px; cursor: pointer; }
body:not(:has(.hero)) .thumb-one { background-image: url('6.webp'); }body:not(:has(.hero)) .thumb-two { background-image: url('7.jpg'); }body:not(:has(.hero)) .thumb-three { background-image: url('5.webp'); }

body:not(:has(.hero)) .location-tag { color: #b6c0cc; font-size: 13px; line-height: 1.75; margin: 28px 0 0; }
body:not(:has(.hero)) .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body:not(:has(.hero)) .contact-form label { display: grid; gap: 7px; font-size: 12px; margin-bottom: 18px; }
body:not(:has(.hero)) .contact-form input, body:not(:has(.hero)) .contact-form textarea, body:not(:has(.hero)) .contact-form select { width: 100%; background: transparent; }
body:not(:has(.hero)) .form-message { min-height: 20px; font-size: 13px; margin: 14px 0 0; }

body:not(:has(.hero)) .visit-card { color: #fff; text-decoration: none; box-shadow: 0 20px 40px rgba(8, 22, 41, .12); }
body:not(:has(.hero)) .visit-card > * { position: relative; z-index: 1; }body:not(:has(.hero)) .visit-card h3 { color: #fff; font: 500 34px var(--serif); margin: 4px 0; }body:not(:has(.hero)) .visit-card span { position: relative; z-index: 1; color: #ead4a7; font-size: 13px; }

body:not(:has(.hero)) .map-panel { min-height: 330px; display: grid; place-content: center; background: linear-gradient(145deg, #dcd1bc, #f5eee1); }
body:not(:has(.hero)) .map-panel span { text-align: center; color: #77808b; font-size: 12px; }

body:not(:has(.hero)) .giving-section { max-width: 880px; margin: auto; }body:not(:has(.hero)) .giving-copy { max-width: 650px; }body:not(:has(.hero)) .giving-copy > p:last-child { color: #606a74; max-width: 600px; }
body:not(:has(.hero)) .amount-input label { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 700 20px var(--serif); }
body:not(:has(.hero)) .donate-button { margin-top: 16px; }body:not(:has(.hero)) .give-toggle { gap: 12px !important; }

@media (max-width: 900px) {
  body:not(:has(.hero)) .message-grid { grid-template-columns: 1fr; max-width: 520px; }
  body:not(:has(.hero)) .contact-panel, body:not(:has(.hero)) .visit-section { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  body:not(:has(.hero)) .input-row { grid-template-columns: 1fr; gap: 0; }
  body:not(:has(.hero)) .video-thumb { height: 190px; }
  body:not(:has(.hero)) .message-card h3 { font-size: 25px; }
}
