/*
Theme Name: Esther Homes Masterclass
Theme URI: https://estherhomes.example.com/
Author: Bhavana Esther
Author URI: https://estherhomes.example.com/
Description: A high-converting one-page webinar/masterclass landing theme for Esther Homes. Dark deep-blue and gold design with countdown timer, bonus bundle upsell (Rs.99 workshop + Rs.299 bonus bundle) and a secure registration form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esther-homes
Tags: one-page, landing-page, custom-colors, custom-logo, translation-ready
*/

/* ============ Tokens ============ */
:root {
  --bg: #070d1c;
  --surface: #0c1428;
  --surface-2: #111c36;
  --card: #0e1830;
  --border: #1d2b4d;
  --fg: #eef2fb;
  --muted: #97a5c4;
  --gold: #e8b455;
  --gold-soft: rgba(232, 180, 85, 0.12);
  --radius: 16px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* ============ Base ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ============ Buttons / chips ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--gold); color: #10182c;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 16px 28px; border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(232, 180, 85, 0.8);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border); box-shadow: none; padding: 10px 18px; font-size: 0.875rem;
}
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(232, 180, 85, 0.4); background: var(--gold-soft);
  color: var(--gold); border-radius: 999px; padding: 7px 14px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.glass {
  background: rgba(17, 28, 54, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 28, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; padding-block: 14px;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); text-decoration: none;
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 42px; width: auto; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(232, 180, 85, 0.14), transparent 60%),
    linear-gradient(180deg, #091126 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid; gap: 48px; align-items: center; padding: 72px 0 96px;
}
.hero__lead { margin-top: 20px; font-size: 1.075rem; color: var(--muted); max-width: 34rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px;
  font-size: 0.9rem; color: var(--muted);
}
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero__stat {
  position: absolute; left: 18px; right: 18px; bottom: -26px; padding: 16px 18px;
}
.hero__price { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.strike { color: var(--muted); text-decoration: line-through; }

/* ============ Countdown ============ */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; }
.countdown__cell { padding: 12px 6px; text-align: center; }
.countdown__num {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 800;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 4px; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.eyebrow {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--muted); margin-bottom: 10px;
}

/* ============ Lists / grids ============ */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.learn-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.learn-list li {
  display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; font-size: 0.94rem;
}
.tick { color: var(--gold); font-weight: 800; }

/* ============ Instructor ============ */
.instructor { background: var(--surface); border-block: 1px solid var(--border); }
.instructor__grid { display: grid; gap: 40px; align-items: start; }
.instructor__photo { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stats .card { padding: 16px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.stats span { font-size: 0.72rem; color: var(--muted); }

/* ============ Bonus ============ */
.bonus-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bonus-card__idx {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted);
}
.pill {
  background: var(--gold-soft); color: var(--gold); border-radius: 999px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 800; white-space: nowrap;
}
.bonus-cta {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  border: 1px solid rgba(232, 180, 85, 0.3); background: rgba(232, 180, 85, 0.06);
  border-radius: 20px; padding: 26px;
}

/* ============ Registration ============ */
.register {
  background:
    radial-gradient(900px 460px at 85% 0%, rgba(232, 180, 85, 0.12), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border); scroll-margin-top: 70px;
}
.register__grid { display: grid; gap: 44px; align-items: start; }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.checklist li { display: flex; gap: 10px; }

.form { padding: 26px; }
.form__head { display: flex; align-items: center; justify-content: space-between; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field input {
  width: 100%; background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-size: 0.95rem;
}
.field input:focus { outline: 2px solid rgba(232, 180, 85, 0.55); outline-offset: 1px; }

.plans { border: 0; padding: 0; margin: 26px 0 0; }
.plans legend {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted); padding: 0;
}
.plan { display: block; position: relative; margin-top: 14px; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__body {
  display: flex; justify-content: space-between; gap: 14px;
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 14px; padding: 16px; transition: border-color 0.15s ease, background 0.15s ease;
}
.plan:hover .plan__body { border-color: rgba(232, 180, 85, 0.45); }
.plan input:checked + .plan__body {
  border-color: var(--gold); background: rgba(232, 180, 85, 0.1); box-shadow: var(--shadow);
}
.plan__title { font-weight: 700; }
.plan__desc { margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.plan__price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.plan__price small { display: block; font-size: 0.62rem; color: var(--muted); text-decoration: line-through; font-weight: 500; }
.plan__flag {
  position: absolute; top: -10px; right: 14px; z-index: 1;
  background: var(--gold); color: #10182c; border-radius: 999px;
  padding: 3px 10px; font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.summary {
  margin-top: 22px; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; font-size: 0.9rem;
}
.summary__row { display: flex; justify-content: space-between; }
.summary__row--total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 700; }
.summary__row--total span:last-child { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.upsell-link {
  display: block; width: 100%; margin-top: 12px; background: none; border: 0; cursor: pointer;
  color: var(--gold); font-size: 0.78rem; font-weight: 700; text-decoration: underline;
  text-underline-offset: 4px; font-family: inherit;
}
.form__note { margin-top: 12px; text-align: center; font-size: 0.72rem; color: var(--muted); }
.form__msg { margin-top: 14px; font-size: 0.85rem; color: var(--gold); }
.form__msg--error { color: #f0a2a2; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.site-footer .container {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  justify-content: space-between; padding-block: 28px; font-size: 0.75rem; color: var(--muted);
}

/* ============ Responsive ============ */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { flex-direction: row; }
}
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .instructor__grid { grid-template-columns: 0.8fr 1.2fr; }
  .register__grid { grid-template-columns: 1fr 1fr; }
  .countdown__num { font-size: 2rem; }
}
