/* ============================================
   Bendigo Highland Pipe Band - Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Primary palette */
  --navy: #1a2b5e;
  --navy-dark: #111d42;
  --navy-light: #243a75;
  --red: #c41e3a;
  --red-dark: #a01830;
  --green: #1b5e20;
  --green-dark: #144a18;
  --gold: #c9a227;
  --gold-light: #dbb84a;

  /* Muted sky replaced with sophisticated slate */
  --sky: #94a3b8;
  --sky-light: #b8c5d4;

  /* Warm cream for alternate sections */
  --cream: #f8f5f0;
  --cream-dark: #f0ebe3;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-md: 0 6px 12px -2px rgb(0 0 0 / 0.08), 0 3px 6px -3px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 14px 24px -4px rgb(0 0 0 / 0.1), 0 6px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-inset: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);

  /* Radius */
  --radius: 8px;
  --radius-lg: 12px;

  /* Layout */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--red);
}

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

/* ============================================
   Utility Classes
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--cream);
}

.section-alt-gray {
  background-color: var(--gray-50);
}

/* Section title variants */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-title span {
  color: var(--red);
}

.section-title-left {
  text-align: left;
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--red);
}

.section-title-left span {
  color: var(--red);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  background-color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

/* Elegant text lockup logo */
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.logo-text small {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sky);
}

.logo-divider {
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 3px 0;
  border-radius: 1px;
}

/* Logo image in navbar */
.logo-img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Hero logo display */
.hero-logo {
  height: 140px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

@media (max-width: 768px) {
  .logo-img { height: 48px; }
  .hero-logo { height: 100px; }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.nav-toggle:hover {
  color: var(--gold);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(196, 30, 58, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(27, 94, 32, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(26, 43, 94, 0.5) 0%, transparent 60%),
    linear-gradient(165deg, #0a1429 0%, #1a2b5e 35%, #111d42 75%, #080f24 100%);
}

/* Subtle diagonal line pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
  pointer-events: none;
}

/* Faint watermark — stylised knot ring */
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 2px solid rgba(201, 162, 39, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.25);
}

.hero h1 {
  font-size: 3.8rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.hero .est {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 4px;
  opacity: 0.95;
}

.hero p {
  font-size: 1.15rem;
  color: var(--sky-light);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero variant for inner pages */
.hero-page {
  min-height: 320px;
}

/* ============================================
   Placeholder Image System
   ============================================ */
.placeholder-img,
.gallery-placeholder {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tartan-inspired background pattern */
.placeholder-img::before,
.gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--navy-dark);
  background-image:
    repeating-linear-gradient(90deg,
      transparent, transparent 18px,
      rgba(196, 30, 58, 0.05) 18px, rgba(196, 30, 58, 0.05) 20px,
      transparent 20px, transparent 38px,
      rgba(201, 162, 39, 0.04) 38px, rgba(201, 162, 39, 0.04) 40px
    ),
    repeating-linear-gradient(0deg,
      transparent, transparent 18px,
      rgba(196, 30, 58, 0.05) 18px, rgba(196, 30, 58, 0.05) 20px,
      transparent 20px, transparent 38px,
      rgba(201, 162, 39, 0.04) 38px, rgba(201, 162, 39, 0.04) 40px
    );
  z-index: 0;
}

/* Subtle inner vignette */
.placeholder-img::after,
.gallery-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: var(--shadow-inset);
  z-index: 1;
  pointer-events: none;
}

.placeholder-img {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
}

.placeholder-img .ph-text,
.gallery-placeholder .ph-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--sky);
  opacity: 0.6;
  z-index: 2;
  position: relative;
  text-align: center;
}

.placeholder-img .ph-text em,
.gallery-placeholder .ph-text em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-top: 0.35rem;
  opacity: 0.75;
}

/* Feature image wrapper */
.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img img,
.feature-img .placeholder-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--gray-100);
}

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

.card-body {
  padding: 2rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.card-body p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Top accent border on cards */
.card:nth-child(3n+1) {
  border-top: 3px solid var(--red);
}

.card:nth-child(3n+2) {
  border-top: 3px solid var(--gold);
}

.card:nth-child(3n+3) {
  border-top: 3px solid var(--navy);
}

/* ============================================
   Feature Section
   ============================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  margin-bottom: 1.25rem;
}

.feature-text p {
  color: var(--gray-600);
  margin-bottom: 1.1rem;
  line-height: 1.8;
}

.feature-text ul {
  list-style: none;
  margin: 1.25rem 0;
}

.feature-text ul li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-600);
  line-height: 1.7;
}

.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.8;
}

/* ============================================
   Facebook Section
   ============================================ */
.facebook-section {
  background-color: var(--cream);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.facebook-section .section-title {
  color: var(--navy);
}

.facebook-section .section-title::after {
  background: var(--gold);
}

.facebook-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.facebook-text {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.facebook-text h3 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.facebook-text p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.facebook-embed {
  display: flex;
  justify-content: center;
}

.facebook-embed iframe {
  border-radius: var(--radius-lg);
  max-width: 100%;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Contact Banner
   ============================================ */
.contact-banner {
  background-color: var(--red);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.contact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.08) 0%, transparent 70%);
}

.contact-banner .container {
  position: relative;
  z-index: 1;
}

.contact-banner h2 {
  color: var(--white);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.contact-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gray-300) 0%, var(--gold) 50%, var(--gray-300) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 18px;
  height: 18px;
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-7.5px);
  box-shadow: 0 0 0 3px var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-7.5px) scale(1.15);
  box-shadow: 0 0 0 4px var(--gold-light);
}

.timeline-item.highlight .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-left: 1.25rem;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-content h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.timeline-content .year {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
}

.gallery-placeholder .ph-text {
  font-size: 0.7rem;
  letter-spacing: 2px;
}

/* Hover overlay for gallery items */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 42, 71, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 4;
  pointer-events: none;
}

.gallery-item:hover .gallery-label {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.25rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.contact-detail:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-detail h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.contact-detail p,
.contact-detail a {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--navy-dark);
  color: var(--gray-300);
  padding: 3.5rem 0 1.5rem;
  position: relative;
}

/* Subtle tartan stripe at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px, var(--red) 24px,
    var(--green) 24px, var(--green) 48px,
    var(--navy) 48px, var(--navy) 72px,
    var(--gold) 72px, var(--gold) 96px,
    var(--red) 96px, var(--red) 120px
  );
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--gray-400);
}

.footer-links h4 {
  color: var(--gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer-bottom a {
  color: var(--sky);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .feature,
  .facebook-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature.reverse {
    direction: ltr;
  }

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

  .facebook-text {
    order: 2;
  }

  .facebook-embed {
    order: 1;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero .est { font-size: 1.2rem; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.875rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 480px;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-content {
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .hero .est { font-size: 1rem; letter-spacing: 2px; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-title-left {
    text-align: center;
    padding-left: 0;
    border-left: none;
    border-bottom: 4px solid var(--red);
    padding-bottom: 0.75rem;
  }
}
