/* ===== DESIGN TOKENS ===== */
:root {
  --color-primary:   #000000;
  --color-secondary: #AF0C15;
  --color-text:      #545454;
  --color-white:     #FFFFFF;
  --color-gray:      #B4B4B4;
  --color-border:    rgba(58, 44, 57, 0.21);

  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Open Sans', sans-serif;
  --font-special: 'Waiting for the Sunrise', cursive;

  --container-width:  1140px;
  --section-padding:  80px;
  --header-height:    80px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== BASE TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.1;
}
h1 { font-size: 78px; font-weight: 900; }
h2 { font-size: 40px; font-weight: 600; }
h3 { font-size: 30px; font-weight: 600; }
h4 { font-size: 26px; font-weight: 600; }
p  { line-height: 1.7; color: var(--color-text); }

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--section-padding) 0;
}
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 20px 30px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-radius: 3px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn-dark {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
  height: var(--header-height);
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.67);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}
.site-logo img { height: 56px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-secondary); }

.book-btn { margin-left: auto; font-size: 13px; padding: 12px 22px; }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}
/* Open state */
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  padding: 60px 0 40px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo img { height: 56px; width: auto; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-secondary); }

.social-icons {
  display: flex;
  gap: 16px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-icons a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('https://jordangreenellis.com/wp-content/uploads/2022/11/IMG_7268_2.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 100px;
}
.hero-content { max-width: 560px; }

.hero-subtitle {
  font-family: var(--font-special);
  font-size: 28px;
  text-transform: none;
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 12px;
}
.hero-title {
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.05;
}
.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-video-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.video-popup-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: none;
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 0 0 0 rgba(175,12,21,0.7);
  animation: pulse 2s infinite;
}
.video-popup-btn:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(175,12,21,0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(175,12,21,0); }
  100% { box-shadow: 0 0 0 0   rgba(175,12,21,0); }
}
@media (prefers-reduced-motion: reduce) {
  .video-popup-btn { animation: none; }
}
.watch-link {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.watch-link:hover { color: var(--color-secondary); }

/* Shape divider */
.shape-divider {
  position: absolute;
  left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}
.shape-divider-bottom { bottom: -1px; }
.shape-divider-top    { top: -1px; transform: rotate(180deg); }
.shape-divider svg    { display: block; width: 100%; height: 60px; }
.shape-fill           { fill: var(--color-white); }
.shape-fill-black     { fill: var(--color-primary); }

/* ===== TRUSTED BY ===== */
.trusted-by {
  background: var(--color-primary);
  padding: 48px 0;
}
.section-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 28px;
}
.trusted-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}
.trusted-swiper .swiper-slide img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.trusted-swiper .swiper-slide img:hover { opacity: 1; }

/* ===== ABOUT HOME ===== */
.about-home {
  background: var(--color-primary);
  color: var(--color-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-col img {
  width: 100%;
  border-radius: 4px;
}
.about-content-col p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.about-content-col strong { color: var(--color-white); font-weight: 600; }
.about-content-col .btn { margin-top: 24px; }

.about-quote {
  font-size: 22px;
  color: var(--color-white);
  font-weight: 600;
  line-height: 1.4;
  margin: 16px 0 8px;
  text-transform: none;
}
.about-attribution {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.divider-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 16px 0;
}

/* ===== SPEAKING TOPICS ===== */
.speaking-topics { background: var(--color-white); padding-top: 67px; padding-bottom: 25px; }
.speaking-heading {
  color: var(--color-secondary);
  margin-bottom: 48px;
  line-height: 1.25;
}
.topics-grid {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}
.topics-grid-3 { grid-template-columns: repeat(3, 1fr); }
.topics-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}
.topic-card {
  display: block;
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--color-border);
  transition: background 0.2s, color 0.2s;
  color: inherit;
}
.topic-card:hover { background: var(--color-primary); }
.topic-card:hover .topic-icon,
.topic-card:hover h4,
.topic-card:hover p { color: var(--color-white); }
.topic-icon {
  font-size: 32px;
  color: var(--color-secondary);
  margin-bottom: 16px;
  transition: color 0.2s;
}
.topic-card h4 {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 18px;
  transition: color 0.2s;
}
.topic-card p {
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  position: relative;
  background-image: url('https://jordangreenellis.com/wp-content/uploads/2022/11/IMG_3939edit.png');
  background-size: cover;
  background-position: 50% 50%;
  padding: 120px 0;
  overflow: hidden;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.video-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-popup-btn--large {
  width: 80px; height: 80px;
  font-size: 28px;
}

/* VIDEO DIALOG */
.video-dialog {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  width: 860px;
}
.video-dialog::backdrop { background: rgba(0,0,0,0.85); }
.video-dialog-close {
  position: absolute;
  top: -36px; right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.video-dialog-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--color-white); padding: 72px 0 75px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.testimonial-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px;
}
.testimonial-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
}
.testimonial-meta span {
  font-size: 12px;
  color: var(--color-text);
}

/* ===== BOOK SECTION ===== */
.book-section { background: var(--color-white); }
.book-title {
  color: var(--color-secondary);
  margin-bottom: 48px;
  line-height: 1.25;
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 0;
}
.book-text p { margin-bottom: 16px; }
.book-quote {
  border-left: 3px solid var(--color-secondary);
  padding-left: 16px;
  margin: 20px 0;
  font-style: italic;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
}
.book-image img { border-radius: 4px; }

/* ===== STATS ===== */
.stats-section { background: var(--color-white); padding-top: 48px; }
.stats-heading {
  color: var(--color-secondary);
  margin-bottom: 48px;
  line-height: 1.25;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}
.stat-suffix {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-secondary);
}
.stats-section .btn-outline { color: var(--color-secondary); }
.stats-section .btn-outline:hover { color: var(--color-white); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--color-primary);
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
}
.page-hero-title {
  color: var(--color-white);
  font-size: 56px;
}

/* ===== ABOUT BIO (about page) ===== */
.about-bio { background: var(--color-white); }
.about-bio .about-content-col p { color: var(--color-text); margin-bottom: 16px; }
.about-bio .about-content-col strong { color: var(--color-primary); font-weight: 600; }

/* ===== SINGLE TESTIMONIAL ===== */
.about-testimonial { background: var(--color-white); padding: 40px 0; }
.single-testimonial { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-quote-large {
  font-size: 20px;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.testimonial-attr {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
}

/* ===== SPEAKING PAGE ===== */
.page-hero-intro {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  max-width: 640px;
  margin-top: 16px;
}
.speaking-group { background: var(--color-white); }
.speaking-group-alt { background: #f9f9f9; }
.group-heading {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 12px;
  margin-bottom: 40px;
}
.speaking-topic {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.speaking-topic:last-of-type { border-bottom: none; }
.speaking-topic-icon {
  font-size: 36px;
  color: var(--color-secondary);
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  padding-top: 4px;
}
.speaking-topic-body { flex: 1; }
.speaking-topic-body h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-transform: none;
  font-weight: 600;
}
.topic-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
.outcomes-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}
.outcomes-list li {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 4px;
}
.topic-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.topic-ctas .btn { padding: 12px 20px; font-size: 12px; }
.speaking-group .btn-outline,
.speaking-group-alt .btn-outline { color: var(--color-secondary); }
.speaking-group .btn-outline:hover,
.speaking-group-alt .btn-outline:hover { color: var(--color-white); }
.inline-quote {
  border-left: 3px solid var(--color-secondary);
  padding-left: 14px;
  font-style: italic;
  color: var(--color-text);
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: var(--color-white);
}
.contact-wrapper { max-width: 680px; }
.contact-heading {
  color: var(--color-secondary);
  margin-bottom: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #19191a;
}
.required { color: var(--color-secondary); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-secondary); }
.form-group textarea { resize: vertical; }
.form-submit { align-self: flex-start; margin-top: 8px; }

.contact-divider {
  height: 1px;
  background: var(--color-border);
  margin: 32px 0;
}
.contact-alternatives { display: flex; gap: 16px; flex-wrap: wrap; }
.connect-heading {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 20px;
}
.contact-social { justify-content: flex-start; }
.contact-social a {
  border-color: var(--color-border);
  color: var(--color-primary);
}
.contact-social a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}
.contact-section .btn-outline { color: var(--color-secondary); }
.contact-section .btn-outline:hover { color: var(--color-white); }

/* ===== CAPS & GOWNS PAGE ===== */
.cgu-section {
  padding-top: calc(var(--header-height) + 60px);
  background: var(--color-white);
}
.cgu-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cgu-title {
  color: var(--color-secondary);
  font-size: 48px;
  margin-bottom: 8px;
}
.cgu-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.cgu-content p { margin-bottom: 16px; }
.cgu-btn { margin-top: 12px; }
.cgu-image img { border-radius: 4px; }

/* =====================
   RESPONSIVE — TABLET (≤1024px)
   ===================== */
@media (max-width: 1024px) {
  h1 { font-size: 56px; }

  .book-btn { display: none; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    padding: 20px;
  }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
  }

  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-col { order: 2; }
  .about-content-col { order: 1; }

  .book-grid { grid-template-columns: 1fr; }
  .cgu-wrapper { grid-template-columns: 1fr; }

  .topics-grid-3 { grid-template-columns: 1fr 1fr; }
  .topics-grid-2 { grid-template-columns: 1fr 1fr; max-width: 100%; }

  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* =====================
   RESPONSIVE — MOBILE (≤767px)
   ===================== */
@media (max-width: 767px) {
  :root { --section-padding: 48px; }

  h1 { font-size: 41px; }
  h2 { font-size: 25px; }
  h3 { font-size: 22px; }
  h4 { font-size: 19px; }

  .hero {
    background-image: url('https://jordangreenellis.com/wp-content/uploads/2022/11/Mobile_background.png');
  }
  .hero-title { font-size: 41px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .topics-grid-3 { grid-template-columns: 1fr; }
  .topics-grid-2 { grid-template-columns: 1fr; }

  .speaking-topic { flex-direction: column; gap: 12px; }
  .speaking-topic-icon { width: auto; text-align: left; }

  .topic-ctas { flex-direction: column; }
  .topic-ctas .btn { width: 100%; text-align: center; }

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

  .book-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  .contact-alternatives { flex-direction: column; }
  .contact-alternatives .btn { text-align: center; }

  .cgu-wrapper { grid-template-columns: 1fr; }

  .page-hero-title { font-size: 36px; }

  .footer-nav ul { flex-direction: column; align-items: center; gap: 8px; }

  .video-dialog { width: 95vw; }
}

/* Mobile nav always has bg regardless of scroll state */
@media (max-width: 1024px) {
  body.nav-open .site-header {
    background: rgba(0,0,0,0.95);
  }
}
