/* 
 * Mainely Strategies — Website Styles
 * Brand-forward design system: disciplined, grounded, sophisticated
 */

/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand Colors */
  --cranberry: #470F1B;
  --cranberry-light: #5a1a27;
  --cranberry-dark: #3a0c16;
  --parchment: #F4F3E4;
  --parchment-dark: #e8e7d6;
  --ink: #1a1a18;
  --ink-light: #4a4a46;
  --white: #ffffff;
  
  /* Typography Scale */
  --font-display: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --font-heading: 'League Spartan', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  
  /* Fluid Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.4vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.5rem + 3.75vw, 4rem);
  --text-5xl: clamp(2.75rem, 1.75rem + 5vw, 5rem);
  
  /* Spacing Scale */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
  --space-3xl: clamp(4rem, 2.5rem + 7.5vw, 8rem);
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --max-width-wide: 1400px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
}

/* ============================================
   AUGUSTA TOPOLOGY OVERLAY
   ============================================ */
.topo-overlay {
  position: relative;
  overflow: hidden;
}

/* The real Augusta topology - used as an img element for flexibility */
.topo-augusta {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 1;
}

/* Hero-specific: scaled up, anchored bottom-right, flipped */
.hero .topo-augusta {
  bottom: 0;
  right: 0;
  top: auto;
  left: auto;
  width: 200%;
  height: auto;
  transform: scaleX(-1);
  transform-origin: bottom right;
  opacity: 0.06;
}

/* Statement section: offset to show river area */
.statement .topo-augusta {
  top: -10%;
  right: -20%;
  left: auto;
  width: 100%;
  height: auto;
  transform: rotate(10deg);
  opacity: 0.08;
  filter: invert(1);
}

/* Proof section: different area, rotated */
.proof .topo-augusta {
  bottom: -20%;
  left: -10%;
  top: auto;
  width: 110%;
  height: auto;
  transform: rotate(-8deg) scaleX(-1);
  opacity: 0.07;
  filter: invert(1);
}

/* For light backgrounds - invert with CSS filter or use separate treatment */
.topo-overlay--dark .topo-augusta {
  filter: invert(1);
  opacity: 0.04;
}

/* Fallback subtle topo for sections without the Augusta map */
.has-topo-subtle {
  position: relative;
}

.has-topo-subtle::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("assets/brand/SVG/topology-mainely-strategies_.svg");
  background-size: 200% auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cranberry);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.heading-spartan {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin-bottom: 1em;
  max-width: 65ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cranberry);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--cranberry-light);
}

strong {
  font-weight: 600;
}

/* Lead Text */
.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink-light);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
}

.section--tight {
  padding-block: var(--space-2xl);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: var(--space-md);
  background-color: var(--parchment);
  transition: background-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.site-header--scrolled {
  background-color: rgba(244, 243, 228, 0.97);
  box-shadow: 0 1px 0 rgba(71, 15, 27, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo with horizontal lockup */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo svg {
  width: auto;
  height: 40px;
  fill: var(--cranberry);
  transition: fill var(--duration-normal) var(--ease-out);
}

.logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cranberry);
  transition: color var(--duration-normal) var(--ease-out);
}

@media (min-width: 480px) {
  .logo-text {
    display: block;
  }
}

.logo:hover svg {
  fill: var(--cranberry-light);
}

.logo:hover .logo-text {
  color: var(--cranberry-light);
}

/* Primary Navigation */
.nav-primary {
  display: none;
}

@media (min-width: 768px) {
  .nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
}

.nav-primary a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-primary a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--cranberry);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-primary a:hover {
  color: var(--cranberry);
}

.nav-primary a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--cranberry);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--cranberry);
  z-index: 999;
  padding: var(--space-3xl) var(--space-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.nav-mobile.is-open {
  display: flex;
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--parchment);
  opacity: 0;
  transform: translateY(20px);
}

.nav-mobile.is-open a {
  animation: slideUp var(--duration-slow) var(--ease-out) forwards;
}

.nav-mobile.is-open a:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile.is-open a:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile.is-open a:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile.is-open a:nth-child(5) { animation-delay: 0.25s; }

.nav-mobile a:hover {
  color: var(--white);
}

.nav-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--parchment);
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav-close:hover svg {
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(80px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  background-color: var(--parchment);
}

/* Landscape photo background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlay: solid parchment on left, fading to transparent on right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--parchment) 0%,
    var(--parchment) 25%,
    rgba(244, 243, 228, 0.9) 45%,
    rgba(244, 243, 228, 0.6) 65%,
    rgba(244, 243, 228, 0.25) 85%,
    transparent 100%
  );
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      var(--parchment) 0%,
      rgba(244, 243, 228, 0.95) 40%,
      rgba(244, 243, 228, 0.8) 70%,
      rgba(244, 243, 228, 0.6) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 660px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cranberry);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp var(--duration-slow) var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-size: var(--text-5xl);
  color: var(--cranberry);
  margin-bottom: var(--space-lg);
  max-width: 14ch;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp var(--duration-slow) var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-light);
  max-width: 48ch;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp var(--duration-slow) var(--ease-out) 0.6s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp var(--duration-slow) var(--ease-out) 0.8s forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BUTTONS (Enhanced Animations)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1em 2em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn--primary {
  background-color: var(--cranberry);
  color: var(--parchment);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--cranberry-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: -1;
}

.btn--primary:hover {
  color: var(--parchment);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(71, 15, 27, 0.2);
}

.btn--primary:hover::before {
  transform: scaleX(1);
}

.btn--secondary {
  background-color: transparent;
  color: var(--cranberry);
  border: 1px solid var(--cranberry);
}

.btn--secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--cranberry);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: -1;
}

.btn--secondary:hover {
  color: var(--parchment);
  border-color: var(--cranberry);
  transform: translateY(-2px);
}

.btn--secondary:hover::before {
  transform: scaleY(1);
}

.btn--text {
  background: none;
  color: var(--cranberry);
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
}

.btn--text::after {
  content: '→';
  margin-left: 0.5em;
  transition: transform var(--duration-normal) var(--ease-out);
  display: inline-block;
}

.btn--text:hover {
  color: var(--cranberry-light);
}

.btn--text:hover::after {
  transform: translateX(4px);
}

/* ============================================
   INTRO / STATEMENT SECTION
   ============================================ */
.statement {
  background-color: var(--cranberry);
  color: var(--parchment);
}

.statement-content {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .statement-content {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

.statement h2 {
  color: var(--parchment);
  max-width: 16ch;
}

.statement-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.statement-text p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(244, 243, 228, 0.9);
  max-width: 55ch;
}

.statement-text p:first-of-type {
  font-size: var(--text-xl);
  color: var(--parchment);
}

/* ============================================
   SERVICES / WHAT WE DO (Enhanced)
   ============================================ */
.services-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: var(--space-lg);
  background-color: var(--white);
  border: 1px solid rgba(71, 15, 27, 0.08);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  border-color: rgba(71, 15, 27, 0.2);
  box-shadow: 0 12px 40px rgba(71, 15, 27, 0.08);
  transform: translateY(-4px);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  transition: color var(--duration-normal) var(--ease-out);
}

.service-card:hover h3 {
  color: var(--cranberry-light);
}

.service-card p {
  font-size: var(--text-base);
  color: var(--ink-light);
}

/* ============================================
   APPROACH / HOW WE WORK
   ============================================ */
.approach {
  background-color: var(--white);
}

.approach-intro {
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-2xl);
}

.approach-intro h2 {
  margin-bottom: var(--space-md);
}

.approach-intro p {
  font-size: var(--text-lg);
  color: var(--ink-light);
}

.approach-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

.approach-item {
  display: flex;
  gap: var(--space-md);
}

.approach-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: rgba(71, 15, 27, 0.15);
  line-height: 1;
  flex-shrink: 0;
}

.approach-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.approach-item p {
  color: var(--ink-light);
}

/* ============================================
   PROBLEMS WE SOLVE (with icons)
   ============================================ */
.problems {
  background-color: var(--parchment-dark);
}

.problems-intro {
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-2xl);
}

.problems-list {
  display: grid;
  gap: var(--space-sm);
  max-width: var(--max-width-narrow);
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-left: 3px solid var(--cranberry);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.problem-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(71, 15, 27, 0.06);
}

.problem-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--cranberry);
  opacity: 0.7;
}

.problem-item p {
  color: var(--ink-light);
  margin: 0;
}

/* ============================================
   PHOTO SECTION
   ============================================ */
.photo-section {
  padding: 0;
  position: relative;
}

.photo-grid {
  display: grid;
  gap: 2px;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .photo-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .photo-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--duration-normal) var(--ease-out);
}

@media (min-width: 768px) {
  .photo-grid img {
    height: 400px;
  }
}

.photo-grid img:hover {
  filter: grayscale(0%);
}

/* Single hero image */
.photo-hero {
  display: block;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  object-fit: cover;
}

/* Anchor image to bottom (useful for feet/ground shots) */
.photo-hero--bottom {
  object-position: center bottom;
}

/* ============================================
   PROOF / RESULTS
   ============================================ */
.proof {
  background-color: var(--cranberry);
  color: var(--parchment);
}

.proof h2 {
  color: var(--parchment);
  margin-bottom: var(--space-md);
}

.proof-intro {
  font-size: var(--text-lg);
  color: rgba(244, 243, 228, 0.85);
  max-width: 55ch;
  margin-bottom: var(--space-xl);
}

.proof-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proof-item {
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid rgba(244, 243, 228, 0.15);
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.proof-item:hover {
  border-color: rgba(244, 243, 228, 0.3);
  transform: translateY(-4px);
}

.proof-stat {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: var(--space-sm);
}

.proof-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 243, 228, 0.7);
}

/* ============================================
   CTA / CONTACT SECTION
   ============================================ */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--ink-light);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Contact Info */
.contact-info {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(71, 15, 27, 0.1);
}

.contact-grid {
  display: grid;
  gap: var(--space-lg);
  text-align: left;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.contact-item p,
.contact-item a {
  font-size: var(--text-base);
  color: var(--ink-light);
}

.contact-item a:hover {
  color: var(--cranberry);
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--parchment);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-light);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
  color: var(--cranberry);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal h3 {
  margin-bottom: var(--space-sm);
}

.modal-intro {
  font-size: var(--text-base);
  color: var(--ink-light);
  margin-bottom: var(--space-lg);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.875em 1em;
  border: 1px solid rgba(71, 15, 27, 0.15);
  background-color: var(--white);
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cranberry);
  box-shadow: 0 0 0 3px rgba(71, 15, 27, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-light);
  opacity: 0.6;
}

.form-submit {
  margin-top: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--cranberry);
  color: var(--parchment);
  padding-block: var(--space-xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo svg {
  width: auto;
  height: 48px;
  fill: var(--parchment);
  transition: fill var(--duration-normal) var(--ease-out);
}

.footer-logo:hover svg {
  fill: var(--white);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--parchment);
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-logo:hover .footer-logo-text {
  color: var(--white);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: rgba(244, 243, 228, 0.7);
  margin-top: var(--space-sm);
  padding-left: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 243, 228, 0.7);
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-nav a:hover {
  color: var(--parchment);
}

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(244, 243, 228, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .footer-legal {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-legal a {
  color: rgba(244, 243, 228, 0.7);
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--parchment);
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.placeholder-image {
  background: linear-gradient(
    135deg,
    var(--parchment-dark) 0%,
    var(--parchment) 50%,
    var(--parchment-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--ink-light);
  max-width: 55ch;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cranberry);
  margin-bottom: var(--space-sm);
}

/* ============================================
   PULL QUOTE
   ============================================ */
.pullquote {
  padding-block: var(--space-2xl);
  text-align: center;
}

.pullquote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--cranberry);
  max-width: 28ch;
  margin-inline: auto;
  line-height: 1.3;
}

.pullquote blockquote::before {
  content: '"';
}

.pullquote blockquote::after {
  content: '"';
}

/* ============================================
   VISIBILITY UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(71, 15, 27, 0.15) 20%,
    rgba(71, 15, 27, 0.15) 80%,
    transparent
  );
  border: none;
  margin: 0;
}

/* ============================================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ============================================ */
.legal-page {
  padding-top: 0;
}

/* Back button in header */
.btn--sm {
  padding: 0.6em 1.25em;
  font-size: var(--text-xs);
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.legal-back-btn svg {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.legal-back-btn:hover svg {
  transform: translateX(-3px);
}

/* Legal hero / title area */
.legal-hero {
  padding-top: calc(80px + var(--space-2xl));
  padding-bottom: var(--space-xl);
  background-color: var(--cranberry);
  color: var(--parchment);
}

.legal-hero h1 {
  color: var(--parchment);
  margin-bottom: var(--space-sm);
}

.legal-hero .section-eyebrow {
  color: rgba(244, 243, 228, 0.6);
}

.legal-effective {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: rgba(244, 243, 228, 0.5);
  margin: 0;
}

/* Legal content area */
.legal-content {
  padding-block: var(--space-2xl);
}

.legal-intro {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(71, 15, 27, 0.1);
}

.legal-intro p {
  font-size: var(--text-lg);
  color: var(--ink-light);
  max-width: 65ch;
  line-height: 1.7;
}

.legal-intro p:first-child {
  color: var(--ink);
}

/* Article structure */
.legal-article {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding-block: var(--space-xl);
  border-bottom: 1px solid rgba(71, 15, 27, 0.06);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--cranberry);
}

.legal-section p {
  color: var(--ink-light);
  line-height: 1.75;
  max-width: 65ch;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal-section li {
  position: relative;
  padding-left: 1.5em;
  color: var(--ink-light);
  line-height: 1.7;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background-color: var(--cranberry);
  opacity: 0.4;
}

.legal-section a {
  color: var(--cranberry);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(71, 15, 27, 0.3);
  transition: text-decoration-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.legal-section a:hover {
  color: var(--cranberry-light);
  text-decoration-color: var(--cranberry-light);
}

/* Contact block at bottom of legal pages */
.legal-contact-block {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--white);
  border-left: 3px solid var(--cranberry);
}

.legal-contact-block p {
  margin: 0;
  line-height: 1.8;
}

/* Bottom navigation on legal pages */
.legal-bottom-nav {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(71, 15, 27, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

/* Footer legal links row */
.footer-legal-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(244, 243, 228, 0.5);
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-legal-links a:hover {
  color: var(--parchment);
}

.footer-legal-links .footer-dot {
  color: rgba(244, 243, 228, 0.3);
  font-size: var(--text-xs);
  user-select: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .nav-mobile,
  .btn,
  .modal-overlay {
    display: none;
  }
  
  body {
    font-size: 12pt;
    background: white;
    color: black;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .section {
    padding-block: 2rem;
  }
}
