/*
Theme Name: Lincoln Hall
Theme URI: https://lincolnhallhingham.co.uk
Author: Printuff
Author URI: https://printuff.com
Description: A heritage WordPress theme for Lincoln Hall, Hingham, Norfolk. Built to honour the hall's rich history and Abraham Lincoln connection.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lincoln-hall
Tags: charity, heritage, community, custom-theme
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:        #1B2A4A;
  --navy-dark:   #111C33;
  --navy-mid:    #243562;
  --navy-light:  #2E4278;
  --gold:        #C9A84C;
  --gold-light:  #E0C06D;
  --gold-dark:   #A88830;
  --cream:       #F2EDE0;
  --cream-dark:  #EAE3D2;
  --off-white:   #F8F6F0;
  --charcoal:    #1C1C1C;
  --mid-grey:    #5A5A5A;
  --light-grey:  #E4DFD3;
  --white:       #FFFFFF;

  /* Legacy aliases — keeps template references working */
  --green:       var(--navy);
  --green-dark:  var(--navy-dark);
  --green-light: var(--navy-light);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  --radius:  6px;
  --shadow:  0 4px 24px rgba(28,28,28,0.10);
  --shadow-lg: 0 12px 48px rgba(28,28,28,0.18);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2rem; color: var(--mid-grey); }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--mid-grey);
  font-style: italic;
  line-height: 1.8;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 80px 0; }
.section--sm { padding: 50px 0; }
.section--lg { padding: 110px 0; }

.section--cream  { background: var(--off-white); }
.section--white  { background: var(--white); }
.section--navy   { background: var(--navy); }
.section--green  { background: var(--navy); }
.section--dark   { background: var(--navy-dark); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--navy); }
.text-white  { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Section heading with gold ornament */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.6rem;
}
.section-title.centered::after { margin: 0.6rem auto 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-green {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-green:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-lg { padding: 1.1rem 2.6rem; font-size: 1rem; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 24px; height: 24px; fill: var(--navy-dark); }

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.4;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy-dark) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ============================================================
   HERO — HOME PAGE
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17,28,51,0.95) 0%, rgba(27,42,74,0.80) 60%, rgba(17,28,51,0.90) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
}

/* Heritage texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem;
  margin-left: 8vw;
  animation: heroFadeUp 1s ease 0.2s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--gold);
  opacity: 0.6;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero .lead {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  animation: heroFadeUp 1s ease 1s both;
}

.hero-scroll span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* Heritage bar across hero bottom */
.hero-heritage-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,168,76,0.3);
  z-index: 3;
}

.heritage-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.heritage-stat {
  display: flex;
  flex-direction: column;
}

.heritage-stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1;
}

.heritage-stat span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

.heritage-bar-divider {
  width: 1px;
  height: 36px;
  background: rgba(201,168,76,0.3);
}

/* ============================================================
   SNAPSHOT SECTION (Home)
   ============================================================ */
.snapshot-intro { max-width: 640px; margin-bottom: 4rem; }

.snapshot-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.snapshot-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.snapshot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.snapshot-icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.snapshot-icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.8; }

.snapshot-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.snapshot-card p  { font-size: 0.9rem; margin: 0; }

/* ============================================================
   HISTORY PULL-QUOTE (Home teaser)
   ============================================================ */
.history-teaser {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.history-teaser::before {
  content: '\201C';
  position: absolute;
  top: -40px;
  left: 3%;
  font-family: var(--font-display);
  font-size: 18rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

.history-teaser .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.history-label {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-label .section-label { color: var(--gold-light); }
.history-label h2 { color: var(--white); }
.history-label p  { color: rgba(255,255,255,0.7); }

.history-quote {
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
}

.history-quote blockquote {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.history-quote cite {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-style: normal;
}

/* ============================================================
   WHAT'S ON PREVIEW (Home)
   ============================================================ */
.events-preview-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.event-card-image {
  height: 180px;
  background: var(--navy-light);
  position: relative;
  overflow: hidden;
}

.event-card-image img { width: 100%; height: 100%; object-fit: cover; }

.event-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.event-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255,255,255,0.4);
  fill: none;
  stroke-width: 1.5;
}

.event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  text-align: center;
  line-height: 1.1;
}

.event-date-badge .day {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
}

.event-date-badge .month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.event-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.event-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.event-card-body p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex: 1;
}

.event-card-body .event-time {
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  background: var(--navy-dark);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }

.page-hero .section-label { color: var(--gold-light); text-align: center; }

/* History timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-spacer  { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-spacer  { grid-column: 1; }

.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--gold);
  margin: 4px auto 0;
  flex-shrink: 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.timeline-content h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.timeline-content p  { font-size: 0.875rem; margin: 0; }

/* Lincoln connection feature */
.lincoln-feature {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.lincoln-feature::before {
  content: 'A';
  position: absolute;
  right: -20px;
  top: -40px;
  font-family: var(--font-display);
  font-size: 16rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

.lincoln-feature h2 { color: var(--white); margin-bottom: 1rem; }
.lincoln-feature p  { color: rgba(255,255,255,0.75); }
.lincoln-feature .section-label { color: var(--gold-light); }

.lincoln-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.lincoln-fact {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.lincoln-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.lincoln-fact span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   WHAT'S ON PAGE
   ============================================================ */
.events-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 2px solid var(--light-grey);
  background: transparent;
  color: var(--mid-grey);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.events-full-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.8rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.5rem; }
.contact-info .lead { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.8; }

.contact-detail-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.2rem;
}

.contact-detail-text span, .contact-detail-text a {
  font-size: 0.95rem;
  color: var(--charcoal);
}

/* Contact / Booking form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 { margin-bottom: 1.5rem; }

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Honeypot */
.hp-field { display: none !important; }

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow);
  margin-top: 3rem;
}

.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   CUSTOM ADMIN LOGIN PAGE
   ============================================================ */
body.lh-login-page {
  background: var(--navy-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

body.lh-login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.login-card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 12px 12px 0 0;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-mark {
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.login-logo-mark svg { width: 34px; height: 34px; fill: var(--gold); }

.login-logo h2 {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin-bottom: 0.2rem;
}

.login-logo span {
  font-size: 0.75rem;
  color: var(--mid-grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.login-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.login-form .form-group label { color: var(--charcoal); }

.login-form .form-group input {
  background: var(--off-white);
  border-color: var(--light-grey);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--mid-grey);
}

.login-footer a { color: var(--navy); }
.login-footer a:hover { color: var(--gold-dark); }

.login-attempts-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

.footer-brand .logo-name { font-size: 1.2rem; margin-bottom: 0.25rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 1rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 0.8rem; margin: 0; color: rgba(255,255,255,0.4); }

.charity-reg {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   PAGE TRANSITIONS & ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.1s; }
.fade-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.2s; }
.fade-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.3s; }
.fade-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4        { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .events-preview-grid, .events-full-grid { grid-template-columns: repeat(2,1fr); }
  .snapshot-cards { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 55px 0; }

  .grid-2        { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3        { grid-template-columns: 1fr; }
  .snapshot-cards { grid-template-columns: 1fr; }
  .events-preview-grid, .events-full-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .form-row      { grid-template-columns: 1fr; }
  .lincoln-fact-grid { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav ul   { flex-direction: column; gap: 0.5rem; text-align: center; }
  .main-nav a    { font-size: 1.3rem; padding: 0.75rem 2rem; }

  .menu-toggle { display: flex; z-index: 1000; }

  .hero-content { margin-left: 0; }
  .heritage-bar-inner { flex-wrap: wrap; gap: 1.5rem; }

  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 40px 1fr; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
  }
  .timeline-dot { grid-column: 1; }
  .timeline-item .timeline-spacer { display: none; }

  .history-teaser .container { grid-template-columns: 1fr; gap: 2rem; }

  .login-card { padding: 2rem 1.5rem; }
}
