/* =========================================
   CreativeLaunch - Main Stylesheet
   ========================================= */

/* --- Design Tokens: Color Schema --- */
:root {
  /* Base: white + light grays for backgrounds/section separation */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-200-80: rgba(229, 231, 235, 0.8);

  /* Text: dark gray headings, medium gray body, lighter secondary */
  --text-heading: #1f2937;
  --text-body: #4b5563;
  --text-muted: #6b7280;

  /* Dark surfaces: CTA sections, dark buttons */
  --surface-dark: #0f172a;   /* slate-900 */
  --surface-dark-alt: #111827; /* gray-900 */

  /* Accent colors (use sparingly) */
  --accent-blue: #3b82f6;    /* active nav, tags, links, chart bars */
  --accent-green: #22c55e;   /* Book CTA, checkmarks, completion */
  --accent-yellow: #facc15;  /* call-to-action buttons */
  --accent-cyan: #06b6d4;    /* progress bars */
  --accent-red: #ef4444;     /* live pulse indicators */

  /* Legacy (darker hero/button styles on some pages) */
  --legacy-hero-bg: #3C5671;       /* homepage hero */
  --legacy-methodology-hero: #1e3a5f; /* methodology hero */
  --legacy-book-bg: #1a1a1a;      /* book page background */
  --legacy-tan: #d4a574;          /* methodology "Learn More" button */
  --legacy-beige: #D1BFAE;        /* footer watermark, slider arrows (legacy) */

  /* Shadows (neutral) */
  --shadow-card: 0 2px 5px 0 rgba(0, 0, 0, 0.07);
  --shadow-btn-yellow: rgba(250, 204, 21, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-gray-50);
  color: var(--text-body);
  font-family: 'Neuemontreal', 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

ul, ol {
  padding-left: 1em;
}

li:not(:last-child) {
  margin-bottom: 0.75em;
}

p:not(:last-child) {
  margin-bottom: 0.8em;
}

strong, b {
  font-weight: 600;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Financierdisplay', Georgia, 'Times New Roman', serif;
  line-height: 1.1;
  margin: 0.25em 0 0.5em;
}

h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

h1:last-child, h2:last-child, h3:last-child,
h4:last-child, h5:last-child, h6:last-child {
  margin-bottom: 0;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 32px; }
  h4 { font-size: 24px; }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

@media (min-width: 768px) {
  .container { padding: 0 5%; }
}

@media (min-width: 1440px) {
  .container { padding: 0 20px; }
}

.container--narrow {
  max-width: 800px;
}

.container--medium {
  max-width: 960px;
}

.container--wide {
  max-width: 1300px;
}

/* --- Header (logo + nav) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 901;
  background-color: var(--color-white);
  box-shadow: 0 1px 0 var(--color-gray-200-80);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px min(4%, 20px);
}

@media (min-width: 768px) {
  .site-header__inner { padding: 18px min(5%, 24px); }
}

.site-header__logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.site-header__logo-img {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-header__logo-img { max-height: 44px; }
}

/* Nav toggle (mobile) */
.site-header__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  outline: none;
  margin: 0;
  padding: 0;
  color: var(--text-heading);
  background: none;
  transition: color 0.25s ease-in-out;
}

@media (min-width: 992px) {
  .site-header__nav-btn { display: none; }
}

.nav-btn-icon {
  width: 32px;
}

.nav-btn-icon span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0 auto 6px 0;
  background: currentColor;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.nav-btn-icon span:nth-child(2) { width: 24px; }
.nav-btn-icon span:nth-child(3) { width: 16px; margin-bottom: 0; }

.site-header__nav-btn[aria-expanded="true"] .nav-btn-icon span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}
.site-header__nav-btn[aria-expanded="true"] .nav-btn-icon span:nth-child(2) {
  opacity: 0;
}
.site-header__nav-btn[aria-expanded="true"] .nav-btn-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav wrap */
.site-header__nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 991px) {
  html.nav-open { overflow: hidden; }

  .site-header__nav-wrap {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 72px 5% 32px;
    z-index: -1;
    overflow: auto;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    background-color: var(--color-white);
    box-shadow: none;
  }

  .site-header__nav-btn[aria-expanded="true"] + .site-header__nav-wrap {
    transform: translateY(0);
  }
}

.site-header__menu {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .site-header__menu {
    flex-direction: row;
    gap: 28px;
  }
}

.site-header__menu a {
  color: var(--text-heading);
  font-size: 18px;
  font-weight: 500;
}

.site-header__menu a:hover,
.site-header__menu a[aria-current="page"] {
  color: var(--accent-blue);
}

@media (min-width: 992px) {
  .site-header__menu a { font-size: 15px; }
}

.site-header__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 992px) {
  .site-header__ctas {
    flex-direction: row;
    width: auto;
    gap: 10px;
  }
}

.cta-button {
  display: block;
  padding: 10px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--accent-yellow);
  background-color: var(--accent-yellow);
  color: var(--text-heading);
  transition: all 0.25s ease-in-out;
}

.cta-button--secondary {
  background-color: transparent;
  color: var(--text-heading);
  border-color: var(--text-heading);
}

.cta-button:hover {
  filter: brightness(0.95);
  border-color: var(--accent-yellow);
}

.cta-button--secondary:hover {
  background-color: var(--surface-dark);
  color: var(--color-white);
}

@media (min-width: 992px) {
  .cta-button { padding: 8px 16px; font-size: 14px; }
}

/* --- Logo Bar (white section above hero) --- */
.logo-bar {
  background-color: var(--color-white);
  padding: 18px 4%;
  text-align: center;
}

@media (min-width: 768px) {
  .logo-bar { padding: 24px 5%; }
}

.logo-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-bar__logo {
  display: block;
  text-align: center;
  line-height: 0;
}

.logo-bar__logo-img {
  display: inline-block;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-bar__logo-img { max-height: 52px; }
}

@media (max-width: 767px) {
  .logo-bar__logo-img { max-height: 36px; }
}

/* --- Hero Section --- */
.hero {
  background-color: var(--surface-dark);
  padding: 56px 4% 64px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero { padding: 80px 5%; }
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-300);
  margin-bottom: 0.75em;
}

@media (min-width: 768px) {
  .hero__label { font-size: 15px; }
}

.hero h1 {
  font-size: 34px;
  color: var(--color-white);
  margin-bottom: 0.15em;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
}

@media (min-width: 992px) {
  .hero h1 { font-size: 60px; }
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-gray-200);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero__subtitle { font-size: 24px; }
}

.hero__tagline {
  font-size: 18px;
  color: var(--color-gray-200);
  line-height: 1.6;
  margin-top: 0.5em;
}

@media (min-width: 768px) {
  .hero__tagline { font-size: 22px; }
}

/* --- Spacer --- */
.spacer {
  position: relative;
  padding-bottom: 48px;
  color: var(--text-muted);
}

.spacer::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed currentColor;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .spacer { padding-bottom: 72px; }
}

/* --- Card Section --- */
.card {
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  background-color: var(--color-white);
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .card { padding: 52px 48px; }
}

/* Consistent spacing inside cards: paragraphs, headings, lists */
.card p {
  margin: 0 0 1em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card h4 {
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
  font-size: 1em;
  font-weight: 700;
}
.card h4:first-child {
  margin-top: 0;
}
.card ul,
.card ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.card ul li,
.card ol li {
  margin-bottom: 0.5em;
}
.card ul li:last-child,
.card ol li:last-child {
  margin-bottom: 0;
}
.card p + ul,
.card p + ol,
.card h4 + ul,
.card h4 + ol {
  margin-top: 0.75em;
}
.card ul + p,
.card ol + p,
.card ul + h4,
.card ol + h4 {
  margin-top: 1.25em;
}

.card__inset {
  background: var(--color-gray-50, #f5f5f5);
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.card__inset p:first-child { margin-top: 0; }
.card__inset p:last-child { margin-bottom: 0; }

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h3 {
  margin-bottom: 0;
  color: var(--text-heading);
}

.section-header .subtitle {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-muted);
}

.section-header--left {
  text-align: left;
}

@media (min-width: 768px) {
  .section-header .subtitle { font-size: 18px; padding: 0 4%; }
}

@media (min-width: 992px) {
  .section-header .subtitle { padding: 0 7%; }
}

/* --- Three Columns --- */
.three-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0 32px;
}

.three-cols__item {
  flex: 1 1 100%;
  background-color: var(--color-gray-50);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
}

@media (min-width: 768px) {
  .three-cols__item { padding: 24px 30px; }
}

@media (min-width: 992px) {
  .three-cols__item { flex: 1 1 0; }
}

.three-cols__item h4 {
  font-size: 22px;
  margin-bottom: 0.5em;
  color: var(--text-heading);
}

@media (min-width: 768px) {
  .three-cols__item h4 { font-size: 24px; }
}

/* --- Two Columns --- */
.two-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}

.two-cols__item {
  flex: 1 1 100%;
  background-color: var(--color-gray-50);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
}

@media (min-width: 768px) {
  .two-cols__item { padding: 24px 30px; }
}

@media (min-width: 992px) {
  .two-cols__item { flex: 1 1 0; }
}

.two-cols__item h4 {
  font-size: 22px;
  margin-bottom: 0.5em;
  color: var(--text-heading);
}

@media (min-width: 768px) {
  .two-cols__item h4 { font-size: 24px; }
}

/* --- Image Slider --- */
.slider-section {
  background-color: var(--surface-dark);
  padding: 24px 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .slider-section { padding: 48px 0; }
}

/* Product gallery: Hampton-style — big images, full width, more padding */
.slider-section--product {
  padding: 40px 0 56px;
}

@media (min-width: 768px) {
  .slider-section--product { padding: 64px 0 80px; }
}

.slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

/* Product gallery: full width, big images like Hampton */
.slider--show-three {
  max-width: none;
  width: 100%;
  padding: 0 4%;
}

@media (min-width: 768px) {
  .slider--show-three { padding: 0 2%; }
}

.slider__track-wrap {
  position: relative;
  min-height: 320px;
}

@media (min-width: 768px) {
  .slider__track-wrap { min-height: 55vh; }
}

@media (min-width: 1200px) {
  .slider__track-wrap { min-height: 60vh; }
}

/* Fade effect on left and right edges (Hampton-style) */
.slider__track-wrap::before,
.slider__track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  max-width: 180px;
  z-index: 2;
  pointer-events: none;
}

.slider__track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--surface-dark) 0%, transparent 100%);
}

.slider__track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--surface-dark) 0%, transparent 100%);
}

.slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider__slide {
  flex: 0 0 100%;
  padding: 0 8px;
}

/* Show 3 images at once — large, Hampton-style (desktop) */
.slider--show-three .slider__slide {
  flex: 0 0 33.333%;
  padding: 0 10px;
  min-height: 320px;
  display: flex;
}

/* Mobile: one image at a time, carousel between them */
@media (max-width: 767px) {
  .slider--show-three .slider__slide {
    flex: 0 0 100%;
    padding: 0 12px;
    min-height: 280px;
  }
  .slider--show-three .slider__track-wrap {
    min-height: 280px;
  }
}

@media (min-width: 768px) {
  .slider--show-three .slider__slide {
    min-height: 55vh;
    padding: 0 14px;
  }
}

@media (min-width: 1200px) {
  .slider--show-three .slider__slide {
    min-height: 60vh;
    padding: 0 20px;
  }
}

.slider__slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* Product gallery: images fill slide so they're big */
.slider--show-three .slider__slide img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

/* Clickable: open in lightbox */
.slider__img-clickable {
  cursor: pointer;
}

.slider__arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 8px;
}

@media (min-width: 800px) {
  .slider__arrows { margin-top: 24px; padding-top: 12px; }
}

.slider__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-dark-alt);
  color: var(--color-gray-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider__arrow:hover { background: var(--surface-dark); }

@media (min-width: 800px) {
  .slider__arrow { width: 48px; height: 48px; }
}

.slider__arrow svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gray-200);
}

@media (min-width: 800px) {
  .slider__arrow svg { width: 24px; height: 24px; }
}

/* --- Testimonials --- */
.testimonials {
  margin-top: 32px;
}

.testimonials__heading {
  text-align: center;
  margin-bottom: 32px;
}

.testimonials__heading h4 {
  font-family: 'Financierdisplay', Georgia, serif;
  font-weight: 700;
}

.testimonials__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.testimonial-card {
  flex: 1 1 100%;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .testimonial-card { flex: 1 1 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.testimonial-card__info .name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text-heading);
}

.testimonial-card__info .expertise {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 0;
}

.testimonial-card blockquote {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-body);
  margin: 0;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .testimonial-card blockquote { font-size: 18px; }
}

@media (min-width: 1200px) {
  .testimonial-card blockquote { font-size: 20px; line-height: 1.25; }
}

/* Carousel testimonials */
.testimonials-carousel-wrap {
  position: relative;
}

.testimonials-carousel {
  display: flex;
  min-width: 0; /* allow shrink so overflow + scroll work */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testimonials-carousel::-webkit-scrollbar { display: none; }

.testimonials-carousel .testimonial-card {
  flex: 0 0 85%;
  max-width: 85%;
  min-width: 0;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .testimonials-carousel .testimonial-card { flex: 0 0 45%; max-width: 45%; }
}

@media (min-width: 992px) {
  .testimonials-carousel .testimonial-card { flex: 0 0 30%; max-width: 30%; }
}


/* --- Cities --- */
.cities {
  margin: 24px auto 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .cities { margin: 32px auto 32px; }
}

.cities__title h2 {
  font-size: 24px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cities__title h2 { font-size: 32px; }
}

.cities__subtitle {
  font-size: 22px;
  color: var(--text-muted);
  font-family: 'Financierdisplay', Georgia, serif;
  line-height: 1.1;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .cities__subtitle { font-size: 28px; }
}

.cities__rows {
  margin-top: 24px;
}

.cities__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.city-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
  transition: all 0.25s;
}

.city-card:hover {
  border-color: var(--accent-blue);
  background: var(--color-gray-50);
}

/* --- Image Grid --- */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.image-grid__item {
  flex: 1 1 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}

@media (min-width: 768px) {
  .image-grid__item { flex: 1 1 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }
}

.image-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s cubic-bezier(0.5, 0.5, 0.2, 1);
}

.image-grid__item:hover img {
  filter: brightness(0.75);
  transition-duration: 0.45s;
}

.image-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 6px;
  font-size: 13px;
  color: var(--color-white);
  background: transparent;
  text-align: center;
}

@media (min-width: 768px) {
  .image-grid__caption { font-size: 14px; }
}

/* Placeholder images using gradients */
.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-white);
  opacity: 0.85;
  text-align: center;
  padding: 12px;
}

.placeholder-img--1 { background: linear-gradient(135deg, #1a3a3d, #2d5a5e); }
.placeholder-img--2 { background: linear-gradient(135deg, #2d4a3e, #1a5a4d); }
.placeholder-img--3 { background: linear-gradient(135deg, #3d3a1a, #5e5a2d); }
.placeholder-img--4 { background: linear-gradient(135deg, #1a2d3d, #2d4a5e); }
.placeholder-img--5 { background: linear-gradient(135deg, #3d1a2d, #5e2d4a); }
.placeholder-img--6 { background: linear-gradient(135deg, #2d3d1a, #4a5e2d); }
.placeholder-img--7 { background: linear-gradient(135deg, #1a3d2d, #2d5e4a); }
.placeholder-img--8 { background: linear-gradient(135deg, #3d2d1a, #5e4a2d); }
.placeholder-img--9 { background: linear-gradient(135deg, #2d1a3d, #4a2d5e); }

/* Avatar placeholder */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.avatar-placeholder--1 { background: var(--surface-dark); }
.avatar-placeholder--2 { background: var(--text-body); }
.avatar-placeholder--3 { background: var(--surface-dark-alt); }
.avatar-placeholder--4 { background: var(--text-muted); }
.avatar-placeholder--5 { background: var(--surface-dark); }
.avatar-placeholder--6 { background: var(--text-body); }

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 0.5em 1.5em;
  border-radius: 6px;
  border: 1px solid var(--accent-yellow);
  box-shadow: -5px 5px 0 0 var(--shadow-btn-yellow);
  color: var(--text-heading);
  font-family: 'Neuemontreal', 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  background: var(--accent-yellow);
  transition: all 0.4s;
  width: 100%;
  max-width: 380px;
}

.btn:hover {
  cursor: pointer;
  filter: brightness(0.95);
  box-shadow: -3px 3px 0 var(--shadow-btn-yellow);
}

@media (min-width: 768px) {
  .btn {
    padding: 0.7em 2em;
    font-size: 20px;
    box-shadow: -8px 8px 0 0 var(--shadow-btn-yellow);
  }
  .btn:hover { box-shadow: -5px 5px 0 var(--shadow-btn-yellow); }
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--surface-dark);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section { padding: 64px 48px; }
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 30px;
  margin-bottom: 0.5em;
}

@media (min-width: 768px) {
  .cta-section h2 { font-size: 46px; }
}

.cta-section p {
  color: var(--color-gray-100);
  font-size: 16px;
  margin-bottom: 1.5em;
}

@media (min-width: 768px) {
  .cta-section p { font-size: 18px; }
}

.cta-section .link-text {
  color: var(--color-gray-200);
  font-size: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .cta-section .link-text { font-size: 18px; }
}

.cta-section .link-text a {
  color: var(--accent-blue);
  border-bottom: 2px solid currentColor;
  font-weight: 600;
}

.cta-section .link-text a:hover {
  color: var(--color-white);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-white);
  color: var(--text-body);
  padding: 60px 0 30px;
  margin-top: 12vh;
  border-top: 1px solid var(--color-gray-200);
}

@media (min-width: 992px) {
  .footer { margin-top: 14vh; }
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner { padding: 0 5%; }
}

.footer__copyright {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer__logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__dash {
  width: 40px;
  height: 1px;
  background: var(--color-gray-200);
  opacity: 0.6;
}

.footer__logo-area svg {
  max-width: 60px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
}

.footer__links a {
  color: var(--text-body);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--text-heading);
}

.footer__apply-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  border: 1px solid var(--accent-yellow);
  box-shadow: -8px 8px 0 var(--shadow-btn-yellow);
  color: var(--accent-yellow);
  font-family: 'Neuemontreal', 'Montserrat', sans-serif;
  font-size: 18px;
  text-decoration: none;
  background: transparent;
  transition: all 0.4s;
}

.footer__apply-btn:hover {
  box-shadow: -5px 5px 0 var(--shadow-btn-yellow);
  border-color: var(--accent-yellow);
  color: var(--color-white);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-200-80);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom p {
  font-size: 14px;
  color: var(--color-gray-200);
  opacity: 0.8;
  margin: 0;
}

.footer__bottom a {
  font-size: 14px;
  color: var(--color-gray-200);
  opacity: 0.8;
}

.footer__bottom a:hover {
  opacity: 1;
  color: var(--color-white);
}

.footer__brand-text {
  margin-top: 40px;
  text-align: center;
  opacity: 0.05;
  font-family: 'Financierdisplay', Georgia, serif;
  font-size: 120px;
  font-weight: 700;
  color: var(--legacy-beige);
  letter-spacing: 8px;
  line-height: 1;
  user-select: none;
  overflow: hidden;
}

@media (min-width: 768px) {
  .footer__brand-text { font-size: 200px; }
}

/* --- Content Sections --- */
.content-section {
  margin-top: 16px;
  margin-bottom: 16px;
}

.content-section--mt-sm { margin-top: 16px; }
.content-section--mt-md { margin-top: 24px; }
.content-section--mt-lg { margin-top: 32px; }

.text-center { text-align: center; }

.content-section a:not(.btn):not(.cta-button) {
  color: var(--accent-blue);
  border-bottom: 1px solid currentColor;
}

.content-section a:not(.btn):not(.cta-button):hover {
  opacity: 0.7;
}

.content-section a strong,
.content-section strong a {
  border-bottom-width: 2px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* =========================================
   Mobile optimization (max-width: 767px)
   ========================================= */
@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    font-size: 16px;
  }

  /* Container — consistent side padding */
  .container {
    padding-left: 5%;
    padding-right: 5%;
  }

  /* Hero — smaller type, less padding */
  .hero {
    padding: 40px 5% 48px;
  }
  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .hero__subtitle {
    font-size: 17px;
    line-height: 1.5;
  }

  /* Spacer — less vertical gap on small screens */
  .spacer {
    padding-bottom: 32px;
  }

  /* Cards — tighter padding */
  .card {
    padding: 24px 20px;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 24px;
  }
  .section-header .subtitle {
    font-size: 15px;
    padding: 0;
  }

  /* Typography scale-down */
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }

  /* Three / two columns — already stack; add gap */
  .three-cols,
  .two-cols {
    gap: 12px;
    padding: 12px 0 24px;
  }
  .three-cols__item,
  .two-cols__item {
    padding: 20px 18px;
  }
  .three-cols__item h4,
  .two-cols__item h4 {
    font-size: 20px;
  }

  /* Testimonials carousel — full-width cards, touch scroll */
  .testimonials-carousel {
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 5%;
    scroll-padding-right: 5%;
  }
  .testimonials-carousel .testimonial-card {
    flex: 0 0 88%;
    max-width: 88%;
    min-width: 0;
  }
  .testimonial-card {
    padding: 20px;
  }
  .testimonial-card blockquote {
    font-size: 15px;
  }

  /* Cities — smaller chips, wrap */
  .city-card {
    padding: 10px 16px;
    font-size: 14px;
  }
  .cities__title h2 {
    font-size: 22px;
  }
  .cities__subtitle {
    font-size: 20px;
  }

  /* Image grid — single column on mobile */
  .image-grid__item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Button — full-width tap target (min 44px height) */
  .btn {
    padding: 14px 20px;
    font-size: 17px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* CTA section */
  .cta-section {
    padding: 32px 20px;
    border-radius: 0;
  }
  .cta-section h2 {
    font-size: 26px;
    line-height: 1.25;
  }
  .cta-section p {
    font-size: 16px;
  }
  .cta-section .link-text {
    font-size: 16px;
  }

  /* Footer — stack, tappable links, safe area */
  .footer {
    padding: 40px 0 max(24px, env(safe-area-inset-bottom));
    margin-top: 8vh;
  }
  .footer__inner {
    padding-left: 5%;
    padding-right: 5%;
  }
  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer__links a {
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer__apply-btn {
    padding: 14px 28px;
    font-size: 17px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
  }
  .footer__brand-text {
    font-size: 80px;
  }

  /* Slider — full width, touch-friendly */
  .slider-section {
    padding: 24px 0;
  }
  .slider__slide {
    padding: 0 12px;
  }
  .slider__arrows {
    margin-top: 16px;
  }
  .slider__arrow {
    min-width: 44px;
    min-height: 44px;
  }

  /* Prevent long words from breaking layout */
  .card,
  .section-header,
  .hero__inner,
  .content-section {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Lists and paragraphs — readable on small screens */
  ul, ol {
    padding-left: 1.25em;
  }
  p:not(:last-child) {
    margin-bottom: 0.75em;
  }
}

/* --- Book page (Schedule a call) --- */
.book-page body {
  background-color: var(--color-white);
}

.book-page .book-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5%;
}

@media (max-width: 991px) {
  .book-page .book-layout {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .book-page .book-layout {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 992px) {
  .book-page .book-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 64px 5%;
    align-items: start;
  }
}

.book-page .footer {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .book-page .footer {
    margin-top: 56px;
  }
}

.book-page .book-content {
  padding-right: 0;
}

.book-page .book-content__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.book-page .book-content__heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .book-page .book-content__heading {
    font-size: 2.5rem;
  }
}

.book-page .book-content__description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 32px;
}

.book-page .book-content__list-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.book-page .book-content__list {
  list-style: decimal;
  padding-left: 1.25em;
  margin: 0 0 40px 0;
}

.book-page .book-content__list li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.5em;
  padding: 0;
  background: none;
  border-radius: 0;
}

.book-page .book-content__list li:last-child {
  margin-bottom: 0;
}

.book-page .book-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.book-page .book-logos__placeholder,
.book-page .book-logos__item {
  aspect-ratio: 2 / 1;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

@media (min-width: 768px) {
  .book-page .book-logos__placeholder,
  .book-page .book-logos__item {
    min-height: 72px;
    padding: 14px;
  }
}

.book-page .book-logos__item {
  background: transparent;
}

.book-page .book-logos__placeholder {
  background: var(--color-gray-100);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.book-page .book-logos__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 44px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .book-page .book-logos__img {
    min-height: 56px;
  }
}

.book-page .book-calendar-wrap {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 24px;
  min-height: 600px;
}

.book-page .book-calendar-wrap iframe {
  width: 100%;
  height: 630px;
  border: 0;
  border-radius: 8px;
}
