:root {
  --primary: #fb923c;
  --secondary: #ffedd5;
  --accent: #0d9488;
  --text: #7c2d12;
  --bg: #fafafa;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
}

h2 {
  font-size: clamp(18px, 4vw, 24px);
}

p, body {
  font-size: clamp(14px, 4vw, 16px);
}

.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;
}

.cta-button {
  min-height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  background: #f97316;
}

/* Accessible hidden radio inputs for CSS gallery */
.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 logic */
.gallery-container {
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.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;
  display: block;
}

#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 {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 1 / 1;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.1);
}

.thumbnails label:hover {
  opacity: 1;
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#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);
  opacity: 1;
}