:root {
  --forest: #2f4b3a;
  --forest-dark: #263b2d;
  --cream: #f6f2e9;
  --soft-cream: #f1eadc;
  --gold: #d2ae6d;
  --gold-light: #f5d479;
  --text: #3c2f25;
  --card: #ffffff;
  --shadow: 0 18px 45px -20px rgba(18, 38, 32, 0.35);
  --shadow-hover: 0 24px 50px -18px rgba(22, 43, 37, 0.45);
  --radius: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 20% 20%, rgba(210, 174, 109, 0.15), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(53, 94, 59, 0.15), transparent 30%),
              var(--cream);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================
   HEADER & NAVIGATION
========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, var(--forest), var(--forest-dark));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.page-strap {
  height: 12px;
  background: linear-gradient(90deg, var(--gold), silver, var(--gold-light), var(--gold));
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.brand:hover .brand-icon {
  transform: rotate(360deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--gold), silver, var(--gold-light), var(--gold));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.22);
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ==========================
   LAYOUT & STRUCTURE
========================== */
.page-shell {
  padding: clamp(2rem, 4vw, 3.5rem) 0 4rem;
  display: grid;
  gap: 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.section-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 5vw, 3.2rem);
  color: var(--forest);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(120deg, var(--forest), var(--gold), var(--forest-dark));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}

.lead {
  font-size: 1.12rem;
  color: #4a3d30;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: inline-block;
  position: relative;
  padding-left: 2.5rem;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

/* ==========================
   MEDIA & IMAGES
========================== */
.hero-media,
.media-card {
  width: 100%;
}

.media-frame {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(47, 75, 58, 0.08);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.media-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.media-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 520px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.parallax-img img {
  transition: transform 0.5s ease-out;
}

.parallax-img:hover img {
  transform: scale(1.05);
}

.media-frame.narrow img {
  max-height: 420px;
}

.media-frame figcaption {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================
   CARDS & CONTENT BLOCKS
========================== */
.card,
.highlight-card {
  background: linear-gradient(145deg, #ffffff, var(--soft-cream));
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--gold);
  transition: var(--transition);
}

.card:hover,
.highlight-card:hover,
.callout:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-left-width: 12px;
}

.card h2,
.card h3,
.highlight-card h3,
.callout h3 {
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  margin-bottom: 0.8rem;
}

.card h2 i,
.card h3 i,
.callout h3 i {
  color: var(--gold);
  margin-right: 0.5rem;
}

.card p { 
  margin-bottom: 1rem; 
  font-size: 1.05rem;
  line-height: 1.75;
}

.card-stack {
  display: grid;
  gap: 1.5rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-left-color: var(--forest);
}

.stack-card {
  position: relative;
  overflow: hidden;
}

.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(210, 174, 109, 0.08), transparent 50%),
              radial-gradient(circle at 80% 10%, rgba(53, 94, 59, 0.08), transparent 48%);
  opacity: 0.9;
}

.stack-card > * {
  position: relative;
  z-index: 1;
}

.inline-heading { 
  display: inline-block;
  position: relative;
}

.inline-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.text-link {
  color: var(--forest);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.text-link:hover { 
  border-bottom-color: var(--forest); 
  gap: 0.7rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.list-styled {
  margin: 1rem 0 0 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: #4b3c31;
}

.list-styled li {
  padding-left: 0.5rem;
  position: relative;
}

.list-styled li::before {
  content: '→';
  position: absolute;
  left: -1rem;
  color: var(--gold);
  font-weight: bold;
}

/* ==========================
   TABLES
========================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 0.9rem;
  text-align: left;
}

.data-table th {
  background: var(--forest);
  color: #fff;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.data-table tr {
  transition: var(--transition);
}

.data-table tr:nth-child(even) { background: #f8f4ec; }
.data-table tr:nth-child(odd) { background: #ffffff; }

.data-table tbody tr:hover {
  background: var(--soft-cream);
  transform: scale(1.01);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* ==========================
   CALLOUTS & SPECIAL BOXES
========================== */
.callout {
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  border: 1px solid rgba(47, 75, 58, 0.1);
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.safety-grid,
.resources-grid {
  gap: 1rem;
}

/* ==========================
   BUTTONS & CTAs
========================== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before {
  width: 300px;
  height: 300px;
}

.primary-btn {
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  color: #2e261c;
  box-shadow: 0 14px 30px -14px rgba(47, 75, 58, 0.6);
  position: relative;
}

.primary-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 18px 36px -14px rgba(47, 75, 58, 0.7);
}

.primary-btn i,
.secondary-btn i {
  position: relative;
  z-index: 1;
}

.large-btn {
  padding: 1.2rem 2rem;
  font-size: 1.05rem;
}

.secondary-btn {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.secondary-btn:hover {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(47, 75, 58, 0.6);
}

/* ==========================
   STATS BANNER
========================== */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ==========================
   TESTIMONIALS
========================== */
.testimonial-card {
  border-left-color: var(--gold);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quote-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
}

.testimonial-slider {
  position: relative;
  min-height: 120px;
  margin-bottom: 1.5rem;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.testimonial-item.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--forest);
  font-size: 0.95rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.testimonial-btn {
  background: rgba(47, 75, 58, 0.1);
  border: 2px solid var(--forest);
  color: var(--forest);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-btn:hover {
  background: var(--forest);
  color: white;
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(47, 75, 58, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--forest);
  transform: scale(1.3);
}

.dot:hover {
  background: var(--gold);
}

/* ==========================
   GALLERY
========================== */
.gallery-section {
  display: grid;
  gap: 3rem;
}

.gallery-category {
  display: grid;
  gap: 1.5rem;
}

.gallery-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold);
}

.gallery-heading i {
  color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: white;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  padding: 1rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.caption-title {
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.caption-text {
  font-size: 0.9rem;
  color: #5a5046;
}

/* ==========================
   MODAL / LIGHTBOX
========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  animation: zoomIn 0.3s ease;
}

.modal-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.modal-caption {
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gold-light);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  transition: var(--transition);
  z-index: 1001;
}

.modal-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* ==========================
   CTA SECTION
========================== */
.cta-section {
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  color: white;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================
   FOOTER
========================== */
.section-intro { 
  text-align: center; 
  max-width: 760px; 
  margin: 0 auto; 
}

.section-intro .lead { 
  margin: 0 auto; 
}

.site-footer {
  background: linear-gradient(120deg, var(--forest), var(--forest-dark));
  color: rgba(255, 255, 255, 0.9);
  padding: 1.6rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.heart-beat {
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
}

.back-to-top {
  color: var(--gold-light);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-3px);
  color: white;
}

/* ==========================
   ANIMATIONS
========================== */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 640px) {
  .header-bar { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  
  .highlight-card { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  
  .footer-content { 
    flex-direction: column; 
    align-items: flex-start; 
  }

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .cta-row,
  .testimonial-controls,
  .modal {
    display: none !important;
  }
}
