@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES (ROUNDED / 3D REDESIGN)
   ========================================================================== */
:root {
  /* Colors */
  --color-navy: #1a3a8f;
  --color-navy-dark: #0f2668;
  --color-blue-light: #2a52b8;
  --color-blue-pale: #e8eef8;
  --color-steel: #4a5568;
  --color-steel-light: #718096;
  --color-steel-pale: #f0f2f5;
  --color-concrete: #8a9299;
  --color-concrete-light: #c8cdd2;
  --color-white: #ffffff;
  --color-off-white: #f7f8fa;
  --color-ink: #1a2a4a;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Corner Radius Scale */
  --radius-sm: 12px;       /* Buttons, tags, badges */
  --radius-md: 24px;       /* Cards, panels, input forms */
  --radius-lg: 32px;       /* Hero wrappers, image containers, sliders */
  --radius-pill: 999px;    /* Pill buttons, badge shapes */

  /* Layered Depth Shadow System (3D Effect) */
  /* Combines a soft, large-blur ambient shadow with a tight, dark contact shadow */
  --shadow-sm: 
    0 2px 4px rgba(26, 42, 74, 0.04), 
    0 1px 2px rgba(26, 42, 74, 0.02);
  
  --shadow-md: 
    0 8px 24px -4px rgba(26, 42, 74, 0.06), 
    0 4px 12px -2px rgba(26, 42, 74, 0.04);
  
  --shadow-lg: 
    0 16px 36px -6px rgba(26, 42, 74, 0.1), 
    0 8px 18px -4px rgba(26, 42, 74, 0.06);

  /* Dimensional 3D Depth Card Shadow */
  --shadow-depth: 
    0 12px 30px -4px rgba(26, 42, 74, 0.08), 
    0 4px 12px -2px rgba(26, 42, 74, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Hover Lift Shadow (Larger, Softer) */
  --shadow-hover: 
    0 24px 48px -8px rgba(26, 42, 74, 0.16), 
    0 10px 24px -4px rgba(26, 42, 74, 0.08), 
    0 4px 8px rgba(26, 42, 74, 0.03);

  /* Transition Settings */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Layout Constants */
  --site-max-width: 1200px;
}

/* ==========================================================================
   RESET & CORE BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-off-white);
  color: var(--color-steel);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

main {
  padding-top: 120px; /* Leave space for floating header */
}

/* Container */
.si {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: 64px; line-height: 1.05; }
h2 { font-size: 48px; line-height: 1.1; margin-bottom: 24px; }
h3 { font-size: 28px; line-height: 1.2; }

/* Links */
a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-pill); /* Pill-shaped (999px) */
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  border: none;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--color-blue-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  box-shadow: none;
  padding: 14px 30px; /* Offset for border */
}

.btn-outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  box-shadow: none;
  padding: 14px 30px;
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   SHARED HEADER & NAV SYSTEM (FLOATING DUAL-LAYER SHADOW DESIGN)
   ========================================================================== */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding: 8px 0;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1001;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info span, .topbar-info a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 16px;
}

.topbar-info a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.topbar-estimate {
  font-weight: 700;
  color: var(--color-blue-pale);
}

/* Floating Navigation Header */
.site-header {
  position: fixed;
  top: 48px; /* Below topbar */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--site-max-width);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md); /* 24px rounded corners */
  box-shadow: var(--shadow-depth);
  border: 1px solid rgba(26, 58, 143, 0.06);
  z-index: 1000;
  transition: all var(--transition-normal);
}

/* Scroll Header Shrink */
.site-header.scrolled {
  top: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

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

.site-logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-steel);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--color-navy);
}

/* Active Nav State - Soft Pill Indicator */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-navy);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy-dark);
}

/* Mobile Nav Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  margin: 5px 0;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Menu Dropdown Panel */
.mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--color-steel-pale);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-normal);
}

.mobile-nav-links {
  list-style: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-steel);
  display: block;
  padding: 8px 0;
}

.mobile-nav-link.active {
  color: var(--color-navy);
}

.mobile-nav-phone {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-navy);
  display: block;
  margin-top: 10px;
}

/* ==========================================================================
   COMPONENT STYLES (ROUNDED / 3D ELEMENT TILES)
   ========================================================================== */

/* Rounded-Square Icon Tile Component */
.icon-tile {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-light) 100%);
  border-radius: 18px; /* 16-20px radius */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-tile svg,
.icon-tile i {
  width: 26px;
  height: 26px;
  stroke-width: 2px;
}

/* Dimensional 3D Card */
.card-rounded {
  background-color: var(--color-white);
  border-radius: var(--radius-md); /* 24px corners */
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  padding: 40px 32px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.card-rounded:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Rounded Photo Wrapper */
.photo-container {
  border-radius: var(--radius-lg); /* 32px corners */
  overflow: hidden;
  box-shadow: var(--shadow-depth);
  position: relative;
  width: 100%;
}

.photo-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
}

.photo-container:hover img {
  transform: scale(1.04);
}

/* Eyebrows, Labels and Tags */
.eyebrow-rounded {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  background-color: var(--color-blue-pale);
  padding: 6px 16px;
  border-radius: var(--radius-pill); /* Fully rounded pill */
  margin-bottom: 16px;
}

/* ==========================================================================
   SHARED FOOTER SYSTEM
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col.brand-col {
  gap: 24px;
}

.site-logo-footer {
  height: 52px;
  width: auto;
  align-self: flex-start;
}

.footer-bio {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.credential-badge {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-blue-pale);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col-title {
  color: var(--color-white);
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--color-white);
  padding-left: 4px;
  transition: all var(--transition-fast);
}

.footer-ci {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.footer-ci a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-ci a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-ci-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-ci-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Social Icon Tiles */
.social-links {
  display: flex;
  gap: 12px;
}

.social-icon-tile {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon-tile svg {
  width: 18px;
  height: 18px;
}

.social-icon-tile:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   HOMEPAGE LAYOUTS & COMPONENT CLASSES
   ========================================================================== */

/* Sections spacing */
section {
  padding: 80px 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 720px;
  margin-top: -120px; /* Pull up to top: 0 behind the floating header */
  overflow: hidden;
  background-color: var(--color-navy-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.hero-section:hover .hero-bg {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 38, 104, 0.4) 0%, rgba(26, 42, 74, 0.85) 100%);
  z-index: 2;
}

.hero-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px; /* Offset the negative margin-top to align text below header */
  max-width: 800px;
}

.hero-title {
  color: var(--color-white);
  font-size: 72px;
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Value Props Strip */
.vp-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-steel-pale);
  padding: 40px 0;
}

.vp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.vp-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.vp-text h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.vp-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-steel-light);
}

/* Section Header Intro */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-intro h2 {
  margin-top: 8px;
}

.intro-desc {
  font-size: 17px;
  color: var(--color-steel-light);
  line-height: 1.7;
}

/* Who We Work With */
.www-section {
  background-color: var(--color-off-white);
}

.www-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.www-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md); /* 24px */
  padding: 36px 28px;
  border: 1px solid rgba(26, 58, 143, 0.04);
  box-shadow: var(--shadow-depth);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.www-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.www-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.www-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-steel);
}

/* Services Grid Section */
.srv-section {
  background-color: var(--color-white);
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.srv-card {
  background-color: var(--color-off-white);
  border-radius: var(--radius-md); /* 24px */
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.srv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.srv-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.srv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.srv-card:hover .srv-img {
  transform: scale(1.05);
}

.srv-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.srv-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.srv-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-steel);
  margin-bottom: 20px;
  flex-grow: 1;
}

.srv-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.srv-link:hover {
  color: var(--color-blue-light);
}

/* Highlights Section */
.hl-section {
  background-color: var(--color-off-white);
}

.hl-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hl-content {
  display: flex;
  flex-direction: column;
}

.hl-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0 40px;
}

.hl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hl-item-text strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
  display: block;
  margin-bottom: 4px;
}

.hl-item-text span {
  font-size: 13px;
  color: var(--color-steel-light);
  line-height: 1.4;
  display: block;
}

.hl-img-container {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-depth);
  border: 1px solid rgba(26, 58, 143, 0.05);
}

.hl-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hl-img-container:hover img {
  transform: scale(1.03);
}

/* Stats Section */
.stats-section {
  background-color: var(--color-navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-tile {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md); /* 24px */
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.stat-tile:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.08);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-pale);
}

/* ==========================================================================
   SERVICES PAGE SPECIFIC STYLES
   ========================================================================== */

.services-list-container {
  padding: 40px 0;
}

.service-detail-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg); /* 32px */
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  padding: 56px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-detail-card:last-child {
  margin-bottom: 0;
}

.service-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-detail-card-content {
  display: flex;
  flex-direction: column;
}

.service-detail-card-title {
  font-size: 36px;
  color: var(--color-ink);
  margin-bottom: 16px;
  line-height: 1.15;
}

.service-detail-card-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-steel);
  margin-bottom: 18px;
}

/* Alternating service card layout */
.service-detail-card.reverse .services-gallery-grid {
  order: -1; /* Place gallery image on the left */
}

/* Services Dual Image Gallery Grid */
.services-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
}

.services-gallery-grid .photo-container {
  height: 100%;
}

.services-gallery-grid .photo-container.support {
  height: 100%;
}

/* Image Text Badges */
.img-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(26, 58, 143, 0.95);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  z-index: 2;
  border-left: 2px solid var(--color-blue-light);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================================================== */

.contact-split-container {
  padding: 40px 0;
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

/* Contact Form */
.contact-form-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg); /* 32px to match other pages */
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  padding: 48px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-form-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-ink);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-concrete-light);
  border-radius: var(--radius-sm); /* 12px rounded inputs */
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-navy);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  padding-right: 48px;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-control.error {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.form-error-msg {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

.form-feedback {
  padding: 18px;
  margin-bottom: 28px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
}

.form-feedback.error {
  display: block;
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  color: #742a2a;
}

/* Contact Info Card */
.contact-info-card-rounded {
  background-color: var(--color-white);
  border-radius: var(--radius-lg); /* 32px */
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  padding: 48px 36px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.contact-info-card-rounded:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-info-row-rounded {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-row-rounded:last-of-type {
  margin-bottom: 0;
}

.contact-info-text-rounded strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-ink);
  display: block;
  line-height: 1.2;
  margin-bottom: 4px;
}

.contact-info-text-rounded span {
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.6;
  display: block;
}

.contact-info-text-rounded a {
  color: var(--color-steel);
}

.contact-info-text-rounded a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

.contact-map-container-rounded {
  width: 100%;
  height: 320px;
  margin-top: 32px;
  border-radius: var(--radius-md); /* 24px rounded corners */
  overflow: hidden;
  border: 1px solid var(--color-concrete-light);
  box-shadow: var(--shadow-depth);
}

.contact-map-container-rounded iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================================================== */

/* Shorter Hero Banner */
.about-hero-section {
  position: relative;
  width: 100%;
  height: 380px;
  margin-top: -120px; /* Pull up to top: 0 behind the floating header */
  overflow: hidden;
  background-color: var(--color-navy-dark);
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.about-hero-section:hover .about-hero-bg {
  transform: scale(1.02);
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 38, 104, 0.3) 0%, rgba(26, 42, 74, 0.8) 100%);
  z-index: 2;
}

.about-hero-container {
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

.about-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px; /* Offset the negative margin-top to align text below header */
  width: 100%;
}

.about-hero-title {
  color: var(--color-white);
  font-size: 56px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Story Section */
.story-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: flex-start;
}

.story-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-ink);
  margin-bottom: 24px;
  font-weight: 500;
}

.story-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-steel);
  margin-bottom: 20px;
}

.story-quote-card {
  background-color: var(--color-blue-pale);
  border-left: 4px solid var(--color-navy);
  border-radius: var(--radius-md); /* 24px */
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.story-quote-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-navy-dark);
  margin-bottom: 16px;
}

.story-quote-author {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
}

/* Team Section */
.team-section {
  background-color: var(--color-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--color-off-white);
  border-radius: var(--radius-md); /* 24px */
  padding: 40px 32px;
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Highlight Mark Magaro's Card */
.team-card.highlighted {
  border: 2px solid var(--color-navy);
  background-color: var(--color-white);
}

.team-monogram {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md); /* Rounded square (24px) to match cards */
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-light) 100%);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.team-card.highlighted .team-monogram {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
}

.team-name {
  font-size: 24px;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 16px;
  background-color: var(--color-blue-pale);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-steel);
}

/* Timeline Section */
.timeline-section {
  background-color: var(--color-off-white);
}

.timeline-wrap {
  position: relative;
  padding-left: 48px;
  margin: 40px auto 0;
  max-width: 800px;
}

.timeline-line {
  position: absolute;
  top: 8px;
  left: 19px;
  width: 4px;
  height: calc(100% - 16px);
  background-color: var(--color-blue-pale);
  border-radius: var(--radius-pill);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  top: 8px;
  left: -39px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background-color: var(--color-navy);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.timeline-item:hover .timeline-badge {
  transform: scale(1.3);
  background-color: var(--color-blue-light);
}

.timeline-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md); /* 24px */
  padding: 28px;
  border: 1px solid var(--color-steel-pale);
  box-shadow: var(--shadow-depth);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-steel);
}

/* About CTA Pre-footer Band */
.about-cta-section {
  padding: 60px 0;
}

.about-cta-card {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  border-radius: var(--radius-lg); /* 32px */
  padding: 60px;
  text-align: center;
  box-shadow: var(--shadow-depth);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-cta-title {
  color: var(--color-white);
  font-size: 42px;
  margin-bottom: 16px;
}

.about-cta-desc {
  color: var(--color-blue-pale);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
  .footer-col.brand-col {
    grid-column: span 2;
    margin-bottom: 20px;
  }
}

@media (max-width: 960px) {
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  
  main {
    padding-top: 100px;
  }

  .topbar {
    display: none; /* Hide topbar on mobile to save vertical space */
  }

  .site-header {
    top: 12px;
  }

  .site-header.scrolled {
    top: 12px;
  }

  .nav-links,
  .nav-right .nav-phone,
  .nav-right .btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* Grid collapses to 1 or 2 columns */
  .vp-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .www-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hl-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hl-img-container {
    order: -1; /* Place image on top of text when collapsed */
    height: 320px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-section {
    height: 600px;
    margin-top: -100px; /* Offset mobile main padding-top: 100px */
  }
  .hero-content {
    padding: 0 24px;
    padding-top: 100px;
  }
  .hero-title {
    font-size: 54px;
  }

  /* Services Page responsive rules */
  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px;
  }
  
  .service-detail-card.reverse .services-gallery-grid {
    order: 0; /* Let image follow normal stack flow (under text on mobile if content comes first) */
  }

  /* In mobile stack, force gallery to display first */
  .services-gallery-grid {
    height: 280px;
    order: -1;
  }

  /* Contact Page responsive rules */
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-card {
    padding: 32px 20px;
  }
  .contact-info-card-rounded {
    padding: 32px 20px;
  }

  /* About Page responsive rules */
  .about-hero-section {
    height: 320px;
    margin-top: -100px;
  }
  .about-hero-content {
    padding-top: 100px;
  }
  .story-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-cta-card {
    padding: 40px 24px;
  }
}

@media (max-width: 580px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-col.brand-col {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .www-grid,
  .srv-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hl-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-section {
    height: 540px;
  }
  .hero-content {
    padding: 0 16px;
    padding-top: 100px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }

  /* Services Page responsive rules */
  .services-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1.2fr 0.8fr;
    height: 380px;
  }

  /* About Page responsive rules */
  .team-grid {
    grid-template-columns: 1fr;
  }
  .about-hero-title {
    font-size: 40px;
  }
  .about-hero-section {
    height: 280px;
  }
  .about-hero-content {
    padding-top: 100px;
  }
}
