/* Design Variables */
:root {
  --primary: #15803d;
  --secondary: #f0fdf4;
  --accent: #f59e0b;
  --text: #f5f5f5;
  --bg: #0f0f0f;
}

/* Base Styles */
body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Clamp Typography for Smooth Scaling */
body, p, span, li, label, input {
  font-size: clamp(14px, 4vw, 16px);
}

h1 {
  font-size: clamp(20px, 4.5vw, 28px);
}

h2 {
  font-size: clamp(22px, 5vw, 36px);
}

/* Card Styling */
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
}

/* SR-ONLY Definition (Strict Requirement) */
.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;
}

/* Pure CSS Gallery (Strict Requirement) */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Height is strictly proportional to width */
  overflow: hidden;
  border-radius: 8px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Radio switching mechanism */
#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;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.thumbnails label {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active Thumbnail State */
#img-1:checked ~ .thumbnails label[for="img-1"] {
  border-color: var(--primary);
}
#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
}
#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
}
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
}

/* CTA Button Styles (High Contrast, Accessible) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background-color: var(--accent);
  color: #000000;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-cta:hover {
  background-color: #f59e0b;
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(1px);
}