/* ==========================================================================
   Theme tokens — four switchable style directions.
   Toggle via [data-theme="classical" | "warm" | "minimalist" | "dark"] on <html>.
   ========================================================================== */

:root,
[data-theme="classical"] {
  --bg: #f7f3e9;
  --bg-alt: #ffffff;
  --ink: #0f1729;
  --ink-dim: #4a4f63;
  --accent: #8a1538;
  --accent-2: #c9a24b;
  --accent-soft: #f6e6ea;
  --card-border: #e9e1cf;
  --grad: linear-gradient(120deg, #8a1538 0%, #c9a24b 100%);
  --hero-bg: #0f1729;
  --hero-ink: #f7f3e9;
  --hero-dim: #c5c9d6;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --rule: 1px solid var(--card-border);
  --shadow: 0 10px 30px rgba(15, 23, 41, 0.08);
}

[data-theme="warm"] {
  --bg: #fdf6ec;
  --bg-alt: #ffffff;
  --ink: #3a332c;
  --ink-dim: #756a5c;
  --accent: #d97a52;
  --accent-2: #7a8c6f;
  --accent-soft: #fbe8dd;
  --card-border: #efe3d2;
  --grad: linear-gradient(120deg, #d97a52 0%, #e9a36b 100%);
  --hero-bg: #fdf6ec;
  --hero-ink: #3a332c;
  --hero-dim: #756a5c;
  --font-head: "Quicksand", "Nunito", ui-rounded, sans-serif;
  --font-body: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --rule: 1px solid var(--card-border);
  --shadow: 0 12px 34px rgba(58, 51, 44, 0.10);
}

[data-theme="minimalist"] {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --ink: #111111;
  --ink-dim: #5b5b5b;
  --accent: #0e9f7a;
  --accent-2: #111111;
  --accent-soft: #e4f5ef;
  --card-border: #e6e6e6;
  --grad: linear-gradient(120deg, #0e9f7a 0%, #0b7a8f 100%);
  --hero-bg: #111111;
  --hero-ink: #ffffff;
  --hero-dim: #b8b8b8;
  --font-head: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --rule: 1px solid var(--card-border);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Dark Gold: the Elegant Classical palette inverted — near-black navy, ivory text, gold accents */
[data-theme="dark"] {
  --bg: #0c1120;
  --bg-alt: #141a2c;
  --ink: #f3ecd9;
  --ink-dim: #a9adbb;
  --accent: #c9a24b;
  --accent-2: #e2c77d;
  --accent-soft: #2a2416;
  --card-border: #283048;
  --grad: linear-gradient(120deg, #c9a24b 0%, #f0dc9a 100%);
  --hero-bg: #070b15;
  --hero-ink: #f3ecd9;
  --hero-dim: #b5b8c6;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --rule: 1px solid var(--card-border);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Gold fills need dark text, not white */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .brand-mark,
[data-theme="dark"] .step-num,
[data-theme="dark"] .avatar,
[data-theme="dark"] .theme-switcher button[aria-pressed="true"] {
  color: var(--bg) !important;
}

[data-theme="dark"] .cta-band {
  background: linear-gradient(120deg, #3a1024 0%, #141a2c 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

[data-theme="dark"] .cta-band h2 { color: var(--accent-2); }

[data-theme="dark"] .cta-band .btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

[data-theme="dark"] .qr-card { color: #0f1729; }
[data-theme="dark"] .qr-card p { color: #4a4f63; }

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-dim);
  max-width: 560px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p { color: var(--ink-dim); margin: 0; }

.placeholder {
  outline: 1.5px dashed var(--accent-2);
  outline-offset: 4px;
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
}

.placeholder::after {
  content: " [placeholder]";
  font-size: 0.7em;
  opacity: 0.6;
  font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--card-border);
}

.hero .btn-ghost {
  color: var(--hero-ink) !important;
  border-color: color-mix(in srgb, var(--hero-ink) 35%, transparent);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--rule);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}

.nav-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0; }
}

.hero h1 { color: var(--hero-ink); }
.hero .lead { color: var(--hero-dim); }
.hero .eyebrow { color: var(--accent-2); }
[data-theme="warm"] .hero .eyebrow { color: var(--accent); }

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hero-ink) 22%, transparent);
  color: var(--hero-ink);
  background: color-mix(in srgb, var(--hero-ink) 6%, transparent);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo-fallback {
  display: none;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #000), color-mix(in srgb, var(--accent-2) 60%, #000));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

.hero-photo-fallback .keys {
  display: flex;
  width: 70%;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
}

.hero-photo-fallback .keys span {
  flex: 1;
  background: rgba(255,255,255,0.92);
  border-right: 1px solid rgba(0,0,0,0.25);
}

.hero-photo-fallback .keys span:nth-child(3n) { background: rgba(0,0,0,0.75); height: 62%; }

.float-card {
  position: absolute;
  left: -28px;
  bottom: 28px;
  background: var(--bg-alt);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  border: var(--rule);
}

.float-card strong { display: block; font-size: 1.05rem; }

.float-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

@media (max-width: 480px) {
  .float-card { left: 8px; bottom: 12px; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  padding: 0;
  transform: translateY(-36px);
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-alt);
  border: var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stats-grid > div {
  padding: 24px 20px;
  text-align: center;
  border-right: var(--rule);
}

.stats-grid > div:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  font-weight: 600;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(2) { border-right: none; }
  .stats-grid > div:nth-child(-n+2) { border-bottom: var(--rule); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); border-top: var(--rule); border-bottom: var(--rule); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

.split-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-photo-fallback {
  display: none;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1.5px dashed var(--accent-2);
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.check-list .tick svg { width: 14px; height: 14px; }

/* Trust strip */

.trust {
  margin-top: 36px;
  padding-top: 24px;
  border-top: var(--rule);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-dim);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); }

/* Cards */

.grid-3 {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--bg-alt);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section-alt .card { background: var(--bg); }

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 24px; height: 24px; }

.card p { color: var(--ink-dim); margin: 0; }

/* Steps */

.steps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 28px 28px 28px;
  background: var(--bg-alt);
  border: var(--rule);
  border-radius: var(--radius);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.step p { color: var(--ink-dim); margin: 0; }

/* Testimonials */

.testimonial {
  background: var(--bg-alt);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}

.testimonial .stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: 12px; }
[data-theme="minimalist"] .testimonial .stars { color: var(--accent); }

.testimonial p { margin: 0 0 18px; font-style: italic; }

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-dim);
  text-align: left;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-style: normal;
}

.testimonial cite { font-style: normal; }
.testimonial cite strong { display: block; color: var(--ink); }

/* ==========================================================================
   CTA band / contact
   ========================================================================== */

.cta-band {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
}

.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.85); }

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.cta-band .btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.45);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-list svg { width: 18px; height: 18px; opacity: 0.9; }

.qr-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  justify-self: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.qr-card img { width: 170px; height: 170px; margin: 0 auto; }
.qr-card p { margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-dim); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 56px 0 40px;
  border-top: var(--rule);
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-dim); text-decoration: none; }
.footer a:hover { color: var(--ink); }

.footer-bottom {
  border-top: var(--rule);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom .credits { font-size: 0.74rem; opacity: 0.8; }

/* ==========================================================================
   Theme switcher (screen-only preview control; not part of the design)
   ========================================================================== */

.theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--bg-alt);
  border: var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
}

.theme-switcher .label {
  padding: 0 6px 0 10px;
  color: var(--ink-dim);
  font-weight: 600;
}

.theme-switcher button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.theme-switcher .switcher-link {
  margin-left: 4px;
  padding: 7px 12px 7px 14px;
  border-left: var(--rule);
  border-radius: 0 999px 999px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .theme-switcher .label { display: none; }
  .theme-switcher { left: 16px; right: 16px; flex-wrap: wrap; justify-content: center; border-radius: 18px; }
}

@media print {
  .theme-switcher, .nav { display: none; }
}
