/* ── Tokens ── */
:root {
  --black:       #0a0a08;
  --dark-green:  hsla(23, 87%, 4%);
  --mid-green:   hsla(23, 87%, 3%);
  --gold:        #d4a843;
  --gold-pale:   #e8c97a;
  --text-muted:  #8a7a52;

  --carousel-height: 40vh;
  --text-section-height: 18vh;
  --illus-section-height: 40vh;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--gold-pale);
  font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── CAROUSEL ── */
.carousel-section {
  position: relative;
  width: 100%;
  height: var(--carousel-height);
  overflow: hidden;
  background: var(--dark-green);
  border-bottom: 1px solid hsl(0, 0%, 0%);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed #1e3320;
  background: linear-gradient(160deg, var(--dark-green) 0%, var(--mid-green) 100%);
}

/* Nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 10;
}

.carousel-btn svg {
  display: block;
  height: 48px;
  width: auto;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── TEXT ROW ── */
.text-section {
  width: 100%;
  height: var(--text-section-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(38, 66%, 56%);
  border-bottom: 1px solid #000000;
}

.text-content {
  text-align: center;
  padding: 0 2rem;
}

.brand-name {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: hsl(20, 84%, 3%);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  letter-spacing: 0.12em;
  color: hsl(20, 84%, 3%);
  opacity: 0.7;
  font-style: italic, bold;
}

/* ── ILLUSTRATIONS ROW ── */
.illustrations-section {
  position: relative;
  width: 100%;
  height: var(--illus-section-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--dark-green);
  overflow: hidden;
}

.illustration-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.2rem;
  border-right: 1px solid hsl(38, 66%, 56%);
  color: var(--gold-pale);
  text-align: center;
  transition: background 0.2s;
}

.illustration-item:last-child {
  border-right: none;
}

.illustration-item:hover {
  background: rgba(212, 168, 67, 0.04);
}

.illustration-box {
  height: 40%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.illustration-box svg {
  height: 70%;
  width: auto;
}

.illustration-text {
  height: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 0.6rem;
  overflow: hidden;
}

.illustration-item h3 {
  font-size: clamp(0.8rem, 1.3vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.illustration-item p {
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 220px;
}

.illustration-item {
  cursor: pointer;
}

/* ── DETAIL PANEL ── */
.detail-panel {
  position: absolute;
  inset: 0;
  background: var(--dark-green);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.detail-panel.open {
  transform: translateY(0);
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px;
}

.detail-close:hover {
  opacity: 1;
}

.detail-close svg {
  display: block;
  width: 22px;
  height: 22px;
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.6rem 3rem 1.6rem 2.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.detail-title {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.detail-content {
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.9;
  color: var(--gold-pale);
  opacity: 0.8;
  max-width: 780px;
}
