/* =============================================
   DISCOVER WISBECH — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --primary: #1E4D6B;
  --primary-light: #2D7AB5;
  --primary-dark: #12303f;
  --secondary: #C8941A;
  --secondary-light: #E8B43A;
  --accent: #8B4C6E;
  --green: #3D7A50;
  --dark: #1A2332;
  --light: #F9F7F4;
  --light-alt: #F0EDE8;
  --text: #2C3E50;
  --text-light: #5D7080;
  --border: #E0D9CF;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --nav-height: 72px;
  --max-width: 1280px;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
p { line-height: 1.7; }

.serif { font-family: 'Playfair Display', serif; }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--primary { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-disc {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}
.nav-logo .logo-town {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo .logo-town span { color: var(--secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--primary); background: var(--light); }

.nav-links > li.has-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7rem;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text);
  transition: all var(--transition);
}
.dropdown li a:hover { background: var(--light); color: var(--primary); padding-left: 24px; }
.dropdown li:first-child a { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown li:last-child a { border-radius: 0 0 var(--radius) var(--radius); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: 8px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-light) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Spacer below fixed nav */
.nav-spacer { height: var(--nav-height); }

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-sm { min-height: 40vh; }
.hero-md { min-height: 55vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,77,107,0.85) 0%, rgba(26,35,50,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
}
.hero-content .section-label { color: var(--secondary-light); }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-ghost { color: var(--primary); }
.btn-ghost:hover { background: var(--light); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #a05882; transform: translateY(-1px); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--light-alt);
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
}

.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--light);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 10px;
}
.card-tag.tag-sport { background: #E8F5E9; color: #2E7D32; }
.card-tag.tag-art { background: #F3E5F5; color: #7B1FA2; }
.card-tag.tag-food { background: #FFF3E0; color: #E65100; }
.card-tag.tag-nature { background: #E8F5E9; color: #1B5E20; }
.card-tag.tag-wellness { background: #E0F7FA; color: #006064; }
.card-tag.tag-community { background: #E3F2FD; color: #1565C0; }
.card-tag.tag-nightlife { background: #EDE7F6; color: #4527A0; }
.card-tag.tag-crafts { background: #FBE9E7; color: #BF360C; }
.card-tag.tag-news { background: #E8F5E9; color: var(--green); }

.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card h4 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

.card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }

/* Feature cards */
.feature-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform var(--transition);
}
.feature-card:hover { transform: scale(1.02); }
.feature-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26,35,50,0.9) 100%);
}
.feature-card-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: var(--white);
}
.feature-card-content .section-label { color: var(--secondary-light); }
.feature-card-content h3 { color: var(--white); margin-bottom: 8px; }
.feature-card-content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px; }

/* =============================================
   NEWS / GOOD NEWS CARDS
   ============================================= */
.news-card { display: flex; flex-direction: column; }
.news-card .card-body { flex: 1; display: flex; flex-direction: column; }
.news-card p { flex: 1; }
.news-source {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.news-source::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* Share & Like buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.share-btn, .like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  transition: all var(--transition);
  cursor: pointer;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--light); }
.like-btn:hover, .like-btn.liked { border-color: #e91e63; color: #e91e63; background: #fce4ec; }
.like-btn .count { font-weight: 600; }

/* =============================================
   EVENTS / WHAT'S ON
   ============================================= */
.event-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.event-date-box {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.event-date-box .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.event-info { flex: 1; }
.event-info h4 { margin-bottom: 4px; }
.event-info p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 8px; }
.event-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }

/* Category filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* =============================================
   BUSINESS DIRECTORY
   ============================================= */
.business-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.business-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.business-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.business-card h4 { margin-bottom: 4px; }
.business-card .business-cat {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 10px;
}
.business-card p { font-size: 0.88rem; color: var(--text-light); flex: 1; margin-bottom: 14px; }
.offer-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* =============================================
   PRIDE OF WISBECH
   ============================================= */
.pride-spotlight {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
.pride-spotlight-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--secondary);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
}
.pride-spotlight h2 { color: var(--white); margin-bottom: 6px; }
.pride-spotlight .month-label { color: var(--secondary-light); font-weight: 600; margin-bottom: 14px; }
.pride-spotlight p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

.pride-past-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pride-past-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.pride-past-card:hover { box-shadow: var(--shadow-md); }
.pride-past-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--secondary);
}
.pride-past-card h5 { margin-bottom: 4px; }
.pride-past-card .pride-month { font-size: 0.78rem; color: var(--secondary); font-weight: 600; }
.pride-past-card p { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; }

/* =============================================
   CONTACT FORM
   ============================================= */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group label .req { color: #e74c3c; margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control::placeholder { color: #aab0b7; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235D7080' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 5px; }

/* Dynamic form sections */
.form-section-dynamic { display: none; }
.form-section-dynamic.visible { display: block; }

/* =============================================
   NEWSLETTER POPUP
   ============================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.popup-overlay.show { opacity: 1; visibility: visible; }

.popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}
.popup-overlay.show .popup { transform: scale(1) translateY(0); }

.popup-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 32px 32px 24px;
  text-align: center;
  position: relative;
}
.popup-header .popup-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.popup-header .popup-close:hover { background: rgba(255,255,255,0.3); }
.popup-header .popup-icon { font-size: 2.5rem; margin-bottom: 10px; }
.popup-header h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 6px; }
.popup-header p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.popup-header .news-title { color: var(--secondary-light); font-style: italic; font-weight: 600; }

.popup-body { padding: 28px 32px; }
.popup-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; text-align: center; }
.popup-form { display: flex; flex-direction: column; gap: 12px; }
.popup-form input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.popup-form input:focus { outline: none; border-color: var(--primary); }
.popup-footer { padding: 0 32px 24px; text-align: center; }
.popup-footer .skip { font-size: 0.8rem; color: var(--text-light); cursor: pointer; }
.popup-footer .skip:hover { color: var(--primary); }
.popup-privacy { font-size: 0.75rem; color: var(--text-light); text-align: center; margin-top: 8px; }

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.85); flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--secondary-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-town { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); }
.footer-brand .logo-town span { color: var(--secondary); }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-brand .tagline { color: var(--secondary-light); font-style: italic; margin-top: 8px; font-size: 0.85rem; }

.footer-col h5 { color: var(--white); margin-bottom: 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--secondary-light); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--secondary-light); }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-link:hover { background: var(--secondary); color: var(--white); transform: translateY(-2px); }

/* =============================================
   MISC COMPONENTS
   ============================================= */

/* Page intro banner */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.page-hero .breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--secondary-light); }

/* Stat boxes */
.stat-box { text-align: center; padding: 32px 24px; }
.stat-box .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box p { font-size: 0.9rem; color: var(--text-light); }

/* Quote / pull quote */
.pull-quote {
  border-left: 4px solid var(--secondary);
  padding: 20px 28px;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--text); font-style: italic; }
.pull-quote cite { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; display: block; }

/* Notice / info box */
.notice {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice-info { background: #E3F2FD; border-left: 4px solid #1565C0; color: #1565C0; }
.notice-success { background: #E8F5E9; border-left: 4px solid var(--green); color: #1B5E20; }

/* Tabs */
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 32px; gap: 0; }
.tab-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Search bar */
.search-bar {
  display: flex;
  gap: 0;
  max-width: 480px;
}
.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.9rem;
}
.search-bar input:focus { outline: none; border-color: var(--primary); }
.search-bar button {
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-light); }

/* Loading spinner */
.loading { text-align: center; padding: 48px; color: var(--text-light); }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  cursor: pointer;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.divider-ornament {
  text-align: center;
  margin: 40px 0;
  position: relative;
}
.divider-ornament::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.divider-ornament span {
  position: relative;
  background: var(--white);
  padding: 0 16px;
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Map placeholder */
.map-placeholder {
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
}
.map-placeholder .map-icon { font-size: 3rem; margin-bottom: 12px; }

/* Sticky sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.sidebar-sticky { position: sticky; top: calc(var(--nav-height) + 20px); }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* Accordion */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.accordion-header {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--light); }
.accordion-header .arrow { transition: transform var(--transition); font-size: 0.8rem; color: var(--text-light); }
.accordion-header.open .arrow { transform: rotate(180deg); }
.accordion-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.accordion-body.open { padding: 0 20px 16px; max-height: 400px; }
.accordion-body p { font-size: 0.9rem; color: var(--text-light); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--light);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.tag-pill:hover { border-color: var(--primary); color: var(--primary); }

/* Section divider wave */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links > li > a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-links > li.has-dropdown > a::after { float: right; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-content p { font-size: 1rem; }
  .pride-spotlight { grid-template-columns: 1fr; text-align: center; }
  .pride-spotlight-photo { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .popup-header, .popup-body, .popup-footer { padding-left: 24px; padding-right: 24px; }
  .pull-quote { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .btn { padding: 11px 20px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 12px; font-size: 0.8rem; }
  .event-card { flex-direction: column; }
  .event-date-box { width: 100%; display: flex; gap: 6px; align-items: center; justify-content: center; }
  .event-date-box .day, .event-date-box .month { display: inline; }
}
