/* ============================================================
   Graebeck Construction — Custom Stylesheet
   Supplements Tailwind CDN with bespoke effects.
   Google Fonts loaded via <link> in each HTML <head>.
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --onyx:        #1A1A1A;
  --forest:      #227750;
  --forest-dark: #1a5c3a;
  --cool:        #F4F4F9;
  --blue:        #005193;
  --blue-light:  #0066b8;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cool);
  color: var(--onyx);
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
#navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.4s ease, background 0.3s ease;
  position: relative;
  border-bottom: 1px solid rgba(0, 81, 147, 0.1);
}
#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 81, 147, 0.2);
}
.nav-logo {
  background: transparent;
  padding: 0;
  backdrop-filter: none;
}
.nav-logo img {
  filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.25));
  max-width: none;
}
/* Logo entrance animation: homepage only */
body.page-home .nav-logo img {
  animation: logoEntrance 0.8s ease-out both;
}
@keyframes logoEntrance {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Navbar CTA — slightly smaller than page buttons */
.nav-cta {
  padding: 12px 24px;
  font-size: 0.72rem;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--blue-light); transform: translateY(-1px); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--blue); font-weight: 700; }
.nav-link.active::after { width: 100%; background: var(--blue-light); }
.nav-link:focus-visible,
.nav-link:focus { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.88) 0%,
    rgba(26,26,26,0.65) 50%,
    rgba(34,119,80,0.25) 100%
  );
}

/* Hero heading line-by-line animation (homepage only) */
.hero-line {
  display: block;
  opacity: 0;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
.hero-line-1 { animation-name: heroFromLeft;  animation-delay: 0.1s; }
.hero-line-2 { animation-name: heroFromRight; animation-delay: 0.4s; }
.hero-line-3 { animation-name: heroFromLeft;  animation-delay: 0.7s; }

@keyframes heroFromLeft  { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroFromRight { from { opacity: 0; transform: translateX(60px);  } to { opacity: 1; transform: translateX(0); } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,81,147,0.15);
  border: 1px solid rgba(0,81,147,0.4);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ── Typography ── */
.heading-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.heading-section {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.label-overline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--forest);
}
.label-overline.light { color: #fff; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 2px solid var(--blue);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); }
.btn-primary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-outline:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 3px; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 2px solid var(--blue);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-dark:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); }
.btn-dark:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

/* ── Stats Bar ── */
.stats-bar { background: var(--onyx); border-top: 3px solid var(--blue); }
.stat-item { text-align: center; padding: 28px 24px; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.875rem;
  color: #ffffff;
  line-height: 1;
  display: block;
}
.stat-suffix { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.25rem; color: #ffffff; }
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 6px;
}

/* ── Project Cards ── */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.85);
}
.project-card:hover img { transform: scale(1.07); filter: brightness(0.5); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, transparent 60%);
  transition: opacity 0.4s;
}
.project-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  transform: translateY(4px);
  transition: transform 0.4s;
}
.project-card:hover .project-card-content { transform: translateY(0); }
.project-card-tag {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.project-card-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-card-arrow { opacity: 1; transform: translateY(0); }

/* Project filter — hidden state (JS toggles this class) */
.card-hidden { display: none; }

/* ── Service Cards ── */
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(26,26,26,0.12); border-color: var(--blue); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(34,119,80,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--forest);
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon { background: var(--forest); color: #fff; }

/* ── About Image ── */
.about-img-wrapper {
  position: relative;
  width: 100%;
  display: block;
  align-self: stretch;
  padding-bottom: 16px;
  padding-right: 16px;
  overflow: visible;
}
.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: 14px; left: 14px; right: 0; bottom: 0;
  border: 3px solid var(--blue);
  z-index: 0;
}
.about-img-wrapper picture { display: block; height: 100%; }
.about-img-wrapper img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cool);
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--onyx);
}
.cert-badge .badge-dot { width: 8px; height: 8px; background: var(--forest); border-radius: 50%; flex-shrink: 0; }

/* ── CTA Section ── */
.cta-section {
  background: var(--onyx);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,119,80,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ── */
.site-footer { background: #111; border-top: 3px solid var(--blue); }
.footer-link {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 2;
}
.footer-link:hover { color: var(--blue); }
.footer-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 160px 0 120px;
  min-height: 508px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }

/* Ken Burns effect on page hero backgrounds */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 10s ease;
}
.page-hero-bg.loaded { transform: scale(1); }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(10,10,10,0.88) 0%, rgba(17,17,17,0.72) 50%, rgba(26,26,26,0.50) 100%);
  z-index: 1;
}

/* ── Project Card Heights ── */
.project-card-xl { height: 520px; }
.project-card-lg { height: 340px; }
.project-card-md { height: 248px; }
.project-card-sm { height: 240px; }

/* ── Filter Buttons ── */
.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 2px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover,
.filter-btn.active  { background: var(--onyx); border-color: var(--onyx); color: #fff; }
.filter-btn.active  { background: var(--forest); border-color: var(--forest); }
.filter-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Project Detail ── */
.project-hero-img { width: 100%; height: 55vh; min-height: 420px; object-fit: cover; }
.project-meta-item { padding: 16px 0; border-bottom: 1px solid #e5e7eb; }
.project-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 4px;
}
.gallery-thumb { aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-thumb:hover img { transform: scale(1.08); }

/* ── Contact Form ── */
.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: #fff;
  border: 2px solid #e5e7eb;
  color: var(--onyx);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.25s;
  appearance: none;
}
.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--forest); }
.contact-form label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--onyx);
  margin-bottom: 6px;
}

/* ── Divider ── */
.blue-divider { width: 60px; height: 3px; background: var(--blue); margin: 16px 0 24px; }

/* ── Scroll Reveal ── */
[data-reveal] { opacity: 1; transform: none; }

/* ── Lightbox ── */
#lightbox #lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
#lb-close:hover { border-color: #fff; }
#lb-prev, #lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 16px;
  z-index: 10;
  transition: background 0.2s;
}
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.2); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid var(--blue);
}

/* ── Mobile Hamburger ── */
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; transition: transform 0.3s ease; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--blue); transition: transform 0.3s, opacity 0.3s, width 0.3s; transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.hamburger:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ── Full-Screen Nav Overlay ── */
#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), visibility 0.45s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
#nav-overlay.open { opacity: 1; visibility: visible; }
#nav-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--forest), transparent);
  opacity: 0.6;
}
.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.overlay-logo img { height: 42px; width: auto; display: block; }
.overlay-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.25s, border-color 0.25s, transform 0.35s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}
.overlay-close:hover { color: var(--blue-light); border-color: var(--blue-light); transform: rotate(90deg); }
.overlay-close:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 3px; }
.overlay-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 60px; }
.overlay-link {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  line-height: 1.15;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, padding-left 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
#nav-overlay.open .overlay-link {
  animation: overlayLinkIn 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
#nav-overlay.open .overlay-link:nth-child(1) { animation-delay: 0.12s; }
#nav-overlay.open .overlay-link:nth-child(2) { animation-delay: 0.19s; }
#nav-overlay.open .overlay-link:nth-child(3) { animation-delay: 0.26s; }
#nav-overlay.open .overlay-link:nth-child(4) { animation-delay: 0.33s; }
.overlay-link::before {
  content: '';
  position: absolute;
  left: -4px; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%;
  background: var(--blue);
  transition: transform 0.25s ease;
  transform-origin: center;
}
.overlay-link:hover { color: #ffffff; padding-left: 16px; }
.overlay-link:hover::before { transform: translateY(-50%) scaleY(1); }
.overlay-link.active-page { color: rgba(255,255,255,0.95); }
.overlay-link:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 3px; }

.overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 36px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.25s, transform 0.2s;
  opacity: 0;
}
#nav-overlay.open .overlay-cta {
  animation: overlayLinkIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
.overlay-cta:hover { background: var(--blue-light); transform: translateY(-2px); }
.overlay-cta::before { display: none; }
.overlay-cta:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 3px; }

@keyframes overlayLinkIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overlay-footer {
  padding: 20px 60px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.overlay-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .heading-display { font-size: 2.4rem; }
  .about-img-wrapper::before { display: none; }
  .stat-number { font-size: 1.875rem; }
}

/* ================================================================
   Vanilla Layout System — no external dependencies
   ================================================================ */

/* ── Navbar fix: move positioning out of utility classes ── */
#navbar { position: fixed; top: 0; width: 100%; z-index: 50; }
@media (min-width: 768px) { .hamburger { display: none; } }

/* ── Accessibility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Positioning & Display ── */
.relative        { position: relative; }
.absolute        { position: absolute; }
.inset-0         { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden  { overflow: hidden; }
.w-full          { width: 100%; }
.h-full          { height: 100%; }
.object-cover    { object-fit: cover; }
.flex            { display: flex; }
.hidden          { display: none; }
.flex-shrink-0   { flex-shrink: 0; }
.rounded-full    { border-radius: 9999px; }
.block           { display: block; }
.inline-block    { display: inline-block; }
.inline-flex     { display: inline-flex; align-items: center; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.self-start      { align-self: flex-start; }
.order-first     { order: 1; }
.order-last      { order: 2; }
@media (min-width: 768px)  { .md-self-auto { align-self: auto; } }
@media (min-width: 1024px) { .lg-order-first { order: 1; } .lg-order-last { order: 2; } }
.accent-forest     { accent-color: var(--forest); }
.sticky-sidebar    { position: sticky; top: 7rem; }
.transition-colors { transition: color 0.2s; }
.hover\:text-blue:hover   { color: var(--blue); }
.hover\:text-forest:hover { color: var(--forest); }
.hover\:underline:hover   { text-decoration: underline; }
.hover-text-blue:hover { color: var(--blue); }
.cursor-pointer    { cursor: pointer; }

/* ── Container ── */
.container {
  max-width: 80rem;
  margin-left: auto; margin-right: auto;
  padding-left: 1.5rem; padding-right: 1.5rem;
}
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

.container-narrow {
  max-width: 56rem;
  margin-left: auto; margin-right: auto;
  padding-left: 1.5rem; padding-right: 1.5rem;
  text-align: center;
}
@media (min-width: 1024px) { .container-narrow { padding-left: 2rem; padding-right: 2rem; } }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-projects { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .grid-projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-projects { grid-template-columns: repeat(3, 1fr); } }

.grid-service-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 56rem; margin-left: auto; margin-right: auto;
}
@media (min-width: 640px) { .grid-service-cards { grid-template-columns: 1fr 1fr; } }

.grid-featured { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .grid-featured { grid-template-columns: 7fr 5fr; } }
.grid-featured-right { display: flex; flex-direction: column; gap: 1rem; }
.grid-featured-right > .project-card { flex: 1; }

.grid-project-detail { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .grid-project-detail { grid-template-columns: 2fr 1fr; } }

.grid-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 768px)  { .grid-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-gallery { grid-template-columns: repeat(4, 1fr); } }

.grid-more-projects { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .grid-more-projects { grid-template-columns: repeat(3, 1fr); } }

.grid-contact { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .grid-contact { grid-template-columns: 2fr 3fr; } }
.grid-form-2  { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-form-2 { grid-template-columns: 1fr 1fr; } }

.grid-stats { display: grid; grid-template-columns: 1fr 1fr; }
.grid-stats > .stat-item:nth-child(odd)  { border-right: 1px solid #1f2937; }
.grid-stats > .stat-item:nth-child(-n+2) { border-bottom: 1px solid #1f2937; }
@media (min-width: 768px) {
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
  .grid-stats > .stat-item { border-right: none; border-bottom: none; }
  .grid-stats > .stat-item + .stat-item { border-left: 1px solid #1f2937; }
}

.grid-footer { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px)  { .grid-footer { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-footer { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.grid-stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }

/* ── Nav & Footer Layout ── */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.nav-links { display: none; align-items: center; gap: 2.5rem; margin-left: 2rem; }
@media (min-width: 768px)  { .nav-links { display: flex; } }
@media (min-width: 1024px) { .nav-links { margin-left: 3rem; } }

.social-links { display: flex; gap: 0.75rem; }
.social-link-item { display: inline-flex; align-items: center; color: #6b7280; transition: color 0.2s; }
.social-link-item:hover { color: var(--blue); }
.footer-contact-link { display: block; color: #9ca3af; font-family: 'Inter', sans-serif; font-size: 0.875rem; transition: color 0.2s; }
.footer-contact-link:hover { color: var(--blue); }
.footer-nav   { display: flex; flex-direction: column; }
.footer-bottom {
  border-top: 1px solid #1f2937; margin-top: 3rem; padding-top: 2rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 1rem; color: #4b5563; font-size: 0.75rem; font-family: 'Inter', sans-serif;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ── Section Structure ── */
.section-header {
  display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-intro { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }

/* ── Flex Patterns ── */
.flex-tags    { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.flex-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.flex-cta     { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.flex-card    { display: flex; align-items: flex-start; gap: 1rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Service Bullet List ── */
.service-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li { display: flex; align-items: center; gap: 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; color: #4b5563; }
.service-list li::before { content: ''; width: 0.5rem; height: 0.5rem; background: var(--forest); border-radius: 50%; flex-shrink: 0; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; color: #d1d5db; }
.breadcrumb a { color: #d1d5db; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: #6b7280; }

/* ── Image Helpers ── */
.img-service   { width: 100%; height: 320px; object-fit: cover; display: block; }
.img-community { width: 100%; height: 288px; object-fit: cover; display: block; }

/* ── Element Defaults ── */
address { font-style: normal; }

/* ── Typography ── */
.font-inter      { font-family: 'Inter', sans-serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-bold       { font-weight: 700; }
.font-semibold   { font-weight: 600; }
.font-medium     { font-weight: 500; }
.font-black      { font-weight: 900; }
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase   { text-transform: uppercase; }
.text-center { text-align: center; }
.not-italic  { font-style: normal; }
.underline   { text-decoration: underline; }

/* ── Colours ── */
.text-white     { color: #fff; }
.text-onyx      { color: var(--onyx); }
.text-forest    { color: var(--forest); }
.text-gray-300  { color: #d1d5db; }
.text-gray-400  { color: #9ca3af; }
.text-gray-500  { color: #6b7280; }
.text-gray-600  { color: #4b5563; }
.text-gray-700  { color: #374151; }
.text-green-100 { color: #dcfce7; }
.bg-white  { background: #fff; }
.bg-cool   { background: var(--cool); }
.bg-forest { background: var(--forest); }
.bg-blue   { background: var(--blue); }
.bg-onyx   { background: var(--onyx); }

/* ── Spacing ── */
.mt-1  { margin-top: 0.25rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-12 { padding-top: 3rem;  padding-bottom: 3rem; }
.py-16 { padding-top: 4rem;  padding-bottom: 4rem; }
.py-20 { padding-top: 5rem;  padding-bottom: 5rem; }
.py-24 { padding-top: 6rem;  padding-bottom: 6rem; }
.py-28 { padding-top: 7rem;  padding-bottom: 7rem; }
.pt-8  { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-8  { padding-bottom: 2rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.p-10  { padding: 2.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ── Borders ── */
.border          { border: 1px solid #e5e7eb; }
.border-t        { border-top: 1px solid #e5e7eb; }
.border-b        { border-bottom: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-t.border-gray-200 { border-top: 1px solid #e5e7eb; }

/* ── Sizing ── */
.w-2  { width: 0.5rem; }  .h-2  { height: 0.5rem; }
.w-3  { width: 0.75rem; } .h-3  { height: 0.75rem; }
.w-4  { width: 1rem; }    .h-4  { height: 1rem; }
.w-5  { width: 1.25rem; } .h-5  { height: 1.25rem; }
.w-7  { width: 1.75rem; } .h-7  { height: 1.75rem; }
.w-8  { width: 2rem; }    .h-8  { height: 2rem; }
.w-9  { width: 2.25rem; } .h-9  { height: 2.25rem; }
.w-10 { width: 2.5rem; }  .h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }    .h-16 { height: 4rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.flex-1    { flex: 1 1 0%; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* ── Core Value Cards ── */
.value-card {
  background: var(--cool);
  border: 1px solid rgba(0, 81, 147, 0.12);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  padding: 2rem;
}
.value-card-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: rgba(0, 81, 147, 0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.value-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--onyx);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.value-card-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ── Accessibility: respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .page-hero-bg { transform: none; transition: none; }
}
