/* ============================================
   TR3 Media Solutions — Site Prototype Styles
   Design: Warm, authority-forward agency
   Aligned with Brand Guide + Figma mockups
   ============================================ */

/* --- Web Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Brand Guide */
  --color-green-dark: #2C5F2D;        /* Emerald Green */
  --color-green-mid: #5E8D4E;         /* Olive Green */
  --color-green-light: #EAF0E6;       /* Light green tint */
  --color-green-hover: #1E4A1F;
  --color-black: #333333;             /* Dark Charcoal */
  --color-dark: #333333;
  --color-gray-800: #3D3D3D;          /* 7.5:1 on cream — AAA */
  --color-gray-600: #555555;          /* 5.7:1 on cream — AAA large, AA normal */
  --color-gray-400: #6B6B6B;          /* 4.0:1 on cream — AA large text only */
  --color-gray-200: #E0DDD8;
  --color-gray-100: #F0EDE8;
  --color-white: #FFFFFF;
  --color-cream: #F5F0E8;             /* Warm Cream */
  --color-warm-bg: #F5E0C3;           /* Warm Beige */
  --color-warm-bg-light: #F0E8DA;     /* Warm Beige for sections */
  --color-footer-dark: #2A2A2A;
  --color-prefooter: #2C5F2D;         /* Dark green to match header */

  /* Typography — Brand Guide */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Sizes */
  --size-xs: 0.75rem;
  --size-sm: 0.875rem;
  --size-base: 1rem;
  --size-md: 1.125rem;
  --size-lg: 1.25rem;
  --size-xl: 1.5rem;
  --size-2xl: 2rem;
  --size-3xl: 2.5rem;
  --size-4xl: 3rem;
  --size-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 2rem;
  --space-4xl: 3rem;
  --space-5xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-text: 680px;
  --header-height: 72px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-pill: 100px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-green-hover);
}

a:focus-visible {
  outline: 3px solid var(--color-green-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

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

h1 { font-size: var(--size-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--size-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--size-xl); }
h4 { font-size: var(--size-lg); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  font-size: var(--size-sm);
  text-decoration: none;
  border-radius: var(--border-radius);
}

.skip-link:focus { top: var(--space-md); }

/* ============================================
   HEADER — matches mockup: white bg, logo left,
   nav center-right, pill CTA button right
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-green-dark);
  height: var(--header-height);
  box-shadow: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  padding: 0;
  margin: 0;
}

.site-nav__link {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.site-nav__link:hover {
  color: var(--color-warm-bg);
  border-bottom-color: var(--color-warm-bg);
}

.site-nav__link--active {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-white);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition);
}

/* ============================================
   BUTTONS — pill shape matching mockup
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75em 1.75em;
  border: 2px solid transparent;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-green-dark);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-green-dark);
  color: var(--color-white);
  border-color: var(--color-green-dark);
}

.btn--primary:hover {
  background: var(--color-green-hover);
  border-color: var(--color-green-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.25);
}

.btn--secondary {
  background: transparent;
  color: var(--color-green-dark);
  border-color: var(--color-green-dark);
}

.btn--secondary:hover {
  background: var(--color-green-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Outline white button (for dark backgrounds) */
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-green-dark);
}

/* Header CTA — white outlined pill on dark green header */
.btn--header {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  font-size: var(--size-xs);
  padding: 0.6em 1.2em;
}

.btn--header:hover {
  background: var(--color-white);
  color: var(--color-green-dark);
}

.btn--header .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-green-dark);
  font-size: 0.7em;
  margin-left: 0.25em;
  transition: background var(--transition), color var(--transition);
}

.btn--header:hover .btn-arrow {
  background: var(--color-green-dark);
  color: var(--color-white);
}

.btn--small {
  font-size: var(--size-xs);
  padding: 0.6em 1.4em;
}

.btn--large {
  font-size: var(--size-base);
  padding: 1em 2.5em;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-4xl) 0;
}

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

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

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

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

.section--green a { color: var(--color-green-light); }

.section__header { margin-bottom: var(--space-3xl); }

.section__header--centered {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3xl);
}

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

.section--green .section__eyebrow { color: var(--color-green-light); }

.section__subtitle {
  font-size: var(--size-md);
  color: var(--color-gray-600);
  line-height: 1.7;
  max-width: var(--max-width-text);
}

.section__header--centered .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   HERO — Home: full-width bg image with dark
   overlay and white text (matches mockup)
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero__content {
  max-width: 600px;
}

.hero__headline {
  font-size: var(--size-5xl);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
  font-style: italic;
}

.hero__subhead {
  font-size: var(--size-sm);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

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

/* ============================================
   PAGE HERO — Inner pages: full-width bg image
   with overlay + centered white title
   ============================================ */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.page-hero__title {
  font-size: var(--size-5xl);
  margin-bottom: var(--space-md);
  color: var(--color-white);
  font-style: italic;
}

.page-hero__description {
  font-size: var(--size-md);
  color: rgba(255,255,255,0.85);
  max-width: var(--max-width-text);
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
}

/* Page hero variant: no image (plain bg for form pages etc.) */
.page-hero--plain {
  background: var(--color-warm-bg-light);
  color: var(--color-dark);
  min-height: auto;
  text-align: left;
  justify-content: flex-start;
}

.page-hero--plain::before { display: none; }

.page-hero--plain .page-hero__title {
  color: var(--color-black);
  font-style: normal;
  font-size: var(--size-4xl);
}

.page-hero--plain .page-hero__description {
  color: var(--color-gray-600);
  margin-left: 0;
}

/* ============================================
   GRID
   ============================================ */
.grid { display: grid; gap: var(--space-2xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }

/* ============================================
   CARDS — rounded corners matching mockup
   ============================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card__eyebrow {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: var(--space-sm);
}

.card__title { font-size: var(--size-xl); margin-bottom: var(--space-md); }
.card__text { color: var(--color-gray-600); font-size: var(--size-sm); line-height: 1.7; }

.card__link {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: var(--size-sm);
  font-weight: 600;
}

/* Pillar cards (what we do) */
.pillar-card {
  padding: var(--space-2xl);
  border-left: 3px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.pillar-card__title {
  font-size: var(--size-lg);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-white);
}

.pillar-card__text {
  color: rgba(255,255,255,0.8);
  font-size: var(--size-sm);
  line-height: 1.7;
}

/* Expectation cards (How We Work page) */
.expectation-card {
  padding: var(--space-2xl);
  background: var(--color-warm-bg-light);
  border-radius: var(--border-radius-lg);
}

.expectation-card h3 {
  font-size: var(--size-xl);
  margin-top: var(--space-xs);
  margin-bottom: 0;
  color: var(--color-black);
}

/* Work cards — image overlay style matching portfolio mockup */
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  background: var(--color-gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.work-card__image {
  aspect-ratio: 4 / 3;
  background: var(--color-gray-200);
  overflow: hidden;
}

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

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

.work-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
  color: var(--color-white);
}

.work-card__category {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xs);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.work-card__title {
  font-size: var(--size-lg);
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  color: var(--color-white);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.work-card__outcome {
  font-size: var(--size-xs);
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  text-wrap: balance;
}

.work-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-card__link:hover { color: inherit; }

/* Insight cards */
.insight-card {
  border-bottom: 1px solid var(--color-gray-200);
  padding-bottom: var(--space-2xl);
}

.insight-card__date {
  font-size: var(--size-xs);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.insight-card__title { font-size: var(--size-xl); margin-bottom: var(--space-sm); }

.insight-card__title a {
  color: var(--color-black);
  text-decoration: none;
}

.insight-card__title a:hover { color: var(--color-green-dark); }

.insight-card__excerpt {
  font-size: var(--size-sm);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-block { max-width: var(--max-width-text); }

.content-block p {
  font-size: var(--size-md);
  line-height: 1.8;
  color: var(--color-gray-800);
}

.content-block--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Two-column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Principles / values list */
.principles-list {
  list-style: none;
  padding: 0;
}

.principles-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--size-md);
  color: var(--color-gray-800);
  line-height: 1.7;
}

.principles-list li:last-child { border-bottom: none; }

/* Service block */
.service-block {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.service-block:last-child { border-bottom: none; }

.service-block__title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-lg);
}

.service-block__text {
  font-size: var(--size-md);
  color: var(--color-gray-600);
  line-height: 1.8;
  max-width: var(--max-width-text);
}

/* ============================================
   FORMS — Apple-style minimal design
   ============================================ */
.form-section {
  margin-bottom: var(--space-3xl);
}

.form-section__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-200);
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-gray-600);
  transition: color var(--transition);
}

.form-label--required::after {
  content: "";
}

.form-helper {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-top: 6px;
  line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--color-dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-gray-200);
  border-radius: 0;
  transition: border-color 0.3s ease;
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--color-green-dark);
}

.form-input::placeholder {
  color: var(--color-gray-400);
  font-weight: 400;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--color-white);
  margin-top: 4px;
}

.form-textarea:focus {
  border-color: var(--color-green-dark);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2em;
  cursor: pointer;
}

.form-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.form-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--size-sm);
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  transition: all 0.2s ease;
  background: var(--color-white);
}

.form-option:hover {
  border-color: var(--color-green-mid);
  background: rgba(44, 95, 45, 0.03);
}

.form-option input[type="radio"],
.form-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-green-dark);
  margin: 0;
  flex-shrink: 0;
}

.form-option__text {
  flex: 1;
  color: var(--color-dark);
}

/* Selected state for options */
.form-option:has(input:checked) {
  border-color: var(--color-green-dark);
  background: rgba(44, 95, 45, 0.05);
}

.form-note {
  margin-top: 8px;
  padding: 12px 16px;
  background: rgba(44, 95, 45, 0.04);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--color-gray-600);
  display: none;
  line-height: 1.5;
}

.form-note--visible { display: block; }

/* Form row — side by side inputs */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* Form submit */
.form-submit {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
}

.form-submit .btn {
  width: 100%;
  padding: 16px 32px;
  font-size: var(--size-base);
}

/* Form success message */
.form-success {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: 1.5rem;
}

.form-success__title {
  font-size: var(--size-2xl);
  margin-bottom: var(--space-md);
}

.form-success__text {
  color: var(--color-gray-600);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   TRUST SIGNALS
   ============================================ */
.trust-section {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.trust-section__heading {
  font-size: var(--size-3xl);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.trust-section__text {
  font-size: var(--size-sm);
  color: var(--color-gray-600);
  line-height: 1.8;
  max-width: var(--max-width-text);
  margin: 0 auto;
}

/* ============================================
   CTA BANNER — rounded container inside
   section matching mockup's green inset banner
   with leaf/organic bg
   ============================================ */
.cta-banner {
  padding: var(--space-4xl) 0;
}

.cta-banner__inner {
  background: var(--color-warm-bg);
  color: var(--color-dark);
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
  border-radius: var(--border-radius-xl);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient for depth */
.cta-banner__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 100%, rgba(240,210,170,0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 0%, rgba(220,190,145,0.3) 0%, transparent 60%);
  z-index: 0;
}

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

.cta-banner__title {
  font-size: var(--size-3xl);
  color: var(--color-black);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.cta-banner__subtitle {
  font-size: var(--size-sm);
  color: var(--color-gray-800);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

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

/* ============================================
   CONFIRMATION PAGES
   ============================================ */
.confirmation {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--space-5xl) 0;
}

.confirmation__content { max-width: var(--max-width-text); }

.confirmation__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  color: var(--color-green-dark);
  font-size: var(--size-xl);
}

.confirmation__title {
  font-size: var(--size-3xl);
  margin-bottom: var(--space-lg);
}

.confirmation__text {
  font-size: var(--size-md);
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.confirmation__steps {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
}

.confirmation__steps li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  color: var(--color-gray-600);
  font-size: var(--size-sm);
}

.confirmation__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green-dark);
}

/* ============================================
   ARTICLE / CASE STUDY LAYOUT
   ============================================ */
.article-header {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--color-warm-bg-light);
}

.article-header__meta {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: var(--space-md);
}

.article-header__title {
  font-size: var(--size-4xl);
  margin-bottom: var(--space-md);
}

.article-header__subtitle {
  font-size: var(--size-md);
  color: var(--color-gray-600);
  max-width: var(--max-width-text);
  text-wrap: balance;
}

.article-hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--color-gray-200);
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body { padding: var(--space-3xl) 0; }
.article-body .container { max-width: var(--max-width-text); }
.article-body h2 { font-size: var(--size-2xl); margin-top: var(--space-3xl); margin-bottom: var(--space-lg); }
.article-body h3 { font-size: var(--size-xl); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.article-body p { font-size: var(--size-md); line-height: 1.8; color: var(--color-gray-800); }
.article-body ul, .article-body ol { margin-bottom: 1.5em; font-size: var(--size-md); color: var(--color-gray-800); }
.article-body li { margin-bottom: 0.5em; line-height: 1.7; }

.article-nav {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-gray-200);
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: var(--space-3xl);
}

.case-study-meta__item { font-size: var(--size-sm); }

.case-study-meta__label {
  font-weight: 600;
  font-size: var(--size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

/* Article Gallery — inline images within case studies */
.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.article-gallery--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.article-gallery--single {
  grid-template-columns: 1fr;
}

.article-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.article-gallery img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Case Study Scope — bottom summary block */
.case-study-scope {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-gray-200);
}

.case-study-scope h3 {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-sm);
}

.case-study-scope p {
  font-size: var(--size-sm);
  color: var(--color-gray-600);
}

/* ============================================
   PRE-FOOTER — "Ready to get started?" dark bar
   matching mockup
   ============================================ */
.pre-footer {
  background: var(--color-prefooter);
  padding: var(--space-2xl) 0;
}

.pre-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pre-footer__title {
  font-size: var(--size-2xl);
  color: var(--color-white);
  font-style: italic;
}

.pre-footer__cta .btn {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.pre-footer__cta .btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: var(--color-white);
  font-size: 0.75em;
  margin-left: 0.5em;
}

.pre-footer__cta .btn:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.pre-footer__cta .btn:hover .btn-arrow {
  background: var(--color-green-dark);
  color: var(--color-white);
}

/* ============================================
   FOOTER — 4-column layout matching mockup
   (brand, nav, contact info, social icons)
   ============================================ */
.site-footer {
  background: var(--color-footer-dark);
  color: #ADADAD;                   /* 7.1:1 on #2A2A2A — AAA */
  padding: var(--space-3xl) 0 var(--space-xl);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer__brand { max-width: 280px; }

.site-footer__brand img {
  height: 40px;
  margin-bottom: var(--space-md);
}

.site-footer__brand p {
  font-size: var(--size-xs);
  line-height: 1.6;
  color: #ADADAD;
}

.site-footer__nav-title {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.site-footer__nav-list {
  list-style: none;
  padding: 0;
}

.site-footer__nav-list li { margin-bottom: var(--space-sm); }

.site-footer__nav-list a {
  color: #ADADAD;
  text-decoration: none;
  font-size: var(--size-sm);
  transition: color var(--transition);
}

.site-footer__nav-list a:hover { color: var(--color-white); }

/* Contact info column */
.site-footer__contact-label {
  font-weight: 700;
  color: var(--color-white);
  font-size: var(--size-sm);
  margin-top: var(--space-md);
  margin-bottom: 0.25em;
}

.site-footer__contact-label:first-child {
  margin-top: 0;
}

.site-footer__contact-value {
  font-size: var(--size-sm);
  color: #ADADAD;
}

/* Social icons */
.site-footer__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--size-sm);
  font-weight: 700;
  transition: background var(--transition);
}

.site-footer__social-icon:hover {
  background: var(--color-green-hover);
  color: var(--color-white);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: var(--size-xs);
  color: var(--color-gray-600);
}

.site-footer__utilities {
  display: flex;
  gap: var(--space-lg);
}

.site-footer__utilities a {
  color: var(--color-gray-600);
  text-decoration: none;
  font-size: var(--size-xs);
}

.site-footer__utilities a:hover { color: #ADADAD; }

/* Footer badge — Goldman Sachs (inline in brand column) */
.site-footer__gs-badge {
  display: block;
  max-height: 44px;
  margin-top: var(--space-lg);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.site-footer__gs-badge:hover {
  opacity: 1;
}

/* ============================================
   UTILITY / LEGAL PAGES
   ============================================ */
.legal-content { padding: var(--space-3xl) 0 var(--space-5xl); }
.legal-content h2 { font-size: var(--size-xl); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.legal-content p { font-size: var(--size-sm); color: var(--color-gray-600); line-height: 1.8; max-width: var(--max-width-text); }
.legal-content ul { font-size: var(--size-sm); color: var(--color-gray-600); margin-bottom: 1.5em; }
.legal-content li { margin-bottom: 0.5em; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .split--reverse { direction: ltr; }

  h1 { font-size: var(--size-3xl); }
  h2 { font-size: var(--size-2xl); }
  .hero__headline { font-size: var(--size-4xl); }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .article-gallery--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 2rem;
    --space-5xl: 2.5rem;
  }

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

  /* Mobile nav */
  .nav-toggle {
    display: block;
    z-index: 200;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 150;
  }

  .site-nav--open { transform: translateX(0); }

  .site-nav__list {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
  }

  .site-nav__link {
    font-size: var(--size-base);
    display: block;
    padding: var(--space-sm) 0;
  }

  .site-nav--open .site-nav__link {
    color: var(--color-dark);
  }

  .site-nav--open .site-nav__link:hover {
    color: var(--color-green-dark);
    border-bottom-color: var(--color-green-dark);
  }

  .site-nav--open .site-nav__link--active {
    color: var(--color-green-dark);
    border-bottom-color: var(--color-green-dark);
  }

  .site-nav__cta { width: 100%; }
  .site-nav__cta .btn { width: 100%; text-align: center; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 140;
  }

  .nav-overlay--visible { display: block; }

  /* Hero */
  .hero { min-height: 360px; }
  .hero__headline { font-size: var(--size-3xl); }
  .page-hero { min-height: 200px; }
  .page-hero__title { font-size: var(--size-3xl); }

  /* Grid */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--2-1, .grid--1-2 { grid-template-columns: 1fr; }

  .case-study-meta { grid-template-columns: 1fr; gap: var(--space-md); }
  .article-gallery { grid-template-columns: 1fr; }

  /* Pre-footer */
  .pre-footer .container {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .pre-footer__title { font-size: var(--size-xl); }

  /* Footer */
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .site-footer__utilities { justify-content: center; }

  .article-header__title { font-size: var(--size-3xl); }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-submit .btn { font-size: var(--size-sm); }

  /* CTA banner */
  .cta-banner__inner { padding: var(--space-3xl) var(--space-lg); }
  .cta-banner__title { font-size: var(--size-2xl); }
}

@media (max-width: 480px) {
  .hero__headline { font-size: var(--size-2xl); }

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

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

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-banner, .pre-footer { display: none; }
  body { font-size: 12pt; line-height: 1.6; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 1em 0; }
  .hero, .page-hero { min-height: auto; background: none !important; color: #000; }
  .hero::before, .page-hero::before { display: none; }
  .hero__headline, .page-hero__title { color: #000; }
}
