/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --gold: hsl(37, 38%, 60%);
  --gold-fg: hsl(240, 20%, 10%);
  --charcoal: hsl(240, 20%, 15%);
  --charcoal-fg: hsl(40, 33%, 97%);
  --ivory: hsl(40, 33%, 97%);
  --ivory-fg: hsl(240, 20%, 15%);
  --muted: hsl(40, 20%, 92%);
  --muted-fg: hsl(240, 10%, 40%);
  --border: hsl(40, 15%, 88%);
  --foreground: hsl(240, 20%, 15%);
  --background: hsl(40, 33%, 97%);
  --font-serif: 'Libre Baskerville', Baskerville, Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input { font-family: inherit; }

/* ── Utilities ── */
.container--narrow { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container--form { max-width: 576px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.label-upper {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.body-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-fg);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2.5rem;
  background: #2d422a;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0;
  transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.9; }
.btn-gold--dark {
  background: #e3dfd4;
  color: var(--foreground);
}
.gold-divider { width: 4rem; height: 1px; background: var(--gold); margin: 3rem auto 0; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: hsla(240, 20%, 15%, 0.2);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  max-width: 768px;
}
.hero__logo {
  max-width: 30%;
  height: auto;
  margin: 0 auto 2rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero__subtitle {
  font-family: var(--font-sans);
  color: rgba(245,242,237,0.7);
  font-size: 1rem;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}
.countdown__unit { text-align: center; }
.countdown__label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.5);
  margin-top: 0.75rem;
}

/* ── Countdown number ── */
.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.countdown__number.tick {
  animation: tick 0.4s ease;
}
@keyframes tick {
  0%   { opacity: 1; transform: translateY(0); }
  40%  { opacity: 0; transform: translateY(-0.25em); }
  60%  { opacity: 0; transform: translateY(0.25em); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
.section { padding: 6rem 1.5rem; }
.section--muted { background: var(--muted); }
.section__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 2rem;
}
.section__footnote {
  text-align: center;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 2.5rem;
}

/* ── Benefits list ── */
.benefits-list { max-width: 640px; margin: 0 auto 3rem; }
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
}
.benefits-list .check {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.benefits-list span {
  font-size: 0.9375rem;
  color: rgba(30,30,46,0.8);
  line-height: 1.6;
}

/* ── Callout ── */
.callout-dark {
  background: var(--charcoal);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.callout-dark__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ivory);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.callout-dark__text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(245,242,237,0.7);
  line-height: 1.7;
}

/* ── Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.375rem;
}
.form-input {
  height: 3rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: box-shadow 0.2s;
}
.form-input:focus { box-shadow: 0 0 0 2px hsla(37, 38%, 60%, 0.4); }
.form-input--invalid { border-color: #c44; }
.form-input--invalid:focus { box-shadow: 0 0 0 2px hsla(0, 60%, 50%, 0.3); }
.form-field-error {
  font-size: 0.75rem;
  color: #c44;
  margin-top: 0.375rem;
}
/* ── Phone field ── */
.phone-field {
  position: relative;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  transition: box-shadow 0.2s;
}
.phone-field:focus-within { box-shadow: 0 0 0 2px hsla(37, 38%, 60%, 0.4); }
.phone-field--invalid { border-color: #c44; }
.phone-field--invalid:focus-within { box-shadow: 0 0 0 2px hsla(0, 60%, 50%, 0.3); }

.phone-field__trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.75rem;
  height: 3rem;
  background: var(--muted);
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0.5rem 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--foreground);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-field__trigger svg { color: var(--muted-fg); flex-shrink: 0; }

.phone-field__input {
  flex: 1;
  height: 3rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  min-width: 0;
}

.phone-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 280px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  flex-direction: column;
}
.phone-dropdown--open { display: flex; }

.phone-dropdown__search {
  padding: 0.625rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--foreground);
  background: transparent;
  outline: none;
  border-radius: 0.5rem 0.5rem 0 0;
}

.phone-dropdown__list {
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}
.phone-dropdown__list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  cursor: pointer;
}
.phone-dropdown__list li:hover,
.phone-dropdown__list li.highlighted { background: var(--muted); }
.phone-dropdown__list li .dial-code {
  color: var(--muted-fg);
  margin-left: auto;
  font-size: 0.75rem;
}

.form-submit { grid-column: 1 / -1; margin-top: 0.5rem; }
.form-submit .btn-gold { width: 100%; }
.form-thankyou {
  background: var(--muted);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
}
.form-thankyou__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsla(37, 38%, 60%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
}

/* ── Footer ── */
.footer {
  background: #2d422a;
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--charcoal-fg);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.5);
}
.footer__copy {
  font-size: 0.75rem;
  color: rgba(245,242,237,0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
}
@media (max-width: 480px) {
  .countdown { gap: 1.5rem; }
}
