/* ==========================================================================
   ACTI-BAT Option B — Complete Redesign
   Visual Reference: "ACTI-BAT French renovation website.png" & Logo No. 6
   Typography: Spectral (Headings) + Inter (Navigation, Buttons, Body Copy)
   Palette: Warm White (#FFFFFF / #F5F1EA), Charcoal (#1C1C1C / #232526), Ochre (#C47608)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-white: #FFFFFF;
  --bg-cream: #F5F1EA;
  --bg-cream-alt: #EFE9DF;
  --bg-dark: #232526;
  --text-charcoal: #1C1C1C;
  --text-body: #33312E;
  --text-muted: #5E5A54;
  --ochre: #C47608;
  --ochre-hover: #9E5E05;
  --ochre-light: #FBF3E6;
  --border-subtle: #E2DBD0;
  --border-dark: #3A3D3F;
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1240px;
  --reading-max: 65ch;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-white);
  color: var(--text-charcoal);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  color: var(--text-charcoal);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 0;
}

p {
  margin-top: 0;
  max-width: var(--reading-max);
}

a {
  color: var(--text-charcoal);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-charcoal);
  color: var(--bg-white);
  padding: 0.7rem 1.2rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid var(--ochre);
}
.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.25rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* ==========================================================================
   1. SLIM HEADER (Matches prototype top bar)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 219, 208, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-charcoal);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--text-charcoal);
}

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--ochre);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* FR | EN Switch matching prototype */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.lang-sep {
  color: #9A958E;
  user-select: none;
}

.lang-btn {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.2rem 0.1rem;
  border-bottom: 2px solid transparent;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--text-charcoal);
}

.lang-btn.is-active,
.lang-btn[aria-current="true"] {
  color: var(--text-charcoal);
  font-weight: 600;
  border-bottom-color: var(--ochre);
}

/* Buttons */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-dark);
  color: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: 5px;
  border: 1px solid var(--bg-dark);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.btn-dark:hover {
  background-color: #36393B;
  color: var(--bg-white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--text-charcoal);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.62rem 1.2rem;
  border-radius: 5px;
  border: 1px solid var(--text-charcoal);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: var(--bg-cream);
}

/* Ochre Underlined Action Link (Matches "Découvrir nos expertises →", "Notre méthode →", "Collaborer avec ACTI-BAT →") */
.link-ochre-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-charcoal);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--ochre);
  align-self: flex-start;
}

.link-ochre-underline:hover {
  color: var(--ochre-hover);
  border-bottom-color: var(--ochre-hover);
}

/* Mobile Menu Button — switches before header gets crowded */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-charcoal);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .header-cta-desktop {
    display: none;
  }
}

/* ==========================================================================
   2. SPLIT HERO WITH BEFORE / AFTER COMPARISON SLIDER
   ========================================================================== */
.hero-split-section {
  background-color: var(--bg-cream);
  width: 100%;
}

.hero-split-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 33.5% 66.5%;
  min-height: 460px;
}

.hero-left-pane {
  background-color: var(--bg-cream);
  padding: 3.75rem 2.5rem 3.75rem max(2.25rem, calc((100vw - var(--container-max)) / 2 + 2.25rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.3vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--text-charcoal);
  margin: 0 0 1.25rem;
}

.hero-sublead {
  font-family: var(--font-sans);
  font-size: 1.04rem;
  line-height: 1.58;
  color: var(--text-body);
  margin: 0 0 2rem;
  max-width: 34ch;
}

/* Before / After Comparison Slider */
.hero-right-pane {
  position: relative;
  overflow: hidden;
  background-color: #D8D0C5;
  min-height: 440px;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  user-select: none;
  touch-action: pan-y;
  --slider-pos: 27%;
}

.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.ba-layer-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--slider-pos)) 0 0);
}

.ba-layer-after {
  z-index: 1;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos);
  width: 2px;
  background-color: #FFFFFF;
  z-index: 4;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.ba-handle {
  position: absolute;
  top: 48%;
  left: var(--slider-pos);
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--text-charcoal);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
}

.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.ba-badge {
  position: absolute;
  bottom: 1.15rem;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--text-charcoal);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ba-badge-before {
  left: 1.25rem;
}

.ba-badge-after {
  right: 1.25rem;
}

@media (max-width: 960px) {
  .hero-split-container {
    grid-template-columns: 1fr;
  }
  .hero-left-pane {
    padding: 2.5rem 1.5rem;
  }
  .hero-right-pane,
  .ba-slider {
    min-height: 320px;
  }
}

/* ==========================================================================
   3. SIX PHOTOGRAPHIC EXPERTISE CARDS (Homepage Section)
   ========================================================================== */
.section-expertises-home {
  padding: 3.25rem 0 3.25rem;
  background-color: var(--bg-white);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  font-weight: 500;
  color: var(--text-charcoal);
  margin: 0 0 1.65rem;
}

.expertise-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem 1.4rem;
}

.expertise-photo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-charcoal);
  group: card;
}

.expertise-card-img-wrap {
  width: 100%;
  aspect-ratio: 313 / 145;
  overflow: hidden;
  background-color: var(--bg-cream);
}

.expertise-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.expertise-photo-card:hover .expertise-card-img-wrap img {
  transform: scale(1.03);
}

.expertise-card-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin: 0.65rem 0 0.4rem;
  line-height: 1.25;
}

.expertise-card-rule {
  width: 36px;
  height: 2px;
  background-color: var(--ochre);
  transition: width 0.22s ease;
}

.expertise-photo-card:hover .expertise-card-rule {
  width: 56px;
}

@media (max-width: 900px) {
  .expertise-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .expertise-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. COMPACT METHOD OVERVIEW BAND ("Du premier relevé à la réception")
   ========================================================================== */
.section-method-band {
  background-color: var(--bg-cream);
  padding: 2.85rem 0;
}

.method-band-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.method-compact-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.method-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--ochre);
  margin-top: 0.15rem;
}

.method-step-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin: 0 0 0.2rem;
}

.method-step-desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-body);
  margin: 0;
  max-width: 24ch;
}

.method-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 0.25rem;
}

.method-cta-col {
  border-left: 1px solid var(--border-subtle);
  padding-left: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
}

@media (max-width: 960px) {
  .method-band-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .method-arrow {
    display: none;
  }
  .method-cta-col {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 1.25rem;
  }
  .method-step-desc {
    max-width: 55ch;
  }
}

/* ==========================================================================
   5. ARCHITECTS SECTION ("Aux côtés des architectes")
   ========================================================================== */
.section-architects-home {
  background-color: var(--bg-white);
  padding: 0.85rem 0;
}

.architects-home-split {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 54% 46%;
  align-items: center;
}

.architects-home-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.architects-home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.architects-home-copy {
  padding: 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.architects-home-copy p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .architects-home-split {
    grid-template-columns: 1fr;
  }
  .architects-home-copy {
    padding: 2rem 1.25rem;
  }
}

/* ==========================================================================
   6. PROJECT ENQUIRY BANNER ("Parlons de votre projet")
   ========================================================================== */
.section-enquiry-banner {
  background-color: var(--bg-cream);
  position: relative;
  overflow: hidden;
  border-top: 8px solid var(--bg-white);
}

.enquiry-banner-split {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  min-height: 220px;
}

.enquiry-banner-copy {
  padding: 2.5rem 2rem 2.5rem max(2.25rem, calc((100vw - var(--container-max)) / 2 + 2.25rem));
  z-index: 2;
}

.enquiry-banner-copy p {
  font-size: 0.98rem;
  color: var(--text-body);
  margin: 0 0 1.35rem;
  max-width: 40ch;
}

.enquiry-banner-visual {
  position: relative;
  height: 100%;
  min-height: 220px;
}

.enquiry-banner-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-cream) 0%, rgba(245, 241, 234, 0.2) 24%, rgba(245, 241, 234, 0) 45%);
  z-index: 1;
  pointer-events: none;
}

.enquiry-banner-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 900px) {
  .enquiry-banner-split {
    grid-template-columns: 1fr;
  }
  .enquiry-banner-copy {
    padding: 2.25rem 1.25rem;
  }
  .enquiry-banner-visual::before {
    background: linear-gradient(180deg, var(--bg-cream) 0%, rgba(245, 241, 234, 0) 35%);
  }
}

/* ==========================================================================
   7. CONCISE DARK FOOTER (Matches prototype footer)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #EAE6DF;
  padding: 1.5rem 0 1.25rem;
  font-size: 0.88rem;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #FFFFFF;
}

.footer-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-divider {
  width: 1px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.22);
}

.footer-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  color: #EAE6DF;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav-list a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #EAE6DF;
  font-size: 0.88rem;
}

.footer-subnote {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: #A9A49C;
}

.footer-subnote a {
  color: #D5CFC4;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
}

@media (max-width: 900px) {
  .footer-divider {
    display: none;
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   8. EXPERTISE OVERVIEW PAGE: INTERACTIVE PHOTOREALISTIC PREVIEW
   Desktop: Large Visual on Left + 6 Trades on Right
   Mobile: Tapping a trade reveals its preview inline + separate link to detail page
   ========================================================================== */
.expertise-interactive-section {
  padding: 3.5rem 0;
  background-color: var(--bg-cream);
}

.expertise-interactive-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 2.5rem;
  align-items: start;
}

.preview-stage-desktop {
  position: sticky;
  top: 96px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(28, 28, 28, 0.06);
}

.preview-visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #E8E1D5;
  overflow: hidden;
}

.preview-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.preview-visual-img.is-active {
  opacity: 1;
  z-index: 2;
}

/* Captions kept strictly BELOW the visual */
.preview-caption-below {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-white);
  border-top: 2px solid var(--ochre);
}

.preview-caption-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  color: var(--text-charcoal);
}

.preview-caption-text {
  font-size: 0.92rem;
  color: var(--text-body);
  margin: 0 0 0.45rem;
}

.preview-illustrative-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Right Column: 6 Interactive Trade Selector Cards */
.trade-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trade-selector-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  border-radius: 4px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.trade-selector-item.is-active {
  border-color: var(--border-subtle);
  border-left-color: var(--ochre);
  box-shadow: 0 6px 20px rgba(28, 28, 28, 0.06);
}

.trade-selector-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-charcoal);
}

.trade-selector-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: 0.25rem;
}

.trade-selector-summary {
  display: block;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.45;
}

.trade-selector-footer {
  padding: 0 1.25rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile inline preview (hidden on desktop, revealed on mobile when trade is tapped) */
.trade-mobile-inline-preview {
  display: none;
  padding: 0.5rem 1.25rem 0.85rem;
}

.trade-mobile-inline-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
}

.trade-mobile-inline-caption {
  padding-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-body);
}

@media (max-width: 960px) {
  .expertise-interactive-grid {
    grid-template-columns: 1fr;
  }
  .preview-stage-desktop {
    display: none;
  }
  .trade-selector-item.is-active .trade-mobile-inline-preview {
    display: block;
  }
}

/* ==========================================================================
   9. INTERIOR PAGES (Company, Individual Expertise, Architects, Method, Projects, Contact)
   ========================================================================== */
.page-hero {
  background-color: var(--bg-cream);
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ochre);
  display: block;
  margin-bottom: 0.55rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text-charcoal);
}

.page-lead {
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--text-body);
  max-width: 62ch;
  margin: 0;
}

.content-section {
  padding: 3.5rem 0;
}

.content-section-cream {
  padding: 3.5rem 0;
  background-color: var(--bg-cream);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.reading-column {
  max-width: 65ch;
}

.reading-column p,
.reading-column li {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-body);
}

.reading-column ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--ochre);
  padding: 1.75rem;
  border-radius: 3px;
}

.info-card-cream {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--ochre);
  padding: 1.5rem 1.75rem;
  border-radius: 3px;
}

/* Subnav for Expertise Pages */
.trade-subnav {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
}

.trade-subnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trade-subnav-link {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.trade-subnav-link:hover,
.trade-subnav-link[aria-current="page"] {
  color: var(--text-charcoal);
  font-weight: 600;
  border-bottom-color: var(--ochre);
}

/* Tables & Method Grid */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.data-table th {
  width: 34%;
  background-color: var(--bg-cream);
  font-weight: 600;
  color: var(--text-charcoal);
}

.steps-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--ochre);
  padding: 1.6rem;
}

.step-number {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ochre);
  display: block;
  margin-bottom: 0.4rem;
}

/* Portfolio Filter & Cards */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-btn.is-active {
  background-color: var(--bg-dark);
  color: var(--bg-white);
  border-color: var(--bg-dark);
}

/* Contact Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-charcoal);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--text-charcoal);
  background-color: var(--bg-white);
  border: 1px solid #C5BDB0;
  border-radius: 4px;
}

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

.illustrative-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .two-col-layout,
  .steps-grid-6,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
