/* =============================================================
   AVDI USA — Service Page Shared Styles
   
   ARCHITECTURE:
   - styles.css defines design tokens (light mode defaults)
   - This file handles service-page layout + the ONE dark
     exception: the hero (always dark, driven by overlay).
   - Content sections (overview, features, use cases, related)
     use the default LIGHT tokens — white/slate backgrounds,
     dark text — matching the homepage content section feel.
   - CTA band is always blue (inline override).
   - Footer inherits from styles.css .footer (black).
   ============================================================= */

/* ── Body ────────────────────────────────────────────────────── */
.service-page-body {
  background: var(--clr-bg);    /* #ffffff — light, like homepage */
  padding-top: 0;
}

/* ══════════════════════════════════════════════════════════════
   SERVICE HERO — always dark, full-bleed, photo-backed
   ══════════════════════════════════════════════════════════════ */
.svc-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #080d18;
}

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 18, 0.25) 0%,
    rgba(8, 12, 18, 0.55) 40%,
    rgba(8, 12, 18, 0.95) 100%
  );
  z-index: 1;
}

.svc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.svc-breadcrumb {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  transition: color var(--dur-fast);
}
.svc-breadcrumb:hover { color: var(--clr-gold); }

.svc-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.svc-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.svc-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 560px;
}

.svc-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.svc-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.svc-pill {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

/* ══════════════════════════════════════════════════════════════
   OVERVIEW SECTION — light slate background, dark text
   ══════════════════════════════════════════════════════════════ */
.svc-overview {
  background: var(--clr-bg-2);          /* #f8fafc */
  border-top: 3px solid var(--clr-primary);
}

.svc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Section eyebrow on light bg gets the blue treatment */
.svc-overview .section-eyebrow,
.svc-features-section .section-eyebrow,
.svc-usecases .section-eyebrow,
.svc-related .section-eyebrow {
  color: var(--clr-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.svc-overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Stat cards — elevated white on light-gray background */
.svc-stat-card {
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-mid), transform var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid);
}
.svc-stat-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.12);
}

.svc-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--clr-primary);
  letter-spacing: -0.03em;
}
.svc-stat-num sup {
  font-size: 1rem;
  color: var(--clr-text-3);
  vertical-align: super;
}

.svc-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--clr-text-2);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION — white background, light-gray feature cards
   ══════════════════════════════════════════════════════════════ */
.svc-features-section {
  background: #ffffff;
  border-top: 1px solid var(--clr-border);
}

.svc-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.svc-feature-item {
  background: var(--clr-bg-2);          /* #f8fafc */
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--dur-mid) var(--ease-smooth),
              border-color var(--dur-mid),
              box-shadow var(--dur-mid),
              background var(--dur-mid);
}
.svc-feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.10);
}

/* Icon chip */
.svc-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: 1.25rem;
  transition: background var(--dur-mid), border-color var(--dur-mid);
}
.svc-feature-item:hover .svc-feature-icon {
  background: rgba(29, 78, 216, 0.14);
  border-color: rgba(29, 78, 216, 0.35);
}

.svc-feature-item h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text);              /* #0f172a */
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.svc-feature-item p {
  font-size: 0.85rem;
  color: var(--clr-text-2);           /* #334155 */
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   USE CASES — alternating light-gray, elevated white cards
   ══════════════════════════════════════════════════════════════ */
.svc-usecases {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
}

.svc-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc-usecase {
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-mid), transform var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid);
}
.svc-usecase:hover {
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.10);
}

/* Blue left-border accent on use case cards */
.svc-usecase {
  border-left: 3px solid var(--clr-primary);
}

.svc-usecase h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.75rem;
}
.svc-usecase p {
  font-size: 0.875rem;
  color: var(--clr-text-2);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   CTA BAND — always deep blue gradient, button flips for contrast
   ══════════════════════════════════════════════════════════════ */
.svc-cta-band {
  background: var(--grad-primary);
  padding: 5rem 0;
}
.svc-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.svc-cta-band-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.svc-cta-band-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.svc-cta-band-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
/* On blue bg: btn-primary → white/blue-text; btn-white → ghost outline */
.svc-cta-band .btn-primary {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.svc-cta-band .btn-primary:hover {
  background: #f0f4ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
  transform: translateY(-2px);
  filter: none;
}
.svc-cta-band .btn-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.svc-cta-band .btn-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   RELATED SERVICES — light bg, dark photo cards
   ══════════════════════════════════════════════════════════════ */
.svc-related {
  background: #ffffff;
  border-top: 1px solid var(--clr-border);
}

.svc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 280px;
}

.svc-related-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid);
  will-change: transform;
}
.svc-related-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.svc-related-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 24, 0.95) 0%, rgba(8, 13, 24, 0.10) 65%);
  z-index: 1;
}

.svc-related-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════
   FADE-UP ANIMATION
   ══════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   OVERVIEW INSTALLATION IMAGE
   ══════════════════════════════════════════════════════════════ */
.svc-overview-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.svc-overview-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--clr-border);
}

.svc-overview-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.svc-overview-img:hover img {
  transform: scale(1.03);
}


/* ══════════════════════════════════════════════════════════════
   HOOK SECTION — large opening image + business benefit copy
   ══════════════════════════════════════════════════════════════ */
.svc-hook {
  background: var(--clr-bg-2);
  border-top: 3px solid var(--clr-primary);
}

.svc-hook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.svc-hook-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
}
.svc-hook-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}
.svc-hook-img:hover img { transform: scale(1.02); }

.svc-hook-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(8, 13, 24, 0.88) 0%, transparent 100%);
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.80);
  font-family: var(--font-body);
}

.svc-hook-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--clr-text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.svc-hook-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.svc-hook-bullets li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.925rem;
  color: var(--clr-text-2);
  line-height: 1.6;
}

.bullet-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ══════════════════════════════════════════════════════════════
   FEATURE ROWS — alternating image + text, full-bleed sections
   ══════════════════════════════════════════════════════════════ */
.svc-feature-row {
  background: #ffffff;
  border-top: 1px solid var(--clr-border);
}
.svc-feature-row--alt {
  background: var(--clr-bg-2);
}

.svc-feature-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.svc-feature-row-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.14);
}
.svc-feature-row-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}
.svc-feature-row-img:hover img { transform: scale(1.03); }

.svc-fr-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(29, 78, 216, 0.12);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  user-select: none;
}

.svc-fr-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}

.svc-feature-row-text p {
  font-size: 0.975rem;
  color: var(--clr-text-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.svc-fr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.svc-fr-tags span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clr-primary);
  background: rgba(29, 78, 216, 0.07);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR — dark band, full-bleed, punchy numbers
   ══════════════════════════════════════════════════════════════ */
.svc-stats-bar {
  background: #080d18;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.svc-stats-bar-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.svc-stats-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.svc-stats-bar-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.svc-stats-bar-plus {
  font-size: 0.65em;
  color: var(--clr-gold);
  vertical-align: super;
}

.svc-stats-bar-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.svc-stats-bar-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════════
   WHO WE BUILD FOR — emoji icon cards, light background
   ══════════════════════════════════════════════════════════════ */
.svc-who {
  background: #ffffff;
  border-top: 1px solid var(--clr-border);
}

.svc-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc-who-card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--dur-mid), transform var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid);
}
.svc-who-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.10);
}

.svc-who-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.svc-who-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.6rem;
}

.svc-who-card p {
  font-size: 0.875rem;
  color: var(--clr-text-2);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .svc-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .svc-overview-grid { grid-template-columns: 1fr; gap: 3rem; }
  .svc-overview-stats { position: static; grid-template-columns: repeat(2, 1fr); }
  .svc-overview-right { gap: 1rem; }
  .svc-usecase-grid { grid-template-columns: 1fr 1fr; }
  .svc-cta-band-inner { flex-direction: column; text-align: center; }
  .svc-cta-band-actions { justify-content: center; }
  .svc-related-grid { height: 220px; }
  /* Hook */
  .svc-hook-grid { grid-template-columns: 1fr; gap: 3rem; }
  .svc-hook-img img { height: 320px; }
  /* Feature rows */
  .svc-feature-row-grid { grid-template-columns: 1fr; gap: 3rem; }
  .svc-feature-row-img img { height: 300px; }
  /* Who grid */
  .svc-who-grid { grid-template-columns: 1fr 1fr; }
  /* Stats bar */
  .svc-stats-bar-divider { display: none; }
}

@media (max-width: 640px) {
  .svc-hero { min-height: 100svh; padding-bottom: 5rem; }
  .svc-features-grid { grid-template-columns: 1fr; }
  .svc-usecase-grid { grid-template-columns: 1fr; }
  .svc-related-grid { grid-template-columns: 1fr; height: auto; }
  .svc-related-card { height: 180px; }
  .svc-hero-actions { flex-direction: column; align-items: flex-start; }
  .svc-overview-stats { grid-template-columns: repeat(2, 1fr); }
  .svc-who-grid { grid-template-columns: 1fr; }
  .svc-hook-img img { height: 260px; }
  .svc-feature-row-img img { height: 240px; }
  .svc-fr-num { font-size: 2.5rem; }
}

@media (max-width: 360px) {
  .svc-overview-stats { grid-template-columns: 1fr; }
}
