:root {
  --ocean-deep: #073b4c;
  --ocean: #118ab2;
  --ocean-light: #06d6a0;
  --sand: #ffd166;
  --coral: #ef476f;
  --ink: #0b2b33;
  --muted: #5c7a83;
  --bg: #f4faf9;
  --card-bg: #ffffff;
  --border: #dceef0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 59, 76, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.logo-icon { font-size: 1.4rem; }

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-tab:hover { color: var(--ocean); }

.nav-tab.active {
  background: #eaf7f9;
  color: var(--ocean);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: white;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,59,76,0.55), rgba(7,59,76,0.75));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--sand);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: #f0f6f6; }

/* Tabs */
main#agendar { padding: 56px 24px 40px; }

.lesson-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tab-btn.active {
  border-color: var(--ocean);
  background: #eaf7f9;
}

.tab-icon { font-size: 1.6rem; }

.tab-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.tab-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.lesson-info {
  background: #fff8e8;
  border: 1px solid #ffe3a3;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.lesson-info strong { color: var(--ink); }
.lesson-info span { color: var(--muted); }

/* Booking card */
.booking-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step.active .step-num, .step.done .step-num {
  background: var(--ocean);
  color: white;
}

.step-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.step.active .step-label { color: var(--ink); }

.step-panel { display: none; }
.step-panel.active { display: block; }

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

.calendar-header h3 {
  margin: 0;
  text-transform: capitalize;
}

.cal-nav {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
}

.cal-nav:hover { background: #f0f6f6; }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

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

.cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: #f6fafa;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  transition: background 0.12s ease, transform 0.1s ease;
}

.cal-day:hover:not(:disabled) {
  background: #d8f0ee;
}

.cal-day.selected {
  background: var(--ocean);
  color: white;
}

.cal-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
}

.cal-day.empty {
  visibility: hidden;
  cursor: default;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* Time grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.time-slot {
  padding: 14px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f6fafa;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.time-slot small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.time-slot:hover:not(:disabled) {
  border-color: var(--ocean);
}

.time-slot.selected {
  background: var(--ocean);
  color: white;
  border-color: var(--ocean);
}

.time-slot.selected small { color: rgba(255,255,255,0.85); }

.time-slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.no-slots {
  color: var(--muted);
  padding: 20px 0;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

/* Form */
.booking-summary {
  background: #eaf7f9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fbfdfd;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--ocean);
  background: white;
}

.level-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.level-option { cursor: pointer; }
.level-option input { position: absolute; opacity: 0; }

.level-card {
  display: block;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.level-card strong { display: block; margin-bottom: 4px; }
.level-card small { color: var(--muted); font-size: 0.8rem; }

.level-option input:checked + .level-card {
  border-color: var(--ocean);
  background: #eaf7f9;
}

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 20px 0;
}

.confirmation-icon { font-size: 3rem; margin-bottom: 8px; }

.confirmation-details {
  background: #f6fafa;
  border-radius: 12px;
  padding: 20px;
  margin: 24px auto;
  max-width: 420px;
  text-align: left;
}

.confirmation-details div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.confirmation-details div:last-child { border-bottom: none; }
.confirmation-details span:first-child { color: var(--muted); }
.confirmation-details span:last-child { font-weight: 700; }

/* How it works */
.how-it-works { padding: 60px 0; }

.how-it-works h2 {
  text-align: center;
  margin-bottom: 36px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.how-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
}

.how-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ocean-light);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.how-card h4 { margin: 0 0 8px; }
.how-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Meus agendamentos */
.my-bookings {
  padding: 56px 24px 64px;
  min-height: 50vh;
}

.my-bookings h2 { margin: 0 0 4px; }

.booking-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.booking-item-main strong { display: block; font-size: 1.05rem; }
.booking-item-main span { color: var(--muted); font-size: 0.9rem; }

.booking-item-badge {
  background: #eaf7f9;
  color: var(--ocean);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.booking-item-badge.past {
  background: #f0f0f0;
  color: var(--muted);
}

.btn-cancel {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--coral);
  border-color: var(--coral);
}

.btn-cancel:hover {
  background: #fdecef;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--ocean-deep);
  color: white;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p { margin: 4px 0; color: rgba(255,255,255,0.85); }

/* Responsive */
@media (max-width: 720px) {
  .hero h1 { font-size: 1.8rem; }
  .lesson-tabs { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .level-options { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
}
