/* ============================================
   Merveille English — Stylesheet
   ============================================ */

:root {
  --teal: #0e90a9;
  --teal-dark: #0a768b;
  --orange: #e94e3c;
  --orange-dark: #d13b2a;
  --navy: #061d33;
  --navy-mid: #092c4d;
  --bg-light: #f4f9fb;
  --bg-lighter: #eaf2f5;
  --text-body: #45566b;
  --white: #ffffff;

  --font-head: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px rgba(6, 29, 51, 0.07);
  --shadow-card-hover: 0 18px 40px rgba(6, 29, 51, 0.12);
  --shadow-btn: 0 8px 20px rgba(14, 144, 169, 0.28);
  --shadow-btn-orange: 0 8px 20px rgba(233, 78, 60, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--navy);
}

p { margin: 0; color: var(--text-body); line-height: 1.6; }

a { text-decoration: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-block { width: 100%; }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(14,144,169,0.35); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-btn-orange);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(233,78,60,0.38); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6,29,51,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark { flex-shrink: 0; }

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--navy);
}

.brand-accent { color: var(--orange); }

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(6,29,51,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.menu-toggle:hover { background: var(--bg-lighter); }

.site-nav {
  position: absolute;
  top: 100%;
  right: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--navy);
  transition: background 0.15s ease;
}
.site-nav a:hover { background: var(--bg-lighter); }
.site-nav a.nav-cta { color: var(--teal); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy .accent { color: var(--orange); }

.hero-rule {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--teal);
  margin: 20px 0;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-art-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 45%, #d7ecf1 0%, #d7ecf1 55%, transparent 58%);
  border-radius: 50%;
  transform: scale(1.15);
}

.hero-dots {
  position: absolute;
  right: -6px;
  top: 8%;
  width: 110px;
  height: 140px;
  background-image: radial-gradient(circle, var(--teal) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.55;
}

.hero-half-circle {
  position: absolute;
  right: -60px;
  bottom: 8%;
  width: 130px;
  height: 130px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.9;
  clip-path: inset(0 0 0 50%);
  z-index: 0;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  filter: drop-shadow(0 20px 30px rgba(6,29,51,0.12));
}

/* ---------- Products ---------- */
.products { padding: 76px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.products .section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--teal);
  border-radius: 4px;
  margin: 16px auto 48px;
}

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

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(6,29,51,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.badge-free { background: var(--teal); color: var(--white); }

.book-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 30px;
  perspective: 900px;
}

.book {
  position: relative;
  width: 148px;
  height: 196px;
  transform-style: preserve-3d;
  transform: rotateY(-22deg);
  transition: transform 0.35s ease;
}
.product-card:hover .book { transform: rotateY(-32deg); }

.book-spine {
  position: absolute;
  left: -14px;
  top: 4px;
  width: 14px;
  height: 188px;
  background: var(--navy-mid);
  transform: rotateY(-90deg) translateX(-7px);
  transform-origin: right;
  border-radius: 2px 0 0 2px;
}

.book-cover {
  position: relative;
  width: 148px;
  height: 196px;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 4px 10px 22px rgba(6,29,51,0.28);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  color: var(--white);
  overflow: hidden;
}

.book-guide .book-cover,
.book-guide .book-spine {
  background: linear-gradient(160deg, #ffffff 0%, #eaf2f5 100%);
  color: var(--navy);
  border: 1px solid #dce8ec;
}
.book-guide .book-spine { background: #c9dbe1; }

.book-90 .book-cover { background: linear-gradient(160deg, #ffffff 0%, #f2f6f7 100%); color: var(--navy); border: 1px solid #dce8ec; }
.book-90 .book-spine { background: var(--navy-mid); }

.book-plan .book-cover { background: linear-gradient(160deg, #ffffff 0%, #f2f6f7 100%); color: var(--navy); border: 1px solid #dce8ec; }
.book-plan .book-spine { background: var(--navy-mid); }

.book-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
}

.book-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.12;
  margin-top: 6px;
  color: var(--navy);
}

.book-title-lg {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  margin-top: 4px;
}
.book-title-lg .hi { color: var(--teal); }
.book-90 .book-title-lg .hi { color: var(--orange); }

.book-sub {
  font-size: 0.66rem;
  color: #5c7080;
  margin-top: 10px;
  line-height: 1.35;
}

.book-quotes {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.book-clock, .book-clip {
  position: absolute;
  bottom: 14px;
  right: 12px;
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.92rem;
  min-height: 62px;
}

.price {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange);
  margin: 14px 0 18px;
}
.product-card:first-child .price { color: var(--teal); }

/* ---------- Booking ---------- */
.booking { padding: 64px 0 84px; }

.booking-inner {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  overflow: hidden;
}

.booking-copy {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.booking-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.booking-copy h2 { font-size: 1.6rem; font-weight: 800; }
.booking-copy p { margin: 18px 0 26px; }

.calendar-card {
  background: var(--white);
  margin: 22px;
  border-radius: var(--radius-md);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
}

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

.calendar-header h3 { font-size: 1.05rem; font-weight: 700; }

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.calendar-nav button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-lighter);
  transition: background 0.15s ease;
}
.calendar-nav button:hover { background: #dbe9ee; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93a3b0;
  margin-bottom: 8px;
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cal-day:not(.empty):hover { background: var(--bg-lighter); cursor: pointer; }
.cal-day.empty { visibility: hidden; }
.cal-day.selected {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(14,144,169,0.35);
}
.cal-day.today:not(.selected) { border: 1.5px solid var(--teal); color: var(--teal); font-weight: 700; }

.calendar-time-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}

.calendar-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.slot-btn {
  padding: 9px 16px;
  border: 1.5px solid rgba(6,29,51,0.14);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.15s ease;
}
.slot-btn:hover { border-color: var(--teal); color: var(--teal); }
.slot-btn.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); }

.footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 24px;
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-dot { opacity: 0.4; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,29,51,0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  box-shadow: 0 30px 60px rgba(6,29,51,0.3);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  line-height: 1;
  color: #9aa9b5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--bg-lighter); color: var(--navy); }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.modal-icon.teal { background: var(--teal); }
.modal-icon.orange { background: var(--orange); }

.modal h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.modal p { font-size: 0.94rem; margin-bottom: 22px; }

.modal form { text-align: left; }

.modal label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(6,29,51,0.14);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-family: inherit;
  color: var(--navy);
  transition: border-color 0.15s ease;
}
.modal input[type="email"]:focus { outline: none; border-color: var(--teal); }

.buy-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 20px;
}
.buy-price-row span:last-child { color: var(--orange); font-size: 1.2rem; }

.modal-confirm p { margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-rule { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; min-height: 320px; }

  .products-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .booking-inner { grid-template-columns: 1fr; }
  .booking-copy { align-items: center; text-align: center; padding: 40px 28px 8px; }
  .booking-copy p { max-width: 420px; }
}

@media (max-width: 520px) {
  .calendar-slots { justify-content: center; }
  .calendar-card { padding: 20px 16px; margin: 16px; }
  .booking-copy { padding: 32px 20px 4px; }
  .footer-trust { flex-direction: column; gap: 10px; }
  .trust-dot { display: none; }
}
