/* ============================================
   THE REAL CIO — Mark Schwartz Website
   Style Sheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:     #0d1b2a;
  --navy-mid: #1a2f45;
  --navy-lt:  #243b55;
  --gold:     #c9933a;
  --gold-lt:  #e0ad5a;
  --cream:    #f9f5ef;
  --cream-dk: #f0ead9;
  --text:     #1a1a2e;
  --text-mid: #3d3d56;
  --text-lt:  #6b6b80;
  --white:    #ffffff;
  --radius:   6px;
  --shadow:   0 4px 24px rgba(13,27,42,0.12);
  --shadow-lg:0 12px 48px rgba(13,27,42,0.18);
  --font-body:   'Inter', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --max-w:    1180px;
  --nav-h:    68px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Utility --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
  line-height: 1.7;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--navy);
}

p {
  margin-bottom: 1rem;
  color: var(--text-mid);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,147,58,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-nav {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.btn-nav:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,27,42,0.0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  margin-right: auto;
}

.nav-inner nav {
  display: flex;
  gap: 2rem;
}

.nav-inner nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-inner nav a:hover { color: var(--gold-lt); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.mobile-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold-lt); }
.mobile-cta { margin-top: 1rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0d1b2a 0%, #1a2f45 40%, #243b55 70%, #0d1b2a 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(201,147,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(201,147,58,0.06) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,147,58,0.4);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--gold-lt);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 100px;
  animation: scroll-dot 2s infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ============================================
   BOOK FEATURE
   ============================================ */
.book-feature {
  padding: 7rem 0;
  background: var(--white);
}

.book-feature-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 6rem;
  align-items: start;
}

/* Book cover image */
.book-cover-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.book-cover-shadow {
  filter: drop-shadow(-6px 14px 36px rgba(13,27,42,0.35));
}

.book-cover-img {
  display: block;
  width: 100%;
  max-width: 320px;
  border-radius: 4px;
  border: 1px solid rgba(13,27,42,0.08);
}

/* Book content */
.book-feature-content h2 {
  color: var(--navy);
}

.book-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   PULL QUOTES — CAROUSEL
   ============================================ */
.pull-quotes {
  background: var(--navy);
  padding: 4rem 0 3rem;
  position: relative;
}

.pq-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

.pq-carousel {
  flex: 1;
  overflow: hidden;
}

.pq-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pq-slide {
  flex: 0 0 100%;
  padding: 2.5rem 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pq-mark {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 0.5;
}

.pq-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 1.25rem !important;
}

.pq-attr {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

/* Arrow buttons */
.pq-arrow {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin: 0 0.5rem;
}
.pq-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,147,58,0.08);
}

/* Dot indicators */
.pq-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
}

.pq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.pq-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}
.pq-dot:hover { background: rgba(201,147,58,0.5); }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-frame {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-content h2 {
  color: var(--navy);
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.about-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  transition: all 0.2s;
}
.about-link:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================
   ALL BOOKS
   ============================================ */
.all-books {
  padding: 7rem 0;
  background: var(--white);
  text-align: center;
}

.all-books .eyebrow { text-align: center; }
.all-books h2 { text-align: center; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}

.book-card {
  background: var(--white);
  border: 1px solid rgba(13,27,42,0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.book-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.book-card-cover {
  display: block;
  padding: 0;
  overflow: hidden;
}

.book-card--featured .book-card-cover {
  height: auto;
}

.book-card-cover--rcio  { background: var(--cream); }
.book-card-cover-img {
  width: 100%;
  height: auto;
  display: block;
}
.book-card--featured .book-card-cover-img {
  width: 100%;
  height: auto;
  display: block;
}
.book-card-cover--ae    { background: #f5f5f0; }
.book-card-cover--dab   { background: #f5f5f0; }
.book-card-cover--wapi  { background: #f5f5f0; }
.book-card-cover--satt  { background: #f5f5f0; }
.book-card-cover--aobv  { background: #f5f5f0; }

.book-card-body {
  padding: 1.5rem;
}

.book-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

.book-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.book-card-body p {
  font-size: 0.88rem;
  color: var(--text-lt);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.book-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s;
}
.book-card-link:hover { color: var(--navy); }

/* ============================================
   SPEAKING
   ============================================ */
.speaking {
  padding: 7rem 0;
  background: var(--navy);
}

.speaking-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
}

.speaking .eyebrow { color: var(--gold); }

.speaking h2 { color: var(--white); }

.speaking .lead { color: rgba(255,255,255,0.75); }

.speaking p { color: rgba(255,255,255,0.65); }

.speaking-topics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
}

.st-item {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.2s;
}
.st-item:hover { background: rgba(255,255,255,0.08); }

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.awards-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.awards-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.45rem;
  top: 0.45rem;
  color: var(--gold);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 7rem 0;
  background: var(--cream);
}

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 { color: var(--navy); }

.contact p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
  transition: all 0.2s ease;
  min-width: 140px;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.contact-card-icon {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
}

.contact-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  margin-right: auto;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-lt); }

.footer-copy {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
  margin-top: 0.5rem;
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .book-feature-grid {
    grid-template-columns: 260px 1fr;
    gap: 4rem;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .nav-inner nav,
  .btn-nav { display: none; }
  .nav-toggle { display: block; }

  .book-feature-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .book-cover-wrap { position: static; display: flex; justify-content: center; }
  .book-cover-placeholder { height: 360px; max-width: 280px; }

  .pq-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-frame { position: static; }
  .about-photo-placeholder { width: 200px; height: 220px; font-size: 2.5rem; }

  .books-grid { grid-template-columns: 1fr; }
  .book-card--featured { grid-column: span 1; display: block; }


  .speaking-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-nav { display: none; }
}

@media (max-width: 540px) {
  .hero-title { letter-spacing: -0.01em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
  .contact-links { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 240px; }
}
