/* =====================================
   01) ROOT VARIABLES
   ===================================== */
:root {
  --bg: #0f0f10;
  --bg-2: #171719;
  --text: #e9e9e9;
  --muted: #b9b9b9;
  --accent: #e24434;      /* red accent */
  --accent-2: #ff6a3d;    /* warm secondary */
  --max: 1280px;
  --headerH: 84px;
  /* extras used by author card / alt section */
  --card: #131316;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --cream: #0f0f10;       /* keep dark theme; tweak if you want a lighter alt */
}

/* =====================================
   02) RESET / BASE
   ===================================== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* =====================================
   03) UTILITIES
   ===================================== */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  margin-bottom: 20px;
}

.narrow {
  width: min(800px, 92%);
  margin-inline: auto;
}

.center {
  text-align: center;
}

/* =====================================
   04) BUTTONS
   ===================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(226, 68, 52, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: #ffffff33;
  color: #ffffff;
}

.btn-outline:hover {
  background: #ffffff12;
}

.btn-accent {
  background: var(--accent-2);
  color: #111111;
}

.btn-wrap {
  margin-top: 1rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* =====================================
   05) SITE HEADER / NAV
   ===================================== */
.site-header{
  position: fixed;          /* <— instead of sticky */
  top: 0; left: 0; width: 100%;
  z-index: 9999;            /* on top of all sections */
  background: rgba(15,15,16,.88);
  backdrop-filter: blur(8px) saturate(140%);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.scrolled{
  background: rgba(15, 15, 16, 0.482);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
}

/* ============ Mobile Navigation ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.nav-toggle .bar {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate bars when open */
.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.nav a.active{
  opacity: 1;
  position: relative;
}
.nav a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-8px;
  height:2px; background: var(--accent);
  border-radius: 2px;
  opacity:.9;
}

.nav a:hover {
  opacity: 1;
}

/* --- Mobile breakpoint --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--headerH, 84px);
    right: 0;
    left: 0;
    background: rgba(15, 15, 16, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
/* ========= Mobile Nav Toggle ========= */


/* =====================================
   06) HERO SECTION
   ===================================== */
.hero {
  position: relative;
  min-height: 75vh;
  display: grid;
  place-items: center;
  overflow: clip;
}

/* --- Background image + overlay --- */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.95) saturate(0.9) brightness(0.85);
}

/* --- Grid & content --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: 6rem 0 4rem;
}

.hero-art {
  text-align: right;
}

.hero-art img {
  max-width: 430px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- Hero type --- */
.eyebrow {
  color: #ff6f61;
  margin-top: 60px;
  margin-bottom: 70px;
  font-weight: 700;
  font-size: 40px;
}

.display {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0.25rem 0 1rem;
  letter-spacing: 0.5px;
}

.hook {
  color: var(--muted);
  max-width: 55ch;
  margin: 0 0 1.2rem;
}

/* =====================================
   07) GENERIC SECTIONS
   ===================================== */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--bg-2);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff6f61;
}

.section-subtitle {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0.25rem 0 1rem;
}

/* =====================================
   08) ABOUT THE AUTHOR (AUTHOR CARD)
   ===================================== */
.section--alt {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.author-card {
  display: grid;
  grid-template-columns: 520px 1fr;   /* fixed wide photo column */
  align-items: start;
  gap: 2.5rem;
  margin-top: 24px;

  background: transparent;            /* no background */
  box-shadow: none;                    /* no shadow */
  padding: 0;                          /* no inner padding */
  border-radius: 0;                    /* optional */
}

.author-photo {
  align-self: start;
}

.author-photo img {
  width: 90%;
  max-width: 560px;                    /* cap so it doesn’t explode on huge screens */
  display: block;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #ffffff;
}

.author-copy {
  align-self: start;
  max-width: 62ch;
}

.h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.author-copy .h2,
.author-copy h2 {
  margin: 0 0 1.8rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);  /* bigger than before */
  line-height: 1.1;
}

.author-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.book-author {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}



@media (max-width: 980px) {
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .author-photo img {
    margin-inline: auto;
    max-width: 420px;
  }
  .author-copy {
    margin-inline: auto;
  }
}

/* =========================================================
   TRAILER
   =======================================================*/

   /* Book Trailers section heading */
#trailers h2 {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 40px); /* edit to taste */
  line-height: 1.2;
  text-align: center;                  /* ensure centered */
  margin: 0 0 14px;
}

/* Per-trailer title (under each video) */
.trailer-title {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: clamp(32px, 3.2vw + 9px, 40px); /* edit to taste */
  line-height: 1.3;
  text-align: center;                  /* center the title */
  margin: 10px 0 0;
}

.trailer-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.trailer-block .trailer-frame{
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trailer-frame video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* use "contain" if you prefer letterboxing */
}

/* =====================================
   BOOK SECTION (The Prophecies)
   ===================================== */


.book-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
  padding-block: 3rem;
}

.book-content {
  align-self: start;
}

.book-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: #e9e9e9;
  margin: 0 0 1rem;
}

.book-content p {
  font-family: "Poppins", sans-serif;
  color: #b9b9b9;
  font-size: 1.15rem;
  line-height: 1.75;
  margin: 0 0 2rem;
}

.book-action {
  display: inline;
  flex-direction: column;
  gap: 0.6rem;
}

.format-label {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
}

.btn-gold {
  display: inline-block;
  background: linear-gradient(180deg, #e24434, #ac3123);
  color: #ffffff;
  margin: 6px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 6px 14px rgba(163, 28, 13, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  width: fit-content;
  
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(226, 68, 52, 0.35);
}
.book-cover-wrap {
  justify-self: end;
}
/* --- Book Cover --- */
.book-cover-wrap img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  display: block;
  margin-inline: auto;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .book-content {
    order: 2;
  }

  .book-cover-wrap {
    order: 1;
  }

  .book-cover-wrap img {
    max-width: 260px;
  }

  .book-action {
    align-items: center;
  }
}

/* was 980px — too high for your screen */
@media (max-width: 820px) {
  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .book-content { order: 2; }
  .book-cover-wrap { order: 1; }
  .book-cover-wrap img { max-width: 260px; }
  .book-action { align-items: center; }
}

/* Center hero on tablet widths */
@media (max-width: 1200px){
  .hero-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-art{ text-align: center; }
  .hero-art img{ margin-inline: auto; }
}

/* Center the book section (image + text) */
@media (max-width: 1200px){
  .book-card{
    grid-template-columns: 1fr;   /* stack */
    justify-items: center;        /* center the grid items */
    text-align: center;           /* center text */
    gap: 2rem;
  }
  .book-content{ order: 2; }
  .book-cover-wrap{ order: 1; justify-self: center; }
  .book-action{ align-items: center; }
}


/* =====================================
   09) ABOUT THE BOOK (SPLIT LAYOUT)
   ===================================== */
.split {
  background:
    radial-gradient(60% 60% at 100% 0, #ff6a3d12 0, transparent 60%),
    var(--bg);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  align-items: center;
  gap: 2rem;
}

.split-media {
  position: relative;
}

.book-cover {
  width: min(480px, 100%);
  border-radius: 18px;
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px #ffffff10 inset;
}

.split-content p {
  color: var(--muted);
}

/* =====================================
   08) ABOUT THE AUTHOR (AUTHOR CARD)
   ===================================== */
.section--alt {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.review-card {
  display: grid;
  grid-template-columns: 520px 1fr;   /* fixed wide photo column */
  align-items: start;
  gap: 2.5rem;
  margin-top: 24px;

  background: transparent;            /* no background */
  box-shadow: none;                    /* no shadow */
  padding: 0;                          /* no inner padding */
  border-radius: 0;                    /* optional */
}

.review-photo {
  align-self: start;
}

.review-photo img {
  width: 90%;
  max-width: 560px;                    /* cap so it doesn’t explode on huge screens */
  display: block;
  object-fit: cover;
}

.review-copy {
  align-self: start;
  max-width: 62ch;
}

.h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.review-copy .h2,
.review-copy h2 {
  margin: 0 0 1.8rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);  /* bigger than before */
  line-height: 1.1;
}

.review-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.book-review {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}



@media (max-width: 980px) {
  .review-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .review-photo img {
    margin-inline: auto;
    max-width: 420px;
  }
  .review-copy {
    margin-inline: auto;
  }
}

/* ===== Justified Gallery ===== */
#gallery { padding: 32px 0 8px; }

.justified {
  --gap: 12px;          /* space between tiles/rows */
  --row-h: 180px;       /* target row height */
  --radius: 16px;
}

/* rows the JS will insert */
.justified-row {
  display: flex;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

/* tile wrapper */
.justified-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0c0c0c;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* image fills tile */
.justified-item > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.justified-item > img.is-loaded {
  opacity: 1;
  transform: none;
}

/* Fallback if JS fails: simple responsive grid */
.no-js .justified {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: var(--gap);
}
.no-js .justified img {
  width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius);
}


/* =====================================
   11) CONTACT
   ===================================== */
.contact {
  background:
    radial-gradient(70% 70% at 80% 20%, #000000 0, #000000f0 40%, #000000 100%),
    url("https://images.unsplash.com/photo-1549880338-65ddcdfd017b?q=80&w=1200&auto=format&fit=crop")
      center / cover no-repeat fixed;
}

.contact .section-title {
  color: #ffffff;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form span {
  font-size: 0.9rem;
  color: #cfcfcf;
}

.contact-form input,
.contact-form textarea {
  background: #111418;
  color: #ffffff;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffffff66;
}

/* =====================================
   12) FOOTER
   ===================================== */
.site-footer {
  background: #0a0a0b;
  color: #bdbdbd;
}

.footer-inner {
  padding: 1.6rem 0;
  text-align: center;
}

/* =====================================
   13) TYPE (GLOBAL H3)
   ===================================== */
h3 {
  display: block;
  font-size: 1.9em;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: bold;
  unicode-bidi: isolate;
}

/* =====================================
   14) RESPONSIVE
   ===================================== */

/* --- <= 980px --- */
@media (max-width: 980px) {
  /* hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-art {
    text-align: center;
  }

  .hero-art img {
    max-width: 300px;
    margin-top: 1.5rem;
  }

  /* author card */
  .author-card {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }

  .author-photo img {
    width: 100%;
  }

  /* split */
  .split-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split-content .btn {
    margin-inline: auto;
  }

  /* cta row */
  .cta-row {
    justify-content: center;
  }
}

/* --- <= 760px --- */
@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: auto 0 0 0;
    background: #0d0d0f;
    padding: 1rem 5vw;
    border-top: 1px solid #ffffff14;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    display: grid;
    gap: 0.6rem;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }
}

/* --- <= 520px --- */
@media (max-width: 520px) {
  .hero {
    min-height: 68vh;
  }

  .hero-content {
    padding: 4.8rem 0 3.2rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Smooth scroll everywhere */
html{ scroll-behavior: smooth; scroll-padding-top: var(--headerH); }
.hero { padding-top: var(--headerH); } /* first section only */

/* Keep anchors visible below the sticky header (adjust 76px to your header height) */
html{ scroll-padding-top: 76px; }   /* desktop */
@media (max-width: 760px){
  html{ scroll-padding-top: 64px; } /* if header is shorter on mobile */
}

/* Or per-section control if needed: */
/* section[id]{ scroll-margin-top: 76px; } */
