/* CSS Variables & Design System: GLASS-FROST */
:root {
  --primary: #7c2d12;     /* Warm orange-brown */
  --secondary: #fff7ed;   /* Light cream */
  --accent: #4d7c0f;      /* Herbal green */
  --text-light: #ffffff;
  --text-dark: #111111;
}

/* Base Body Styles */
body {
  background: linear-gradient(135deg, #2e1005 0%, #0f2e10 100%);
  color: var(--text-light);
  min-height: 100vh;
}

/* Typography clamp settings */
h1 {
  font-size: clamp(20px, 4vw, 28px);
}
h2 {
  font-size: clamp(22px, 5vw, 32px);
}
p {
  font-size: clamp(14px, 4vw, 16px);
}

/* Glass-Frost Cards */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

/* CTA Button Styles */
.btn {
  border-radius: 14px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(77, 124, 15, 0.4);
}
.btn:hover {
  background-color: #3f650c;
  box-shadow: 0 15px 30px -5px rgba(77, 124, 15, 0.6);
}

/* Screen Reader Only Utility */
.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 Layout - Responsive Mobile-First */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Forces 1:1 Aspect Ratio */
  overflow: hidden;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.2);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.thumbnails label {
  flex: 1;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails label:hover {
  transform: scale(1.05);
}

/* Radio Control Logic for Gallery */
#img-1:checked ~ .gallery-main .slide-1,
#img-2:checked ~ .gallery-main .slide-2,
#img-3:checked ~ .gallery-main .slide-3,
#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

#img-1:checked ~ .thumbnails label[for="img-1"],
#img-2:checked ~ .thumbnails label[for="img-2"],
#img-3:checked ~ .thumbnails label[for="img-3"],
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(77, 124, 15, 0.5);
}