/* ========================================
   BRAHMAN BREEDERS SOCIETY OF ZIMBABWE
   Main Stylesheet
   ======================================== */

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

:root {
  /* Colors */
  --primary: #007A3D;
  --deep-green: #14532D;
  --gold: #C8A227;
  --gold-light: #E8D58A;
  --white: #FFFFFF;
  --off-white: #F5F7F5;
  --surface-warm: #FAF9F6;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --border-green: rgba(0, 122, 61, 0.12);
  --success: #16A34A;
  --error: #DC2626;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-elevated: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-subtle: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-green-glow: 0 0 20px rgba(0,122,61,0.15);

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

  /* Spacing */
  --section-padding: 6rem;
  --container-padding: 1.5rem;
  --content-max-width: 1280px;
  --card-padding: 2rem;
  --card-gap: 1.5rem;

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

  /* Transitions */
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* --- Container --- */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-medium {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.4; }

.overline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.overline-gold {
  color: var(--gold);
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-default);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--deep-green);
  border-color: var(--deep-green);
  box-shadow: 0 4px 16px rgba(0, 122, 61, 0.3);
  transform: translateY(-1px);
}

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

.btn-gold:hover {
  background-color: #A88B1F;
  border-color: #A88B1F;
  box-shadow: 0 4px 16px rgba(200, 162, 39, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

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

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-default);
  height: 72px;
}

.header-transparent {
  background: transparent;
}

.header-scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border-light);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 4px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--white);
  max-width: 180px;
}

.header-scrolled .logo-text {
  color: var(--text-primary);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-fast);
}

.header-scrolled .nav-link {
  color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--primary);
}

.nav-highlight {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
}

.nav-highlight:hover {
  background-color: var(--deep-green);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition-default);
}

.header-scrolled .menu-toggle span {
  background-color: var(--text-primary);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
}

.mobile-nav .nav-highlight {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,122,61,0.88) 0%, rgba(0,122,61,0.5) 50%, transparent 80%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 var(--container-padding);
  margin-left: 5vw;
  padding-top: 72px;
  padding-bottom: 100px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

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

/* Hero slider dots */
.hero-slider-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* Small hero (inner pages) */
.hero-small {
  min-height: 45vh;
  max-height: 500px;
}

.hero-small .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,122,61,0.8) 0%, rgba(0,122,61,0.4) 60%, transparent 100%);
}

.hero-small .hero-inner {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding-top: 100px;
}

.hero-small .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Hero with left gradient */
.hero-left .hero-overlay {
  background: linear-gradient(to right, rgba(20,83,45,0.85) 0%, rgba(20,83,45,0.5) 60%, transparent 100%);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding) 0;
}

.section-white { background-color: var(--white); }
.section-offwhite { background-color: var(--off-white); }
.section-green { background-color: var(--primary); }
.section-deep-green { background-color: var(--deep-green); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header-left {
  text-align: left;
  max-width: none;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--card-padding);
  transition: var(--transition-default);
  overflow: hidden;
}

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

.card-top-green { border-top: 4px solid var(--primary); }
.card-top-gold { border-top: 4px solid var(--gold); }

/* --- Statistics Bar --- */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--gold);
  padding: 2rem 3rem;
  max-width: 1100px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-light);
}

.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin: 0 auto 0.75rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-55-45 {
  grid-template-columns: 55% 45%;
}

.two-col-45-55 {
  grid-template-columns: 45% 55%;
}

/* --- Three Column Grid --- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

/* --- Four Column Grid --- */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

/* --- Info Cards Grid (advantages/benefits) --- */
.info-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.info-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
  transition: var(--transition-default);
}

.info-card:hover .info-card-icon {
  background: var(--primary);
  color: var(--white);
}

.info-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* --- Breeder Card --- */
.breeder-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.breeder-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.breeder-card:hover .breeder-card-img img {
  transform: scale(1.05);
}

.breeder-card-body {
  padding: 1.5rem;
}

.breeder-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.breeder-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.breeder-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.breeder-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

/* --- News Card --- */
.news-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.news-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.news-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* --- Event Card --- */
.event-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.event-card-img {
  aspect-ratio: 16 / 10;
  position: relative;
}

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

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.event-date-badge .day {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.event-date-badge .month {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 122, 61, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item-overlay svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* --- Animal Enquiries CTA --- */
.animal-enquiries-cta {
  background: var(--deep-green);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.animal-enquiries-cta .container {
  max-width: 800px;
}

.animal-enquiries-cta svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.animal-enquiries-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 1rem 0 1.5rem;
}

.animal-enquiries-cta .note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  max-width: 320px;
  margin: 0 1.5rem;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Tabs --- */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--off-white);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: var(--border-light);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* --- Accordion --- */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-header svg {
  transform: rotate(90deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-body-inner {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Membership Tiers --- */
.tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: var(--transition-default);
}

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

.tier-card.featured {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.tier-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.tier-header {
  padding: 2rem 2rem 1rem;
  border-top: 4px solid var(--primary);
}

.tier-card.featured .tier-header {
  border-top-color: var(--gold);
}

.tier-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-primary);
}

.tier-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-body {
  padding: 1rem 2rem;
}

.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tier-feature svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-footer {
  padding: 1rem 2rem 2rem;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.15);
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  background: #FEF2F2;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.25rem;
}

.form-success {
  background: #F0FDF4;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-error-banner {
  background: #FEF2F2;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

/* --- Countdown Timer --- */
.countdown {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.countdown-box {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.countdown-box .number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.countdown-box .label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

/* --- Search & Filter Bar --- */
.search-filter-bar {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.search-filter-bar.stuck {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.15);
}

/* --- Footer --- */
.footer {
  background: linear-gradient(to bottom, #14532D 0%, #0A2E16 100%);
  color: var(--white);
  padding-top: 4rem;
}

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

.footer-logo {
  height: 64px;
  width: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #D1D5DB;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #D1D5DB;
  transition: color 0.2s ease;
}

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

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: #D1D5DB;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #D1D5DB;
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate {
  opacity: 0;
}

.animate.fade-up {
  animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate.fade-left {
  animation: fadeSlideLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
}

/* --- Coming Soon Badge --- */
.badge-soon {
  display: inline-block;
  background: var(--off-white);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* --- Event Category Badges --- */
.badge-auction { background: #DC2626; }
.badge-show { background: #7C3AED; }
.badge-field { background: var(--primary); }
.badge-meeting { background: #2563EB; }

/* --- Offline Banner --- */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #FFF3CD;
  color: #856404;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.offline-banner.active {
  transform: translateY(0);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--deep-green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  z-index: 10001;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-elevated);
}

.toast.active {
  transform: translateX(-50%) translateY(0);
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 998;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  color: var(--text-muted);
  padding: 0.5rem;
}

.mobile-bottom-nav a.active {
  color: var(--primary);
}

.mobile-bottom-nav a.highlight {
  color: var(--gold);
}

.mobile-bottom-nav svg {
  width: 22px;
  height: 22px;
}

/* --- Spinner --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* --- Image Rounded --- */
.img-rounded {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Link with arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
}

.link-arrow:hover {
  gap: 0.625rem;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* --- Filter pills row --- */
.filter-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--off-white);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background: var(--border-light);
}

.filter-pill.active {
  background: var(--primary);
  color: var(--white);
}

/* --- Utility --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid { display: grid; }
.gap-card { gap: var(--card-gap); }

/* --- Event Badges --- */
.event-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: white;
  flex-shrink: 0;
}
.event-badge.auction { background: #DC2626; }
.event-badge.show { background: #7C3AED; }
.event-badge.field { background: var(--primary); }
.event-badge.meeting { background: #2563EB; }

/* --- Event Meta Row --- */
.event-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  flex-wrap: wrap;
}
.event-meta-row svg {
  flex-shrink: 0;
}

/* --- Home Events Sidebar --- */
.home-events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.home-event-mini {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.home-event-date {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  flex-shrink: 0;
}
.home-event-day {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}
.home-event-mon {
  font-size: 0.625rem;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col,
  .two-col-55-45,
  .two-col-45-55 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-inner {
    margin-left: var(--container-padding);
    padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(1)::after,
  .stat-item:nth-child(3)::after {
    bottom: 0;
    top: auto;
    left: 20%;
    right: 20%;
    width: auto;
    height: 1px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-bg {
    background-attachment: scroll;
  }

  .hero-overlay {
    background: linear-gradient(to right, rgba(0,122,61,0.88) 0%, rgba(0,122,61,0.7) 100%);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .stats-bar {
    margin: -20px 1rem 0;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-year {
    left: 20px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    font-size: 0.75rem;
  }

  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 64px;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  /* Mobile event items */
  .event-item {
    flex-wrap: wrap;
    gap: 0.75rem !important;
    padding: 1rem 0 !important;
  }
  .event-item > div:first-child {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    width: auto !important;
    text-align: left !important;
  }
  .event-item h3 {
    font-size: 1rem !important;
  }
  .link-arrow-hide-mobile {
    display: none !important;
  }

  /* Home events sidebar */
  .home-events-sidebar {
    gap: 1rem;
  }

  /* Tier cards */
  .tier-card.featured {
    transform: none;
  }

  /* Tab nav scroll */
  .tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }
  .tab-btn {
    white-space: nowrap;
  }

  /* Filter pills scroll */
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }
  .filter-pill {
    white-space: nowrap;
  }

  /* Section header left */
  .section-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Countdown */
  .countdown-box {
    width: 56px;
    height: 56px;
  }
  .countdown-box .number {
    font-size: 1.125rem;
  }

  /* Stats grid */
  .stat-item {
    padding: 0.75rem 0.5rem;
  }
  .stat-item::after {
    display: none;
  }

  /* Logo text */
  .logo-text {
    max-width: 140px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
  }
}

/* --- Print --- */
@media print {
  .header,
  .footer,
  .mobile-bottom-nav,
  .hero-slider-dots,
  .scroll-indicator,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: #666;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
