/**
 * Gavin & Assoc. Inc. Structural Engineers & Gavin Forensic Engineering LLC
 * Modernized Responsive Stylesheet
 */

/* ==========================================================================
   1. CSS Reset & Variables
   ========================================================================== */

:root {
  --primary-navy: #1a2b49;
  --primary-navy-dark: #101c31;
  --primary-navy-light: #253d66;
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-blue-light: #e0f2fe;
  
  --bg-page: #edf2f7;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverted: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1040px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   2. Main Layout Containers
   ========================================================================== */

.site-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px 36px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.main-content {
  width: 100%;
  margin-top: 14px;
  flex: 1 0 auto;
}

.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 2.25rem 2.5rem;
}

@media (max-width: 768px) {
  .site-wrapper {
    padding: 8px 10px 24px 10px;
  }
  .content-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   3. Header & Branding
   ========================================================================== */

.site-header {
  background: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  border-bottom: none;
  overflow: hidden;
  text-align: center;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.header-logo-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.header-logo-link:hover {
  opacity: 0.95;
}

.header-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   4. Navigation Bar (Desktop & Mobile Hamburger)
   ========================================================================== */

.site-nav {
  background: var(--primary-navy);
  box-shadow: var(--shadow-md);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  position: relative;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-menu-wrapper {
  width: 100%;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 13px 18px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  background-color: var(--primary-navy-light);
  border-bottom-color: var(--accent-blue);
}

.nav-item.active .nav-link,
.nav-link.active {
  color: #ffffff;
  background-color: var(--primary-navy-dark);
  border-bottom: 3px solid #38bdf8;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 12px 18px;
  cursor: pointer;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.nav-toggle-icon .bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 840px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu-wrapper {
    display: none;
    background-color: var(--primary-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu-wrapper.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: 6px 0;
  }

  .nav-link {
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: none;
    border-left: 4px solid transparent;
  }

  .nav-link:hover {
    background-color: var(--primary-navy-light);
    border-left-color: var(--accent-blue);
  }

  .nav-item.active .nav-link,
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #38bdf8;
    border-bottom: none;
  }
}

/* ==========================================================================
   5. Content Typography & Common Elements
   ========================================================================== */

.content-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.page-title {
  color: var(--primary-navy);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.intro-text,
.paragraph {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
}

.paragraph strong,
.lead-text strong {
  color: var(--primary-navy);
}

.styled-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.styled-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.6;
  color: #334155;
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background-color: var(--accent-blue);
  border-radius: 50%;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-navy);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--primary-navy);
}

.cta-banner {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-navy);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-content h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ==========================================================================
   6. Home Page Styling & Feature Highlights
   ========================================================================== */

.intro-section {
  margin-bottom: 2.5rem;
}

.intro-card.primary-intro {
  background: #f8fafc;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.feature-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.feature-link:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

/* Home Carousel */
.quicklook-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.6rem;
  color: var(--primary-navy);
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-top: 0.35rem;
}

.carousel-container {
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin: 0 auto;
}

.carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slides-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.carousel-image-box {
  width: 100%;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.carousel-image {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.carousel-caption-box {
  width: 100%;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-light);
  border-top: none;
  text-align: center;
}

.carousel-caption-title {
  color: var(--primary-navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.carousel-caption-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 36%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(2, 132, 199, 0.95);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active,
.carousel-dot:hover {
  background: var(--accent-blue);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .carousel-slides-wrapper {
    min-height: 320px;
  }
  .carousel-image-box {
    max-height: 210px;
  }
  .carousel-image {
    max-height: 210px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   7. Gallery Page & Modern Lightbox
   ========================================================================== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.filter-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
}

.filter-pill.is-active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.filter-pill.is-active .filter-count {
  color: #93c5fd;
}

.filter-count {
  font-size: 0.8rem;
  color: #94a3b8;
}

.gallery-instructions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue-light);
}

.gallery-card-trigger {
  all: unset;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  text-align: left;
}

.gallery-card-trigger:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 Aspect Ratio */
  background: #0f172a;
  overflow: hidden;
}

.gallery-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-thumbnail {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-view-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-navy);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.gallery-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.gallery-card-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.is-open {
  display: flex;
  opacity: 1;
}

body.lightbox-locked {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 26, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 10;
  width: 94vw;
  max-width: 980px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-action-btn,
.lightbox-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.lightbox-action-btn:hover,
.lightbox-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.lightbox-close-btn {
  font-size: 2rem;
  height: 36px;
  width: 36px;
}

.lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030712;
  overflow: hidden;
}

.lightbox-media-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 58vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--accent-blue);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 14px;
}
.lightbox-nav-btn.next {
  right: 14px;
}

.lightbox-info-bar {
  padding: 16px 22px;
  background: #111827;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.lightbox-caption {
  font-size: 0.925rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

@media (max-width: 640px) {
  .lightbox-container {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .lightbox-stage {
    max-height: 52vh;
  }
  .lightbox-image {
    max-height: 50vh;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }
  .lightbox-nav-btn.prev {
    left: 8px;
  }
  .lightbox-nav-btn.next {
    right: 8px;
  }
  .lightbox-info-bar {
    padding: 12px 16px;
    overflow-y: auto;
    max-height: 30vh;
  }
}

/* ==========================================================================
   8. Services Page Styling
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue-light);
}

.service-card.highlight-card {
  border-left: 4px solid var(--accent-blue);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
}

.service-intro {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* ==========================================================================
   9. Firm Profile & Stats
   ========================================================================== */

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.profile-card.leadership-card {
  border-left: 4px solid var(--primary-navy);
  background: #fafcff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

/* ==========================================================================
   10. Resume Page Styling
   ========================================================================== */

.resume-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .resume-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.resume-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.35rem;
}

.resume-badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.badge-secondary {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue-hover);
}

.resume-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.resume-section-title {
  font-size: 1.35rem;
  color: var(--primary-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.resume-item {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-blue);
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.resume-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.resume-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.resume-org {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
}

.resume-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.col-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.license-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.license-tag {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.license-tag .check-icon {
  color: #16a34a;
  font-weight: 900;
}

/* ==========================================================================
   11. Projects Page Styling
   ========================================================================== */

.projects-intro-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue-light);
}

.project-tag {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.project-tag.landmark {
  background: #fef3c7;
  color: #b45309;
}

.project-tag.federal {
  background: #e0e7ff;
  color: #3730a3;
}

.project-tag.highrise {
  background: #e0f2fe;
  color: #0369a1;
}

.project-tag.commercial {
  background: #f1f5f9;
  color: #334155;
}

.project-tag.transportation {
  background: #ecfdf5;
  color: #047857;
}

.project-tag.renovation {
  background: #fae8ff;
  color: #86198f;
}

.project-tag.forensic {
  background: #fee2e2;
  color: #b91c1c;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

/* ==========================================================================
   12. Contact Page Styling
   ========================================================================== */

.contact-intro {
  margin-bottom: 2rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.contact-entity-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-navy);
}

.contact-entity-card.forensic-card {
  border-top-color: var(--accent-blue);
}

.contact-entity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

.contact-subhead {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.inquiry-guidance {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
}

.inquiry-title {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.inquiry-item h4 {
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.inquiry-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
  margin-top: 2rem;
  background: var(--primary-navy-dark);
  color: #94a3b8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.footer-inner {
  padding: 2.25rem 2.5rem 1.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: 0.3px;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.45rem;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  }
  .footer-grid {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ==========================================================================
   14. Print Media Styles
   ========================================================================== */

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }
  .site-nav,
  .nav-toggle,
  .gallery-filters,
  .carousel-btn,
  .carousel-dots,
  .cta-banner,
  .lightbox-modal {
    display: none !important;
  }
  .site-wrapper {
    max-width: 100%;
    padding: 0;
  }
  .content-card {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .page-title {
    color: #000000;
  }
}
