/* ─────────────────────────────────────────
   NOLAN CUBERO — Faithful recreation of nolancubero.com
   Colors, fonts, and layout extracted from original Wix HTML source
   ───────────────────────────────────────── */

:root {
  /* Exact colors from Wix source */
  --logo-color:       rgb(127, 149, 184);  /* #7F95B8 — main header logo */
  --nav-color:        #323232;             /* main nav links */
  --text:             #434343;             /* body text */
  --title-black:      #000000;             /* SHADOW DRIVE */
  --sec-nav-bg:       rgb(67, 67, 67);     /* secondary nav background */
  --sec-nav-logo:     #F7F5E1;             /* secondary nav NOLAN CUBERO */
  --sec-nav-link:     #F7EFE1;             /* secondary nav links */
  --peach-bg:         rgb(246, 235, 228);  /* About section */
  --white:            #ffffff;
  --sans:             'Source Sans 3', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --site-width:       980px;
  --header-h:         0px;
  --sec-nav-h:        44px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--sec-nav-h) + 8px); }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

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

/* ─────────────────────────────────────────
   MAIN HEADER — white, fixed
   ───────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  height: var(--header-h);
}
.header-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--sans);
  font-size: 1.6rem;     /* matches ~39px in Wix with scaling */
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--logo-color);
  line-height: 1;
}
.logo:hover { opacity: 0.8; }
.main-nav {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-family: var(--sans);
  font-size: 1rem;       /* 16px, matches Wix */
  font-weight: 400;
  letter-spacing: 0em;
  color: var(--nav-color);
  line-height: 1;
  transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 0.6; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--nav-color);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────
   SECONDARY NAV — dark, sticky
   ───────────────────────────────────────── */
#secondary-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 199;
  background: var(--sec-nav-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  height: var(--sec-nav-h);
}
.secondary-nav-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.secondary-logo {
  font-family: var(--sans);
  font-size: 1.2rem;     /* ~30px in Wix */
  font-weight: 700;
  color: var(--sec-nav-logo);
  letter-spacing: 0.02em;
  line-height: 1;
}
.secondary-logo:hover { opacity: 0.8; }
.secondary-links {
  display: flex;
  gap: 1.75rem;
}
.secondary-links a {
  font-family: var(--sans);
  font-size: 0.9375rem;  /* 15px */
  font-weight: 600;
  color: var(--sec-nav-link);
  letter-spacing: 0em;
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s;
}
.secondary-links a:hover { opacity: 0.7; }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 24px;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  transform: translateY(-110%);
  transition: transform 0.28s ease;
  z-index: 198;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-link {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
  color: var(--nav-color);
}
.mobile-link:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .main-nav { display: none; }
  .secondary-links { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--sec-nav-h));
  overflow: hidden;
  min-height: calc(100vh - var(--header-h) - var(--sec-nav-h));
}

/* Background image at 68% opacity (exact from Wix source) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://static.wixstatic.com/media/e33c12_ab9498ab2f8a443b883be58f122b6447~mv2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.68;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

/* Book cover: LEFT column — original positions it at x:-41 to x:449 in a 980px grid */
.hero-book {
  flex: 0 0 449px;
  padding: 19px 0;
}
.hero-book img {
  width: 490px;   /* slightly wider than flex basis = matches the bleed in original */
  height: 642px;
  object-fit: cover;
  display: block;
}

/* Text: RIGHT column — original starts at x:449, 537px wide */
.hero-content {
  flex: 1;
  padding: 30px 20px 30px 0;
  min-width: 0;
}

.out-now {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 0;
}
.from-publisher {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.book-title {
  font-family: var(--sans);
  font-size: 4.5rem;     /* 72px in Wix */
  font-weight: 900;
  line-height: 1em;
  letter-spacing: 0em;
  color: var(--title-black);
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.tagline {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.add-it-on-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.add-it-on-label {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--title-black);
  letter-spacing: 0em;
  white-space: nowrap;
}

.order-label {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--title-black);
  text-align: center;
  margin-bottom: 0.6rem;
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 7px;
  margin: 0 auto 1rem;
  width: fit-content;
}
.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  padding: 8px 16px;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.logo-link:hover { opacity: 0.85; box-shadow: 0 2px 8px rgba(0,0,0,0.14); }
.logo-link img {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.goodreads-link {
  height: 40px;
  padding: 6px 14px;
  border-radius: 8px;
}
.text-logo-link {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}

@media (max-width: 820px) {
  .hero-inner { flex-direction: column; }
  .hero-book { flex: none; width: 100%; padding: 24px; display: flex; justify-content: center; }
  .hero-book img { width: auto; max-width: 280px; height: auto; }
  .hero-content { padding: 0 24px 40px; }
  .book-title { font-size: 3rem; }
  .buy-grid { justify-content: center; }
  .add-it-on-row { justify-content: center; }
  .order-label { text-align: center; }
}

/* ─────────────────────────────────────────
   CONTENT SECTIONS
   ───────────────────────────────────────── */
.content-section {
  padding: 40px 0;
}
.bg-white { background: var(--white); }

/* About section: warm peach rgb(246,235,228) from Wix source */
.bg-peach { background: rgb(246, 235, 228); }

.about-section {
  padding: 50px 0;
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.about-photo {
  flex: 0 0 46%;
  width: 46%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.about-text {
  flex: 1;
}
@media (max-width: 820px) {
  .about-inner { flex-direction: column; gap: 2rem; }
  .about-photo { width: 100%; max-width: 400px; margin: 0 auto; }
}

/* Films section */
.films-hr {
  border: none;
  border-top: 1px solid #d8d8d8;
  margin: 1rem 0 3rem;
}
.films-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: center;
}
.ellis-heading {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
@media (max-width: 820px) {
  .films-grid { grid-template-columns: 1fr; }
}

.section-heading {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.body-text p {
  font-family: var(--sans);
  font-size: 0.9375rem;  /* 15px */
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}
.body-text p:last-child { margin-bottom: 0; }
.body-text em { font-style: italic; }
.body-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text);
}
.body-text a:hover { opacity: 0.6; }

/* Description two-column layout */
.desc-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 0 3rem;
  align-items: start;
}
.desc-book-img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 820px) {
  .desc-grid { grid-template-columns: 1fr; }
  .desc-right { margin-top: 2rem; }
  .desc-book-img { max-width: 320px; margin: 0 auto; }
}

/* Praise */
.praise-list { }
.praise-item {
  margin-bottom: 1rem;
}
.praise-item p {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0;
}
.praise-item em { font-style: italic; }

/* Ellis video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ─────────────────────────────────────────
   CONTACT SECTION — photo background
   ───────────────────────────────────────── */
.contact-section {
  position: relative;
  padding: 50px 0;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://static.wixstatic.com/media/e33c12_ab9498ab2f8a443b883be58f122b6447~mv2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.62;
  z-index: 0;
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}
.contact-col { }
.contact-heading {
  color: var(--text);
}
.contact-sublabel {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.contact-text {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
}
.contact-text a { text-decoration: underline; color: var(--text); }

.social-col { margin-left: auto; }
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-icons a {
  color: var(--text);
  transition: opacity 0.2s;
}
.social-icons a:hover { opacity: 0.6; }
