:root {
  --bg: #14171c;
  --bg-alt: #1b1f26;
  --card: #21262f;
  --border: #2e3541;
  --text: #e9e7e0;
  --text-muted: #a2a9b3;
  --gold: #cfa75a;
  --gold-bright: #e2c17e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 23, 28, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--gold-bright); }

.nav-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* Placeholder backgrounds -- hand-drawn abstract patterns standing in for
   real photography until that's available. Swapping in real photos later
   only needs new background-image values on these 3 rules, nothing else. */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-repeat: repeat;
  transition: opacity 1.4s ease;
}

.hero-bg-slide.is-active { opacity: 1; }

.hero-bg-slide[data-slide="0"] {
  background-size: 90px 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect x='8' y='46' width='30' height='30' fill='none' stroke='%23cfa75a' stroke-opacity='0.16' stroke-width='1.5'/%3E%3Crect x='44' y='54' width='22' height='22' fill='none' stroke='%23cfa75a' stroke-opacity='0.12' stroke-width='1.5'/%3E%3Crect x='16' y='14' width='20' height='20' fill='none' stroke='%23cfa75a' stroke-opacity='0.10' stroke-width='1.5'/%3E%3C/svg%3E");
}

.hero-bg-slide[data-slide="1"] {
  background-size: 110px 110px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cpath d='M0 110 L110 0' stroke='%23cfa75a' stroke-opacity='0.14' stroke-width='1.5' stroke-dasharray='7 7'/%3E%3Ccircle cx='22' cy='88' r='3.5' fill='%23cfa75a' fill-opacity='0.18'/%3E%3Ccircle cx='88' cy='22' r='3.5' fill='%23cfa75a' fill-opacity='0.18'/%3E%3C/svg%3E");
}

.hero-bg-slide[data-slide="2"] {
  background-size: 100px 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='44'%3E%3Cline x1='0' y1='10' x2='100' y2='10' stroke='%23cfa75a' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='0' y1='24' x2='100' y2='24' stroke='%23cfa75a' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='0' y1='38' x2='68' y2='38' stroke='%23cfa75a' stroke-opacity='0.12' stroke-width='1'/%3E%3C/svg%3E");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at top, rgba(207, 167, 90, 0.10), transparent 60%),
    rgba(20, 23, 28, 0.74);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-headline-wrap {
  position: relative;
  min-height: 5.9rem;
}

.hero-headline {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  font-size: 2.1rem;
  line-height: 1.35;
  color: var(--text);
}

.hero-headline.is-active { opacity: 1; }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-motto {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ── Sections ───────────────────────────────────────── */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 1.7rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ── Modules ────────────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.module-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding-right: 24px;
}

.module-card summary::-webkit-details-marker { display: none; }
.module-card summary::marker { content: ""; }

.module-card summary::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.module-card[open] summary::after {
  transform: rotate(-135deg);
}

.module-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.module-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.module-tagline {
  color: var(--gold-bright);
  font-style: italic;
  font-size: 0.92rem;
}

.module-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.module-detail p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ── Packages ───────────────────────────────────────── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.package-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.package-featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.package-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.package-target {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.package-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.package-card li { margin-bottom: 6px; }

/* ── Verticals ──────────────────────────────────────── */
.vertical-list {
  max-width: 560px;
  margin: 0 auto;
  padding-left: 24px;
  color: var(--text-muted);
  list-style: disc;
}

.vertical-list li { margin-bottom: 8px; }

.vertical-list .current {
  color: var(--gold-bright);
  font-weight: 600;
}

@media (min-width: 700px) {
  .vertical-list {
    max-width: 720px;
    columns: 2;
    column-gap: 48px;
  }

  .vertical-list li {
    break-inside: avoid;
  }
}

/* ── Contact ────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-copy p { color: var(--text-muted); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form button {
  margin-top: 4px;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success { color: #7fbf7f; }
.form-status.error { color: #e08787; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 800px) {
  .module-grid, .package-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.6rem; }
  .hero-headline-wrap { min-height: 8.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide, .hero-headline { transition: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .main-nav .nav-cta {
    margin: 16px 24px;
    text-align: center;
  }
}
