/* ==========================================================================
   SEIB CONSTRUCTION — SERVICES HUB PAGE
   Styles unique to services.html only.
   Shared tokens → global.css | Shared components → components.css
   RULE: Never hardcode brand colors — always use CSS custom properties.
   ========================================================================== */


/* --------------------------------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.16s; }
.delay-4 { transition-delay: 0.24s; }
.delay-5 { transition-delay: 0.32s; }
.delay-6 { transition-delay: 0.40s; }


/* --------------------------------------------------------------------------
   HERO ENTRANCE ANIMATION
   -------------------------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-animate        { animation: heroFadeUp 0.7s ease forwards; }
.hero-animate--delay { animation-delay: 0.2s; opacity: 0; }


/* --------------------------------------------------------------------------
   §01 HERO
   -------------------------------------------------------------------------- */
.services-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 45%, var(--copper-dim), transparent 60%);
  pointer-events: none;
}

.services-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 104px);
}

/* Left — content */
.services-hero-content .section-eyebrow {
  color: var(--copper-light);
}

.services-hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.services-hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.8;
  margin-bottom: var(--space-7);
}

/* Service quick-jump pills */
.services-hero-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.services-hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 16px;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.services-hero-jump i {
  font-size: 11px;
  color: var(--copper-light);
}

.services-hero-jump:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(3px);
}

/* CTA row */
.services-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Right — image mosaic */
.services-hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-3);
}

.services-hero-mosaic-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.services-hero-mosaic-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.services-hero-mosaic-item:not(:first-child) {
  aspect-ratio: 4 / 3;
}

.services-hero-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-hero-mosaic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 860px) {
  .services-hero-inner {
    grid-template-columns: 1fr;
  }
  .services-hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-hero-mosaic-item:first-child {
    grid-column: span 3;
    aspect-ratio: 21 / 9;
  }
  .services-hero-mosaic-item:not(:first-child) {
    aspect-ratio: 1;
  }
}

@media (max-width: 560px) {
  .services-hero-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .services-hero-mosaic-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}


/* --------------------------------------------------------------------------
   §02 SERVICE DETAIL SECTIONS — Alternating layout
   -------------------------------------------------------------------------- */
.service-section {
  padding-block: clamp(64px, 9vw, 104px);
}

.service-section--alt {
  background-color: var(--off-white);
}

.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

/* Even sections flip the column order */
.service-section--flip .service-section-inner {
  direction: rtl;
}

.service-section--flip .service-section-inner > * {
  direction: ltr;
}

/* Image column */
.service-section-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 4 / 3;
}

.service-section-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating stat badge on image */
.service-img-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.service-img-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--copper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--copper);
  flex-shrink: 0;
}

.service-img-badge-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-img-badge-val {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  line-height: 1;
  font-weight: 600;
}

.service-img-badge-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
}

/* Content column */
.service-section-content {
  display: flex;
  flex-direction: column;
}

.service-section-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--copper);
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.30;
  letter-spacing: -0.04em;
  align-self: flex-start;
}

.service-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-3);
}

.service-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.service-section-desc {
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: var(--space-6);
}

/* Feature list */
.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.service-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--copper-dim);
  border: 1px solid rgba(184, 115, 51, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-feature-text {
  font-size: var(--fs-body);
  color: var(--charcoal);
  line-height: 1.6;
}

.service-feature-text strong {
  color: var(--navy);
  font-weight: 600;
}

/* CTA link */
.service-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--copper);
  text-decoration: none;
  transition: gap var(--transition-base), color var(--transition-base);
  align-self: flex-start;
}

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

@media (max-width: 860px) {
  .service-section-inner {
    grid-template-columns: 1fr;
  }
  .service-section--flip .service-section-inner {
    direction: ltr;
  }
}


/* --------------------------------------------------------------------------
   §03 DIFFERENTIATORS
   -------------------------------------------------------------------------- */
.services-diff {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}

.services-diff::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, var(--copper-dim), transparent 60%);
  pointer-events: none;
}

.services-diff-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 9vw, 96px);
}

.services-diff-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.services-diff-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper-light);
  display: block;
  margin-bottom: var(--space-4);
}

.services-diff-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.services-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.services-diff-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.services-diff-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 115, 51, 0.35);
  transform: translateY(-4px);
}

.services-diff-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--copper-dim);
  border: 1px solid rgba(184, 115, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--copper-light);
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.services-diff-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.services-diff-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

@media (max-width: 860px) {
  .services-diff-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .services-diff-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   §04 TRUST STRIP
   -------------------------------------------------------------------------- */
.services-trust {
  background-color: var(--off-white);
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
  padding-block: var(--space-8);
}

.services-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.services-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.services-trust-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.services-trust-num sup {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--copper);
}

.services-trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.4;
}

.services-trust-divider {
  width: 1px;
  height: 100%;
  background-color: var(--cream);
  align-self: stretch;
  display: none;
}

@media (max-width: 720px) {
  .services-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}


/* --------------------------------------------------------------------------
   §05 CTA
   -------------------------------------------------------------------------- */
.services-cta {
  background-color: var(--white);
}

.services-cta-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding-block: clamp(64px, 9vw, 96px);
}

.services-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-4);
}

.services-cta-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.services-cta-sub {
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.services-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.services-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.services-cta-phone i {
  font-size: 12px;
  color: var(--copper);
}

.services-cta-phone:hover {
  color: var(--navy);
}

.services-cta-license {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-light);
}


/* --------------------------------------------------------------------------
   SERVICE TILES (2x2 grid) — compact overview replacing long-form sections
   -------------------------------------------------------------------------- */
.services-tiles {
  padding: var(--section-pad-y) 0;
  background-color: var(--warm-white);
}

.services-tiles-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-8);
}

.services-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.services-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.services-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.10);
  border-color: var(--copper);
}

.services-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--copper-dim);
  color: var(--copper);
  font-size: 22px;
  margin-bottom: var(--space-5);
}

.services-tile-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.services-tile-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.services-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--copper);
  text-decoration: none;
  transition: gap var(--transition-base), color var(--transition-base);
}

.services-tile-link:hover {
  gap: 14px;
  color: var(--navy);
}

@media (max-width: 860px) {
  .services-tiles-grid {
    grid-template-columns: 1fr;
  }
}
