:root {
  color-scheme: dark;
  --brown: #231709;
  --brown-deep: #160e06;
  --ivory: #faf6ee;
  --muted: #cfc2b2;
  --gold: #f5a33b;
  --gold-light: #ffd98f;
  --line: rgba(255, 217, 143, 0.22);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--brown-deep);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -8%, rgba(245, 163, 59, 0.14), transparent 38rem),
    linear-gradient(180deg, #281b0d 0%, var(--brown) 48%, var(--brown-deep) 100%);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.19;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

a { color: inherit; }

.booking-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 46px;
}

.brand-header {
  display: flex;
  justify-content: center;
  padding-bottom: 66px;
}

.wordmark {
  color: var(--ivory);
  font-family: Poppins, Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
}

.wordmark sup {
  margin-left: 2px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 600;
  vertical-align: top;
}

.booking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 54px;
  width: min(100%, 920px);
  margin: 0 auto 42px;
}

.booking-intro {
  max-width: 690px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-family: Poppins, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

h1 {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.instruction {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.advisor-portrait {
  position: relative;
  overflow: hidden;
  width: 220px;
  height: 260px;
  margin: 0;
  border: 1px solid rgba(245, 163, 59, 0.55);
  border-radius: 28px;
  background: #3d2a12;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.27);
}

.advisor-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 67%, rgba(35, 23, 9, 0.28) 100%);
}

.advisor-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 31%;
}

.calendar-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 1020px);
  min-height: 840px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(245, 163, 59, 0.04);
}

.calendar-frame {
  display: block;
  width: 100%;
  min-height: 840px;
  border: 0;
  background: #fff;
  opacity: 1;
  transition: opacity 260ms ease;
}

.js .calendar-frame { opacity: 0; }
.js .calendar-frame.is-ready { opacity: 1; }

.calendar-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #75685b;
  background: #fff;
  font-size: 14px;
}

.calendar-loading[hidden] { display: none; }

.loader {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(35, 23, 9, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  margin: 28px auto 0;
  color: #d8cbbd;
  font-family: Poppins, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.trust-icon {
  color: var(--gold);
  font-size: 11px;
}

.trust-separator {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.booking-footer {
  margin-top: 48px;
  padding-top: 31px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.advisor-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.credentials {
  margin: 7px 0 0;
  color: #a99b8d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .booking-page {
    width: min(100% - 24px, 560px);
    padding: 25px 0 32px;
  }

  .brand-header { padding-bottom: 49px; }
  .wordmark { font-size: 14px; }
  .booking-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 29px;
  }

  .booking-intro { text-align: center; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: 0.16em; }

  h1 {
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 1.01;
  }

  .desktop-break { display: none; }

  .instruction {
    max-width: 340px;
    margin: 19px auto 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .advisor-portrait {
    width: 142px;
    height: 166px;
    margin: 0 auto;
    border-radius: 22px;
  }

  .calendar-shell,
  .calendar-frame {
    min-height: 980px;
  }

  .calendar-shell { border-radius: 13px; }

  .trust-line {
    flex-direction: column;
    gap: 11px;
    margin-top: 23px;
    font-size: 10px;
    text-align: center;
  }

  .trust-separator { display: none; }
  .booking-footer { margin-top: 35px; padding-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-frame { transition: none; }
  .loader { animation-duration: 1.5s; }
}
