/* CSS Variables & Design System Config */
:root {
  --primary: #d97706;
  --secondary: #fffbeb;
  --accent: #6d28d9;
  --text: #ffffff;
  --bg-gradient-start: #667eea;
  --bg-gradient-end: #764ba2;
}

/* Global Styles */
body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text);
  min-height: 100vh;
  font-size: clamp(14px, 4vw, 16px);
  overflow-x: hidden;
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
}

/* Responsive Padding */
section {
  padding: 40px 16px;
}
@media (min-width: 768px) {
  section {
    padding: 64px 16px;
  }
}

/* Glassmorphism Card Style */
.card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

/* Call To Action Button */
.btn {
  min-height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: #764ba2;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.btn:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* Screen Reader Only Utility (Strictly Required for Radio inputs) */
.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 Responsive Gallery (Zero JS) */
.gallery-container {
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Forces 1:1 Aspect Ratio */
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.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 Control for Slides */
#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;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.thumbnails label {
  cursor: pointer;
  flex: 1;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active Thumbnail Highlight */
#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(--primary);
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.5);
  transform: scale(1.05);
}