/* ============================================
   WEIR WELDING - CINEMATIC INDUSTRIAL DESIGN SYSTEM
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  --color-charcoal: #2a2d3a;
  --color-charcoal-deep: #1a1c24;
  --color-slate: #f8f8fa;
  --color-maroon: #800020;
  --color-maroon-hover: #9a0028;
  --color-gold: #a88a3a;
  --color-gold-hover: #927837;
  --color-pulse-red: #cc1a36;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-heading: #1a1c24;
  --color-text-body: #2a2d3a;
  --color-text-muted: #5e6373;
  --color-border: rgba(0,0,0,0.10);
  --color-card: #ffffff;
  --color-overlay: rgba(30,32,40,0.6);
  --shadow-card: 0 1px 8px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.08);

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --text-xs: 0.8125rem;   /* fine print, char counts */
  --text-sm: 0.875rem;    /* labels, nav, eyebrows */
  --text-md: 0.9375rem;   /* card content, secondary */
  --text-base: 1rem;      /* body */

  --container: 1400px;
  --container-narrow: 1000px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(3rem, 8vw, 6rem);

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 30px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease);
  --transition-slow: 0.8s var(--ease);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--color-heading);
}
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p + p { margin-top: 1rem; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--dark { background: var(--color-white); }
.section--slate { background: var(--color-slate); }
.section--maroon { background: var(--color-maroon); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-2 > div > p { max-width: 65ch; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.flex { display: flex; flex-wrap: wrap; gap: var(--gap); }
.flex-center { align-items: center; justify-content: center; }

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-header__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-maroon);
  margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* --- W-PULSE SVG MOTIF --- */
.w-pulse {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 40px;
  margin: 1.5rem auto;
  overflow: visible;
}
.w-pulse polyline {
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.w-pulse.is-visible polyline { stroke-dashoffset: 0; }

.w-pulse--short { max-width: 200px; height: 24px; margin: 0.75rem auto; }
.w-pulse--left { margin-left: 0; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-maroon);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-maroon-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-cta {
  background: var(--color-gold);
  color: var(--color-charcoal-deep);
  box-shadow: 0 0 20px rgba(200,168,78,0.3);
}
.btn-cta:hover { background: var(--color-gold-hover); color: var(--color-charcoal-deep); transform: translateY(-2px); box-shadow: 0 0 30px rgba(200,168,78,0.5); }
.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.btn-outline:hover { background: var(--color-white); color: var(--color-charcoal); }
.btn-sm { padding: 0.6rem 1.4rem; font-size: var(--text-sm); }

/* --- HEADER / NAV --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
}
.site-header.is-solid {
  background: var(--color-white);
  padding: 0.75rem 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { flex-shrink: 0; }
.nav__logo img { height: 75px; width: auto; max-width: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-charcoal-deep);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-maroon);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--color-maroon); }
.nav__cta { margin-left: 0.5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-charcoal-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 999;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal-deep);
}
.mobile-nav a:hover { color: var(--color-maroon); }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero--short { min-height: 50vh; }

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  animation: kenBurns 12s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30,32,40,0.45) 0%,
    rgba(30,32,40,0.20) 40%,
    rgba(30,32,40,0.05) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding-top: 5rem;
}
.hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d9b85a;
  margin-bottom: 1rem;
}
.hero h1, .hero h2, .hero h3 { color: var(--color-white); }
.hero__title { margin-bottom: 1.2rem; }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  max-width: 55ch;
}

/* Hero Dots */
.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}
.hero__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero__dot.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,32,40,0.35), rgba(30,32,40,0.55));
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
}
.page-hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d9b85a;
  margin-bottom: 0.5rem;
}
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--color-white); }
.page-hero__title { margin-bottom: 1rem; }
.page-hero__subtitle {
  max-width: 55ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
}
.breadcrumb {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  margin-top: 1rem;
}
.breadcrumb a { color: #d9b85a; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; color: rgba(255,255,255,0.6); }

/* --- CARDS --- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.15);
}
.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 1.5rem; }
.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

/* Service Card with icon */
.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-maroon);
}
.service-card__icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  color: var(--color-maroon);
}
.service-card__icon svg {
  width: 100%; height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--color-text-muted); font-size: var(--text-md); }

/* --- STATS --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-maroon);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* --- TIMELINE --- */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--color-pulse-red);
  transform: translateX(-50%);
}
.timeline__item {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.timeline__item:nth-child(odd) { margin-left: 0; margin-right: auto; }
.timeline__item:nth-child(even) { margin-left: auto; margin-right: 0; }
.timeline__item + .timeline__item { margin-top: 2rem; }
.timeline__dot {
  position: absolute;
  top: 2rem;
  width: 16px; height: 16px;
  background: var(--color-pulse-red);
  border: 3px solid var(--color-bg);
  border-radius: 50%;
}
.timeline__item:nth-child(odd) .timeline__dot { right: -8px; transform: translateX(50%); right: calc(-50% - 8px + 22.5%); }
.timeline__item:nth-child(even) .timeline__dot { left: -8px; transform: translateX(-50%); left: calc(-50% - 8px + 22.5%); }

/* Simplify: dot positioning */
.timeline__item:nth-child(odd) .timeline__dot { right: -40px; }
.timeline__item:nth-child(even) .timeline__dot { left: -40px; }

.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-maroon);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline__item { width: calc(100% - 50px); margin-left: 50px !important; margin-right: 0 !important; }
  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot { left: -40px; right: auto; }
}

/* --- PARALLAX IMAGE SECTION --- */
.parallax-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-charcoal-deep);
}
.parallax-section__bg {
  position: absolute;
  inset: -20% 0;
}
.parallax-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,32,40,0.55), rgba(30,32,40,0.30));
}
.parallax-section__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}
.parallax-section h1, .parallax-section h2, .parallax-section h3 { color: var(--color-white); }
.parallax-section p { color: rgba(255,255,255,0.92); }
.parallax-section .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.parallax-section .btn-outline:hover { background: var(--color-white); color: var(--color-charcoal-deep); }

/* --- QUOTE BLOCK --- */
.quote-block {
  text-align: center;
  padding: var(--section-pad) 0;
}
.quote-block__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--color-charcoal-deep);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
  max-width: 35ch;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}
.quote-block__text::before,
.quote-block__text::after {
  font-size: 5rem;
  color: var(--color-pulse-red);
  position: absolute;
  line-height: 1;
  font-style: normal;
}
.quote-block__text::before {
  content: '\201C';
  top: -1.5rem;
  left: -1rem;
}
.quote-block__text::after {
  content: '\201D';
  bottom: -2.75rem;
  right: -1rem;
}
.quote-block__author {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--color-maroon);
  text-align: center;
  padding: 3rem 0;
}
.cta-banner h2 { margin-bottom: 1.5rem; }
.cta-banner .btn { background: var(--color-gold); }
.cta-banner .btn:hover { background: var(--color-gold-hover); }

/* --- PROJECTS FILTER --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-white);
  color: var(--color-text-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--color-maroon);
  color: var(--color-white);
  border-color: var(--color-maroon);
}
.filter-btn:focus-visible {
  outline: 2px solid var(--color-maroon);
  outline-offset: 2px;
}

.project-category { margin-bottom: 2rem; }
.project-category__title {
  font-size: 1.3rem;
  color: var(--color-maroon);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.project-list { columns: 1; gap: 0; }
.project-item {
  padding: 0.6rem 0;
  font-size: var(--text-md);
  color: var(--color-text-body);
  break-inside: avoid;
  position: relative;
  padding-left: 1.2rem;
}
.project-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--color-pulse-red);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .project-list { columns: 2; }
}

.project-category[hidden] { display: none; }

/* --- PROJECT PHOTO GALLERY --- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.project-gallery__item {
  cursor: pointer;
  transition: transform var(--transition);
}
.project-gallery__item:hover {
  transform: translateY(-4px);
}
.project-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  display: block;
  transition: border-color 0.3s ease;
}
.project-gallery__item:hover img {
  border-color: var(--color-white);
}
.project-gallery__caption {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.3;
}
@media (max-width: 1024px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .project-gallery { grid-template-columns: 1fr; }
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
  padding: 2rem;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  cursor: default;
}
.lightbox__caption {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-top: 1rem;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 2001;
}
.lightbox__close:hover {
  color: var(--color-gold);
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s ease;
  z-index: 2001;
  line-height: 1;
}
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--color-gold); }
@media (max-width: 768px) {
  .lightbox__prev { left: 0.5rem; font-size: 2rem; }
  .lightbox__next { right: 0.5rem; font-size: 2rem; }
}

/* --- CONTACT / FORM --- */
.office-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  text-align: center;
}
.locations-grid { justify-items: center; align-items: start; }
.office-card h3 {
  color: var(--color-maroon);
  margin-bottom: 1rem;
}
.office-card p {
  margin-bottom: 0.5rem;
  font-size: var(--text-md);
}
.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.18);
}
.office-card a { color: var(--color-maroon); }
.office-card a:hover { text-decoration: underline; }

/* Multi-step Form */
.form-steps { position: relative; }
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}
.form-step.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-progress {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.form-progress__step {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}
.form-progress__step.is-active {
  border-color: var(--color-maroon);
  color: var(--color-maroon);
}
.form-progress__step.is-complete {
  background: var(--color-maroon);
  border-color: var(--color-maroon);
  color: var(--color-white);
}
.form-progress__line {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  align-self: center;
  transition: background 0.3s ease;
}
.form-progress__line.is-active { background: var(--color-maroon); }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal-deep);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-charcoal-deep);
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-maroon);
  outline: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .char-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 0.25rem;
}
.form-group .error-msg {
  font-size: var(--text-xs);
  color: var(--color-pulse-red);
  margin-top: 0.25rem;
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--color-pulse-red); }
.form-group.has-error .error-msg { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 576px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- GOOGLE MAP --- */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--color-border);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- EQUIPMENT LIST --- */
.equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}
.equipment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-left: 3px solid var(--color-pulse-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-md);
  box-shadow: var(--shadow-card);
}
.equipment-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--color-maroon);
}

/* --- BLOG CARD --- */
.blog-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card__image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body { padding: 1.5rem; }
.blog-card__title { font-size: 1.15rem; margin-bottom: 0.75rem; }
.blog-card__excerpt { color: var(--color-text-muted); font-size: var(--text-md); margin-bottom: 1rem; }
.blog-card__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  transition: color 0.3s ease;
}
.blog-card__link:hover { color: var(--color-white); }

/* --- FOOTER --- */
.site-footer {
  background: var(--color-slate);
  border-top: 1px solid var(--color-border);
  padding-top: 0;
}
.footer__pulse { margin-bottom: 0; }
.footer__main {
  padding: 3rem 0 2rem;
}
.footer__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-charcoal-deep);
  text-align: center;
  margin-bottom: 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__office {
  text-align: center;
  max-width: 280px;
}
.footer__office h4 {
  font-size: 1rem;
  color: var(--color-maroon);
  margin-bottom: 0.75rem;
}
.footer__office p {
  font-size: var(--text-md);
  margin-bottom: 0.3rem;
  color: var(--color-text-body);
}
.footer__office a { color: var(--color-maroon); }
.footer__office a:hover { text-decoration: underline; }

.footer__memberships {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}
.footer__memberships p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.footer__memberships span { font-weight: 600; color: var(--color-charcoal-deep); }

.footer__bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer__bottom a { color: var(--color-maroon); }
.footer__bottom a:hover { text-decoration: underline; }
.footer__bottom img {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--color-maroon);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top.is-visible:hover { background: var(--color-maroon-hover); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(128,0,32,0.4); }
.back-to-top svg { width: 20px; height: 20px; }

/* --- FLOATING QUOTE BTN --- */
.floating-quote {
  position: fixed;
  bottom: 2rem;
  right: 5rem;
  z-index: 900;
  animation: floatPulse 3s ease-in-out infinite;
}
.floating-quote:hover {
  animation: none;
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- SCROLL REVEAL --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal--left {
  transform: translateX(-30px);
}
.scroll-reveal--left.is-visible { transform: translateX(0); }
.scroll-reveal--right {
  transform: translateX(30px);
}
.scroll-reveal--right.is-visible { transform: translateX(0); }

/* Stagger delays */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* Section positioning base — keep overflow:hidden so theme-blocks rounded corners clip cleanly */
.section--dark,
.section--slate,
.section--maroon,
.cta-banner,
.site-footer {
  position: relative;
  overflow: hidden;
}

/* --- ANCHOR OFFSET for fixed header --- */
[id] {
  scroll-margin-top: 100px;
}

/* --- HEADING TEXT-WRAP --- */
h1, h2, h3 {
  text-wrap: balance;
}

/* --- MOBILE NAV FOCUS --- */
.mobile-nav a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* --- MISC --- */
.text-center { text-align: center; }
.text-orange { color: var(--color-gold); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.5rem;
  background: var(--color-gold);
  color: var(--color-charcoal-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* --- FOCUS VISIBLE --- */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(200,168,78,0.25);
}
.nav__link:focus-visible::after { width: 100%; }
.nav__link:focus-visible { color: var(--color-gold); }
.hero__dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -1px;
  border-color: var(--color-gold);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- RESPONSIVE --- */
@media (max-width: 576px) {
  .hero__content { padding-top: 6rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .floating-quote { bottom: 1rem; right: 1rem; }
  .back-to-top { bottom: 1rem; right: auto; left: 1rem; }
}

/* --- THEME BLOCKS: rounded section bubbles with maroon border (scoped to body.theme-blocks) --- */
.theme-blocks .hero,
.theme-blocks .page-hero,
.theme-blocks .section,
.theme-blocks .parallax-section {
  margin-left: clamp(0.75rem, 2vw, 2rem);
  margin-right: clamp(0.75rem, 2vw, 2rem);
  border: 1px solid var(--color-maroon);
  border-radius: 20px;
  overflow: hidden;
}
.theme-blocks .hero,
.theme-blocks .page-hero {
  margin-top: calc(100px + 1rem);
  margin-bottom: 1.25rem;
}
.theme-blocks .hero { min-height: 70vh; }
.theme-blocks .page-hero { min-height: 40vh; }
.theme-blocks .section,
.theme-blocks .parallax-section {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.theme-blocks .hero__content,
.theme-blocks .page-hero__content { padding-top: 2.5rem; }
@media (max-width: 576px) {
  .theme-blocks .hero,
  .theme-blocks .page-hero { margin-top: calc(80px + 0.75rem); }
  .theme-blocks .hero { min-height: 60vh; }
  .theme-blocks .page-hero { min-height: 35vh; }
  .theme-blocks .hero__content,
  .theme-blocks .page-hero__content { padding-top: 1.5rem; }
}
