/* ============================================
   CS Buffington — Site Styles
   Based on Dani Pettrey template layout
   ============================================ */

:root {
  --color-gold: #c6a145;
  --color-teal: #349d92;
  --color-dark: #1A202C;
  --color-body: #2D3748;
  --color-muted: #4A5568;
  --color-white: #ffffff;
  --color-off-white: #F7FAFC;
  --content-width: 1290px;
  --edge-padding: 1.5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-off-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--color-dark);
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  color: var(--color-teal);
}

/* --- Utility --- */
.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--edge-padding);
  padding-right: var(--edge-padding);
}

.btn-site {
  display: inline-block;
  padding: 0.5rem 2rem;
  background: var(--color-gold);
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-site:hover {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.site-brand a {
  display: inline-block;
}

.site-brand img {
  max-width: 200px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.site-nav ul li a {
  display: block;
  padding: 0.15em 0.6em;
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav ul li a:hover {
  color: var(--color-gold);
}

.site-nav .nav-cta {
  margin-left: 1rem;
}

.mobile-toggle {
  display: none;
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  padding: 0.5em 0.7em;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.nav-close {
  display: none;
}

.nav-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .site-header {
    position: fixed;
    background: var(--color-dark);
    z-index: 100;
  }

  .site-nav {
    display: none;
  }

  .site-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--color-teal);
    padding: 4rem 1.5rem 2rem;
    z-index: 200;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
  }

  .site-nav.nav-open ul {
    flex-direction: column;
    pointer-events: auto;
  }

  .site-nav.nav-open ul li {
    pointer-events: auto;
  }

  .site-nav.nav-open ul li a {
    padding: 1em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-off-white);
    pointer-events: auto;
    cursor: pointer;
    display: block;
    width: 100%;
  }

  .site-nav.nav-open .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    display: block;
    padding: 0.2em;
  }

  .nav-overlay.active {
    display: none !important;
  }
}

/* ============================================
   HERO SECTION (Video)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 1rem;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 0.25em;
  line-height: 1;
}

.hero-content h3 {
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.5em;
}

.hero-audio {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(420px, 90vw);
}

.hero-audio audio {
  width: 100%;
  opacity: 0.85;
}

.hero-audio-toggle {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-audio-toggle.hidden {
  display: none;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.1rem;
  }
}

/* ============================================
   LATEST RELEASE / BOOK FEATURE
   ============================================ */
.book-feature {
  padding: 5rem var(--edge-padding);
  background-color: #d2b48c;
}

.book-feature-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 0 var(--edge-padding);
}

.book-feature-text {
  flex: 1;
}

.book-feature-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0;
}

.book-feature-title {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.book-feature-tagline {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.book-feature-quote {
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 1.5rem;
}

.book-feature-image {
  flex: 0 0 auto;
}

.book-feature-image img {
  max-width: 350px;
  width: 100%;
  height: auto;
  transition: transform 0.2s;
}

.book-cover {
  border-radius: 12px;
  overflow: hidden;
}

.book-feature-image img:hover {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .book-feature-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .book-feature-image {
    order: -1;
  }

  .book-feature-image img {
    max-width: 280px;
  }
}

/* ============================================
   ABOUT SECTION (BG image + gradient overlay)
   ============================================ */
.about-section {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 500px;
}

.about-section .section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(81deg, rgba(255, 255, 255, 0) 49%, var(--color-white) 100%);
  z-index: 1;
}

.about-section .about-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 5rem var(--edge-padding);
}

.about-section .about-portrait {
  display: none;
}

.about-section .about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 1 / 1;
}

.about-section .about-text {
  flex: 0 0 50%;
  padding: 2rem 0 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
}

.about-section .about-text h2 {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.about-section .about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-section {
    background-image: none !important;
    background-color: #d2b48c;
  }

  .about-section .section-overlay {
    display: none;
  }

  .about-section .about-inner {
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
  }

  .about-section .about-portrait {
    display: block;
    width: 100%;
  }

  .about-section .about-portrait img {
    object-position: left center;
  }

  .about-section .about-text {
    flex: none;
    width: 100%;
    padding: 2rem var(--edge-padding);
    text-align: center;
  }
}

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.reviews-section {
  padding: 5rem var(--edge-padding);
  background-color: #d2b48c;
}

.reviews-section .site-container {
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-slide {
  flex: 0 0 50%;
  padding: 0 1rem;
}

.testimonial-card {
  background: rgba(52, 157, 146, 0.3);
  padding: 2rem;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
}

.testimonial-card .testimonial-name {
  font-weight: 600;
  color: var(--color-dark);
}

.testimonial-arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-arrows button {
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.testimonial-arrows button:hover {
  background: var(--color-teal);
}

@media (max-width: 768px) {
  .testimonial-slide {
    flex: 0 0 100%;
  }
}

/* ============================================
   SERIES SECTIONS (BG image + gradient + book)
   ============================================ */
.series-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 500px;
}

.series-section .section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 61%, rgb(0, 0, 0) 99%);
  z-index: 1;
}

.series-section .series-inner {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 5rem var(--edge-padding);
  gap: 2rem;
}

.series-section .series-text {
  flex: 1;
  color: var(--color-white);
}

.series-section .series-text h2 {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.series-section .series-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.series-section .series-book {
  flex: 0 0 auto;
}

.series-section .series-book img {
  max-width: 300px;
  width: 100%;
  transition: transform 0.2s;
}

.series-section .series-book img:hover {
  transform: scale(1.04);
}

.series-light .series-text {
  color: var(--color-dark);
}

.series-light .series-text h2 {
  color: var(--color-dark);
}

.series-light .series-text p {
  color: var(--color-body);
}

@media (max-width: 768px) {
  .series-section .series-inner {
    flex-direction: column;
    text-align: center;
  }

  .series-section .series-book {
    order: -1;
  }

  .series-section .series-book img {
    max-width: 220px;
  }
}

/* ============================================
   SPEAKING SECTION
   ============================================ */
.speaking-section {
  position: relative;
  background-size: cover;
  background-position: 18% 46%;
  background-repeat: no-repeat;
  min-height: 500px;
}

.speaking-section .speaking-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  padding: 5rem var(--edge-padding);
}

.speaking-section .speaking-spacer {
  flex: 1;
}

.speaking-section .speaking-text {
  flex: 1;
  color: var(--color-white);
}

.speaking-section .speaking-text h2 {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.speaking-section .speaking-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .speaking-section .speaking-inner {
    flex-direction: column;
  }

  .speaking-section .speaking-spacer {
    display: none;
  }

  .speaking-section .speaking-text {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
  }
}

/* ============================================
   FOLLOW ME / SOCIAL
   ============================================ */
.social-section {
  padding: 5rem var(--edge-padding);
  background: var(--color-teal);
  text-align: center;
}

.social-section h2 {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--color-gold);
}

.social-icons a svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   NEWSLETTER / SIGN UP
   ============================================ */
.signup-section {
  position: relative;
  background-size: cover;
  background-position: 2% 57%;
  background-repeat: no-repeat;
}

.signup-section .section-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.7;
  z-index: 1;
}

.signup-section .signup-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 8rem var(--edge-padding);
  gap: 3rem;
}

.signup-section .signup-text {
  flex: 0 0 40%;
  color: var(--color-white);
  text-align: center;
}

.signup-section .signup-text h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.signup-section .signup-text h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.4;
}

.signup-section .signup-form {
  flex: 1;
}

.signup-section .signup-form form {
  display: flex;
  gap: 0;
}

.signup-section .signup-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.signup-section .signup-form button {
  padding: 0.85rem 2rem;
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.signup-section .signup-form button:hover {
  background: var(--color-teal);
}

@media (max-width: 768px) {
  .signup-section .signup-inner {
    flex-direction: column;
    text-align: center;
  }

  .signup-section .signup-text {
    flex: none;
    width: 100%;
  }

  .signup-section .signup-form form {
    flex-direction: column;
  }

  .signup-section .signup-form button {
    width: 100%;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-teal);
  color: var(--color-white);
}

.footer-logo {
  text-align: center;
  padding: 1.5rem var(--edge-padding) 0.5rem;
}

.footer-logo img {
  max-width: 200px;
  margin: 0 auto;
}

.footer-nav {
  text-align: center;
  padding: 0.5rem var(--edge-padding);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav ul li a {
  display: block;
  padding: 0.5em 0.6em;
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav ul li a:hover {
  color: var(--color-gold);
}

.footer-social {
  text-align: center;
  padding: 0.5rem var(--edge-padding);
}

.footer-social .social-icons a {
  border: 2px solid var(--color-white);
  border-radius: 3px;
  width: 36px;
  height: 36px;
}

.footer-social .social-icons a svg {
  width: 20px;
  height: 20px;
}

.footer-social .social-icons a:hover {
  border-color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  padding: 0.75rem var(--edge-padding);
  border-top: 1px solid var(--color-white);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--color-dark);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background 0.2s;
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

.about-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
}

.about-page {
  padding: 5rem var(--edge-padding);
  background-color: #d2b48c;
}

.about-page-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.about-page-portrait {
  flex: 0 0 350px;
}

.about-page-portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-page-text {
  flex: 1;
}

.about-page-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-hero-content h1 {
    font-size: 2.5rem;
  }

  .about-page-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-page-portrait {
    flex: none;
    max-width: 280px;
  }
}

/* ============================================
   FADE-IN ANIMATIONS (JS-driven)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   PARALLAX (jarallax)
   ============================================ */
.parallax-bg {
  position: relative;
  z-index: 0;
}
