/* ===== OHM DESIGN SYSTEM ===== */
/* Ochil Hills Management — Earth Tone Palette */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root, [data-theme="light"] {
  /* Typography */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* 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.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    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;

  /* OHM Brand Palette — Light Mode (DEFAULT) */
  --color-bg:             #faf5ed;
  --color-surface:        #f6edd8;
  --color-surface-2:      #efe9e2;
  --color-surface-offset: #f6edd8;
  --color-divider:        #ddd5c4;
  --color-border:         #cdc5b4;
  
  --color-text:           #262628;
  --color-text-muted:     #5a5a5a;
  --color-text-faint:     #8a8a8a;
  --color-text-inverse:   #faf5ed;

  /* Primary — Forest Green */
  --color-primary:        #1e3c31;
  --color-primary-hover:  #6e7c68;
  --color-primary-active: #0f1e18;
  --color-primary-light:  #dce8df;

  /* Bright Green Accent */
  --color-bright-green:   #05aa53;

  /* Accent — Gold */
  --color-accent:         #c88932;
  --color-accent-hover:   #b07828;
  --color-accent-active:  #96661e;
  --color-accent-light:   #f5ecd8;

  /* Heather Purple Accent */
  --color-heather:        #7B5EA7;
  --color-heather-hover:  #694E94;
  --color-heather-active: #573F80;
  --color-heather-light:  #ede6f5;

  /* Burnt Orange (logo arch) */
  --color-burnt-orange:   #CB762C;

  /* Functional */
  --color-success: #05aa53;
  --color-error:   #9b3737;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 45, 45, 0.08);
  --shadow-lg: 0 12px 32px rgba(45, 45, 45, 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg:             #1f2937;
  --color-surface:        #283342;
  --color-surface-2:      #2d3a4a;
  --color-surface-offset: #232e3c;
  --color-divider:        #374151;
  --color-border:         #4b5563;

  --color-text:           #e8e4dc;
  --color-text-muted:     #a0a0a0;
  --color-text-faint:     #6b7280;
  --color-text-inverse:   #1f2937;

  --color-primary:        #6e9c74;
  --color-primary-hover:  #84b38a;
  --color-primary-active: #9ac4a0;
  --color-primary-light:  #2a3a2d;

  --color-bright-green:   #10c060;

  --color-accent:         #d4a040;
  --color-accent-hover:   #e0b050;
  --color-accent-active:  #ecc060;
  --color-accent-light:   #3a3528;

  --color-heather:        #9B7EC8;
  --color-heather-hover:  #8A6DB7;
  --color-heather-active: #7B5EA7;
  --color-heather-light:  #2d2a35;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Dark mode only activates when user toggles it */

/* ===== BASE RESET ===== */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(123, 94, 167, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-heather);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

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

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

.section--alt {
  background-color: var(--color-surface);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 237, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .header {
  background: rgba(31, 41, 55, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.header__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.header__nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-1);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-heather);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-heather);
  transition: width 0.3s ease;
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  /* When nav is open, remove backdrop-filter so it stops creating a containing block
     that traps position:fixed children inside the header */
  .header.nav-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #faf5ed;
  }
  [data-theme="dark"] .header.nav-open {
    background: #1f2937;
  }

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

  .header__nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    background: #faf5ed;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  [data-theme="dark"] .header__nav-list {
    background: #1f2937;
  }
  .header__nav-list.active {
    opacity: 1;
    pointer-events: all;
  }
  .header__nav-link {
    font-size: 1.5rem;
    color: #262628;
    padding: var(--space-3) var(--space-6);
    display: block;
  }
  [data-theme="dark"] .header__nav-link {
    color: #e8e4dc;
  }
  .header__cta--desktop { display: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-heather);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-heather-hover);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  background: var(--color-heather);
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: #2d2d2d;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ===== HERO SECTIONS ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero--full { min-height: 85vh; }

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 24, 0.75) 0%,
    rgba(61, 90, 69, 0.5) 50%,
    rgba(26, 26, 24, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  color: #f7f5f0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(199, 169, 78, 0.2);
  border: 1px solid rgba(199, 169, 78, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7a94e;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: var(--space-6);
  color: #f7f5f0;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 44ch;
  margin-bottom: var(--space-8);
  color: rgba(247, 245, 240, 0.85);
  font-weight: 400;
}

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

.hero__actions .btn--primary {
  background: var(--color-heather);
  color: #fff;
}

.hero__actions .btn--primary:hover {
  background: var(--color-heather-hover);
}

.hero__actions .btn--secondary {
  border-color: rgba(247, 245, 240, 0.5);
  color: #f7f5f0;
}

.hero__actions .btn--secondary:hover {
  background: rgba(247, 245, 240, 0.1);
  border-color: #f7f5f0;
}

/* Sub-page heroes (shorter) */
.hero--sub {
  min-height: 45vh;
}

.hero--sub .hero__title {
  font-size: var(--text-2xl);
}

/* ===== VALUE BADGES ===== */
.value-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}

.value-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.value-badge__icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-header__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section-header__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CARDS ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card__link:hover {
  color: var(--color-heather);
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* Service cards grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* ===== TWO COLUMN LAYOUTS ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

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

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split--reverse { direction: ltr; }
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
}

.portfolio-card__header {
  padding: var(--space-8) var(--space-8) var(--space-4);
}

.portfolio-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.portfolio-card__body {
  padding: 0 var(--space-8) var(--space-8);
}

.portfolio-card__desc {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.portfolio-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== TEAM SECTION ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
}

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

.team-member__img {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-5);
  border: 3px solid var(--color-divider);
}

.team-member__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.team-member__role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.team-member__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 40ch;
  margin: 0 auto;
}

.team-member__links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.team-member__links a {
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.team-member__links a:hover {
  color: var(--color-heather);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: var(--content-default);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  gap: var(--space-4);
}

.faq-item__question:hover {
  color: var(--color-heather);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item__answer-inner {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  border-radius: var(--radius-xl);
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  color: #f7f5f0;
}

.cta-banner__desc {
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  opacity: 0.85;
  max-width: 50ch;
  margin-inline: auto;
  color: rgba(247, 245, 240, 0.85);
}

.cta-banner .btn--accent {
  background: var(--color-heather);
  color: #fff;
}

.cta-banner .btn--accent:hover {
  background: var(--color-heather-hover);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer__brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 32ch;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: var(--space-2);
}

.footer__col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__col a:hover {
  color: var(--color-heather);
}

.footer__col a svg {
  display: inline;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--color-heather);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-heather);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* ===== FORM ROW ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ===== DIVIDER IMAGE ===== */
.divider-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.6;
}

[data-theme="dark"] .divider-image {
  opacity: 0.3;
}

/* ===== LAND AND EXPAND VISUAL ===== */
.journey-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-8);
}

.journey-step {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  flex: 1;
  min-width: 180px;
}

.journey-step__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.journey-step__title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.journey-step__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.journey-arrow {
  font-size: var(--text-xl);
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .journey-arrow { transform: rotate(90deg); }
  .journey-steps { flex-direction: column; }
}

/* ===== INSIGHTS CARDS ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.insight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.insight-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.insight-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

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

.insight-card__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== ARTICLE / BLOG ===== */
.article {
  padding: var(--space-16) 0 var(--space-20);
}

.article__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
}

.article__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.article__author { font-weight: 600; color: var(--color-text); }
.article__sep { color: var(--color-text-faint); }
.article__date { font-variant-numeric: tabular-nums; }
.article__read-time { color: var(--color-accent); font-weight: 500; }

.article__body {
  min-width: 0;
}

.article__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.article__body h2:first-of-type {
  margin-top: var(--space-8);
}

.article__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.article__body p {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.article__body ul,
.article__body ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article__body li {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.article__body ul li { list-style-type: disc; }

.article__numbered-list {
  counter-reset: article-counter;
  list-style: none;
  padding-left: 0;
}

.article__numbered-list li {
  counter-increment: article-counter;
  padding-left: var(--space-10);
  position: relative;
  margin-bottom: var(--space-6);
}

.article__numbered-list li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
  width: 28px;
  text-align: center;
}

.article__answer-capsule {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-6) var(--space-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-8);
}

.article__answer-capsule p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 0;
}

.article__table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}

.article__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.article__table thead {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.article__table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article__table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  line-height: 1.6;
}

.article__table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.article__table tbody tr:last-child td {
  border-bottom: none;
}

.article__faq {
  margin-top: var(--space-4);
}

.article__faq-item {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.article__faq-item summary {
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.article__faq-item summary::-webkit-details-marker { display: none; }

.article__faq-item summary::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.article__faq-item[open] summary::after {
  content: '\2212';
}

.article__faq-item summary:hover {
  background: var(--color-surface);
}

.article__faq-item p {
  padding: 0 var(--space-6) var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.article__cta-box {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  margin-top: var(--space-12);
  text-align: center;
}

.article__cta-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}

.article__cta-box p {
  font-size: var(--text-sm);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--space-6);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-inverse);
}

.article__sidebar {
  position: sticky;
  top: var(--space-8);
  align-self: start;
}

.article__sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.article__sidebar-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.article__sidebar-card ul {
  list-style: none;
  padding: 0;
}

.article__sidebar-card li {
  margin-bottom: var(--space-2);
}

.article__sidebar-card a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
  display: block;
}

.article__sidebar-card a:hover {
  color: var(--color-accent);
}

/* Insight card link state (for published articles) */
.insight-card--published {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.insight-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.insight-card__read-more::after {
  content: '\2192';
  transition: transform 0.2s;
}

.insight-card--published:hover .insight-card__read-more::after {
  transform: translateX(4px);
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Service detail sections */
.service-detail {
  padding-block: var(--space-12);
}

.service-detail + .service-detail {
  border-top: 1px solid var(--color-divider);
}

.service-detail__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.service-item {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

.service-item__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

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

/* About page values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  text-align: center;
  padding: var(--space-8);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.value-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Full bleed image band */
.image-band {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .image-band { height: 200px; }
}

/* About bios */
.bio-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  align-items: start;
  padding-block: var(--space-12);
}

.bio-section + .bio-section {
  border-top: 1px solid var(--color-divider);
}

.bio-section__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-divider);
}

.bio-section__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.bio-section__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
}

.bio-section__text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.bio-section__text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .bio-section {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .bio-section__img {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* Portfolio detail sections */
.case-study {
  padding-block: var(--space-12);
}

.case-study + .case-study {
  border-top: 1px solid var(--color-divider);
}

.case-study__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.case-study__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.case-study__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.case-study__section h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.case-study__section p,
.case-study__section ul {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.case-study__section ul {
  list-style: none;
  padding-left: 0;
}

.case-study__section ul li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
}

.case-study__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.case-study__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

/* Why OHM grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-item {
  padding: var(--space-6);
  border-left: 3px solid var(--color-accent);
}

.why-item__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.why-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ===== VISUAL BREAK / PARALLAX SECTIONS ===== */
.visual-break {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.visual-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-break--parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .visual-break { height: 200px; }
  .visual-break--parallax {
    background-attachment: scroll;
  }
}

/* ===== VETERAN BADGE IN FOOTER ===== */
.footer__veteran-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: fit-content;
}

.footer__veteran-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.footer__veteran-badge span {
  line-height: 1.3;
}

/* ===== RECAPTCHA NOTICE ===== */
.recaptcha-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

/* ===== PORTFOLIO CARD LOGO ===== */
.portfolio-card__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-3);
  object-fit: contain;
}

/* ===== LOGO IMG ===== */
.logo-img {
  height: 48px;
  width: auto;
}

/* ===== PORTFOLIO CARD TEXT OVERFLOW FIX ===== */
.portfolio-card__desc,
.case-study__section p,
.case-study__section ul li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.case-study__section {
  overflow: hidden;
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   Breakpoints: 480px (small mobile), 768px (tablet), 1024px (small desktop)
   ============================================================ */

/* ---- SMALL MOBILE (up to 480px) ---- */
@media (max-width: 480px) {
  /* Container: tighter padding on small screens */
  .container {
    padding-inline: var(--space-4);
  }

  /* Hero adjustments */
  .hero { min-height: 60vh; }
  .hero--full { min-height: auto; }
  .hero--sub { min-height: 35vh; }

  .hero__content {
    padding: var(--space-10) var(--space-4) var(--space-8);
  }

  .hero__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    max-width: 100%;
  }

  .hero--sub .hero__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero__subtitle {
    font-size: var(--text-sm);
    max-width: 100%;
    margin-bottom: var(--space-6);
  }

  .hero__badge {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-3);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section spacing reduced on mobile */
  .section {
    padding-block: var(--space-10);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-header__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-header__desc {
    font-size: var(--text-sm);
  }

  /* Cards: full-width stacking, reduced padding */
  .service-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .card {
    padding: var(--space-6);
  }

  .card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-4);
  }

  .card__icon svg {
    width: 20px;
    height: 20px;
  }

  /* Value badges: vertical stack */
  .value-badges {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-6);
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .why-item {
    padding: var(--space-4);
  }

  /* Portfolio cards */
  .portfolio-card__header {
    padding: var(--space-6) var(--space-6) var(--space-3);
  }

  .portfolio-card__body {
    padding: 0 var(--space-6) var(--space-6);
  }

  .portfolio-card__title {
    font-size: var(--text-lg);
  }

  .portfolio-card__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .stat__value {
    font-size: var(--text-lg);
  }

  /* Team section */
  .team-member__img {
    width: 160px;
    height: 200px;
  }

  /* FAQ: smaller text */
  .faq-item__question {
    font-size: var(--text-base);
    padding: var(--space-4) 0;
  }

  /* CTA banner */
  .cta-banner {
    padding: var(--space-8);
    border-radius: var(--radius-lg);
  }

  .cta-banner__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Footer */
  .footer {
    padding-block: var(--space-10) var(--space-6);
  }

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

  /* Journey steps */
  .journey-step {
    min-width: unset;
    padding: var(--space-4);
  }

  /* Insights grid */
  .insights-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .insight-card {
    padding: var(--space-6);
  }

  /* Split layout on mobile */
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .split--reverse { direction: ltr; }

  /* Service detail items: single column */
  .service-detail__items {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-item {
    padding: var(--space-4);
  }

  /* Bio section */
  .bio-section {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-8);
  }

  .bio-section__img {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Case study */
  .case-study {
    padding-block: var(--space-8);
  }

  .case-study__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .case-study__title {
    font-size: var(--text-lg);
  }

  .case-study__results {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .value-card {
    padding: var(--space-6);
  }

  /* Visual break */
  .visual-break {
    height: 150px;
  }

  .image-band {
    height: 150px;
  }

  .divider-image {
    height: 120px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-checkbox-group {
    grid-template-columns: 1fr;
  }

  /* Buttons: full-width on small mobile */
  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  /* Header adjustments */
  .header__inner {
    padding-inline: var(--space-4);
    padding-block: var(--space-3);
  }

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

  .logo-img {
    height: 36px;
  }

  /* Force hide desktop CTA on small mobile */
  .btn.header__cta--desktop {
    display: none !important;
  }
}

/* ---- TABLET (481px to 768px) ---- */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }

  .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero__content {
    padding: var(--space-12) var(--space-6);
  }

  .section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .insights-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .portfolio-card__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study__results {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split--reverse { direction: ltr; }

  .service-detail__items {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-badges {
    gap: var(--space-4);
  }

  .cta-banner__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
}

/* ---- SMALL DESKTOP (769px to 1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .bio-section {
    grid-template-columns: 220px 1fr;
    gap: var(--space-8);
  }

  .case-study__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- GENERAL MOBILE REFINEMENTS (max 768px, supplements existing queries) ---- */
@media (max-width: 768px) {
  /* Ensure all grids properly collapse */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent SVGs from growing too large on mobile */
  .card__icon svg,
  .value-card__icon svg,
  .value-badge__icon svg {
    max-width: 24px;
    max-height: 24px;
  }

  .value-card__icon {
    width: 40px;
    height: 40px;
  }

  /* Tighten section spacing */
  .section {
    padding-block: var(--space-10);
  }

  /* Ensure readable hero text */
  .hero__title {
    max-width: 100%;
  }

  /* Tighter card padding */
  .card {
    padding: var(--space-6);
  }

  /* Portfolio */
  .portfolio-card__header {
    padding: var(--space-6) var(--space-6) var(--space-3);
  }

  .portfolio-card__body {
    padding: 0 var(--space-6) var(--space-6);
  }

  /* CTA Banner responsive */
  .cta-banner {
    padding: var(--space-8) var(--space-6);
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  /* Ensure all text wraps */
  h1, h2, h3, h4, h5, h6, p, li, span, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Footer cleanup */
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Force hide desktop CTA */
  .btn.header__cta--desktop {
    display: none !important;
  }
}

/* ===== ARTICLE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .article__container {
    grid-template-columns: 1fr;
  }
  .article__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .article {
    padding: var(--space-10) 0 var(--space-12);
  }
  .article__container {
    padding: 0 var(--space-4);
    gap: var(--space-8);
  }
  .article__body h2 {
    font-size: var(--text-lg);
    margin-top: var(--space-8);
  }
  .article__body h3 {
    margin-top: var(--space-6);
  }
  .article__answer-capsule {
    padding: var(--space-4) var(--space-5);
  }
  .article__table th,
  .article__table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  .article__cta-box {
    padding: var(--space-8) var(--space-6);
  }
  .article__sidebar {
    grid-template-columns: 1fr;
  }
  .article__numbered-list li {
    padding-left: var(--space-8);
  }
}

@media (max-width: 480px) {
  .article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  .article__sep {
    display: none;
  }
}
