/* ═══════════════════════════════════════════════════════════
   LV CONSTRUCTION — BD SITE STYLES
   Brand Kit v2: Six Peak Capital / LV Construction
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Brand Kit Tokens) ── */
:root {
  --color-denim:       #0B1833;
  --color-space:       #2C3A51;
  --color-steel:       #BFC7DA;
  --color-ghost:       #F8F9F4;
  --color-green:       #717F4B;
  --color-rust:        #C4581A;
  --color-rust-glow:   #E8935A;
  --color-rust-light:  rgba(196,88,26,0.12);
  --color-rust-subtle: rgba(196,88,26,0.06);
  --color-white:       #F8FAFC;
  --color-gray:        #94A3B8;
  --color-gray-dark:   #475569;
  --color-black:       #0F172A;

  /* Light-mode surfaces */
  --surface-bg:        #E2E7F0;
  --surface-card:      #FFFFFF;
  --surface-alt:       #F4F6FA;
  --surface-border:    rgba(11,24,51,0.08);
  --surface-border-md: rgba(11,24,51,0.12);

  /* Typography */
  --font-display: 'DM Sans', 'Segoe UI', sans-serif;
  --font-body:    'Aptos', 'DM Sans', Calibri, 'Segoe UI', sans-serif;

  --fs-xs:   0.7rem;
  --fs-sm:   0.8rem;
  --fs-base: 0.95rem;
  --fs-md:   1.05rem;
  --fs-lg:   1.3rem;
  --fs-xl:   1.8rem;
  --fs-xxl:  2.5rem;
  --fs-hero: 3.2rem;

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-xxl: 3rem;
  --sp-section: 5rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:    0 12px 40px rgba(11,24,51,0.12);
  --shadow-glow:     0 8px 25px rgba(196,88,26,0.2);
  --shadow-elevated: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-soft:     0 2px 12px rgba(0,0,0,0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  font-family: var(--font-body);
  background: var(--surface-bg);
  color: var(--color-denim);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-rust);
  margin-bottom: var(--sp-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-xxl);
  font-weight: 700;
  color: var(--color-denim);
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-gray-dark);
  max-width: 640px;
  line-height: 1.7;
}

section {
  padding: var(--sp-section) 0;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-shrink: 0;
}

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

.nav-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-logo-img[alt="LV Construction"] {
  height: 60px;
}

.nav-logo-divider {
  width: 1px;
  height: 40px;
  background: var(--surface-border-md);
}

@media (max-width: 900px) {
  .nav-logo-img { height: 28px; }
  .nav-logo-divider { height: 22px; }
  .nav-brand { gap: var(--sp-sm); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xxl);
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-denim);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-rust);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.65rem 1.5rem;
  background: var(--color-rust);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--color-rust-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--color-rust);
  outline-offset: 3px;
}

.btn-cta-outline {
  background: transparent;
  border: 1.5px solid var(--color-rust);
  color: var(--color-rust);
}

.btn-cta-outline:hover {
  background: var(--color-rust);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-denim);
  stroke-width: 2;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: var(--sp-lg);
    gap: var(--sp-lg);
    border-top: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 6rem 0 0;
  overflow: hidden;
  background: var(--color-denim);
}

/* Slideshow background */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,24,51,0.7);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-bottom: 4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--sp-lg);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-rust-glow);
}

.hero p {
  font-size: var(--fs-md);
  color: var(--color-steel);
  line-height: 1.8;
  margin-bottom: var(--sp-xl);
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--color-space);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.stat-item {
  background: var(--color-space);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-xxl);
  font-weight: 700;
  color: var(--color-rust-glow);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--color-steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-link {
  color: var(--color-rust-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.hero-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: var(--fs-xxl); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About ── */
.about {
  background: var(--surface-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: start;
  margin-top: var(--sp-xl);
}

.about-text p {
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.highlight-card {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.highlight-card:hover {
  border-color: rgba(196,88,26,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.highlight-card .icon {
  width: 40px;
  height: 40px;
  background: var(--color-rust-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.highlight-card .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-rust);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.highlight-card p {
  font-size: var(--fs-sm);
  color: var(--color-gray-dark);
  line-height: 1.6;
}

/* (Company logos moved to footer) */

/* Approach callout */
.approach-callout {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.approach-callout-inner {
  background: var(--color-denim);
  color: var(--color-steel);
  border-radius: var(--radius-lg);
  padding: var(--sp-xxl);
  line-height: 1.8;
  font-size: var(--fs-base);
  border-left: 4px solid var(--color-rust);
}

.approach-callout-inner p {
  margin-bottom: var(--sp-md);
}

.approach-callout-inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .approach-callout-inner { padding: var(--sp-xl); }
}

/* ── Process ── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  position: relative;
}

/* Connector line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-steel);
  z-index: 0;
  pointer-events: none;
}

.process-step {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.process-step:hover {
  border-color: rgba(196,88,26,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--color-denim);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  margin: 0 auto var(--sp-md);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--color-gray-dark);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .process-timeline::before { display: none; }
}

@media (max-width: 480px) {
  .process-timeline { grid-template-columns: 1fr; }
}

/* ── Track Record ── */
.track-record {
  background: var(--surface-card);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.project-card {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: rgba(196,88,26,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ── Project Carousel (auto-scroll like lvllc.com/projects) ── */
.project-carousel {
  position: relative;
  background: var(--color-black);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback for missing images */
.carousel-slide img[src=""],
.carousel-slide img:not([src]) {
  display: none;
}

.carousel-slide img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-space);
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(11,24,51,0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.carousel-arrow:hover {
  background: var(--color-rust);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-prev { left: var(--sp-md); }
.carousel-next { right: var(--sp-md); }

/* Thumbnail strip */
.carousel-thumbs {
  display: flex;
  gap: 4px;
  padding: var(--sp-sm);
  overflow-x: auto;
  background: var(--color-black);
  scrollbar-width: thin;
  scrollbar-color: var(--color-space) transparent;
}

.carousel-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  padding: 0;
  background: none;
}

.carousel-thumb:hover {
  opacity: 0.8;
}

.carousel-thumb.active {
  opacity: 1;
  border-color: var(--color-rust);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Clickable project cards */
.project-card[data-project] {
  cursor: pointer;
}

/* Carousel slide placeholder (in modal) */
.carousel-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-space);
  color: var(--color-steel);
  gap: var(--sp-sm);
}

.carousel-slide-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-steel);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.4;
}

.carousel-slide-placeholder span {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-space);
  color: var(--color-steel);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ── Gallery Modal ── */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}

.gallery-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: var(--color-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--color-denim);
}

.gallery-modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
}

.gallery-modal-close {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.gallery-modal-close:hover {
  background: rgba(255,255,255,0.1);
}

.gallery-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 768px) {
  .gallery-modal { padding: 0; }
  .gallery-modal-content { border-radius: 0; max-width: 100%; height: 100%; display: flex; flex-direction: column; }
  .gallery-modal-content .carousel-viewport { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* Photo area */
.project-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-space);
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-steel);
  gap: var(--sp-sm);
}

.photo-placeholder.placeholder-active,
.project-photo:not(:has(img)) .photo-placeholder {
  display: flex;
}

.photo-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-steel);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.photo-placeholder span {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.photo-gallery-link {
  position: absolute;
  bottom: var(--sp-sm);
  right: var(--sp-sm);
  padding: 0.35rem 0.75rem;
  background: rgba(11,24,51,0.85);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  cursor: pointer;
}

.photo-gallery-link:hover {
  background: var(--color-rust);
}

.project-type-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--color-rust-light);
  color: var(--color-rust);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-status-completed {
  background: rgba(16,185,129,0.12);
  color: #059669;
}

.project-status-under-construction {
  background: rgba(245,158,11,0.12);
  color: #D97706;
}

.project-status-pre-construction {
  background: rgba(59,130,246,0.12);
  color: #2563EB;
}

.project-card-body {
  padding: var(--sp-lg);
}

.project-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.project-details-grid {
  margin-top: var(--sp-md);
}

.project-detail {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: var(--fs-sm);
}

.project-detail:last-child { border-bottom: none; }

.project-detail-label {
  color: var(--color-gray);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}

.project-detail-value {
  font-weight: 600;
  color: var(--color-denim);
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── Subcontractors ── */
.subs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  margin-top: var(--sp-xl);
  align-items: start;
}

.trades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.trade-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color 0.2s;
}

.trade-item:hover {
  border-color: rgba(196,88,26,0.3);
}

.trade-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-rust);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.vetting-list {
  list-style: none;
}

.vetting-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: var(--fs-sm);
  color: var(--color-gray-dark);
  line-height: 1.7;
}

.vetting-list li:last-child { border-bottom: none; }

.vetting-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-green);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

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

/* ── Team ── */
.team {
  background: var(--surface-card);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

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

.team-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--sp-lg);
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
  border: 3px solid var(--surface-border);
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-space);
}

.team-photo.no-photo {
  background: var(--color-space);
}

.team-photo-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-steel);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-photo img[alt="Joe Lakamp"] { object-position: center 35% !important; }
.team-photo img[alt="Alina Akopians"] { object-position: center 35% !important; }
.team-photo img[alt="Nick Donald"] { object-position: center 35% !important; }
.team-photo img[alt="Devis Tejada"] { object-position: center 35% !important; }
.team-photo img[alt="Kim Moreno"] { object-position: center 35% !important; }
.team-photo img[alt="Chris Andresen"] { object-position: center 40% !important; }
.team-photo img[alt="Derek Sanders"] { object-position: center 10% !important; }

.team-member h3 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.team-role {
  font-size: var(--fs-sm);
  color: var(--color-rust);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-sm);
}

.team-company {
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.team-bio {
  font-size: var(--fs-sm);
  color: var(--color-gray-dark);
  line-height: 1.6;
}

.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
}

.team-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { width: 120px; height: 120px; }
}

/* ── Horizontal Timeline (clickable card steps) ── */
.timeline-horizontal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-xxl);
  margin-top: var(--sp-xl);
  align-items: stretch;
}

.timeline-step {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.timeline-step.active {
  outline: 3px solid var(--color-rust-glow);
  outline-offset: 2px;
}

/* Alternating backgrounds */
.timeline-step:nth-child(odd) {
  background: var(--color-denim);
}

.timeline-step:nth-child(even) {
  background: var(--color-rust);
}

.timeline-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-sm);
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: var(--sp-sm);
}

.timeline-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  flex: 1;
}

.timeline-arrow {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--sp-xxl) / 2 - 16px);
  transform: translateY(-50%);
  z-index: 2;
}

.timeline-arrow svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-rust);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-detail { display: none; }

/* Expanded detail panel */
.timeline-expanded {
  margin-top: var(--sp-lg);
  animation: slideDown 0.3s ease-out;
}

.timeline-expanded[hidden] { display: none; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-expanded-inner {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-card);
}

.timeline-expanded-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.timeline-expanded-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-denim);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
}

.timeline-expanded-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-denim);
  flex: 1;
}

.timeline-expanded-close {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.timeline-expanded-close:hover {
  background: var(--surface-alt);
}

.timeline-expanded-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gray-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.timeline-expanded-body {
  font-size: var(--fs-base);
  color: var(--color-gray-dark);
  line-height: 1.8;
}

@media (max-width: 1200px) {
  .timeline-horizontal { grid-template-columns: repeat(4, 1fr); }
  .timeline-step { min-height: 180px; }
}

@media (max-width: 768px) {
  .timeline-horizontal { grid-template-columns: repeat(2, 1fr); }
  .timeline-arrow { display: none; }
  .timeline-step { min-height: 160px; }
}

@media (max-width: 480px) {
  .timeline-horizontal { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-expanded { animation: none; }
}

/* ── Timing ── */
.timing {
  background: var(--surface-card);
}

.timeline-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--sp-xl);
}

.timeline-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.timeline-table thead {
  background: var(--color-denim);
  color: #fff;
}

.timeline-table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-table td {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--surface-border);
  color: var(--color-gray-dark);
}

.timeline-table tbody tr:hover {
  background: var(--color-rust-subtle);
}

.timeline-table .duration {
  font-weight: 600;
  color: var(--color-denim);
}

.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xxl);
  overflow: hidden;
}

.milestone {
  text-align: center;
  padding: var(--sp-lg);
}

.milestone-dot {
  width: 12px;
  height: 12px;
  background: var(--color-rust);
  border-radius: 50%;
  margin: 0 auto var(--sp-md);
  position: relative;
}

.milestone-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 200%;
  max-width: 180px;
  height: 2px;
  background: var(--color-steel);
}

.milestones > :last-child .milestone-dot::before {
  display: none;
}

.milestone h4 {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.milestone p {
  font-size: var(--fs-xs);
  color: var(--color-gray);
}

@media (max-width: 768px) {
  .milestones { grid-template-columns: 1fr 1fr; }
  .milestone-dot::before { display: none; }
  .timeline-table { font-size: var(--fs-xs); }
  .timeline-table th,
  .timeline-table td { padding: var(--sp-sm) var(--sp-md); }
}

/* ── Contact ── */
.contact {
  background: var(--color-denim);
  color: #fff;
  text-align: center;
}

.contact .section-label {
  color: var(--color-rust-glow);
}

.contact .section-title {
  color: #fff;
}

.contact .section-subtitle {
  color: var(--color-steel);
  margin: 0 auto var(--sp-xl);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--sp-xxl);
  margin-top: var(--sp-xl);
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  color: var(--color-steel);
  font-size: var(--fs-base);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-rust-glow);
  fill: none;
  stroke-width: 2;
}

.contact-cta {
  margin-top: var(--sp-xxl);
}

/* ── Footer ── */
.footer {
  background: var(--color-black);
  color: var(--color-gray);
  text-align: center;
  padding: var(--sp-xxl) 0 var(--sp-xl);
  font-size: var(--fs-sm);
}


/* ── Skip Link (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  padding: var(--sp-sm) var(--sp-lg);
  background: var(--color-rust);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--sp-md);
}

/* ── Focus styles ── */
*:focus-visible {
  outline: 2px solid var(--color-rust);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--color-rust-light);
  color: var(--color-denim);
}

/* ── Touch optimization ── */
a, button {
  touch-action: manipulation;
}

/* ── Cursor pointer on interactive cards ── */
.highlight-card,
.project-card,
.client-card,
.trade-item,
.bid-step,
.process-step {
  cursor: default;
}

/* ── Active/pressed states for buttons (scale feedback) ── */
.btn-cta:active {
  transform: translateY(0) scale(0.97);
}

/* ── Nav link active indicator ── */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-rust);
  transition: width 0.25s ease-out;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stat number tabular figures for counter animation */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-links a::after { transition: none; }
  .btn-cta:active { transform: none; }
}

/* ── Print styles ── */
@media print {
  .nav, .stats-bar, .contact-cta, .skip-link { display: none; }
  section { padding: 1.5rem 0; break-inside: avoid; }
  body { background: #fff; }
  .hero { background: #fff; color: var(--color-denim); padding: 2rem 0; }
  .hero h1, .hero p { color: var(--color-denim); }
}
