/* ========================================
   COMPONENTS — Reusable UI Elements
   Mobile-first (375px base)
   ======================================== */

/* Typography */
h1 {
  font-family: var(--f1);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-family: var(--f1);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 1.2rem;
}

h2 em {
  font-style: italic;
  color: var(--gold);
}

h3 {
  font-family: var(--f2);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .5rem;
}

p {
  color: var(--text2);
  margin-bottom: .8rem;
  max-width: var(--max-t);
}

p.lead {
  font-size: 1.1rem;
  line-height: 1.75;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .15s;
}

a:hover { color: var(--gold2); }

/* Section Label */
.section-label {
  font-family: var(--f3);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold3);
  margin-bottom: 1.1rem;
}

/* Tag */
.tag {
  font-family: var(--f3);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(200, 164, 110, .07);
  padding: .2rem .55rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Card */
.card {
  background: var(--bg3);
  border: 1px solid rgba(200, 164, 110, .04);
  border-radius: var(--r);
  padding: 1.6rem;
  transition: all .25s;
}

.card:hover {
  border-color: rgba(200, 164, 110, .1);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.card-number {
  font-family: var(--f1);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold3);
  line-height: 1;
  margin-bottom: .7rem;
}

.card-red h3 { color: var(--se); }

.card-gold {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 2.8rem;
}

.card-emoji {
  font-size: 1.5rem;
  margin-bottom: .4rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--f2);
  font-weight: 600;
  font-size: .88rem;
  padding: .7rem 1.4rem;
  border-radius: var(--r2);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  color: var(--bg);
}

.btn-secondary {
  border: 1px solid var(--gold3);
  color: var(--gold);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 110, .03);
  color: var(--gold);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Badge (Score) */
.badge {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f2);
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.badge-a { background: var(--sa); }
.badge-b { background: var(--sb); }
.badge-c { background: var(--sc); }
.badge-d { background: var(--sd); }
.badge-e { background: var(--se); }
.badge-n { background: var(--sn); font-size: .95rem; }

/* Quote */
.quote {
  font-family: var(--f1);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
  max-width: 700px;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(200, 164, 110, .07);
  border-bottom: 1px solid rgba(200, 164, 110, .07);
  margin: 2.2rem 0;
}

/* Disclaimer */
.disclaimer {
  background: var(--bg);
  border-radius: var(--r2);
  padding: 1.2rem;
  border: 1px solid rgba(200, 164, 110, .07);
  margin-top: 1.3rem;
}

.disclaimer-title {
  color: var(--gold);
  font-style: italic;
  font-family: var(--f1);
  font-size: .95rem;
  margin-bottom: .25rem;
}

.disclaimer p {
  font-size: .82rem;
  margin-bottom: 0;
}

/* Elevated section */
.elevated {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 2.8rem;
  margin: 2.5rem 0;
}

/* Service card */
.service-card {
  background: var(--bg3);
  border-radius: var(--r);
  padding: 2.2rem;
  border: 1px solid rgba(200, 164, 110, .04);
}

.service-card.featured {
  border-color: var(--gold3);
  background: linear-gradient(135deg, var(--bg3), rgba(200, 164, 110, .03));
}

.service-card.blue-border {
  border-color: rgba(74, 127, 181, .15);
}

.service-price {
  font-family: var(--f1);
  font-size: 2rem;
  font-weight: 300;
  margin: 1rem 0 .15rem;
}

.service-price span {
  font-size: .85rem;
  color: var(--text2);
}

.service-features {
  list-style: none;
  margin-top: 1rem;
}

.service-features li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(200, 164, 110, .04);
  color: var(--text2);
  font-size: .85rem;
}

.service-features li::before {
  content: '\2713';
  color: var(--gold);
  margin-right: .5rem;
  font-weight: 600;
}

/* Value card */
.value-card {
  padding: 1.6rem;
  background: var(--bg3);
  border-radius: var(--r2);
  border: 1px solid rgba(200, 164, 110, .04);
}

.value-card h3 { color: var(--text); }
.value-card p { font-size: .82rem; margin-bottom: 0; }

/* Mode card */
.mode-card {
  background: var(--bg);
  border: 1px solid rgba(200, 164, 110, .05);
  border-radius: var(--r2);
  padding: 1.2rem;
  transition: all .25s;
}

.mode-card:hover {
  border-color: var(--gold3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
}

.mode-card h3 { font-size: .88rem; margin-bottom: .25rem; }
.mode-card p { font-size: .79rem; margin-bottom: 0; }

/* Axis card (Pace) */
.axis-card {
  background: var(--bg);
  border-radius: var(--r2);
  padding: 1.2rem;
  border: 1px solid rgba(58, 158, 92, .06);
}

.axis-letter {
  font-family: var(--f1);
  font-size: 2rem;
  font-weight: 300;
  color: var(--pace);
  line-height: 1;
}

.axis-name {
  font-size: .72rem;
  color: var(--pace3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: .3rem 0;
}

.axis-card p { font-size: .82rem; margin-bottom: 0; }

/* Score scale legend */
.score-legend {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.score-legend-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.score-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.score-legend-text {
  font-size: .74rem;
  color: var(--text2);
}

/* Anti-tunnel encart */
.anti-tunnel {
  background: rgba(200, 164, 110, .02);
  border: 1px solid rgba(200, 164, 110, .06);
  border-radius: var(--r2);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
}

.anti-tunnel p {
  font-size: .82rem;
  margin-bottom: .3rem;
  color: var(--text3);
}

.anti-tunnel p:last-child { margin-bottom: 0; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeUp .5s ease-out forwards;
}

.animate:nth-child(2) { animation-delay: .07s; }
.animate:nth-child(3) { animation-delay: .14s; }
.animate:nth-child(4) { animation-delay: .21s; }

/* Form */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: .82rem;
  color: var(--text2);
  margin-bottom: .35rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2);
  border: 1px solid rgba(200, 164, 110, .08);
  border-radius: var(--r2);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--f2);
  font-size: .95rem;
  width: 100%;
  transition: border-color .15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text3);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239B9484' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
