/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Neue Kabel';
  src: url('neue-kabel-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply Neue Kabel to all large display headings */
h1, h2,
.hero-link,
.page-heading,
.work-heading,
.about-heading,
.values-heading,
.banner-text,
.timeline-year,
.stat-num,
.partners-heading,
.contact-left h2,
.detail-name,
.thankyou-heading {
  font-family: 'Neue Kabel', 'Inter', sans-serif;
}

:root {
  --white:       #FFFFFF;
  --f0:          #F0F0F0;
  --c3:          #C2C2C2;
  --c4:          #6E6E6E;
  --graphite:    #2D2D2D;
  --blue6:       #1A6AFF;
  --daylight:    #FFFEF9;
  --charcoal:    #0A0A0A;
  --assist-blue: #285160;
  --ember:       #B85C38;
  --stone:       #F5F3F0;
  --sand:        #E8E3DD;
  --clay:        #D4CFC7;
  --bark:        #A8A39A;
}

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

html { scroll-behavior: smooth; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--stone);
  color: var(--charcoal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-top: 90px; /* clear fixed nav */
}
/* Home page hero sits flush under transparent nav */
body.hero-page { padding-top: 0; }

/* ── NAV ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 44px 0 53px;
  height: 90px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
/* hero-page: start fully transparent */
body.hero-page header {
  background: transparent;
}
/* scrolled state on hero-page — transitions to glass Stone */
body.hero-page header.scrolled {
  background: rgba(245,243,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* all other pages — subtle glass matching page background */
body:not(.hero-page) header {
  background: rgba(245,243,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* nav text: white only when hero-page AND not scrolled */
body.hero-page header:not(.scrolled) .nav-links a,
body.hero-page header:not(.scrolled) .nav-dropdown-trigger { color: white; }
body.hero-page header:not(.scrolled) .nav-links a:hover,
body.hero-page header:not(.scrolled) .nav-dropdown-trigger:hover { color: rgba(255,255,255,.7); }
body.hero-page header:not(.scrolled) .hamburger span { background: white; }
body.hero-page header.scrolled .hamburger span { background: var(--charcoal); }
body.hero-page header:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
/* all other pages / scrolled state — normal dark text, real logo colors */
header.scrolled .nav-links a,
.nav-links a { color: var(--charcoal); }
header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active { color: var(--assist-blue); }
.nav-links a:hover, .nav-links a.active { color: var(--assist-blue); }
/* ── LOGO ── */
.logo { display:inline-flex; align-items:center; text-decoration:none; }
.logo-img { display:block; }
.logo-img--full  { height:72px; width:auto; }   /* with subtext — desktop nav */
.logo-img--small { display:none; height:36px; width:auto; } /* no subtext — mobile */

/* Footer logo */
.footer-logo-img {
  height:48px; width:auto; display:block;
  /* SVG is Assist Blue — invert to white for dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
nav { display:flex; align-items:center; gap:32px; }
.nav-links { display:flex; align-items:center; gap:32px; }
.nav-links a {
  font-size:16px; font-weight:400; color:var(--charcoal);
  text-decoration:none; letter-spacing:.4px; transition:color .2s;
}
header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active { color:var(--assist-blue); }
/* ── WORK DROPDOWN ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 5px;
  font-size: 16px; font-weight: 400; color: var(--charcoal);
  text-decoration: none; letter-spacing: .4px;
  cursor: pointer; background: none; border: none;
  padding: 0; font-family: inherit;
  transition: color .2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--assist-blue); }
body.hero-page header.scrolled .nav-dropdown-trigger:hover,
body.hero-page header.scrolled .nav-dropdown-trigger.active { color: var(--assist-blue); }
.nav-dropdown-trigger svg {
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(245,243,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(216,207,199,0.4);
  border-radius: 8px;
  min-width: 220px;
  padding: 8px 0;
  padding-top: 16px;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 300;
}
/* invisible hover bridge fills the gap between trigger and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px; left: 0; right: 0;
  height: 20px;        /* covers any gap between trigger and menu */
  background: transparent;
}
/* small visual arrow */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--sand);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 15px; font-weight: 400;
  color: var(--charcoal) !important;
  text-decoration: none;
  letter-spacing: .3px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--stone);
  color: var(--assist-blue) !important;
}
.nav-dropdown-menu .dropdown-divider {
  height: 1px; background: var(--sand); margin: 6px 0;
}

/* Mobile dropdown inside mobile-nav */
.mobile-nav .mobile-work-toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 500; color: var(--charcoal);
  padding: 14px 0; border-bottom: 1px solid var(--sand);
  cursor: pointer; background: none; border-top: none;
  border-left: none; border-right: none;
  font-family: inherit; width: 100%;
  border-bottom: 1px solid var(--sand);
}
.mobile-work-toggle svg { transition: transform .2s; }
.mobile-work-toggle.open svg { transform: rotate(180deg); }
.btn-nav {
  background:var(--ember); color:white; padding:11px 22px;
  border-radius:6px; font-weight:600; font-size:15px;
  text-decoration:none; white-space:nowrap;
  transition:background .2s, transform .1s;
  border:none; cursor:pointer;
}
.btn-nav:hover { background:#a04e2f; transform:translateY(-1px); }

/* hamburger — 2 lines, animates to X when open */
.hamburger {
  display:none; flex-direction:column; justify-content:center;
  gap:5px; cursor:pointer; padding:4px;
  background:none; border:none;
  width:32px; height:32px;
  position:relative;
}
.hamburger span {
  display:block; width:24px; height:2px;
  background:var(--charcoal); border-radius:2px;
  transition:transform .3s ease, opacity .3s ease, top .3s ease;
  position:absolute; left:4px;
}
.hamburger span:nth-child(1) { top:10px; }
.hamburger span:nth-child(2) { top:20px; }
.hamburger span:nth-child(3) { display:none; }
/* open state — morphs into X */
.hamburger.open span:nth-child(1) { transform:rotate(45deg); top:15px; }
.hamburger.open span:nth-child(2) { transform:rotate(-45deg); top:15px; }

/* ── MOBILE FULL SCREEN MENU ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 90px; left: 0; right: 0; bottom: 0;
  background: var(--stone);
  z-index: 198;
  flex-direction: column;
  padding: 16px 24px 48px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

/* Main nav links — same small Inter style as Services toggle */
.mobile-nav .mobile-nav-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
  display: block;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  transition: color .2s;
}
.mobile-nav .mobile-nav-link:hover { color: var(--assist-blue); }

/* Services toggle — same style */
.mobile-work-toggle {
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
  cursor: pointer; background: none;
  border-top: none; border-left: none; border-right: none;
  width: 100%;
  transition: color .2s;
}
.mobile-work-toggle:hover { color: var(--assist-blue); }
.mobile-work-toggle svg { transition: transform .2s; flex-shrink: 0; }
.mobile-work-toggle.open svg { transform: rotate(180deg); }
.mobile-work-toggle.open { border-bottom: none; }

/* Services submenu */
.mobile-work-submenu {
  display: none;
  flex-direction: column;
  padding: 0 0 8px 16px;
  border-bottom: 1px solid var(--sand);
}
.mobile-work-submenu.open { display: flex; }
.mobile-work-submenu a {
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 10px 0 !important;
  border-bottom: none !important;
  color: var(--assist-blue) !important;
  text-decoration: none;
  display: block;
  transition: opacity .2s;
}
.mobile-work-submenu a:hover { opacity: .7; }

/* Get Involved button at bottom */
.mobile-nav .btn-nav {
  margin-top: 20px;
  text-align: center;
  color: white !important;
  border-bottom: none !important;
  padding: 13px 22px;
  font-size: 15px;
  border-radius: 6px;
  width: 100%;
}


@media (max-width:768px) {
  /* hide Get Involved button in the header nav on mobile */
  header > nav > .btn-nav { display:none; }
}

/* ── SECTION LABEL ── */
.section-eyebrow {
  display:flex; align-items:center; gap:12px; margin-bottom:16px;
}
.section-eyebrow::before {
  content:''; display:block; width:48px; height:1px; background:var(--assist-blue); flex-shrink:0;
}
.section-eyebrow span {
  font-size:12px; font-weight:500; letter-spacing:1.2px; color:var(--charcoal); text-transform:uppercase;
}

/* ── BUTTONS ── */
.btn-outline {
  display:inline-flex; align-items:center; justify-content:center;
  border:2px solid var(--charcoal); border-radius:6px;
  padding:12px 24px; font-size:16px; font-weight:600;
  color:var(--charcoal); text-decoration:none;
  transition:background .2s, color .2s;
  cursor:pointer; background:transparent;
}
.btn-outline:hover { background:var(--charcoal); color:white; }
.btn-solid {
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--ember); border-radius:6px;
  padding:12px 24px; font-size:16px; font-weight:600;
  color:white; text-decoration:none; border:none; cursor:pointer;
  transition:background .2s, transform .1s;
}
.btn-solid:hover { background:#a04e2f; transform:translateY(-1px); }

/* ── STATS ROW ── */
.stats-row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:32px; border-top:1px solid rgba(0,0,0,.1); padding-top:32px; margin-top:32px; }
.stats-row > div { flex:1; min-width:80px; text-align:center; }
.stat-num { font-size:32px; font-weight:700; color:var(--assist-blue); line-height:1.2; letter-spacing:-.5px; }
.stat-label { font-size:14px; font-weight:400; color:var(--charcoal); opacity:.6; margin-top:4px; }
@media (max-width:600px) {
  .stats-row { gap:24px; }
  .stats-row > div { flex:1 1 calc(50% - 12px); max-width:calc(50% - 12px); }
}

/* ── FOOTER ── */
footer {
  background:var(--graphite); color:var(--clay);
  padding:60px 72px 40px;
}
.footer-inner { max-width:1440px; margin:0 auto; }
.footer-top { display:flex; gap:80px; margin-bottom:48px; flex-wrap:wrap; }
.footer-logo .logo-main { color:var(--daylight); font-size:28px; }
.footer-logo .logo-sub  { color:var(--bark); }
.footer-col h4 { font-size:12px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:var(--bark); margin-bottom:16px; }
.footer-col a  { display:block; font-size:14px; color:var(--clay); text-decoration:none; margin-bottom:10px; transition:color .2s; }
.footer-col a:hover { color:white; }
.footer-col p  { font-size:14px; line-height:22px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:13px; color:var(--bark); }
/* Social icons */
.footer-social { display:flex; gap:16px; margin-top:20px; }
.footer-social a {
  display:flex !important; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  transition:border-color .2s, background .2s;
  flex-shrink:0;
  color:white !important;
  margin-bottom:0 !important;
}
.footer-social a:hover { border-color:white; background:rgba(255,255,255,.1); color:white !important; }
.footer-social svg { width:18px; height:18px; fill:white; display:block; }

/* ── RESPONSIVE HELPERS ── */
@media (max-width:1024px) {
  header { padding:0 32px; }
  footer  { padding:48px 40px 32px; }
}
@media (max-width:768px) {
  header { padding:0 20px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  footer  { padding:40px 20px 28px; }
  .footer-top { gap:36px; }
  .stats-row { grid-template-columns:1fr 1fr; gap:20px; }
  /* swap to no-subtext logo on mobile */
  .logo-img--full  { display:none; }
  .logo-img--small { display:block; }
}

/* ── SHARED PORTFOLIO CARD + DETAIL STYLES ──────────────────────────────── */
/* Used by portfolio.html, community-design.html, and any future page        */

.proj-row {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:20px; margin-bottom:20px;
  width:100%;
}
.proj-card {
  cursor:pointer; position:relative;
  border-radius:6px; overflow:hidden; background:var(--clay);
  width:100%;
}
.proj-card-img {
  width:100%; aspect-ratio:243/258;
  overflow:hidden; display:block; position:relative;
}
.proj-card-img img {
  width:100%; height:100%; object-fit:cover; object-position:center;
  display:block; transition:transform .4s ease;
}
.proj-card:hover .proj-card-img img { transform:scale(1.04); }
.proj-overlay {
  position:absolute; inset:0; background:rgba(10,10,10,0);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:20px; transition:background .3s ease; pointer-events:none;
}
.proj-card:hover .proj-overlay { background:rgba(10,10,10,.68); }
.proj-overlay-content {
  opacity:0; transform:translateY(6px);
  transition:opacity .25s ease, transform .25s ease;
}
.proj-card:hover .proj-overlay-content { opacity:1; transform:translateY(0); }
.proj-overlay-title {
  font-size:16px; font-weight:700; color:white; line-height:22px;
  margin-bottom:4px; font-family:'Neue Kabel','Inter',sans-serif;
}
.proj-overlay-cat  { font-size:12px; font-weight:500; color:rgba(255,255,255,.8); text-transform:uppercase; letter-spacing:.8px; margin-bottom:2px; }
.proj-overlay-size { font-size:12px; font-weight:400; color:rgba(255,255,255,.7); }
.proj-card.active  { box-shadow:0 0 0 3px var(--assist-blue); }

/* Detail panel */
.proj-detail {
  display:none; background:var(--sand); border-radius:8px;
  padding:48px; margin-bottom:20px;
  animation:projSlideDown .3s ease; position:relative;
}
.proj-detail.visible { display:flex; gap:48px; }
@keyframes projSlideDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
.proj-detail-close {
  position:absolute; top:16px; right:16px;
  width:34px; height:34px; border-radius:50%;
  background:var(--clay); border:none; cursor:pointer;
  font-size:16px; color:var(--graphite);
  display:flex; align-items:center; justify-content:center;
  transition:background .2s; z-index:10;
}
.proj-detail-close:hover { background:var(--bark); color:white; }

/* On mobile — hide X, user taps card to close */
@media(max-width:768px) {
  .proj-detail.visible {
    flex-direction:column;
    padding:16px;
    gap:16px;
  }
  .proj-detail-close { display:none; }
  .proj-carousel {
    width:100% !important;
    min-width:unset !important;
    border-radius:6px;
  }
  .proj-detail-content { padding:0; }
}

/* Carousel */
.proj-carousel {
  width:460px; min-width:460px; flex-shrink:0;
  position:relative; border-radius:6px;
  overflow:hidden;                          /* critical — clips slides */
  background:var(--clay); aspect-ratio:4/3;
}
.carousel-track {
  display:flex; height:100%;
  transition:transform .35s ease;
  will-change:transform;
}
.carousel-slide {
  width:100%;                               /* fixed width not min-width */
  min-width:100%;
  height:100%; flex-shrink:0;
  position:relative;
}
.carousel-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.carousel-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.85); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; color:var(--charcoal); transition:background .2s; z-index:2;
}
.carousel-btn:hover { background:white; }
.carousel-btn.prev { left:12px; }
.carousel-btn.next { right:12px; }
.carousel-dots {
  position:absolute; bottom:12px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:2;
}
.carousel-dot {
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,.5); border:none; cursor:pointer;
  padding:0; transition:background .2s;
}
.carousel-dot.active { background:white; }

/* Fullscreen expand button */
.carousel-expand-btn {
  position:absolute; top:10px; right:10px; z-index:3;
  width:32px; height:32px; border-radius:6px;
  background:rgba(0,0,0,.45); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.carousel-expand-btn:hover { background:rgba(0,0,0,.7); }
.carousel-expand-btn svg { width:16px; height:16px; }

/* Fullscreen modal */
.carousel-modal {
  display:none; position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.92); flex-direction:column;
  align-items:center; justify-content:center;
}
.carousel-modal.open { display:flex; }
.carousel-modal-inner {
  position:relative; width:90vw; max-width:1200px;
  aspect-ratio:16/9; overflow:hidden; border-radius:8px;
}
.carousel-modal-track {
  display:flex; height:100%;
  transition:transform .35s ease;
  will-change:transform;
}
.carousel-modal-slide {
  width:100%; min-width:100%; height:100%; flex-shrink:0;
}
.carousel-modal-slide img { width:100%; height:100%; object-fit:contain; display:block; }
.carousel-modal-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px; border-radius:50%;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:28px; color:white; transition:background .2s; z-index:2;
}
.carousel-modal-btn:hover { background:rgba(255,255,255,.3); }
.carousel-modal-btn.prev { left:12px; }
.carousel-modal-btn.next { right:12px; }
.carousel-modal-close {
  position:absolute; top:24px; right:24px;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:20px; color:white; transition:background .2s; z-index:1001;
}
.carousel-modal-close:hover { background:rgba(255,255,255,.3); }
.carousel-modal-dots {
  position:absolute; bottom:-40px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px;
}
.carousel-modal-dot {
  width:8px; height:8px; border-radius:50%;
  background:rgba(255,255,255,.4); border:none; cursor:pointer;
  padding:0; transition:background .2s;
}
.carousel-modal-dot.active { background:white; }
.carousel-modal-counter {
  position:absolute; bottom:-40px; right:0;
  font-size:13px; color:rgba(255,255,255,.6);
  font-family:'Inter',sans-serif;
}

/* Detail content */
.proj-detail-content { flex:1; display:flex; flex-direction:column; gap:16px; }
.proj-detail-cat {
  display:inline-block; background:var(--ember); color:white;
  font-size:11px; font-weight:600; letter-spacing:.96px; text-transform:uppercase;
  padding:4px 12px; border-radius:4px; align-self:flex-start;
}
.proj-detail-title {
  font-size:36px; font-weight:700; line-height:1.1; letter-spacing:-1px;
  color:var(--graphite); font-family:'Neue Kabel','Inter',sans-serif;
}
.proj-detail-meta { display:flex; gap:24px; flex-wrap:wrap; }
.proj-meta-item { font-size:13px; color:var(--bark); }
.proj-meta-item strong {
  display:block; font-size:11px; font-weight:600; letter-spacing:.8px;
  text-transform:uppercase; color:var(--assist-blue); margin-bottom:2px;
}
.proj-detail-desc { font-size:16px; line-height:26px; color:var(--graphite); letter-spacing:.3px; }
.proj-detail-desc p + p { margin-top:12px; }

@media(max-width:1024px) {
  .proj-row { grid-template-columns:repeat(3,1fr); }
  .proj-carousel { width:320px; min-width:320px; }
}
@media(max-width:768px) {
  .proj-row {
    grid-template-columns:repeat(2,1fr);
    gap:10px; margin-bottom:10px;
    width:100%;
  }
  .proj-detail.visible { flex-direction:column; padding:24px; gap:24px; }
  .proj-carousel { width:100%; min-width:unset; aspect-ratio:4/3; }
  .proj-detail-title { font-size:26px; }
  .proj-detail { margin-bottom:12px; }
}
@media(max-width:480px) {
  .proj-row { gap:8px; }
}

/* ── WORK/PORTFOLIO STRIP (used on service subpages) ── */
.work-strip { background:var(--sand); padding:72px 72px 80px; }
.work-strip-inner { max-width:1296px; margin:0 auto; }
.work-strip-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.work-strip-header h2 { font-size:16px; font-weight:700; color:var(--charcoal); }
.work-strip-divider { height:1px; background:var(--assist-blue); margin-bottom:32px; }
@media(max-width:900px){ .work-strip { padding:48px 24px; } }
