/*
 * pre-style.css — Cayman preview design styles.
 * Enqueued by pre-functions.php only on the "Pre — Cayman Landing" template.
 */

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

:root {
  --bg: #ffffff;
  --ink: #0f0f0f;
  --soft: #5f6368;
  --red: #c70000;
  --red-hover: #fb3948;
  --line: #ececec;
  --card: #fafafa;
  --radius: 20px;
  --display: "Sora", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* WP admin bar offset for sticky header */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ---------- Buttons: red with black text ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bg);
  background: var(--red);
  border: none;
  border-radius: 999px;
  padding: 15px 32px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(225, 29, 46, 0.28);
}

.btn:hover { background: var(--bg);  color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(225, 29, 46, 0.35); }
.btn-sm { padding: 11px 24px; font-size: 0.85rem; }

.btn-outline {  background: transparent;  box-shadow: none;  border: 2px solid var(--ink);color:var(--link);}
.btn-outline:hover { background: var(--red);color:var(--bg); border-color: var(--red); box-shadow: 0 6px 18px rgba(225,29,46,0.28); }
/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.site-brand { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.dot { color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--soft); transition: color 0.15s; }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fde8ea;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-sub { margin-top: 24px; max-width: 540px; color: var(--soft); font-size: 1.15rem; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-covers { position: relative; display: flex; justify-content: center; }
.hero-covers img {
  width: 62%;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(15, 15, 15, 0.25);
}
.hero-covers img.back {
  position: absolute;
  width: 52%;
  right: 2%;
  top: 10%;
  transform: rotate(6deg);
  z-index: -1;
  opacity: 0.9;
}
.hero-covers img.front { transform: rotate(-3deg); margin-right: 18%; }

/* ---------- Logo strip ---------- */
.logos { padding: clamp(30px, 4vw, 50px) 0 clamp(50px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.logos-label { text-align: center; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--soft); margin-bottom: 28px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 64px); }

/* Placeholder logo boxes — replace with <img src="..."> of real logos */
.logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 52px;
  border: 2px dashed #d5d5d5;
  border-radius: 12px;
  color: #9aa0a6;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0 22px;
}
.logos-row img { max-height: 44px; width: auto; filter: grayscale(100%); opacity: 0.65; transition: 0.2s; }
.logos-row img:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow { text-transform: uppercase; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; color: var(--red); margin-bottom: 12px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.025em; line-height: 1.1; }
.section-head p { margin-top: 16px; color: var(--soft); }

/* ---------- Books ---------- */
.book {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}

.book + .book { margin-top: 36px; }
.book.book-flip { grid-template-columns: 1fr minmax(240px, 380px); }
.book.book-flip .book-cover { order: 2; }

.book-cover img { width: 100%; border-radius: 14px; box-shadow: 0 24px 48px rgba(15, 15, 15, 0.22); transition: transform 0.25s ease; }
.book-cover:hover img { transform: translateY(-6px) scale(1.01); }

.book-genre { text-transform: uppercase; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--red); margin-bottom: 12px; }
.book-body h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; margin-bottom: 18px; }
.book-body p { color: var(--soft); margin-bottom: 1em; }
.book-buy { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.buy-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--soft); margin-right: 4px; }

@media (max-width: 860px) {
  .book, .book.book-flip { grid-template-columns: 1fr; }
  .book.book-flip .book-cover { order: 0; }
  .book-cover { max-width: 300px; }
}

/* ---------- Video ---------- */
.video-section { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.video-ph {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(225,29,46,0.18), transparent 55%),
    linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 15, 15, 0.2);
  cursor: pointer;
}

/* To use a real video, replace .video-ph contents with your embed iframe:
   <iframe src="https://www.youtube.com/embed/VIDEO_ID" ...></iframe> */
.video-ph .play {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(225, 29, 46, 0.5);
  transition: transform 0.2s ease;
}
.video-ph:hover .play { transform: scale(1.08); }
.video-ph .play::before {
  content: "";
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 6px;
}
.video-ph .video-note { color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; }

.video-ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-photo img { border-radius: var(--radius); box-shadow: 0 24px 48px rgba(15, 15, 15, 0.18); }
.about-text p { margin-bottom: 1.15em; color: var(--soft); font-size: 1.1rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 360px; } }

/* ---------- CTA ---------- */
.cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: clamp(50px, 7vw, 90px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.cta-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
.cta-card p { margin: 18px auto 36px; max-width: 520px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 90px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 34px; padding-bottom: 34px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.copyright { font-size: 0.85rem; color: var(--soft); }

::selection { background: var(--red); color: #fff; }

/* ---------- Hamburger toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Hidden checkbox that drives the menu — pure CSS, no JS needed */
.nav-check { position: absolute; opacity: 0; pointer-events: none; }

.nav-check:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-check:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-check:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-covers { max-width: 420px; margin: 0 auto; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    box-shadow: 0 20px 40px rgba(15, 15, 15, 0.08);
  }
  .nav-check:checked ~ .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- Small phones ---------- */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }

  .site-header .wrap { min-height: 64px; }
  .site-brand { font-size: 1.1rem; }

  .hero { padding-top: 48px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-actions { margin-top: 30px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-covers img.front { margin-right: 14%; }

  .logo-ph { min-width: 120px; height: 44px; font-size: 0.72rem; }

  .book { padding: 22px 18px 28px; }
  .book-cover { max-width: 100%; }
  .book-buy .btn { flex: 1 1 auto; justify-content: center; }

  .video-ph { border-radius: 14px; }
  .video-ph .play { width: 64px; height: 64px; }
  .video-ph .play::before { border-width: 11px 0 11px 18px; }

  .about-text p { font-size: 1rem; }

  .cta-card { border-radius: 20px; }
  .cta-card .btn { width: 100%; justify-content: center; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}
