/* ==========================================================================
   Just A Girl From Cleveland - Main Stylesheet
   Replaces all Elementor CSS. Uses custom properties + BEM naming.
   ========================================================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --- Custom Properties --- */
:root {
  /* Colors (hex fallback, oklch primary) */
  --color-primary: #DD1400;
  --color-primary: oklch(0.53 0.22 29);
  --color-accent: #8D180C;
  --color-accent: oklch(0.40 0.16 25);
  --color-text: #222222;
  --color-text: oklch(0.23 0 0);
  --color-text-secondary: #54595F;
  --color-text-secondary: oklch(0.47 0.01 250);
  --color-bg-light: #F2F2F2;
  --color-bg-light: oklch(0.96 0 0);
  --color-white: #FFFFFF;
  --color-white: oklch(1 0 0);
  --color-dark: #222222;
  --color-dark: oklch(0.23 0 0);

  /* Typography */
  --font-heading: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-body: 1.4;
  --ls-heading: 1px;

  --fs-body: 1.125rem;
  --fs-h1: clamp(2rem, 4vw + 0.5rem, 2.6rem);
  --fs-h2: clamp(1.9rem, 3.5vw + 0.5rem, 2.5rem);
  --fs-h3: clamp(1.6rem, 3vw + 0.4rem, 2rem);
  --fs-h4: clamp(1.4rem, 2.5vw + 0.4rem, 1.8rem);
  --fs-h5: clamp(1.3rem, 2vw + 0.4rem, 1.6rem);
  --fs-small: 0.875rem;

  /* Layout */
  --container-max: 1140px;
  --container-padding: 1.5rem;

  /* Misc */
  --shadow-header: 3px 3px 3px rgba(0, 0, 0, 0.15);
  --radius: 4px;
  --transition: 300ms ease;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

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

p:last-child {
  margin-bottom: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 9999;
  font-weight: var(--fw-bold);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--container-padding);
}

.site-header__logo {
  display: block;
  margin-bottom: 0.75rem;
}

.site-header__logo img {
  height: auto;
  width: 100%;
  max-width: 500px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  width: 100%;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
  color: var(--color-text);
  padding: 0.75rem 0;
  transition: color var(--transition);
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--color-primary);
}

/* Hamburger toggle */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
}

.site-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state lines */
.site-nav--open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav--open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav--open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: var(--fs-small);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 1rem var(--container-padding);
  text-align: center;
}

.site-footer__text {
  color: var(--color-white);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 3rem var(--container-padding);
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero h2 {
  color: var(--color-white);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SPLIT (Two-column: text + media)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split__text h2 {
  margin-bottom: 1.25rem;
}

.split__media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.split__media img,
.split__media video {
  width: 100%;
}

/* ==========================================================================
   VIDEO (Responsive 16:9 embed)
   ========================================================================== */
.video__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.video__wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play button overlay */
.video__wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition);
}

.video__wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 36px;
  border-color: transparent transparent transparent var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition);
}

.video__wrapper:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.video__wrapper:hover::after {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Hide overlays once iframe is loaded */
.video__wrapper--playing::before,
.video__wrapper--playing::after {
  display: none;
}

.video__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SIGNUP (CTA section)
   ========================================================================== */
.signup {
  background-color: var(--color-bg-light);
  padding: 3rem 0;
  text-align: center;
}

.signup__heading {
  margin-bottom: 0.5rem;
}

.signup__subheading {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.signup__form {
  max-width: 420px;
  margin-inline: auto;
  text-align: left;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form {
  width: 100%;
  max-width: 640px;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  background-color: var(--color-white);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(221, 20, 0, 0.12);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__label--required::after {
  content: " *";
  color: var(--color-primary);
}

.form__button {
  display: block;
  width: 100%;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition);
}

.form__button:hover {
  background-color: var(--color-dark);
}

.form__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contact form: side-by-side fields */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery__subtitle {
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.gallery__item:hover::after {
  background: rgba(0, 0, 0, 0.5);
}

.gallery__item:hover .gallery__image {
  transform: scale(1.05);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__image {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-white);
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox__prev {
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
}

/* ==========================================================================
   CHAPTER LIST (Book Excerpts)
   ========================================================================== */
.chapter-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.chapter-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition);
}

.chapter-list__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chapter-list__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  -webkit-mask: url('../images/lips.svg') no-repeat center / contain;
  mask: url('../images/lips.svg') no-repeat center / contain;
}

.chapter-list__text h3,
.chapter-list__text h4 {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in--visible {
  animation: fadeIn 0.6s ease forwards;
}

/* ==========================================================================
   RESPONSIVE - Tablet (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .site-nav--open .site-nav__list {
    max-height: 400px;
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav {
    border-bottom: none;
  }

  .site-nav__link {
    display: block;
    padding: 1rem var(--container-padding);
    border-bottom: 1px solid var(--color-bg-light);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE - Mobile (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --container-padding: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero {
    min-height: 220px;
    padding: 2rem var(--container-padding);
  }

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

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

  .lightbox__prev {
    left: 0.75rem;
  }

  .lightbox__next {
    right: 0.75rem;
  }

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lightbox__image {
    max-width: 95vw;
    max-height: 80vh;
  }
}
