/* =========================================================
   UNIVERSAL LAND SOLUTIONS — styles.css
   ========================================================= */

/* ---------------------------------------------------------
   CSS CUSTOM PROPERTIES
   --------------------------------------------------------- */
:root {
  --navy:       #1E3A5F;
  --blue:       #2F6DA5;
  --light-blue: #EAF3FB;
  --green:      #4A7C2F;
  --orange:     #F5A623;
  --white:      #FFFFFF;
  --slate:      #5B6770;
  --navy-dark:  #162d4a;
  --navy-900:   #0f2035;
  --green-light:#f0f7ea;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 80px);

  --radius:    6px;
  --radius-lg: 12px;

  --shadow-sm:  0 1px 4px rgba(30,58,95,0.08);
  --shadow-md:  0 4px 16px rgba(30,58,95,0.12);
  --shadow-lg:  0 8px 32px rgba(30,58,95,0.16);
  --shadow-xl:  0 16px 56px rgba(30,58,95,0.22);

  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(38px, 5.5vw, 66px);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

p { line-height: 1.75; }

/* ---------------------------------------------------------
   LAYOUT UTILITIES
   --------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section--light { background: var(--light-blue); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); }

/* ---------------------------------------------------------
   SECTION LABEL
   --------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  position: relative;
}

/* Animated underline on scroll */
.section-label::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width 0.6s ease-out 0.2s;
}
.section-label.visible::after { width: 100%; }

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(30,58,95,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-navy:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--transition), padding var(--transition),
              box-shadow var(--transition);
  animation: navFadeIn 0.4s ease-out both;
}

.site-nav.nav--scrolled {
  background: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(30,58,95,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Logo */
.nav-logo-link {
  display: block;
  flex-shrink: 0;
}

/*
 * Composite image is 1254×1254px, 2×2 grid at 400px display:
 *   top half  (y 0–200):    full-color logo (full width)
 *   bottom-left (y 200–400, x 0–200): white-on-navy logo
 *   bottom-right (y 200–400, x 200–400): navy-on-gray logo
 *
 * The bottom-left quadrant has ~45px white top margin and ~15px side margins
 * before the actual navy logo box begins.
 *
 * Dark hero → white-on-navy (bottom-left)
 *   top: -258px  skips 45px top white margin → lands inside navy logo area
 *   left: -15px  skips 15px left white margin
 *   width 170px  hides right white margin (quadrant boundary at x=200)
 *
 * Scrolled → color logo (top half, center crop)
 */
.nav-logo-wrap {
  width: 170px;
  height: 108px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

.nav-logo {
  position: absolute;
  width: 400px !important;
  max-width: none !important;
  height: 400px !important;
  top: -258px;
  left: -15px;
}

/* Scrolled → white nav → show bottom-right quadrant (color logo on light bg) */
.site-nav.nav--scrolled .nav-logo-wrap {
  background: transparent;
}

.site-nav.nav--scrolled .nav-logo {
  width: 400px !important;
  height: 400px !important;
  top: -258px;
  left: -215px;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.site-nav.nav--scrolled .nav-link { color: var(--navy); }
.site-nav:not(.nav--dark-hero) .nav-link { color: var(--navy); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--orange); }
.site-nav.nav--scrolled .nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--blue); }
.site-nav.nav--scrolled .nav-link.active { color: var(--blue); }

/* CTA in nav */
.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 9px 22px;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}
.site-nav.nav--scrolled .nav-cta {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}
.site-nav:not(.nav--dark-hero) .nav-cta {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}
.nav-cta:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.site-nav.nav--scrolled .nav-cta:hover,
.site-nav:not(.nav--dark-hero) .nav-cta:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition),
              opacity var(--transition);
}

.site-nav.nav--scrolled .nav-hamburger span,
.site-nav:not(.nav--dark-hero) .nav-hamburger span { background: var(--navy); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-menu-link:hover {
  color: var(--orange);
  padding-left: 8px;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------
   PAGE LOAD ANIMATIONS
   --------------------------------------------------------- */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------
   SCROLL ANIMATION CLASSES
   --------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.animate-from-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.animate-from-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.animate-on-scroll.visible,
.animate-from-left.visible,
.animate-from-right.visible,
.animate-scale.visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   HERO — HOME
   --------------------------------------------------------- */
.hero-home {
  position: relative;
  height: 100vh;
  max-height: 900px;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: kenBurns 10s ease-in-out both;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30,58,95,0.78) 0%,
    rgba(22,45,74,0.65) 60%,
    rgba(15,32,53,0.55) 100%
  );
  z-index: 1;
}

/* Subtle grain texture */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  animation: heroHeadingIn 0.5s 0.1s ease-out both;
}

.hero-heading {
  color: var(--white);
  max-width: 760px;
  margin-bottom: 24px;
  animation: heroHeadingIn 0.75s 0.2s ease-out both;
}

.hero-subheading {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 16px;
  animation: heroHeadingIn 0.75s 0.35s ease-out both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 44px;
  animation: heroHeadingIn 0.6s 0.48s ease-out both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: scaleIn 0.55s 0.6s ease-out both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroHeadingIn 0.6s 1s ease-out both;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------------------------------------------------------
   HERO — INNER PAGES
   --------------------------------------------------------- */
.hero-page {
  position: relative;
  height: 56vh;
  min-height: 320px;
  max-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, var(--navy-900) 100%);
  overflow: hidden;
}

/* Decorative geometric bg */
.hero-page::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,109,165,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-page::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,124,47,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-page-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  padding-top: 80px;
}

.hero-page-heading {
  color: var(--white);
  animation: heroHeadingIn 0.7s 0.15s ease-out both;
}

.hero-page-subheading {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.80);
  max-width: 600px;
  margin-top: 18px;
  line-height: 1.65;
  animation: heroHeadingIn 0.7s 0.30s ease-out both;
}

/* Accent bar below heading */
.hero-accent-bar {
  width: 56px;
  height: 3px;
  background: var(--green);
  margin-top: 28px;
  animation: heroHeadingIn 0.6s 0.45s ease-out both;
}

/* ---------------------------------------------------------
   INTRO STRIP
   --------------------------------------------------------- */
.intro-strip {
  background: var(--light-blue);
  padding: 40px 0;
  border-bottom: 1px solid rgba(47,109,165,0.10);
}

.intro-strip p {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--navy);
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   SERVICE CARDS — HOME OVERVIEW
   --------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,58,95,0.07);
  border-left: 3px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-left-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
  margin-bottom: 22px;
  flex-shrink: 0;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  font-size: 15px;
  color: var(--slate);
  flex-grow: 1;
  margin-bottom: 24px;
}

.service-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card-link:hover {
  color: var(--navy);
  gap: 10px;
}

/* ---------------------------------------------------------
   WHO WE SERVE
   --------------------------------------------------------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.serve-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47,109,165,0.10);
  transition: box-shadow var(--transition), transform var(--transition);
}

.serve-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.serve-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
  flex-shrink: 0;
}

.serve-item h3 {
  font-size: 18px;
  color: var(--navy);
}

.serve-item p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   WHY ULS — 2 COLUMN
   --------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 56px;
}

.why-text p {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.8;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--light-blue);
  border-left: 3px solid var(--green);
  transition: background var(--transition), box-shadow var(--transition);
}

.why-item:hover {
  background: #ddeeff;
  box-shadow: var(--shadow-sm);
}

.why-check {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

/* ---------------------------------------------------------
   CTA SECTION
   --------------------------------------------------------- */
.cta-section {
  background: var(--navy);
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(47,109,165,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74,124,47,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   SECTION DIVIDER
   --------------------------------------------------------- */
.divider {
  width: 56px;
  height: 3px;
  background: var(--green);
  margin: 20px 0 36px;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------
   SERVICES PAGE — DETAIL BLOCKS
   --------------------------------------------------------- */
.service-detail {
  padding: clamp(64px, 7vw, 100px) 0;
}

.service-detail:nth-child(even) {
  background: var(--light-blue);
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.service-detail:nth-child(even) .service-detail-inner {
  direction: rtl;
}
.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.service-detail h2 {
  margin-bottom: 24px;
}

.service-detail p {
  color: var(--slate);
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.service-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 32px;
}

.service-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

.service-bullet-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.service-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.service-icon-large {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.service-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-icon-large:hover img {
  transform: scale(1.04);
}

/* ---------------------------------------------------------
   APPROACH TEASER (on Services page)
   --------------------------------------------------------- */
.approach-teaser {
  background: var(--light-blue);
  padding: clamp(64px, 7vw, 100px) 0;
  text-align: center;
}

.approach-teaser h2 { margin-bottom: 20px; }

.approach-teaser p {
  font-size: clamp(16px, 1.7vw, 18px);
  max-width: 580px;
  margin: 0 auto 36px;
}

/* ---------------------------------------------------------
   ABOUT PAGE
   --------------------------------------------------------- */
.story-section p {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.85;
  max-width: 760px;
  margin-bottom: 24px;
}

.story-section p:last-child { margin-bottom: 0; }

/* Pull Quote */
.pull-quote {
  background: var(--navy);
  padding: clamp(64px, 7vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pull-quote-mark {
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 0.8;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.pull-quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.45;
  font-style: italic;
}

.pull-quote-attr {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Core Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,58,95,0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin-bottom: 18px;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.value-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   APPROACH PAGE
   --------------------------------------------------------- */

/* Process Timeline */
.process-steps {
  position: relative;
  margin-top: 56px;
  padding-left: 48px;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), rgba(47,109,165,0.15));
}

.process-step {
  position: relative;
  padding: 0 0 48px 40px;
}

.process-step:last-child { padding-bottom: 0; }

.step-number {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid var(--light-blue);
  box-shadow: 0 0 0 3px var(--blue);
  z-index: 1;
}

.process-step h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--navy);
}

.process-step p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.75;
  max-width: 640px;
}

/* Engagement Type Cards */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.engagement-card {
  background: var(--white);
  border: 1px solid rgba(30,58,95,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.engagement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(74,124,47,0.3);
}

.engagement-icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
  margin-bottom: 18px;
}

.engagement-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.engagement-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   CONTACT PAGE
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 16px;
}

.contact-note {
  font-size: 13px;
  color: rgba(91,103,112,0.8);
  font-style: italic;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(30,58,95,0.10);
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid rgba(30,58,95,0.08);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group label .optional {
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  font-size: 12px;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(91,103,112,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6770' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,109,165,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

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

.form-error-msg.visible { display: block; }

.form-success {
  text-align: center;
  padding: 32px;
  font-size: 17px;
  color: var(--green);
  font-weight: 600;
}

.form-global-error {
  font-size: 13px;
  color: #dc2626;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  padding: 72px 0 40px;
  border-top: 3px solid var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-brand {}

.footer-logo-wrap {
  width: 170px;
  height: 108px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  background: var(--navy);
}

.footer-logo {
  position: absolute;
  width: 400px !important;
  max-width: none !important;
  height: 400px !important;
  top: -258px;
  left: -15px;
}

.footer-tagline {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-col-3 {}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 0;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}

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

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

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

.footer-contact-info {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   SERVICES INTRO
   --------------------------------------------------------- */
.services-intro {
  background: var(--white);
  padding: clamp(48px, 5vw, 72px) 0;
  border-bottom: 1px solid rgba(30,58,95,0.06);
}

.services-intro p {
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--slate);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-from-left,
  .animate-from-right,
  .animate-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-bg { animation: none; }
  .hero-scroll-line { animation: none; }

  .hero-heading, .hero-subheading, .hero-tagline,
  .hero-eyebrow, .hero-ctas,
  .hero-page-heading, .hero-page-subheading, .hero-accent-bar {
    animation: none;
    opacity: 1;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE — WIDE DESKTOP (1440px+)
   --------------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --container-max: 1320px; }
}

@media (min-width: 1920px) {
  :root { --container-max: 1520px; }

  html { font-size: 18px; }

  .hero-home { max-height: 860px; }

  .hero-page {
    min-height: 340px;
    max-height: 560px;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE — TABLET (768–1023px)
   --------------------------------------------------------- */
@media (max-width: 1023px) {
  .nav-links { gap: 24px; }
  .nav-cta { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .serve-grid    { grid-template-columns: 1fr 1fr; }
  .why-grid      { gap: 48px; }

  .service-detail-inner { gap: 48px; }

  .values-grid    { gap: 18px; }
  .engagement-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   RESPONSIVE — MOBILE (< 768px)
   --------------------------------------------------------- */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  .hero-page {
    height: auto;
    min-height: 280px;
    padding: 120px 0 60px;
    max-height: none;
  }

  .hero-accent-bar { margin-top: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .serve-grid    { grid-template-columns: 1fr; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr;
  }

  .service-visual { display: none; }

  .service-bullets { grid-template-columns: 1fr; }

  .values-grid  { grid-template-columns: 1fr; }

  .engagement-grid { grid-template-columns: 1fr; }

  /* Timeline: re-align circle to the line (circle center = 36-36+20 = 20px = line center) */
  .process-steps { padding-left: 36px; }
  .step-number { left: -36px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  /*
   * Logo clip at 320px image scale (measured from ruler screenshot):
   *   icon starts y≈200; tagline starts y≈286 (dark/left) or y≈282 (scrolled/right)
   *   tagline bottom ≈ y=306; top: -200px → wrap height 106px → y=200-306 (full logo)
   */
  .nav-logo-wrap { width: 136px; height: 106px; }
  .footer-logo-wrap { width: 136px; height: 106px; }
  .nav-logo { width: 320px !important; height: 320px !important; top: -200px; left: -12px; }
  .site-nav.nav--scrolled .nav-logo-wrap { height: 106px; }
  /* Must re-declare width/height — desktop .nav--scrolled .nav-logo rule wins on specificity */
  .site-nav.nav--scrolled .nav-logo { width: 320px !important; height: 320px !important; top: -200px; left: -172px; }
  .footer-logo { width: 320px !important; height: 320px !important; top: -200px; left: -12px; }

}

/* ---------------------------------------------------------
   UTILITY
   --------------------------------------------------------- */
.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;
}

.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* Subtle section separation line */
.section-sep {
  border: none;
  height: 1px;
  background: rgba(30,58,95,0.07);
  margin: 0;
}
