/* style.css — Sierra Development design system & components */

/* ============ DESIGN TOKENS ============ */
:root {
  /* 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.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.4rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ============ COLOR SYSTEM — Sierra Development brand (charcoal & bronze-gold) ============ */
:root,
[data-theme='light'] {
  /* Surfaces — warm taupe, matched to brand mark background */
  --color-bg: #f4f1ec;
  --color-surface: #ffffff;
  --color-surface-2: #fbf9f5;
  --color-surface-offset: #d6d3ce;
  --color-surface-offset-2: #c7c3bd;
  --color-surface-dynamic: #b8b4ad;
  --color-divider: #cac6c0;
  --color-border: #b8b4ad;

  /* Text — warm charcoal, never pure black */
  --color-text: #26262a;
  --color-text-muted: #63625e;
  --color-text-faint: #9a9791;
  --color-text-inverse: #f4f1ec;

  /* Primary — bronze-gold, from the Sierra Development mark */
  --color-primary: #7d683d;
  --color-primary-hover: #625130;
  --color-primary-active: #463a22;
  --color-primary-highlight: #dbcfb5;

  /* Secondary — charcoal, from the Sierra Development wordmark */
  --color-secondary: #2e2f33;
  --color-secondary-hover: #1f2023;
  --color-secondary-active: #131416;
  --color-secondary-highlight: #b9bbc0;

  --color-success: #4d6b45;
  --color-error: #a13544;

  /* Emphasis blocks — always dark + gold, regardless of theme */
  --color-emphasis-bg: #2e2f33;
  --color-emphasis-text: #f3f4ee;
  --color-emphasis-accent: #d6b36c;

  --shadow-sm: 0 1px 2px oklch(0.25 0.01 40 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.25 0.01 40 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.01 40 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #1c1d1f;
  --color-surface: #262729;
  --color-surface-2: #2c2d30;
  --color-surface-offset: #303133;
  --color-surface-offset-2: #3a3b3e;
  --color-surface-dynamic: #45464a;
  --color-divider: #3a3b3e;
  --color-border: #45464a;

  --color-text: #f1eee8;
  --color-text-muted: #a9a7a2;
  --color-text-faint: #75736e;
  --color-text-inverse: #1c1d1f;

  --color-primary: #d6b36c;
  --color-primary-hover: #dfc38c;
  --color-primary-active: #e8d4ac;
  --color-primary-highlight: #7c5f23;

  --color-secondary: #d6d3ce;
  --color-secondary-hover: #e4e2df;
  --color-secondary-active: #f2f1ef;
  --color-secondary-highlight: #5a544b;

  --color-success: #9dbd91;
  --color-error: #d97b8a;

  /* Emphasis blocks — always dark + gold, regardless of theme */
  --color-emphasis-bg: #141517;
  --color-emphasis-text: #f1eee8;
  --color-emphasis-accent: #d6b36c;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1c1d1f;
    --color-surface: #262729;
    --color-surface-2: #2c2d30;
    --color-surface-offset: #303133;
    --color-surface-offset-2: #3a3b3e;
    --color-surface-dynamic: #45464a;
    --color-divider: #3a3b3e;
    --color-border: #45464a;
    --color-text: #f1eee8;
    --color-text-muted: #a9a7a2;
    --color-text-faint: #75736e;
    --color-text-inverse: #1c1d1f;
    --color-primary: #d6b36c;
    --color-primary-hover: #dfc38c;
    --color-primary-active: #e8d4ac;
    --color-primary-highlight: #7c5f23;
    --color-secondary: #d6d3ce;
    --color-secondary-hover: #e4e2df;
    --color-secondary-active: #f2f1ef;
    --color-secondary-highlight: #5a544b;
    --color-emphasis-bg: #141517;
    --color-emphasis-text: #f1eee8;
    --color-emphasis-accent: #d6b36c;
  }
}

/* ============ LAYOUT PRIMITIVES ============ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  max-width: 24ch;
}

.section-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.section-intro p {
  color: var(--color-text-muted);
  max-width: 42ch;
  font-size: var(--text-base);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff8f2;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
[data-theme='dark'] .btn-primary {
  color: #1c1d1f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .btn-primary {
    color: #1c1d1f;
  }
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.22);
}
.btn-outline:hover {
  background: oklch(from var(--color-text) l c h / 0.06);
  border-color: oklch(from var(--color-text) l c h / 0.35);
}
.btn-on-dark {
  background: #fff8f2;
  color: #26262a;
}
.btn-on-dark:hover {
  background: #f0e6d3;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.06);
  color: var(--color-text);
}
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}
.desktop-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.nav-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.06);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-2) var(--space-5) var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.mobile-nav .btn {
  margin-top: var(--space-4);
  align-self: flex-start;
}

@media (min-width: 1100px) {
  .main-nav {
    display: block;
  }
  .header-phone {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1260px) {
  .desktop-cta {
    display: inline-flex;
  }
}

/* skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  z-index: 100;
  background: var(--color-primary);
  color: #fff8f2;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
[data-theme='dark'] .skip-link {
  color: #1c1d1f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .skip-link {
    color: #1c1d1f;
  }
}
.skip-link:focus {
  top: var(--space-4);
}

/* ============ HERO ============ */
.hero {
  padding-block: clamp(var(--space-10), 6vw, var(--space-16)) clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-5);
}
.hero-eyebrow svg {
  width: 16px;
  height: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.hero-stat {
  border-left: none;
  min-width: 0;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}
@media (min-width: 640px) {
  .hero-stats {
    gap: var(--space-6);
  }
}
.hero-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
}
.hero-visual figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual figcaption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  color: #fff8f2;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  max-width: none;
  text-shadow: 0 1px 3px oklch(0 0 0 / 0.4);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(to top, oklch(0.15 0.03 40 / 0.55), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.hero-badge {
  position: absolute;
  top: var(--space-6);
  left: calc(-1 * var(--space-6));
  z-index: 2;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  display: none;
  max-width: 220px;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.hero-badge span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero-badge {
    display: block;
  }
}

/* ============ MARQUEE / TRUST STRIP ============ */
.trust-strip {
  padding-block: var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  background: var(--color-surface-offset);
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.trust-list li {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: none;
}
@media (min-width: 700px) {
  .trust-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ SERVICES ============ */
.services {
  background: var(--color-bg);
}
.services-layout {
  display: grid;
  gap: var(--space-6);
}
.service-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.service-icon {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

.service-card--feature {
  background: var(--color-emphasis-bg);
  color: var(--color-emphasis-text);
  position: relative;
}
.service-card--feature .service-icon {
  color: var(--color-emphasis-accent);
}
.service-card--feature p {
  color: oklch(from var(--color-emphasis-text) l c h / 0.88);
}

@media (min-width: 700px) {
  .services-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card--feature {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-6);
  }
}
@media (min-width: 1020px) {
  .services-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-card--feature {
    grid-column: span 3;
  }
}

/* ============ PROCESS ============ */
.process {
  background: var(--color-surface-offset);
}
.process-list {
  display: grid;
  gap: var(--space-10);
  counter-reset: step;
}
.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.process-list li:last-child .process-item {
  border-bottom: none;
  padding-bottom: 0;
}
.process-number {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  min-width: 2ch;
}
.process-number::before {
  content: counter(step, decimal-leading-zero);
}
.process-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.process-item p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

@media (min-width: 760px) {
  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-item {
    grid-template-columns: 1fr;
    border-bottom: none;
    padding-bottom: 0;
  }
  .process-number {
    margin-bottom: var(--space-3);
  }
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.gallery-item figcaption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  right: var(--space-3);
  color: #fff8f2;
  font-size: var(--text-xs);
  font-weight: 500;
  max-width: none;
  text-shadow: 0 1px 3px oklch(0 0 0 / 0.5);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.15 0.03 40 / 0.65), transparent 55%);
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item--tall img {
  aspect-ratio: 3/5;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ VIDEO SHOWCASE ============ */
.video-section {
  background: var(--color-surface-offset);
}
.video-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
.video-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-card video {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-text);
}
.video-card--vertical video {
  aspect-ratio: 9/16;
}
.video-card-body {
  padding: var(--space-5);
}
.video-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-1);
}
.video-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.video-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1020px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .video-card--wide {
    grid-column: span 2;
  }
}

/* ============ VALUES / WHY US ============ */
.values {
  background: var(--color-bg);
}
.values-layout {
  display: grid;
  gap: var(--space-12);
}
.values-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.values-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.values-list {
  display: grid;
  gap: var(--space-6);
}
.values-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}
.values-list-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  margin-top: var(--space-1);
}
.values-list-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.values-list-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .values-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ============ PARTNERSHIP / QUOTE ============ */
.partnership {
  background: var(--color-emphasis-bg);
  color: var(--color-emphasis-text);
}
.partnership .section-label {
  color: var(--color-emphasis-accent);
}
.partnership .section-label::before {
  background: var(--color-emphasis-accent);
}
.partnership .section-title {
  color: var(--color-emphasis-text);
}
.partnership-grid {
  display: grid;
  gap: var(--space-10);
}
.partnership-lede {
  font-size: var(--text-lg);
  color: oklch(from var(--color-emphasis-text) l c h / 0.85);
  max-width: 48ch;
}
.partnership-list {
  display: grid;
  gap: var(--space-6);
}
.partnership-list-item {
  padding-left: var(--space-6);
  border-left: 2px solid oklch(from var(--color-emphasis-text) l c h / 0.3);
}
.partnership-list-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-1);
}
.partnership-list-item p {
  font-size: var(--text-sm);
  color: oklch(from var(--color-emphasis-text) l c h / 0.75);
}

@media (min-width: 860px) {
  .partnership-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ CONTACT ============ */
.contact {
  background: var(--color-surface-offset);
}
.contact-layout {
  display: grid;
  gap: var(--space-10);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-md);
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}
.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.contact-methods {
  display: grid;
  gap: var(--space-5);
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
}
.contact-method svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-method strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
.contact-method span {
  font-size: var(--text-lg);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: var(--space-4);
}
.form-row {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-text);
  color: oklch(from var(--color-bg) l c h / 0.9);
  padding-block: var(--space-16) var(--space-8);
}
[data-theme='dark'] .footer {
  background: #17181a;
  color: oklch(from #f1eee8 l c h / 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .footer {
    background: #17181a;
    color: oklch(from #f1eee8 l c h / 0.9);
  }
}
.footer-top {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff8f2;
}
.footer p {
  color: oklch(1 0 0 / 0.6);
  font-size: var(--text-sm);
  max-width: 40ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.footer-col h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.5);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  color: oklch(1 0 0 / 0.75);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: #fff8f2;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.45);
}

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1.2fr 2fr;
  }
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ SKELETON / MEDIA FALLBACK ============ */
img {
  background: var(--color-surface-offset);
}

/* ============ REVEAL ANIMATION ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
