/* ============================================
   PAGES — Landing, Service, Booking, Legal
   Glass material system on slate canvas
   ============================================ */

/* ---- LEGAL PAGES ---- */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  position: relative;
  z-index: 1;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 24px;
}

.legal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(155, 142, 196, 0.15);
}

.legal-header h1 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 14px;
}

.legal-body h2 {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--text-primary);
  scroll-margin-top: 120px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.legal-body p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-body ul {
  padding-left: 24px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-body a {
  color: var(--cyan);
  transition: opacity var(--dur) var(--ease);
}

.legal-body a:hover {
  opacity: 0.8;
}

.legal-contact {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 2;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(155, 142, 196, 0.15);
}

.legal-table th {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table td {
  color: var(--text-secondary);
}

.legal-table code {
  background: rgba(155, 142, 196, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.legal-back {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(155, 142, 196, 0.15);
}

@media (max-width: 768px) {
  .legal-page { padding: 100px 24px 60px; }
  .legal-card { padding: 32px 24px; }
  .legal-body h2 { font-size: 1.2rem; }
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge { margin-bottom: 20px; }
.hero h1 { margin-bottom: 16px; max-width: 660px; }
.hero > p { max-width: 400px; margin-bottom: 56px; font-size: 16px; }

/* Service grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: var(--max-w);
}

.service-card {
  padding: 36px 24px 28px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .icon-box { margin-bottom: 20px; }

.service-card:hover .icon-box {
  background: var(--cyan-tint);
  border-color: var(--cyan-border);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.service-card:hover .icon-box svg { color: var(--cyan); }

.service-card h3 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--dur) var(--ease);
}

.service-card:hover .card-link {
  color: var(--cyan);
  gap: 8px;
}

/* ---- SERVICE DETAIL ---- */
.service-hero {
  padding: 130px 24px 56px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.service-hero .service-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 20px;
}

.service-hero .service-icon svg { width: 30px; height: 30px; }

.service-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.service-hero > p {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 15px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card { padding: 28px 24px; }

.feature-card .feature-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-quaternary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-card h3 { font-size: 14px; font-weight: 400; margin-bottom: 6px; }
.feature-card p { font-size: 13px; line-height: 1.65; }

/* CTA */
.cta-section {
  text-align: center;
  padding: 32px 24px 96px;
  position: relative;
  z-index: 1;
}

.cta-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 44px 36px;
}

.cta-card h2 { margin-bottom: 10px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.cta-card p { margin-bottom: 24px; }

.cta-card .price {
  font-size: 2.2rem;
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cta-card .price-note {
  font-size: 11px;
  color: var(--text-quaternary);
  margin-bottom: 24px;
}

/* ---- BOOKING ---- */
.booking-page {
  padding: 100px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.booking-page h1 {
  text-align: center;
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.booking-page .booking-subtitle {
  text-align: center;
  margin-bottom: 36px;
  font-size: 15px;
}

/* Steps */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-quaternary);
  transition: color var(--dur) var(--ease);
}

.step-item.active { color: var(--cyan); }
.step-item.completed { color: var(--text-secondary); }

.step-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -2px 2px 6px rgba(69, 90, 100, 0.1);
  transition: all var(--dur) var(--ease);
}

.step-item.active .step-num {
  background: var(--cyan-tint);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.step-item.completed .step-num {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

.step-divider { width: 28px; height: 1px; background: rgba(255, 255, 255, 0.12); }

/* Panels */
.booking-panel { display: none; }
.booking-panel.active { display: block; }

/* Calendar */
.calendar-container { padding: 28px; margin-bottom: 20px; }

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h3 { font-size: 15px; font-weight: 300; }

.calendar-nav { display: flex; gap: 6px; }

.calendar-nav button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
}

.calendar-nav button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--cyan-border);
  color: var(--text-primary);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-quaternary);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(155, 142, 196, 0.1);
  color: var(--text-primary);
}

.calendar-day.today { font-weight: 500; color: var(--cyan); }

.calendar-day.selected {
  background: var(--cyan-tint);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 500;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.calendar-day.disabled { color: var(--text-quaternary); opacity: 0.4; cursor: not-allowed; }
.calendar-day.empty { cursor: default; }

/* Slots */
.slots-container { padding: 28px; }
.slots-container h3 { margin-bottom: 14px; font-size: 14px; font-weight: 300; }

.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.slot {
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  box-shadow: -2px 2px 8px rgba(69, 90, 100, 0.1);
  transition: all 0.2s var(--ease);
}

.slot:hover:not(.unavailable) {
  border-color: var(--cyan-border);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--cyan-glow);
  transform: translateY(-1px);
}

.slot.selected {
  background: var(--cyan-tint);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 500;
  box-shadow: 0 0 14px var(--cyan-glow);
}

.slot.unavailable { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Form */
.form-panel { padding: 28px; }
.form-panel h3 { margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 10px; font-weight: 500; color: var(--text-quaternary); text-transform: uppercase; letter-spacing: 0.05em; }

/* Summary */
.summary-panel { padding: 28px; }
.summary-panel h3 { margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.summary-row:last-child { border-bottom: none; padding-top: 14px; }
.summary-row .label { color: var(--text-tertiary); font-size: 13px; }
.summary-row .value { color: var(--text-primary); font-size: 13px; font-weight: 400; }

/* Actions */
.booking-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }

/* Confirmation */
.confirmation { text-align: center; padding: 44px 28px; }

.check-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-tint);
  border: 1px solid var(--cyan-border);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.check-icon svg { width: 26px; height: 26px; color: var(--cyan); stroke-width: 1.8; }

.confirmation h2 { margin-bottom: 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.confirmation p { margin-bottom: 24px; }

/* ==========================
   RESPONSIVE DESIGN
   Mobile-First Approach
   ========================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero { padding: 100px 32px 80px; }
  .hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
  .section { padding: 60px 32px; }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  /* Layout */
  .services-grid { 
    grid-template-columns: 1fr; 
    max-width: 400px; 
    margin: 0 auto;
    gap: 16px;
  }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  
  /* Typography */
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); line-height: 1.2; }
  .hero p { font-size: 15px; }
  .section h2 { font-size: clamp(1.6rem, 5vw, 2rem); }
  
  /* Components */
  .step-label { display: none; }
  .step-num { font-size: 14px; width: 32px; height: 32px; }
  .service-card { padding: 24px; }
  .feature-card { padding: 20px; }
  .cta-card { padding: 32px 24px; }
  .service-hero { padding: 100px 24px 48px; }
  .booking-page { padding: 100px 24px 60px; }
  
  /* Calendar */
  .calendar-container { padding: 16px; }
  .calendar-days { gap: 4px; }
  .calendar-day { padding: 8px 4px; font-size: 13px; }
  
  /* Forms */
  .glass-input, .glass-textarea { font-size: 15px; }
  .btn { padding: 12px 24px; font-size: 15px; }
  
  /* Booking steps */
  .booking-steps { gap: 8px; padding: 0 16px; }
  .step-divider { width: 16px; }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  /* Ultra-compact layout */
  .hero { padding: 80px 16px 60px; }
  .section { padding: 48px 16px; }
  .booking-page { padding: 80px 16px 60px; }
  
  /* Typography */
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  
  /* Components */
  .service-card, .feature-card { padding: 20px; }
  .icon-box { width: 44px; height: 44px; }
  .icon-box svg { width: 20px; height: 20px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .slot { padding: 12px 8px; font-size: 13px; }
  
  /* Forms */
  .form-panel { padding: 20px; }
  .booking-actions { gap: 10px; }
  
  /* Footer */
  .footer { padding: 24px 16px; }
  
  /* Cookie banner adjustment */
  .cookie-banner { padding: 12px; }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { padding: 60px 24px 40px; }
  .booking-page { padding: 80px 24px 40px; }
}
