:root {
  --primary: #c2410c;
  --secondary: #fff7ed;
  --accent: #0284c7;
  --text: #431407;
  --bg: #fef9f5;
}

body {
  font-family: 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.6;
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

p {
  font-size: clamp(14px, 4vw, 16px);
}

.card {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.btn {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

img {
  max-width: 100%;
  height: auto;
}

/* Accessible hidden input for CSS-only 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 styles */
.gallery-wrapper {
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background-color: #f3f4f6;
}

.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;
}

/* Slide switching logic */
#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;
}

/* Active thumbnail indicator */
#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 0 2px var(--primary);
}