/* ============================================
   KEMNAL RESIDENTS' ASSOCIATION
   Design System & Styles
   ============================================ */

/* --- Google Fonts loaded in HTML head ---
   Cormorant Garamond (display/headings)
   Source Sans 3 (body)
   ------------------------------------------- */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Woodland palette */
  --forest-900: #1a2e1a;
  --forest-800: #243524;
  --forest-700: #2d4a2d;
  --forest-600: #3a5f3a;
  --forest-500: #4a7c4a;
  --forest-400: #6b9e6b;
  --forest-300: #8fb88f;
  --forest-200: #b8d4b8;
  --forest-100: #ddeedd;
  --forest-50:  #f0f7f0;

  --earth-900: #3d2b1f;
  --earth-800: #5c3d2e;
  --earth-700: #7a5038;
  --earth-600: #8b6344;
  --earth-500: #a07850;
  --earth-400: #b8946e;
  --earth-300: #cdb08e;
  --earth-200: #e0ccb0;
  --earth-100: #f0e6d6;
  --earth-50:  #faf6ef;

  --gold-600: #8b7328;
  --gold-500: #a68b32;
  --gold-400: #c4a84a;
  --gold-300: #d4be70;
  --gold-200: #e6d9a0;
  --gold-100: #f5efd0;

  --cream:     #fdfbf5;
  --cream-warm:#f8f4ea;
  --parchment: #f2ece0;

  --text-primary:   #2c2418;
  --text-secondary:  #5a4e3c;
  --text-muted:      #8a7e6c;
  --text-on-dark:    #f0e6d6;
  --text-on-forest:  #ddeedd;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(44,36,24,0.08);
  --shadow-md:  0 4px 12px rgba(44,36,24,0.1);
  --shadow-lg:  0 8px 30px rgba(44,36,24,0.12);
  --shadow-xl:  0 16px 50px rgba(44,36,24,0.15);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--forest-700);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--forest-500);
}

ul, ol {
  list-style: none;
}

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


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

h1 { font-size: var(--text-6xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--text-secondary);
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.decorative-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--forest-600), var(--gold-400));
  border: none;
  margin: var(--space-lg) 0;
}

.decorative-rule--center {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--forest {
  background-color: var(--forest-800);
  color: var(--text-on-dark);
}

.section--forest h2,
.section--forest h3,
.section--forest h4 {
  color: var(--text-on-forest);
}

.section--forest .label {
  color: var(--forest-300);
}

.section--forest .decorative-rule {
  background: linear-gradient(90deg, var(--forest-400), var(--gold-400));
}

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

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

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }


/* ============================================
   BOTANICAL DECORATIONS
   ============================================ */

/* Leaf ornament (CSS-only decorative divider) */
.leaf-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
  color: var(--forest-300);
  font-size: var(--text-2xl);
}

.leaf-ornament::before,
.leaf-ornament::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--forest-200));
}

.leaf-ornament::after {
  background: linear-gradient(90deg, var(--forest-200), transparent);
}

.section--forest .leaf-ornament {
  color: var(--forest-400);
}

.section--forest .leaf-ornament::before {
  background: linear-gradient(90deg, transparent, var(--forest-600));
}

.section--forest .leaf-ornament::after {
  background: linear-gradient(90deg, var(--forest-600), transparent);
}

/* Subtle grain texture overlay */
.grain-overlay {
  position: relative;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.site-header--transparent {
  background-color: transparent;
}

.site-header--solid {
  background-color: rgba(26, 46, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 36px;
  height: 36px;
  fill: var(--forest-200);
  transition: fill var(--duration-fast) var(--ease-out);
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-logo__full {
  display: none;
}

.site-logo__short {
  display: inline;
}

@media (min-width: 900px) {
  .site-logo__full {
    display: inline;
  }
  .site-logo__short {
    display: none;
  }
}

/* Main navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--forest-100);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

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

.main-nav a.active {
  color: var(--gold-300);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 1px;
}

/* Dropdown menu for History */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--forest-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  border-radius: 0;
}

/* Mobile menu */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--forest-900);
  z-index: 999;
  padding: var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

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

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--forest-100);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.mobile-nav__sub {
  padding-left: var(--space-xl);
}

.mobile-nav__sub a {
  font-size: var(--text-xl);
  color: var(--forest-200);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--forest-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,46,26,0.3) 0%,
      rgba(26,46,26,0.5) 40%,
      rgba(26,46,26,0.85) 100%
    ),
    url('assets/images/hero-woodland.jpg') center/cover no-repeat;
}

/* Fallback pattern if no image */
.hero__bg--pattern {
  background:
    linear-gradient(180deg,
      rgba(26,46,26,0.7) 0%,
      rgba(26,46,26,0.9) 100%
    ),
    radial-gradient(ellipse at 20% 50%, rgba(74,124,74,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(74,124,74,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(107,158,107,0.15) 0%, transparent 40%);
  background-color: var(--forest-900);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  padding: var(--space-3xl) var(--space-xl);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 700;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--forest-100);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--forest-200);
  opacity: 0.6;
  animation: gentle-bob 3s ease-in-out infinite;
}

@keyframes gentle-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-800) 50%, var(--forest-700) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C25 15, 15 20, 10 30 C15 25, 25 30, 30 20 C35 30, 45 25, 50 30 C45 20, 35 15, 30 5Z' fill='%23ffffff' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.page-hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.page-hero__description {
  font-size: var(--text-lg);
  color: var(--forest-100);
  max-width: 600px;
  line-height: 1.6;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--forest-600);
  color: var(--cream);
  border: 2px solid var(--forest-600);
}

.btn--primary:hover {
  background: var(--forest-500);
  border-color: var(--forest-500);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(58,95,58,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn--outline:hover {
  border-color: var(--cream);
  color: var(--cream);
  background: rgba(255,255,255,0.06);
}

.btn--earth {
  background: var(--earth-600);
  color: var(--cream);
  border: 2px solid var(--earth-600);
}

.btn--earth:hover {
  background: var(--earth-500);
  border-color: var(--earth-500);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-sm) var(--space-md);
}

.btn--icon svg {
  width: 16px;
  height: 16px;
}


/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--earth-100);
}

.card__body {
  padding: var(--space-xl);
}

.card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.card__title a {
  color: var(--text-primary);
}

.card__title a:hover {
  color: var(--forest-600);
}

.card__text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--earth-100);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* House card variant */
.house-card {
  position: relative;
  border-left: 3px solid var(--forest-400);
}

.house-card__status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.house-card__status--survives {
  background: var(--forest-100);
  color: var(--forest-700);
}

.house-card__status--demolished {
  background: var(--earth-100);
  color: var(--earth-700);
}

.house-card__dates {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* Person card */
.person-card {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.person-card:hover {
  box-shadow: var(--shadow-md);
}

.person-card__initial {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-700);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  border-radius: 50%;
}

.person-card__content {
  flex: 1;
}

.person-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 2px;
}

.person-card__residence {
  font-size: var(--text-sm);
  color: var(--forest-600);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.person-card__bio {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================
   NEWS ITEMS
   ============================================ */
.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--earth-100);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__date {
  text-align: right;
  min-width: 80px;
  padding-top: 4px;
}

.news-item__day {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--forest-700);
  line-height: 1;
}

.news-item__month-year {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-item__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.news-item__excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--forest-600);
  margin-top: var(--space-sm);
}

.news-item__link:hover {
  color: var(--forest-500);
}

@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .news-item__date {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
  }
  .news-item__day {
    font-size: var(--text-xl);
  }
}


/* ============================================
   NEWS ARTICLES (rich layout with images)
   ============================================ */
.news-article {
  margin-bottom: var(--space-2xl);
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.news-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-article__image {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
}

.news-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.news-article:hover .news-article__image img {
  transform: scale(1.03);
}

.news-article__body {
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.news-article__meta {
  margin-bottom: var(--space-sm);
}

.news-article__date {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-article__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.25;
  color: var(--text-primary);
}

.news-article__body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
}

.news-article__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--forest-600);
  margin-top: var(--space-md);
  transition: color var(--duration-fast) var(--ease-out);
}

.news-article__link:hover {
  color: var(--forest-500);
}

@media (max-width: 600px) {
  .news-article__body {
    padding: var(--space-lg);
  }
  .news-article__title {
    font-size: var(--text-2xl);
  }
  .news-article__image {
    max-height: 220px;
  }
}


/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--forest-300), var(--earth-200));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 6px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--forest-600);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--forest-300);
}

.timeline__item--highlight::before {
  background: var(--gold-400);
  box-shadow: 0 0 0 2px var(--gold-300);
  width: 16px;
  height: 16px;
  left: calc(-1 * var(--space-3xl) + 5px);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--forest-700);
  margin-bottom: 2px;
}

.timeline__text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}


/* ============================================
   DOCUMENT SECTIONS
   ============================================ */
.doc-section {
  margin-bottom: var(--space-2xl);
}

.doc-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--forest-200);
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.doc-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--earth-100);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.doc-link:hover {
  background: var(--forest-50);
  border-color: var(--forest-200);
  color: var(--forest-700);
}

.doc-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--earth-500);
}

.doc-link__icon--pdf {
  color: #c0392b;
}


/* ============================================
   COMMITTEE TABLE
   ============================================ */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.committee-member {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.committee-member__initial {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-700);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.committee-member__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.committee-member__role {
  font-size: var(--text-sm);
  color: var(--forest-600);
}


/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--earth-100);
}

.gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .gallery-item--wide {
    grid-column: span 1;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,46,26,0.7) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

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

.gallery-item__caption {
  color: var(--cream);
  font-size: var(--text-base);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,46,26,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: var(--text-2xl);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--duration-fast);
  z-index: 1;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 500px;
  background: rgba(0,0,0,0.3);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: var(--text-2xl);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox__nav--prev { left: var(--space-xl); }
.lightbox__nav--next { right: var(--space-xl); }


/* ============================================
   INFO CARDS / UTILITY SECTIONS
   ============================================ */
.info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--forest-500);
}

.info-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-50);
  color: var(--forest-600);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
}

.info-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.info-card__text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Utility contacts table */
.utility-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.utility-table th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-md);
  border-bottom: 2px solid var(--earth-200);
}

.utility-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--earth-100);
  vertical-align: top;
}

.utility-table tr:hover td {
  background: var(--forest-50);
}

.utility-table a {
  color: var(--forest-700);
  font-weight: 500;
}

/* Bin collection highlight */
.bin-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.bin-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.bin-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.bin-item__icon--food { background: #6b4c2a; color: white; }
.bin-item__icon--paper { background: #2c2c2c; color: white; }
.bin-item__icon--recycling { background: #3a7d3a; color: white; }
.bin-item__icon--general { background: #555; color: white; }
.bin-item__icon--garden { background: #5a8f3a; color: white; }

.bin-item__name {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.bin-item__schedule {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.bin-item__contents {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}


/* ============================================
   LOCAL AREA CARDS
   ============================================ */
.landmark-card {
  display: grid;
  grid-template-columns: 1fr;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.landmark-card:hover {
  box-shadow: var(--shadow-md);
}

.landmark-card__body {
  padding: var(--space-xl);
}

.landmark-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: var(--space-sm);
}

.landmark-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.landmark-card__description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.contact-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--text-2xl);
}

.contact-card__icon--email {
  background: var(--forest-100);
  color: var(--forest-700);
}

.contact-card__icon--whatsapp {
  background: #dcf8c6;
  color: #25d366;
}

.contact-card__icon--facebook {
  background: #e7f0ff;
  color: #1877f2;
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.contact-card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--forest-900);
  color: var(--forest-200);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-about__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.footer-about__text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--forest-200);
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-300);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--forest-200);
  padding: 3px 0;
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  color: var(--forest-400);
  flex-wrap: wrap;
  gap: var(--space-md);
}


/* ============================================
   EXPANDABLE / ACCORDION
   ============================================ */
.accordion__item {
  border-bottom: 1px solid var(--earth-100);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.accordion__trigger:hover {
  color: var(--forest-600);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-muted);
}

.accordion__item.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion__inner {
  padding-bottom: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.7;
}

.accordion__inner p {
  margin-bottom: var(--space-md);
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.stagger > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(9) { transition-delay: 640ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(10) { transition-delay: 720ms; opacity: 1; transform: translateY(0); }


/* ============================================
   SKIP LINK (ACCESSIBILITY)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--forest-700);
  color: var(--cream);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
}


/* ============================================
   QUICK LINKS GRID (Homepage)
   ============================================ */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--earth-100);
}

.quick-link:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-link__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-100);
  color: var(--forest-700);
  border-radius: 50%;
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.quick-link:hover .quick-link__icon {
  background: var(--forest-700);
  color: var(--gold-300);
}

.quick-link__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.quick-link__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ============================================
   SAFETY PAGE SPECIFICS
   ============================================ */
.safety-section {
  padding: var(--space-2xl);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.safety-section__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-100);
  color: var(--forest-700);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
}

.safety-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.safety-section__text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.safety-section__text a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================
   COUNCILLOR CARDS
   ============================================ */
.councillor-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.councillor-card__info {
  flex: 1;
}

.councillor-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 4px;
}

.councillor-card__detail {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.councillor-card__detail a {
  color: var(--forest-700);
  font-weight: 500;
}


/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .hero__scroll-hint,
  .mobile-toggle,
  .mobile-nav,
  .lightbox {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .page-hero {
    background: none !important;
    color: black !important;
    padding-top: 0 !important;
  }

  .page-hero__title,
  .page-hero__label,
  .page-hero__description {
    color: black !important;
  }
}
