/* ============================================
   Crossover Hair Salon — Landing Page
   Mobile-first responsive design
   ============================================ */

:root {
  --burgundy: #6B1D2A;
  --burgundy-light: #7d2535;
  --cream: #FDF6F0;
  --sand: #F7F0E9;
  --tan: #E8DDD5;
  --dark: #1a1a1a;
  --body: #555;
  --muted: #999;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

button {
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
}

input {
  font-family: 'DM Sans', sans-serif;
  outline: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--burgundy-light);
}

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}

.btn-secondary:hover {
  background: rgba(107, 29, 42, 0.04);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar .logo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
}

.top-bar .location {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar .location svg {
  width: 13px;
  height: 13px;
  fill: var(--burgundy);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 16px 24px 28px;
  text-align: center;
  background: var(--cream);
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--burgundy);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 6px;
}

.hero h1 em {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 500;
}

.hero-price {
  margin: 16px 0 6px;
}

.hero-price .amount {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.hero-price .per {
  font-size: 18px;
  color: var(--muted);
}

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-sub strong {
  color: var(--body);
  font-weight: 500;
}

.hero-location-tag {
  font-size: 11px;
  color: var(--burgundy);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.hero .btn {
  margin-bottom: 10px;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  display: flex;
  padding: 18px 20px;
  background: var(--sand);
}

.trust-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--tan);
}

.trust-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.trust-item .label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ============================================
   BEFORE & AFTER
   ============================================ */
.ba-section {
  padding: 36px 20px;
  background: var(--cream);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.ba-panel {
  display: flex;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
}

.ba-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ba-half img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

.ba-label-tag {
  position: absolute;
  bottom: 10px;
  padding: 4px 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  border-radius: 4px;
}

.ba-half.before .ba-label-tag {
  left: 10px;
  background: rgba(255,255,255,0.9);
  color: var(--burgundy);
}

.ba-half.after .ba-label-tag {
  right: 10px;
  background: rgba(107,29,42,0.9);
  color: #fff;
}

.ba-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: var(--burgundy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  font-size: 16px;
}

/* ============================================
   THE MATH
   ============================================ */
.math-section {
  padding: 36px 20px;
  background: var(--sand);
}

.math-compare {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.math-card {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.math-bad {
  background: #fff;
  border: 1px solid var(--tan);
  padding: 16px 14px;
  text-align: center;
}

.math-bad .x-icon { color: #D94343; font-size: 18px; margin-bottom: 8px; }

.math-bad .receipt-line {
  font-family: 'DM Sans', monospace;
  font-size: 11px;
  color: #666;
  line-height: 1.8;
}

.math-bad .total {
  font-size: 18px;
  font-weight: 700;
  color: #D94343;
  margin-top: 8px;
}

.math-good {
  background: var(--burgundy);
  padding: 16px 14px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.math-good .check-icon { font-size: 18px; margin-bottom: 8px; }

.math-good .price-big {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.math-good .price-label { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.math-good .price-detail { font-size: 11px; opacity: 0.6; margin-top: 12px; line-height: 1.5; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section {
  padding: 36px 20px;
  background: var(--cream);
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #8B7B6B;
  flex-shrink: 0;
}

.review-meta { flex: 1; }
.review-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.review-date { font-size: 10px; color: #ccc; }
.review-stars { color: #F4B740; font-size: 13px; letter-spacing: 1px; }

.review-text {
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
  font-style: italic;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 10px;
  color: #ccc;
}

.g-icon {
  width: 14px;
  height: 14px;
  background: #4285F4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: 36px 24px;
  background: var(--sand);
  text-align: center;
}

.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.final-cta h2 em { color: var(--burgundy); font-weight: 500; }

.final-cta p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.final-cta .btn { margin-bottom: 10px; }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 36px 20px;
  background: var(--cream);
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-icon {
  font-size: 20px;
  color: var(--burgundy);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.closed .faq-answer {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
}

.footer-map {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-info {
  padding: 24px 20px;
  text-align: center;
}

.footer-logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.footer-address {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-address a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-link {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   QUIZ MODAL
   ============================================ */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.quiz-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.quiz-modal {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.quiz-overlay.active .quiz-modal {
  transform: translateY(0);
}

.quiz-progress-bar {
  height: 3px;
  background: #EDE8E3;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--burgundy);
  transition: width 0.3s;
}

.quiz-header {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-step-label {
  font-size: 11px;
  color: #bbb;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quiz-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F0EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.quiz-body {
  padding: 20px 20px 32px;
  overflow-y: auto;
  max-height: calc(90vh - 60px);
}

.quiz-question-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 24px;
}

.quiz-question-text .optional {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #bbb;
  font-style: normal;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 15px 18px;
  border: 1.5px solid #EDE8E3;
  border-radius: var(--radius);
  font-size: 14px;
  color: #444;
  background: #FDFBF9;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.quiz-option .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #D5CFC8;
  flex-shrink: 0;
  transition: all 0.15s;
}

.quiz-option.selected {
  border-color: var(--burgundy);
  background: var(--cream);
  color: var(--burgundy);
}

.quiz-option.selected .radio {
  border-color: var(--burgundy);
  background: var(--burgundy);
  box-shadow: inset 0 0 0 3px #fff;
}

.quiz-btn-next {
  margin-top: 20px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #DDD5CC;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  background: #FDFBF9;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-zone:hover {
  border-color: var(--burgundy);
}

.upload-zone.has-file {
  border-color: #4CAF50;
  border-style: solid;
  background: #F0FFF4;
}

.upload-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }
.upload-text { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.upload-hint { font-size: 11px; color: #ccc; }

.skip-link {
  text-align: center;
  font-size: 13px;
  color: #bbb;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

/* Form fields */
.form-group { margin-bottom: 16px; }

.form-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #EDE8E3;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--dark);
  background: #FDFBF9;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--burgundy); }
.form-input::placeholder { color: #ccc; }

.phone-input-wrap { display: flex; gap: 8px; }

.phone-prefix {
  width: 72px;
  padding: 14px 10px;
  border: 1.5px solid #EDE8E3;
  border-radius: var(--radius);
  font-size: 14px;
  color: #888;
  background: var(--sand);
  text-align: center;
  flex-shrink: 0;
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thankyou-page {
  display: none;
  background: var(--cream);
  min-height: 100vh;
}

.thankyou-page.active {
  display: block;
}

.landing-page.hidden {
  display: none;
}

.ty-hero {
  padding: 32px 24px;
  text-align: center;
}

.ty-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E8F5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #4CAF50;
}

.ty-pending {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFF8E1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #F9A825;
}

.ty-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 8px;
}

.ty-hero p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.ty-subtitle {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.vsl-section { padding: 0 20px 24px; }

.vsl-embed {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}

.vsl-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.booking-section {
  padding: 24px 20px;
  background: var(--sand);
}

.booking-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 4px;
}

.booking-offer {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--body);
  margin-bottom: 16px;
  line-height: 1.4;
}

.booking-offer em {
  color: var(--burgundy);
  font-weight: 500;
}

.booking-price {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.booking-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid #EDE8E3;
}

.booking-location svg {
  width: 16px;
  height: 16px;
  fill: var(--burgundy);
  flex-shrink: 0;
  margin-top: 1px;
}

.booking-location p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

.booking-location strong { color: #444; font-weight: 600; }

.prefilled-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #EDE8E3;
  border-radius: var(--radius);
  font-size: 14px;
  color: #888;
  background: var(--sand);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prefilled-field .lock-icon { font-size: 12px; opacity: 0.4; }

.prefilled-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.prefilled-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.prefilled-value {
  font-size: 14px;
  color: var(--dark);
  font-weight: 400;
}

.date-time-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.date-time-row .form-group { flex: 1; margin-bottom: 0; }

.booking-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
  line-height: 1.5;
}

.wa-bar {
  padding: 20px;
  background: var(--cream);
  text-align: center;
}

.wa-divider {
  font-size: 11px;
  color: #ccc;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-divider::before,
.wa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5DED6;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-whatsapp:hover { opacity: 0.9; }

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   STICKY FOOTER CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .sticky-btn {
  flex: 1;
  padding: 14px 8px;
  font-size: 12px;
  white-space: nowrap;
}

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 768px) {
  .hero, .ba-section, .math-section, .reviews-section,
  .final-cta, .faq-section, .ty-hero, .vsl-section,
  .booking-section, .wa-bar {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-bar, .footer-info {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .ba-half img {
    height: 300px;
  }
}
