/* ============================================================
   Kapenta Holdings — Site Stylesheet
   Dark & premium: charcoal, gold accents, editorial serif
   ============================================================ */

:root {
  --bg: #0e1116;
  --bg-soft: #141922;
  --panel: #1a2029;
  --panel-edge: #242c38;
  --gold: #c9a45c;
  --gold-soft: #e0c48f;
  --text: #e8e6e1;
  --text-soft: #a3a8b0;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 1.02rem;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--white); }

a { color: var(--gold-soft); }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.15);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 0; }

.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }

.brand-logo { height: 46px; width: auto; display: block; }

.brand-name {
  font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.28em;
  color: var(--white); font-weight: 600; line-height: 1;
}
.brand-name span {
  display: block; font-family: var(--font-body); font-size: 0.62rem;
  letter-spacing: 0.42em; color: var(--gold); font-weight: 500;
  margin-top: 4px; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }

.main-nav a {
  text-decoration: none; color: var(--text-soft); font-weight: 500;
  font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.active { color: var(--gold-soft); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--gold); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(14,17,22,0.96) 0%, rgba(14,17,22,0.82) 55%, rgba(20,25,34,0.72) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1800&q=70&auto=format&fit=crop") center/cover no-repeat;
  padding: 7.5rem 0;
  text-align: center;
}

.hero .rule {
  width: 64px; height: 2px; background: var(--gold); margin: 0 auto 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: 0.18em; margin-bottom: 1.4rem;
}

.hero p {
  max-width: 620px; margin: 0 auto 2.6rem; color: var(--text-soft);
  font-size: 1.15rem; font-weight: 300;
}

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem;
  padding: 0.95rem 2.4rem; transition: all 0.25s;
}

.btn-gold { background: var(--gold); color: #14161a; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn-ghost { border: 1px solid rgba(201,164,92,0.5); color: var(--gold-soft); margin-left: 1rem; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,164,92,0.08); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; font-weight: 300; }

.kicker {
  display: block; color: var(--gold); font-weight: 600; letter-spacing: 0.34em;
  text-transform: uppercase; font-size: 0.72rem; margin-bottom: 1rem;
}

/* ---------- Division cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.division-card {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius-lg); padding: 2.4rem 2.2rem;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.division-card:hover { transform: translateY(-5px); border-color: rgba(201,164,92,0.45); box-shadow: var(--shadow); }

.division-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(201,164,92,0.1); border: 1px solid rgba(201,164,92,0.3);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.4rem;
  color: var(--gold-soft);
}

.division-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.division-card p { color: var(--text-soft); font-size: 0.96rem; font-weight: 300; flex: 1; margin-bottom: 1.5rem; }

.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.28rem 0.85rem; border-radius: 999px; margin-bottom: 1.1rem;
  width: fit-content;
}
.badge-live { background: rgba(97, 191, 141, 0.12); color: #7fd7a8; border: 1px solid rgba(97,191,141,0.35); }
.badge-soon { background: rgba(201, 164, 92, 0.1); color: var(--gold-soft); border: 1px solid rgba(201,164,92,0.3); }
.badge-dev { background: rgba(96, 165, 250, 0.1); color: #93c5fd; border: 1px solid rgba(96,165,250,0.35); }

.card-link {
  color: var(--gold-soft); text-decoration: none; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.card-link:hover { color: var(--white); }
.card-link.disabled { color: var(--text-soft); cursor: default; }

.card-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1.5rem; }

/* ---------- Philosophy / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pillar {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.6rem;
}
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--text-soft); font-weight: 300; font-size: 0.98rem; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--bg) 20%, var(--bg-soft));
  border-bottom: 1px solid rgba(201,164,92,0.12);
  padding: 4.5rem 0; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: 0.06em; }
.page-hero p { max-width: 640px; margin: 1rem auto 0; color: var(--text-soft); font-weight: 300; font-size: 1.1rem; }
.page-hero .rule { width: 56px; height: 2px; background: var(--gold); margin: 0 auto 1.8rem; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 1.4rem; color: var(--text-soft); font-weight: 300; font-size: 1.06rem; }
.prose strong { color: var(--white); font-weight: 600; }
.prose h3 { font-size: 1.6rem; margin: 2.4rem 0 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid rgba(201,164,92,0.3); border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--panel), var(--bg-soft));
  padding: 3.5rem 2.5rem; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.8rem; }
.cta-band p { color: var(--text-soft); max-width: 560px; margin: 0 auto 2rem; font-weight: 300; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }

.contact-form { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius-lg); padding: 2.4rem; }
.contact-form h3 { font-size: 1.6rem; margin-bottom: 1.6rem; }
.contact-form label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.4rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.85rem 1rem; margin-bottom: 1.3rem;
  background: var(--bg); border: 1px solid var(--panel-edge); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form button { border: none; cursor: pointer; width: 100%; font-family: var(--font-body); }
.form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 1rem; }

.hours-panel { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius-lg); padding: 2.4rem; }
.hours-panel h3 { font-size: 1.6rem; margin-bottom: 1.4rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--panel-edge); color: var(--text-soft); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { color: var(--gold-soft); font-weight: 600; letter-spacing: 0.08em; }
.hours-table .closed { font-style: italic; }

/* ---------- Waitlist form ---------- */
.form-wrap { max-width: 780px; margin: 0 auto; }

.waitlist-panel {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius-lg); padding: 2.6rem;
}

.form-intro { color: var(--text-soft); font-weight: 300; margin-bottom: 2.2rem; }
.req { color: var(--gold); }

.field { border: none; margin-bottom: 1.9rem; }
.field > label, .field legend {
  display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 0.5rem; padding: 0;
}

.field input[type="text"], .field input[type="tel"],
.field input[type="email"], .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg); border: 1px solid var(--panel-edge); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field .invalid { border-color: #e06c6c; }

.hint { display: block; font-size: 0.82rem; color: var(--text-soft); margin-top: 0.45rem; font-weight: 300; }
.field legend + .hint { margin-top: 0; margin-bottom: 0.8rem; }

.choices { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.7rem; }

.choice {
  display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer;
  color: var(--text); font-size: 0.97rem; font-weight: 300;
  text-transform: none; letter-spacing: normal;
}
.choice input { accent-color: var(--gold); width: 17px; height: 17px; margin-top: 0.25rem; flex: none; cursor: pointer; }
.choice:hover span { color: var(--white); }

.conditional { margin-top: 0.9rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: rgba(224, 108, 108, 0.1); border: 1px solid rgba(224, 108, 108, 0.4);
  color: #f0a5a5; border-radius: 10px; padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem; font-size: 0.93rem;
}

#waitlist-form button[type="submit"] { border: none; cursor: pointer; width: 100%; font-family: var(--font-body); }
#waitlist-form button[disabled] { opacity: 0.6; cursor: default; }

.success-panel { text-align: center; }
.success-mark {
  width: 62px; height: 62px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: rgba(201, 164, 92, 0.12); border: 1px solid rgba(201, 164, 92, 0.45);
  color: var(--gold); font-size: 1.8rem; display: grid; place-items: center;
}
.success-panel h2 { font-size: 2rem; margin-bottom: 0.9rem; }
.success-panel p { color: var(--text-soft); font-weight: 300; max-width: 480px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(201,164,92,0.15); padding: 3rem 0 2rem; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { font-family: var(--font-head); letter-spacing: 0.24em; color: var(--white); font-size: 1.15rem; }
.footer-brand span { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.4em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }
.footer-logo { height: 44px; width: auto; }
.footer-nav { display: flex; gap: 1.8rem; }
.footer-nav a { color: var(--text-soft); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-copy { width: 100%; text-align: center; color: var(--text-soft); font-size: 0.82rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--panel-edge); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft); flex-direction: column; align-items: flex-start;
    padding: 1.4rem 6%; gap: 1.1rem; display: none;
    border-bottom: 1px solid rgba(201,164,92,0.2);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .waitlist-panel { padding: 1.8rem 1.4rem; }
  .hero { padding: 5rem 0; }
  .btn-ghost { margin-left: 0; margin-top: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
