/*
Theme Name: Karen Y. McClain Exact
Theme URI: https://KarenYMcClain.biz
Author: Custom Theme
Description: Exact WordPress conversion of the Karen Y. McClain HTML/CSS/JS/PHP project with a custom no-code content builder.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: karen-y-mcclain-exact
*/
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Great+Vibes&family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --ink: #ffffff;
  --muted: #d8cbe7;
  --dark: #06000f;
  --midnight: #100027;
  --plum: #250044;
  --purple: #5d20a6;
  --pink: #e62b83;
  --hot-pink: #ff4ca3;
  --gold: #f6c84c;
  --gold-deep: #b87910;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(246, 200, 76, 0.35);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(230, 43, 131, 0.18), transparent 32%),
              radial-gradient(circle at top right, rgba(246, 200, 76, 0.14), transparent 30%),
              linear-gradient(135deg, var(--dark), var(--midnight) 44%, #050008);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 1.05rem; }
strong { color: #fff; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 76px 0; position: relative; overflow: hidden; }
.section.tight { padding: 52px 0; }
.section-title { max-width: 760px; margin-bottom: 42px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1, h2 { font-family: Playfair Display, Georgia, serif; }
h1 { font-size: clamp(2.75rem, 5.6vw, 5.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.75rem); letter-spacing: -0.04em; }
h3 { font-size: 1.35rem; font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #f4eafd; max-width: 720px; }
.gold { color: var(--gold); }
.pink { color: var(--hot-pink); }
.script { font-family: Great Vibes, cursive; color: var(--hot-pink); font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 0.9; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 0, 13, 0.78);
  border-bottom: 1px solid rgba(246, 200, 76, 0.22);
}
.navbar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; min-width: 210px; }
.brand .brand-main { font-family: Great Vibes, cursive; color: var(--gold); font-size: 2.25rem; line-height: 0.95; }
.brand .brand-domain { font-family: Playfair Display, serif; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.brand small { color: #f7e8ff; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.66rem; margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 26px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.nav-menu > a, .drop-trigger { color: #fff; opacity: 0.92; padding: 14px 0; }
.nav-menu > a:hover, .drop-trigger:hover { color: var(--gold); }
.dropdown { position: relative; }
.drop-trigger { border: 0; background: transparent; font: inherit; cursor: pointer; }
.drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  min-width: 260px;
  background: rgba(15, 0, 36, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 12px;
  transition: 0.2s ease;
}
.dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.drop-menu a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 700; }
.drop-menu a:hover { background: rgba(246, 200, 76, 0.12); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: #fff; font-size: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(246, 200, 76, 0.6);
  background: linear-gradient(135deg, var(--gold), #ff9f1c);
  color: #120018;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(246, 200, 76, 0.25);
  transition: 0.25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(246, 200, 76, 0.35); }
.btn.secondary { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.24); box-shadow: none; }
.btn.secondary:hover { border-color: var(--gold); }
.btn.pink-btn { background: linear-gradient(135deg, var(--pink), #ff70b6); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.86rem; }
.btn.full { width: 100%; }

.hero {
  min-height: calc(100vh - 92px);
  padding: 64px 0 34px;
  display: grid;
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(246, 200, 76, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr); align-items: center; gap: 44px; position: relative; z-index: 1; }
.hero-copy h1 span { display: block; }
.hero-copy .name { color: #fff; text-shadow: 0 0 42px rgba(255, 76, 163, 0.22); }
.hero-copy .domain { color: var(--hot-pink); font-size: 0.84em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.badge { border: 1px solid rgba(246, 200, 76, 0.34); color: #ffe7a0; border-radius: 999px; padding: 8px 12px; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; background: rgba(246, 200, 76, 0.08); }
.hero-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 580px; }
.hero-note div { padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid rgba(255,255,255,0.12); }
.hero-note b { color: #fff; display: block; font-size: 0.95rem; }
.hero-note span { color: var(--muted); font-size: 0.82rem; }
.hero-media { position: relative; min-height: 560px; }
.portrait-frame {
  position: absolute;
  inset: 10px 66px 70px 28px;
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(230,43,131,0.24), rgba(246,200,76,0.12));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(1.08) contrast(1.04); }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,0,12,0.58), transparent 58%);
}
.float-card {
  position: absolute;
  background: rgba(9,0,26,0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.book-float { width: 250px; right: 0; bottom: 16px; }
.kmcc-float { width: 170px; left: 0; bottom: 0; }
.float-card img { border-radius: 16px; }
.float-card strong { display: block; margin-top: 10px; }
.float-card span { display: block; color: var(--muted); font-size: 0.82rem; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border: 1px solid rgba(246, 200, 76, 0.24);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 52px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(circle at top right, rgba(255,76,163,0.18), transparent 34%); opacity: 0.85; pointer-events: none; }
.card > * { position: relative; z-index: 1; }
.card-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(246,200,76,0.13); color: var(--gold); font-size: 1.6rem; margin-bottom: 18px; border: 1px solid rgba(246,200,76,0.3); }
.card h3 { margin-bottom: 10px; }
.card-link { color: var(--gold); font-weight: 900; display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; }

.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }
.image-panel { position: relative; border-radius: 34px; padding: 16px; background: linear-gradient(135deg, rgba(246,200,76,0.24), rgba(230,43,131,0.14)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.image-panel img { border-radius: 26px; width: 100%; }
.fact-list { display: grid; gap: 14px; margin-top: 24px; }
.fact { padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.fact b { color: var(--gold); display: block; margin-bottom: 4px; }

.book-section { background: linear-gradient(135deg, rgba(230,43,131,0.17), rgba(93,32,166,0.15)); border-top: 1px solid rgba(246,200,76,0.18); border-bottom: 1px solid rgba(246,200,76,0.18); }
.book-section .split { align-items: center; }
.book-section .image-panel { max-width: 480px; justify-self: center; width: 100%; }
.book-section .image-panel img { aspect-ratio: 4 / 3; object-fit: contain; background: #f4fbfb; }
.book-section h2 { max-width: 620px; }
.price { font-family: Playfair Display, serif; font-size: 2.4rem; color: #fff; margin: 8px 0 20px; }
.purchase-box { background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-top: 22px; }
.purchase-box label { display: block; color: #fff; font-weight: 800; margin-bottom: 8px; }
.purchase-box input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; padding: 0 14px; }
.purchase-note { color: #cdbdde; font-size: 0.86rem; margin-top: 12px; }

.page-hero { padding: 66px 0 52px; border-bottom: 1px solid rgba(246,200,76,0.17); background: radial-gradient(circle at 70% 20%, rgba(230,43,131,0.2), transparent 30%); }
.page-hero h1 { font-size: clamp(2.7rem, 5.1vw, 4.8rem); max-width: 920px; }
.page-hero .container { display: grid; gap: 18px; }
.breadcrumb { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; }

.bio-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 52px; align-items: start; }
.bio-card { position: sticky; top: 116px; }
.bio-card img { border-radius: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.timeline { display: grid; gap: 16px; margin-top: 28px; }
.timeline-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.dot { width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(246,200,76,0.13); }
.timeline-content { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-item { border: 1px solid rgba(246,200,76,0.26); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,0.06); cursor: pointer; aspect-ratio: 3 / 4; min-height: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.86); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.active { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 24px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; top: 24px; right: 24px; }

.video-shell { aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(230,43,131,0.2), rgba(246,200,76,0.1)); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; padding: 36px; }
.video-shell iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { max-width: 620px; }
.video-placeholder .play { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--gold); color: #120018; font-size: 1.8rem; }

.professional-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.professional-section { scroll-margin-top: 120px; margin-bottom: 32px; }
.brand-row { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; }
.brand-row img { width: 110px; border-radius: 20px; background: #fff; }

.blog-list { display: grid; gap: 18px; }
.blog-post { padding: 24px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.blog-post span { color: var(--gold); font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form label { color: #fff; font-weight: 800; display: grid; gap: 8px; }
.form input, .form select, .form textarea {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; padding: 14px 16px; font: inherit;
}
.form textarea { min-height: 150px; resize: vertical; }
.form option { color: #16001f; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: var(--gold); font-weight: 900; }

.cta-band { padding: 38px 44px; border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(230,43,131,0.24), rgba(246,200,76,0.12)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.cta-band h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); max-width: 820px; }
.cta-band p { max-width: 760px; }
.site-footer { border-top: 1px solid rgba(246,200,76,0.18); padding: 54px 0 26px; background: rgba(0,0,0,0.26); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.75fr 0.85fr 1fr; gap: 36px; align-items: start; }
.site-footer h3 { font-size: 1.1rem; margin-bottom: 10px; }
.footer-links { display: grid; gap: 10px; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 34px; padding-top: 22px; color: #a999b8; font-size: 0.9rem; text-align: center; }

.notice { border-left: 4px solid var(--gold); background: rgba(246,200,76,0.08); padding: 16px 18px; border-radius: 14px; color: #f6e8ff; }

@media (max-width: 1180px) {
  .nav-menu { gap: 18px; font-size: 0.8rem; }
  .brand { min-width: 190px; }
  .hero-note { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu {
    position: fixed; top: 92px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(10,0,26,0.98); box-shadow: var(--shadow);
  }
  .nav-menu.active { display: flex; }
  .nav-menu > a, .drop-trigger { padding: 14px; text-align: left; }
  .dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu { transform: none; }
  .drop-menu { position: static; transform: none; opacity: 1; pointer-events: auto; background: rgba(255,255,255,0.04); box-shadow: none; margin: 4px 0 12px; }
  .hero-grid, .split, .bio-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 520px; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  h1 { font-size: clamp(2.45rem, 12vw, 3.55rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .navbar { height: 82px; }
  .brand .brand-main { font-size: 1.7rem; }
  .brand .brand-domain { font-size: 1.05rem; }
  .brand small { font-size: 0.55rem; }
  .nav-menu { top: 82px; left: 14px; right: 14px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 48px 0 28px; }
  .hero-grid { gap: 30px; }
  .hero-media { min-height: 480px; }
  .portrait-frame { inset: 0 24px 110px 0; border-radius: 30px; }
  .book-float { width: 190px; right: 0; bottom: 38px; }
  .kmcc-float { width: 130px; left: 0; bottom: 0; }
  .hero-note, .grid.three, .grid.two, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 3 / 4; min-height: 0; }
  .cta-band { padding: 28px; grid-template-columns: 1fr; align-items: flex-start; }
  .btn { width: 100%; max-width: 360px; }
  .brand-row { grid-template-columns: 1fr; }
}


/* Final layout polish */
.navbar, .hero-grid, .split, .footer-grid, .contact-grid, .bio-layout { min-width: 0; }
.card, .image-panel, .cta-band, .gallery-item, .video-shell { min-width: 0; }
.nav-menu .btn.small { padding-left: 18px; padding-right: 18px; }
.card-link { white-space: nowrap; }
.site-footer p { max-width: 360px; }
@media (max-width: 1040px) {
  .book-section .image-panel { max-width: 560px; justify-self: start; }
  .cta-band .btn { justify-self: start; }
}
@media (max-width: 520px) {
  .page-hero { padding: 48px 0 40px; }
  .section-title { margin-bottom: 28px; }
  .hero-note div, .card { padding: 22px; }
  .image-panel { padding: 10px; border-radius: 24px; }
  .image-panel img { border-radius: 18px; }
  .footer-grid { gap: 26px; }
}

/* WordPress exact-theme refinements */
main h2,
.section h2,
.page-hero h1 + .lead { margin-bottom: 18px; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
