/* ============================================================
   KAMALAG.COM — styles (black + gold editorial)
   You normally do NOT need to edit this file.
   All text/photos are edited in content.js
   ============================================================ */

:root {
  --bg: #0b0b0d;            /* page background */
  --bg-soft: #121214;       /* card background */
  --bg-softer: #18181b;
  --line: rgba(212, 175, 55, 0.25);   /* gold hairlines */
  --line-dim: rgba(255, 255, 255, 0.08);
  --gold: #d4af37;
  --gold-bright: #e8c96a;
  --text: #f5f1e8;          /* warm off-white */
  --text-dim: #b9b3a5;
  --wa: #25d366;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --z-nav: 50;
  --z-fab: 40;
  --z-lightbox: 60;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: #0b0b0d; }

/* ---------- shared section shell ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
  max-width: 18em;
}

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.72);
  border-bottom: 1px solid var(--line-dim);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo b { color: var(--gold); font-weight: 500; }
.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0.4rem 0;
}
.nav-links a:hover { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 11, 13, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-dim); }
  .nav-links a { display: block; padding: 1rem var(--pad); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(212, 175, 55, 0.13), transparent 60%),
    radial-gradient(700px 500px at 12% 90%, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7rem var(--pad) 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9.5vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 .gold { color: var(--gold); font-style: italic; }
.hero-fullname {
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.hero-titleline {
  margin-top: 0.5rem;
  color: var(--gold-bright);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-statement {
  margin-top: 1.5rem;
  max-width: 34em;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero-buttons {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold {
  background: var(--gold);
  color: #0b0b0d;
}
.btn-gold:hover { background: var(--gold-bright); color: #0b0b0d; box-shadow: 0 6px 28px rgba(212, 175, 55, 0.35); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero-photo {
  position: relative;
  justify-self: center;
  align-self: end;
  max-width: 440px;
  width: 100%;
}
/* gold glow behind the cutout */
.hero-photo::before {
  content: "";
  position: absolute;
  left: 50%; top: 54%;
  transform: translate(-50%, -50%);
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.30),
    rgba(212, 175, 55, 0.10) 45%,
    transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
/* floor fade so the portrait melts into the page */
.hero-photo::after {
  content: "";
  position: absolute;
  left: -6%; right: -6%; bottom: -2px;
  height: 26%;
  background: linear-gradient(transparent, var(--bg) 90%);
  pointer-events: none;
  z-index: 2;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.65)) contrast(1.03);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 6rem; }
  .hero-photo { max-width: 300px; order: -1; }
}

/* ============================================================
   CREDENTIALS TICKER
   ============================================================ */
.cred-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 1.05rem 0;
}
.cred-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.cred-bar:hover .cred-track { animation-play-state: paused; }
.cred-item {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.cred-item::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.7rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cred-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--pad); gap: 1.5rem; }
  .cred-item { gap: 1.5rem; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-photo { position: relative; }
.about-photo img {
  border-radius: 6px;
  filter: grayscale(15%);
}
.about-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  max-width: 62ch;
}
.about-text p:first-of-type { color: var(--text); }

.about-stats {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
}

/* ============================================================
   PODCAST
   ============================================================ */
.podcast-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.podcast-body {
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.podcast-body .mic {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.podcast-body h2 { margin-bottom: 0.9rem; }
.podcast-pitch { color: var(--text-dim); max-width: 46ch; margin-bottom: 1.9rem; }
.podcast-photo { min-height: 320px; }
.podcast-photo img { width: 100%; height: 100%; object-fit: cover; }

.episodes-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.episode-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.episode-card:hover { border-color: var(--gold); }
.episode-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.episode-card .ep-body { padding: 1rem 1.2rem 1.3rem; }
.episode-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 0.4rem; }
.episode-card .ep-date { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.06em; }
.episode-card .ep-links { margin-top: 0.7rem; display: flex; gap: 1rem; font-size: 0.82rem; font-weight: 600; }

@media (max-width: 860px) {
  .podcast-card { grid-template-columns: 1fr; }
  .podcast-photo { order: -1; min-height: 240px; max-height: 340px; }
}

/* ============================================================
   WHAT I DO — cards
   ============================================================ */
.cards-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.wcard {
  background: var(--bg-soft);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.wcard:hover { border-color: var(--gold); transform: translateY(-4px); }
.wcard-photo { aspect-ratio: 4/3; overflow: hidden; }
.wcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.wcard-noimg {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(360px 200px at 50% 0%, rgba(212, 175, 55, 0.15), transparent 70%),
    var(--bg-softer);
}
.wcard-noimg svg { width: 52px; height: 52px; color: var(--gold); }
.wcard-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.wcard h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.wcard p { font-size: 0.88rem; color: var(--text-dim); flex: 1; }
.wcard-link { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.wcard-link::after { content: " →"; }

@media (max-width: 1020px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SPEAKING
   ============================================================ */
.speaking { position: relative; }
.speaking-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.speaking-intro { color: var(--text-dim); max-width: 50ch; margin-bottom: 1.8rem; }
.topics { list-style: none; margin-bottom: 2.2rem; }
.topics li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dim);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  color: var(--text);
  font-size: 0.98rem;
}
.topics li::before {
  content: counter(topic, decimal-leading-zero);
  counter-increment: topic;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
}
.topics { counter-reset: topic; }
.speaking-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.speaking-photo { position: relative; }
.speaking-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  pointer-events: none;
}
.speaking-photo img { border-radius: 6px; }
.ghl-embed { margin-top: 2.5rem; }
.ghl-embed iframe { width: 100%; min-height: 640px; border: none; border-radius: 8px; background: #fff; }

@media (max-width: 860px) {
  .speaking-grid { grid-template-columns: 1fr; }
  .speaking-photo { max-width: 420px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line-dim);
  cursor: pointer;
  padding: 0;
  background: var(--bg-soft);
}
.gallery-item:nth-child(5n+1) { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s;
  filter: grayscale(18%);
}
.gallery-item:hover img { transform: scale(1.045); filter: grayscale(0%); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption { opacity: 1; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(5, 5, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}
.lightbox-caption {
  position: absolute;
  bottom: 1.1rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  transition: color 0.2s;
  z-index: 2;
}
.lightbox button:hover { color: var(--gold); }
.lightbox-close { top: 0.7rem; right: 1rem; }
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 3rem 0.5rem; }
}

/* ============================================================
   AS FEATURED
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2.5rem;
}
.press-photo img { border-radius: 6px; border: 1px solid var(--line-dim); }
.press-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.badge:hover { color: var(--gold-bright); border-color: var(--gold); }
.badge img { height: 26px; width: auto; }

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
  .press-photo { max-width: 420px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
  border-top: 1px solid var(--line-dim);
}
.contact .kicker { justify-content: center; }
.contact .kicker::after {
  content: "";
  width: 2.4rem; height: 1px;
  background: var(--gold);
  flex: none;
}
.contact h2 { margin-left: auto; margin-right: auto; }
.contact-text { color: var(--text-dim); max-width: 44ch; margin: 0 auto 2.2rem; }
.contact-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.contact-detail { margin-top: 1.6rem; color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.04em; }
.contact-detail a { color: var(--text); }
.contact-detail a:hover { color: var(--gold-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.6rem var(--pad) 2.2rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.footer-socials { display: flex; gap: 0.9rem; }
.footer-socials a {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}
.footer-socials a:hover { color: var(--gold-bright); border-color: var(--gold); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 0.85rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.04em; width: 100%; text-align: center; margin-top: 1rem; opacity: 0.7; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-fab {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: var(--z-fab);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55); }
.wa-fab svg { width: 30px; height: 30px; color: #fff; }

/* ============================================================
   COOKIE / ANALYTICS CONSENT BAR
   ============================================================ */
.consent-bar {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 55;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(18, 18, 20, 0.97);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.consent-bar p {
  flex: 1 1 240px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.consent-bar .btn { padding: 0.55rem 1.15rem; font-size: 0.8rem; }
.consent-bar .consent-decline {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.55rem 0.4rem;
}
.consent-bar .consent-decline:hover { color: var(--text); }
