/* ============================================
   FRED'S PT — Design System & Global Styles
   fredspt.com
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-navy: #001F54;
  --color-navy-light: #002a6b;
  --color-navy-dark: #001540;
  --color-offwhite: #F5F3F0;
  --color-grey: #DDDBD9;
  --color-grey-light: #EEEDEB;
  --color-gold: #C5A880;
  --color-gold-hover: #b8986e;
  --color-text-dark: #1a1a1a;
  --color-text-medium: #4a4a4a;
  --color-text-light: #F5F3F0;
  --color-white: #FFFFFF;
  --color-error: #c0392b;
  --color-success: #27ae60;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes (fluid) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
  --text-3xl: clamp(2.2rem, 1.6rem + 3vw, 3.5rem);
  --text-4xl: clamp(2.8rem, 2rem + 4vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-sm);
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-3xl) 0;
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--color-offwhite);
}

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

/* Full viewport height sections (desktop only) */
@media (min-width: 769px) {
  .section--full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
  }

  .section--full > .container {
    width: 100%;
  }

  .hero.section--full {
    padding: 0;
  }

  /* Section 4 + footer share one viewport */
  .section--half {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
  }

  .footer--half {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-medium { color: var(--color-text-medium); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-medium);
}

.divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: var(--space-lg) 0;
  border: none;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.btn--outline:hover {
  background-color: var(--color-navy);
  color: var(--color-offwhite);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--color-offwhite);
  border: 1px solid var(--color-offwhite);
}

.btn--outline-light:hover {
  background-color: var(--color-offwhite);
  color: var(--color-navy);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
  padding: var(--space-md) 0;
}

.nav--scrolled {
  background-color: rgba(245, 243, 240, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.nav--scrolled .nav__logo {
  color: var(--color-navy);
}

.nav--scrolled .nav__link {
  color: var(--color-text-dark);
}

.nav--scrolled .nav__link:hover {
  color: var(--color-gold);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-offwhite);
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}

.nav__logo span {
  color: var(--color-gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-offwhite);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition-base);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  transition: all var(--transition-fast);
}

.nav__cta:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.nav--scrolled .nav__cta {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.nav--scrolled .nav__cta:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-offwhite);
  transition: all var(--transition-base);
}

.nav--scrolled .nav__toggle span {
  background-color: var(--color-navy);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Swap to mobile hero images on portrait screens */
@media (max-width: 768px) {
  .hero__bg {
    background-position: center top;
  }
  .page-home .hero__bg {
    background-image: url('/images/hero-mobile.jpg') !important;
  }
  .page-about .hero__bg {
    background-image: url('/images/about-hero-mobile.jpg') !important;
  }
  .page-method .hero__bg {
    background-image: url('/images/method-hero-mobile.jpg') !important;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-offwhite);
  margin-bottom: var(--space-md);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-grey);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-grey);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease infinite;
}

.hero__scroll svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-gold);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Interior Page Hero --- */
.page-hero {
  background-color: var(--color-navy);
  padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-offwhite);
  margin-bottom: var(--space-sm);
}

.page-hero .lead {
  color: var(--color-grey);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Apply Page (Full Viewport) --- */
.apply-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
}

.apply-hero__content {
  max-width: 600px;
  margin: 0 auto;
}

.apply-hero__content h1 {
  color: var(--color-offwhite);
  margin-bottom: var(--space-sm);
}

.apply-hero__content .lead {
  color: var(--color-grey);
}

.apply-hero__buttons {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.apply-hero__buttons .btn {
  min-width: 220px;
}

/* --- Stats / Credentials Strip --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  letter-spacing: 0.05em;
}

.section--navy .stat__label {
  color: var(--color-grey);
}

/* --- Pillars / Features Grid --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.pillar {
  text-align: center;
  padding: var(--space-lg);
}

.pillar__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  stroke: var(--color-gold);
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.pillar__text {
  color: var(--color-text-medium);
  line-height: 1.8;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-xl);
}

.service-item {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}

.service-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.service-item__text {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  line-height: 1.7;
}

/* --- Process Steps (Homepage Section 2 + Method page) --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.process-step {
  background-color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.process-step__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-sm);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.process-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  line-height: 1.8;
}

/* --- Testimonial Slideshow --- */
.testimonial-slideshow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-slides {
  position: relative;
  min-height: 180px;
}

.testimonial-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast);
}

.testimonial-dot.active {
  background-color: var(--color-gold);
}

/* --- Testimonial --- */
.testimonial {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl) 0;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-offwhite);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.testimonial__quote::before {
  content: '\201C';
  display: block;
  font-size: var(--text-3xl);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  font-style: normal;
}

.testimonial__author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Light testimonial variant (on off-white/grey backgrounds) */
.testimonial--light .testimonial__quote {
  color: var(--color-navy);
}

.testimonial--light .testimonial__author {
  color: var(--color-gold);
}

/* --- Content Blocks --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block__image {
  aspect-ratio: 4 / 5;
  background-color: var(--color-grey);
  overflow: hidden;
}

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

.content-block__text h2 {
  margin-bottom: var(--space-md);
}

.content-block__text p {
  color: var(--color-text-medium);
  margin-bottom: var(--space-md);
}

/* --- Image Placeholder --- */
.image-placeholder {
  background-color: var(--color-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-placeholder::after {
  content: attr(data-placeholder);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  text-align: center;
  padding: var(--space-md);
  max-width: 80%;
  line-height: 1.5;
  font-style: italic;
}

/* --- Process Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  counter-reset: process-step;
}

.process__step {
  counter-increment: process-step;
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.process__step::before {
  content: counter(process-step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.process__step h4 {
  margin-bottom: var(--space-sm);
}

.process__step p {
  color: var(--color-text-medium);
  font-size: var(--text-sm);
}

/* --- Insights / Blog Grid --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

a.insight-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.insight-card {
  background-color: var(--color-white);
  border-top: 3px solid var(--color-gold);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.insight-card__image {
  aspect-ratio: 16 / 9;
  background-color: var(--color-grey);
  overflow: hidden;
}

.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.insight-card:hover .insight-card__image img {
  transform: scale(1.03);
}

.insight-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.insight-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.insight-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.insight-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.insight-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-medium);
  opacity: 0.7;
}

/* --- Forms --- */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.03em;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  border: 1px solid var(--color-grey);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

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

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 2.5rem;
}

.form__hint {
  font-size: var(--text-xs);
  color: var(--color-text-medium);
  margin-top: 0.3rem;
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 0.3rem;
  display: none;
}

.form__group--error .form__input,
.form__group--error .form__textarea,
.form__group--error .form__select {
  border-color: var(--color-error);
}

.form__group--error .form__error {
  display: block;
}

.form__submit {
  margin-top: var(--space-lg);
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form__success h3 {
  margin-bottom: var(--space-sm);
}

.form__success p {
  color: var(--color-text-medium);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-navy);
  color: var(--color-grey);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.footer__row-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__cta-text {
  font-size: var(--text-sm);
  color: var(--color-grey);
  line-height: 1.6;
  max-width: 200px;
  margin: var(--space-sm) 0;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-offwhite);
}

.footer__logo span {
  color: var(--color-gold);
}

.btn--sm {
  padding: 0.6rem 1.6rem;
  font-size: var(--text-xs);
}

/* Legacy centered footer (other pages) */
.footer__top {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-grey);
  max-width: 400px;
  margin: 0 auto;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

/* Legacy support for other pages */
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-offwhite);
  margin-bottom: var(--space-sm);
}

.footer__brand h3 span {
  color: var(--color-gold);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 350px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-grey);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  border-top: 1px solid rgba(221, 219, 217, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-grey);
  opacity: 0.6;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  color: var(--color-grey);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--color-gold);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Mobile: ONLY the first full-viewport section fills the screen exactly */
@media (max-width: 768px) {
  .section--full {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
  }

  /* Only the first section--full on the page gets exact viewport height */
  .section--full:first-of-type {
    height: 100vh;
  }

  .section--full > .container {
    width: 100%;
  }

  .hero.section--full {
    padding: 0;
  }
}

/* Tablet and below */
@media (max-width: 900px) {
  /* --- Mobile menu: full-screen navy overlay --- */
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 999;
    padding-top: 3rem;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links.active .nav__link {
    color: var(--color-offwhite);
    font-size: var(--text-xl);
  }

  /* Hide Apply CTA in mobile menu */
  .nav__cta {
    display: none !important;
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  /* When menu is open, make nav background navy so it blends with overlay */
  .nav:has(.nav__links.active) {
    background-color: var(--color-navy) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .nav:has(.nav__links.active) .nav__logo {
    color: var(--color-offwhite) !important;
  }

  /* Force toggle bars white when active regardless of scroll state */
  .nav__toggle.active span {
    background-color: var(--color-offwhite) !important;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .content-block--reverse {
    direction: ltr;
  }

  /* Full-width image on mobile (Lanserhof style) */
  .content-block__image {
    aspect-ratio: 3 / 2;
    max-height: none;
    max-width: 100%;
    margin: 0;
    width: 100%;
    min-height: 220px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .process-step {
    padding: var(--space-lg);
  }

  /* Footer: brand on top, then Contact/Follow/Legal in a row */
  .footer__row {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .footer__row-brand {
    width: 100%;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-sm);
  }

  /* Apply to Train button not full width */
  .footer__row-brand .btn {
    min-width: 0;
    width: auto;
  }

  /* Contact, Follow, Legal columns stay in a row */
  .footer__row > div:not(.footer__row-brand) {
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .footer__inner,
  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

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

  .hero__title {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

/* Mobile */
@media (max-width: 600px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }

  .lead {
    font-size: var(--text-base);
  }

  .eyebrow {
    font-size: clamp(0.6rem, 0.55rem + 0.25vw, 0.7rem);
    margin-bottom: var(--space-xs);
  }

  .divider {
    margin: var(--space-md) 0;
  }

  .divider--center {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content {
    padding: 0 var(--space-sm);
  }

  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__scroll {
    display: none;
  }

  /* Buttons: smaller on mobile but NOT full width */
  .btn {
    padding: 0.8rem 2rem;
    font-size: var(--text-xs);
  }

  .btn--sm {
    padding: 0.5rem 1.2rem;
  }

  /* Reduce gap between gold line and first card to match title-to-line spacing */
  .section .text-center[style] {
    margin-bottom: var(--space-md) !important;
  }

  .process-steps {
    margin-top: var(--space-sm);
  }

  /* Stats grid */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

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

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

  /* Process steps: single column on phone */
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: var(--space-md) var(--space-lg);
  }

  .process-step__number {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
  }

  .process-step__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
  }

  /* Content block image: full-width (Lanserhof style) */
  .content-block__image {
    aspect-ratio: 3 / 2;
    max-height: none;
    max-width: 100%;
    margin: 0;
    width: 100%;
    min-height: 200px;
  }

  /* Content block text: left-aligned (default), button not full width */
  .content-block__text .btn {
    width: auto;
  }

  .content-block__text h2 {
    margin-bottom: var(--space-sm);
  }

  .content-block__text p {
    margin-bottom: var(--space-sm);
  }

  /* Insight cards on mobile */
  .insight-card__body {
    padding: var(--space-sm) var(--space-sm) var(--space-md);
  }

  .insight-card__title {
    font-size: var(--text-base);
  }

  /* Footer compact on mobile */
  .footer {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .footer__row {
    margin-bottom: var(--space-md);
  }

  .footer__row-brand {
    margin-bottom: var(--space-md);
  }

  .footer__heading {
    margin-bottom: var(--space-xs);
    font-size: clamp(0.6rem, 0.55rem + 0.2vw, 0.7rem);
  }

  .footer__links a {
    font-size: var(--text-xs);
  }

  .footer__links li {
    margin-bottom: 0.2rem;
  }

  /* Interior page hero spacing */
  .page-hero {
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
  }

  /* Testimonial */
  .testimonial__quote {
    font-size: var(--text-lg);
  }

  .testimonial__quote::before {
    font-size: var(--text-2xl);
  }

  /* Apply page: full screen with equal buttons */
  .apply-hero {
    height: 100vh;
  }

  .apply-hero__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .apply-hero__buttons .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .apply-hero__content {
    padding: 0 var(--space-sm);
  }
}

/* --- Journal Article Pages --- */
.article-page {
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
}

.article-page .container {
  max-width: 720px;
}

.article-page h1 {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  line-height: 1.15;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.article-page h2 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-page h3 {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-page p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.article-page .article-meta {
  color: rgba(0,31,84,0.5);
  font-size: var(--text-xs);
}

.article-page .article-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(0,31,84,0.08);
}

.article-page .article-author__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-navy);
  margin-bottom: 4px;
}

.article-page .article-author__bio {
  font-size: var(--text-xs);
  color: rgba(0,31,84,0.5);
  line-height: 1.6;
  margin-bottom: 0;
}

.article-page .article-back {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .article-page {
    padding-top: 80px;
  }
}

/* Mobile-only line break utility */
.mobile-br {
  display: none;
}

@media (max-width: 600px) {
  .mobile-br {
    display: block;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .container {
    padding: 0 var(--space-xs);
  }

  h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); }

  .btn {
    padding: 0.7rem 1.5rem;
  }

  .footer__row {
    gap: var(--space-sm);
  }
}
