/* ==========================================================================
   Al-Kawthar Centre — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /*
   * Brand palette — derived from the Al-Kawthar logo
   *
   * Purple  (#6B42B5) — dominant logo color: flower petals & Arabic letter icons
   * Yellow  (#F0D050) — logo outer petals
   * Teal    (#3BBDC8) — logo "Al-Kawthar" text
   *
   * Accessibility notes (WCAG 2.1):
   *   --clr-purple-700 on white  → ~6.8 : 1  (AAA ✓)
   *   --clr-purple-600 on white  → ~5.5 : 1  (AA  ✓)
   *   --clr-teal-700   on white  → ~5.0 : 1  (AA  ✓)
   *   --clr-yellow-500 + dark text → 12.6 : 1 (AAA ✓)
   */

  /* Brand Purple */
  --clr-purple-950: #130A30;
  --clr-purple-900: #1E1050;
  --clr-purple-800: #311880;
  --clr-purple-700: #4D2D9A;
  --clr-purple-600: #6B42B5;
  --clr-purple-500: #8B65C8;
  --clr-purple-200: #C4AAEE;
  --clr-purple-100: #EDE6FF;
  --clr-purple-50:  #F6F2FF;

  /* Brand Teal */
  --clr-teal-700: #1F7A88;
  --clr-teal-600: #2A9DAD;
  --clr-teal-500: #3BBDC8;
  --clr-teal-100: #E0F8FA;

  /* Brand Yellow */
  --clr-yellow-600: #C8A500;
  --clr-yellow-500: #F0D050;
  --clr-yellow-400: #F5DF7A;
  --clr-yellow-100: #FFFBE8;

  /* Neutrals */
  --clr-white:      #ffffff;
  --clr-cream:      #F6F2FF;   /* purple-tinted page background for alt sections */
  --clr-text:       #130A30;   /* darkest purple — text on light */
  --clr-text-muted: #5A4E7A;
  --clr-border:     #E2DAF5;

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.18);

  /* Transitions */
  --ease: 0.3s ease;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);

  /* Header height (used for scroll offset) */
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--clr-purple-800);
  color: var(--clr-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--clr-yellow-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --------------------------------------------------------------------------
   5. SVG Icon Helper
   -------------------------------------------------------------------------- */

/*
 * .icon — applied to every <svg><use href="#icon-*"/></svg> in the HTML.
 * fill:currentColor means icons inherit their colour from the CSS `color`
 * property of the element (or its parent), so no separate fill rules are needed.
 */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

/* Primary — solid purple */
.btn-primary {
  background: var(--clr-purple-700);
  color: var(--clr-white);
  border-color: var(--clr-purple-700);
}
.btn-primary:hover {
  background: var(--clr-purple-600);
  border-color: var(--clr-purple-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Gold / Yellow CTA — logo yellow with dark text (12.6:1 contrast) */
.btn-gold {
  background: var(--clr-yellow-500);
  color: var(--clr-purple-950);
  border-color: var(--clr-yellow-500);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--clr-yellow-400);
  border-color: var(--clr-yellow-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 208, 80, 0.4);
}

/* Ghost — transparent, for use on dark backgrounds */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--clr-white);
}

.btn-lg {
  padding: 0.9rem 1.875rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   7. Announcement Banner
   -------------------------------------------------------------------------- */
.announcement-banner {
  background: var(--clr-yellow-100);
  border-bottom: 2px solid var(--clr-yellow-400);
  padding: 0.65rem 0;
  position: relative;
  z-index: 100;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.announcement-icon {
  color: var(--clr-yellow-600);
  font-size: 1rem;
  flex-shrink: 0;
}

.announcement-inner p {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--clr-text);
}

.announcement-link {
  color: var(--clr-purple-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announcement-link:hover {
  color: var(--clr-purple-800);
}

.announcement-close {
  flex-shrink: 0;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}
.announcement-close:hover {
  color: var(--clr-text);
  background: rgba(0, 0, 0, 0.06);
}

.announcement-banner.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   8. Site Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-purple-100);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-purple-800);
  line-height: 1.2;
}

.nav-logo-sub {
  font-weight: 400;
  color: var(--clr-text-muted);
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text);
  border-radius: var(--radius-full);
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--clr-purple-700);
  background: var(--clr-purple-100);
}

.nav-cta {
  flex-shrink: 0;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.nav-toggle:hover {
  background: var(--clr-purple-50);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--container-pad) var(--space-6);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-text);
  border-radius: var(--radius-md);
  transition: background var(--ease), color var(--ease);
}
.mobile-nav-link:hover {
  background: var(--clr-purple-50);
  color: var(--clr-purple-700);
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--clr-purple-950) 0%,
    var(--clr-purple-900) 45%,
    var(--clr-purple-800) 100%
  );
  padding: var(--space-20) 0 var(--space-24);
  overflow: hidden;
}

/* Geometric background pattern (logo-diamond motif) */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0zM40 16L64 40L40 64L16 40L40 16z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  color: var(--clr-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(240, 208, 80, 0.15);
  border: 1px solid rgba(240, 208, 80, 0.4);
  color: var(--clr-yellow-400);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero-badge i {
  font-size: 0.75rem;
  color: var(--clr-yellow-400);
}

.hero-content h1 {
  color: var(--clr-white);
  margin-bottom: var(--space-5);
  font-weight: 800;
}

.hero-description {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Teal checkmarks — logo teal color */
.feature-check {
  color: var(--clr-teal-500);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero Image */
.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Gold/yellow glow ring echoes the logo petals */
  box-shadow: var(--shadow-xl), 0 0 0 6px rgba(240, 208, 80, 0.2);
  max-width: 480px;
  width: 100%;
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(19, 10, 48, 0.45));
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.03);
}

.hero-image-badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-purple-800);
  color: var(--clr-white);
  border: 2px solid rgba(240, 208, 80, 0.45);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.hero-image-badge i {
  color: var(--clr-yellow-400);
}

/* --------------------------------------------------------------------------
   10. Mission Strip
   -------------------------------------------------------------------------- */
.mission-strip {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-10) 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.mission-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.mission-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--clr-purple-100);
  color: var(--clr-purple-700);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Mission titles are styled labels, not structural headings, so we use <p class="mission-title"> */
.mission-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.2rem;
}

.mission-item p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Section Headers (shared)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* Teal label — logo teal, dark enough for 5:1 on white (AA ✓) */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-teal-700);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  color: var(--clr-text);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. Services Section
   -------------------------------------------------------------------------- */
.services-section {
  padding: var(--space-24) 0;
  background: var(--clr-cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Top accent bars — each maps to a logo color */
.service-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Yellow — logo petals */
.service-card-top--arabic  {
  background: linear-gradient(90deg, var(--clr-yellow-600), var(--clr-yellow-500));
}
/* Purple — logo flower body */
.service-card-top--quran   {
  background: linear-gradient(90deg, var(--clr-purple-800), var(--clr-purple-600));
}
/* Teal — logo text */
.service-card-top--islamic {
  background: linear-gradient(90deg, var(--clr-teal-700), var(--clr-teal-500));
}

/* Icon wrappers — tinted by their accent color */
.service-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.service-icon-wrap--arabic  { background: var(--clr-yellow-100); }
.service-icon-wrap--quran   { background: var(--clr-purple-100); }
.service-icon-wrap--islamic { background: var(--clr-teal-100);   }

.service-icon-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--space-3);
}

.service-description {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--clr-border);
}

.service-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

/* Teal check icons in service highlights */
.service-highlights li i {
  color: var(--clr-teal-600);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. Students Gallery Section
   -------------------------------------------------------------------------- */
.students-section {
  padding: var(--space-24) 0;
  background: var(--clr-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: transform var(--ease), box-shadow var(--ease);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Tall item spans 2 rows */
.gallery-item--tall {
  grid-row: span 2;
}

/* Explicit grid placement for the 4-photo layout */
.gallery-item:nth-child(1) { grid-column: 1;      grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: 3;      grid-row: 1 / span 2; }
.gallery-item:nth-child(3) { grid-column: 2;      grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; max-height: 280px; }

.gallery-item:nth-child(4) img {
  height: 280px;
  object-position: center 30%;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--clr-purple-950);
  color: rgba(255, 255, 255, 0.85);
}

.footer-top {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  /* Yellow ring echoes logo petal color */
  border: 2px solid rgba(240, 208, 80, 0.4);
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.3;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: var(--space-6);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--ease);
  text-decoration: none;
}

/* Hover: fill with logo yellow */
.social-link:hover {
  background: var(--clr-yellow-500);
  border-color: var(--clr-yellow-500);
  color: var(--clr-purple-950);
  transform: translateY(-2px);
}

/* Footer column headings — logo yellow */
.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-yellow-400);
  margin-bottom: var(--space-5);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
  text-decoration: none;
}

.footer-links-col a:hover {
  color: var(--clr-yellow-400);
}

/* Contact list */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Yellow icons in footer contact */
.contact-list li i {
  color: var(--clr-yellow-400);
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--clr-yellow-400);
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--space-4) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* rgba(255,255,255,0.4) only gives 3.74:1 contrast on --clr-purple-950.
   0.6 opacity yields ~6:1 — well above the 4.5:1 AA threshold. */
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0.15s;
}

/* Immediately show for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   16. Responsive — Large (≤1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   17. Responsive — Medium (≤900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  /* Hide desktop nav, show hamburger */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding: var(--space-16) 0 var(--space-20);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
    margin-inline: auto;
  }

  .feature-list {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-col {
    order: -1;
  }

  .hero-image-frame {
    max-width: 400px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--tall,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
  }

  .gallery-item:nth-child(4) img {
    height: auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive — Small (≤600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-section {
    padding: var(--space-12) 0 var(--space-16);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-image-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-about {
    grid-column: auto;
  }

  .announcement-inner {
    gap: var(--space-2);
  }

  .announcement-inner p {
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive — Extra Small (≤400px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}
