/* ── KUPPERMAN COMPANIES — SHARED STYLES ── */

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

:root {
  --navy:      #000000;
  --navy-dark: #000000;
  --gold:      #b8952a;
  --gold-lt:   #d4af5a;
  --off-white: #f7f5f1;
  --mid-gray:  #6b7280;
  --light-gray:#e5e2dc;
  --text:      #1a2035;
  --serif:     'EB Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.6; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo { align-self: stretch; }
.nav-logo img { height: 100%; width: auto; display: block; background: #000; padding: 0 10px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); }
.nav-cta {
  color: var(--gold-lt) !important;
  border: 1px solid var(--gold); padding: 8px 20px; border-radius: 2px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }

/* ── PAGE HEADER (replaces hero on inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.06);
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.page-title {
  font-family: var(--serif); font-size: clamp(38px, 5vw, 64px);
  font-weight: 400; color: #fff; line-height: 1.1; margin-bottom: 16px;
}
.page-subtitle {
  font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.6);
  max-width: 560px; line-height: 1.7;
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-headline {
  font-family: var(--serif); font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400; line-height: 1.15; color: var(--navy); margin-bottom: 20px;
}
.section-body {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--mid-gray); max-width: 680px;
}
.section-light { background: var(--off-white); }
.section-dark  { background: var(--navy); }
.section-dark .section-headline { color: #fff; }
.section-dark .section-body    { color: rgba(255,255,255,0.6); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--navy);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light {
  display: inline-block; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.07); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--gold); }

/* ── CONTACT CTA STRIP ── */
.cta-strip { background: var(--navy); text-align: center; padding: 100px 48px; }
.cta-strip .section-eyebrow { margin-bottom: 12px; }
.cta-strip .section-headline { color: #fff; margin: 0 auto 16px; }
.cta-strip .section-body { color: rgba(255,255,255,0.6); margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 56px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img {
  height: 32px; filter: brightness(0) invert(1); margin-bottom: 16px; opacity: 0.8;
}
.footer-tagline {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45);
  line-height: 1.7; max-width: 240px; margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-lt); }
.footer-col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .page-header { padding: 120px 24px 60px; }
  .section-inner { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-inner { padding: 0 24px; }
  .cta-strip { padding: 72px 24px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── PHOTO SLIDER ── */
.proj-slider {
  position: relative; overflow: hidden;
  background: var(--navy);
  user-select: none;
}
.proj-slider .slide {
  display: none; position: relative;
}
.proj-slider .slide.active { display: block; }
.proj-slider .slide img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(0,0,0,0.7); color: #fff;
  border: none; width: 44px; height: 44px; font-size: 18px;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: var(--gold); }
.slider-counter {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.8);
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  padding: 4px 10px;
}
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.slider-dot.active { background: var(--gold); transform: scale(1.3); }

/* ── MOBILE HAMBURGER NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: flex !important;
    flex-direction: column; align-items: flex-start;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(12px);
    padding: 24px 32px 32px; gap: 0;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform 0.3s, opacity 0.25s; z-index: 99;
  }
  .nav-links.nav-open {
    transform: translateY(0); opacity: 1; pointer-events: all;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a {
    display: block; padding: 16px 0;
    font-size: 15px; letter-spacing: 0.1em;
  }
  .nav-cta {
    margin-top: 16px; border: 1px solid var(--gold) !important;
    padding: 12px 0 !important; text-align: center;
    display: block; width: 100%;
  }
}

/* ── MOBILE IMPROVEMENTS ── */
@media (max-width: 600px) {
  /* Filter bar: stack label above buttons, allow wrapping */
  .filter-bar { gap: 8px; padding-bottom: 16px; margin-bottom: 32px; }
  .filter-label { width: 100%; margin-right: 0; margin-bottom: 4px; }
  .filter-btn { padding: 7px 12px; font-size: 11px; }
  .view-toggle { margin-left: 0; width: 100%; justify-content: flex-end; }

  /* Project detail pages */
  .proj-detail-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .proj-stats { grid-template-columns: repeat(3,1fr) !important; }
  .proj-hero-content { padding: 0 20px 40px !important; }

  /* Homepage portfolio tiles: 1 column */
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .portfolio-item-large { grid-column: 1 !important; grid-row: auto !important; }

  /* Stats bar */
  .stats-inner { grid-template-columns: 1fr 1fr !important; padding: 0 20px; }
  .stat { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px 8px; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08) !important; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  /* CTA strip */
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline-light { width: 100%; max-width: 280px; text-align: center; }

  /* Company features */
  .company-stats { flex-wrap: wrap; gap: 16px; }

  /* Section padding reduction */
  section { padding: 64px 0; }
  .section-inner { padding: 0 20px; }
}

@media (max-width: 480px) {
  /* Nav padding */
  nav { padding: 0 20px; }

  /* Hero */
  .hero-content { padding: 0 20px !important; padding-top: 72px !important; }

  /* Typography scaling */
  .section-headline { font-size: clamp(26px, 7vw, 40px); }
  .page-title { font-size: clamp(32px, 9vw, 56px); }
}

/* ── PROJECT HERO: show full image without cropping ── */
.proj-hero-img {
  background-size: contain !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
}

/* ── PROJECT HERO: full color, no damping ── */
.proj-hero-img {
  filter: none !important;
}
/* Keep text readable with a bottom-only text shadow and content box */
.proj-eyebrow, .proj-title, .proj-location, .proj-status, .proj-back {
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.proj-hero-content {
  background: linear-gradient(to top, rgba(10,14,28,0.65) 0%, transparent 60%) !important;
}

/* ── ACCESSIBILITY ── */
.skip-link{position:absolute;left:-9999px;top:auto;z-index:2000;background:#000;color:#fff;padding:10px 16px;border:1px solid var(--gold,#b8952a);text-decoration:none;border-radius:2px;}
.skip-link:focus{left:8px;top:8px;}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold-lt,#d4af5a);outline-offset:2px;}
