/* ============================================================
   SUGAR KING — Site Styles
   Dark editorial theme. Cormorant Garamond for display, Inter for body.
============================================================ */

:root {
  --bg: #0d0d0f;
  --bg-alt: #16161a;
  --bg-card: #1c1c20;
  --text: #e6e6e8;
  --text-muted: #9a9aa0;
  --accent: #c9a55c;
  --accent-hover: #d9b66c;
  --border: #2a2a30;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 22px;
  letter-spacing: 0.15em; color: var(--text);
}
.nav-links { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-muted); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 100px 24px 60px;
}
.hero-video-frame {
  position: absolute; inset: 0; z-index: 0;
}
#hero-carousel {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#hero-carousel iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; opacity: 0; transition: opacity 1.5s ease;
  pointer-events: none;
}
#hero-carousel iframe.active { opacity: 0.35; }

.hero-overlay-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(13,13,15,0.5) 0%, rgba(13,13,15,0.92) 80%),
    linear-gradient(180deg, rgba(13,13,15,0.8) 0%, rgba(13,13,15,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 600; letter-spacing: 0.06em;
  margin: 0 0 8px 0; line-height: 1;
  color: var(--text);
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--accent);
  margin: 0 0 60px 0;
}
.hero-quote-stack {
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: center;
  margin-bottom: 40px;
}
.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 12px 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-quote.fade-in { opacity: 1; }
.hero-quote-attr {
  font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-muted); margin: 0;
}

.hero-stats {
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent);
  margin: 0;
}
.hero-stats .sep { margin: 0 14px; color: var(--text-muted); }

/* ============================================================
   SECTIONS (general)
============================================================ */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}
.section-title-left { text-align: left; }
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: var(--accent);
  margin: 20px auto 0;
}
.section-title-left::after { margin-left: 0; }

.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--text);
}
.lead-light {
  font-size: 16px; text-align: center;
  max-width: 700px; margin: 0 auto 60px;
  color: var(--text-muted);
}

/* ============================================================
   BOOK SECTION
============================================================ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.book-col h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
  font-size: 22px;
  margin: 0 0 16px 0;
  font-weight: 500;
}
.book-col p { color: var(--text-muted); font-size: 15px; }

@media (max-width: 768px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FLIPBOOK
============================================================ */
#flipbook-container {
  display: flex;
  justify-content: center;
  margin: 40px auto;
  min-height: 600px;
}
#flipbook {
  width: 900px;
  height: 600px;
  max-width: 95vw;
}
#flipbook .page {
  background: #f8f5ed;
  color: #1a1a1a;
  padding: 50px 45px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: inset 0 0 0 1px #d4cdb8;
}
#flipbook canvas {
  width: 100% !important; height: auto !important; display: block;
}
@media (max-width: 900px) {
  #flipbook { width: 100%; height: 500px; }
}

.read-actions {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 40px; flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--accent);
  color: #0d0d0f;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #0d0d0f; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

/* ============================================================
   MEDIA GRID
============================================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.media-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.media-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}
.media-thumb iframe,
.media-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  background: #000;
  object-fit: contain;
}
.media-meta { padding: 20px 22px; }
.media-meta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: var(--text);
}
.media-meta .media-network {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .media-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PHOTO GRID
============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.photo-grid .photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s;
}
.photo-grid .photo-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.photo-grid .photo-tile:hover img { transform: scale(1.05); }
.photo-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 60px 0;
}
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; }

/* ============================================================
   AUTHOR
============================================================ */
.author-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.author-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--border);
}
.author-bio p { color: var(--text-muted); margin-bottom: 18px; }
.author-bio p:first-of-type { color: var(--text); }
@media (max-width: 800px) {
  .author-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRESS
============================================================ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.press-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  color: var(--text);
  transition: transform .3s, border-color .3s;
}
.press-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--text);
}
.press-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--accent);
}
.press-card p { color: var(--text-muted); font-size: 15px; }
.press-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-form {
  margin-top: 40px;
  display: grid; gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  width: 100%;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .honeypot {
  position: absolute; left: -9999px; opacity: 0; height: 0; width: 0;
}
.contact-form textarea { resize: vertical; min-height: 120px; font-family: 'Inter', sans-serif; }
.contact-form select { cursor: pointer; }

.form-status { text-align: center; margin: 8px 0 0 0; font-size: 14px; }
.form-status.success { color: #6cc28b; }
.form-status.error { color: #d97a7a; }

.contact-direct {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #08080a;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.footer p { margin: 6px 0; }
.footer-small a { margin: 0 8px; }
