/* CSS Variables & Design System Setup */
:root {
  --primary: #059669;
  --secondary: #ecfdf5;
  --accent: #f59e0b;
  --text: #064e3b;
  --bg: #fafafa;
  --earth-bg: #f5f0e8;
  --earth-text: #2d2416;
}

/* Global Styles */
body {
  background-color: var(--earth-bg);
  color: var(--earth-text);
  font-family: 'Quicksand', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
}

p {
  font-size: clamp(14px, 4vw, 16px);
}

/* Custom Card & Button Styles */
.card {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(76, 61, 35, 0.08);
}

.btn-cta {
  background-color: var(--primary);
  color: #ffffff !important;
  min-height: 44px;
}

.btn-cta:hover {
  background-color: #047857;
}

/* Screen Reader Utility Class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gallery Functionality (Strict CSS Only) */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Explicit aspect ratio 1:1 */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Active Slide Logic */
#img-1:checked ~ .gallery-main .slide-1 {
  opacity: 1;
  z-index: 10;
}
#img-2:checked ~ .gallery-main .slide-2 {
  opacity: 1;
  z-index: 10;
}
#img-3:checked ~ .gallery-main .slide-3 {
  opacity: 1;
  z-index: 10;
}
#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

/* Active Thumbnail Logic */
#img-1:checked ~ .thumbnails label[for="img-1"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--secondary);
}
#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--secondary);
}
#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--secondary);
}
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--secondary);
}