/* =====================================================================
   SEGELECT — VISUAL RECONSTRUCTION V3
   ===================================================================== */

/* 1. TYPOGRAPHY AND H1 RESIZING */
.hero-headline {
  font-size: clamp(2rem, 8vw, 4.5rem) !important;
  max-width: 900px;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin: 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.hero-copy-editorial {
  text-align: left !important;
  align-items: flex-start !important;
  max-width: 800px;
}

.hero-lead {
  text-align: left !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  max-width: 650px !important;
  line-height: 1.6 !important;
  margin-top: 1.5rem !important;
}

.hero-actions {
  justify-content: flex-start !important;
}

/* 2. CONSISTENT MARGINS AND SPACING */
.section {
  padding: 6rem 0 !important;
}

.container {
  padding-left: clamp(1.5rem, 5vw, 3rem) !important;
  padding-right: clamp(1.5rem, 5vw, 3rem) !important;
  max-width: 1300px !important;
}

/* 3. FLATTENING CARDS (Removing "SaaS/e-commerce" look) */
.solution-card, .engineering-card, .trust-card, .proof-card, .audience-card {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid var(--line-light) !important;
  border-radius: 4px !important; /* more technical/industrial */
  transition: border-color 0.3s ease !important;
}

.solution-card:hover, .engineering-card:hover, .trust-card:hover, .proof-card:hover, .audience-card:hover {
  border-color: var(--slate-400) !important;
  box-shadow: none !important;
  transform: none !important;
}

.solution-card-content, .eng-card-body {
  padding: 2rem !important;
}

/* Shared service grid: eight cards, four balanced rows on desktop. */
.solutions-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.solutions-duo :is(.solution-card-photo, .eng-card-img) { height: 250px; flex-shrink: 0; }
.solutions-duo :is(.solution-card-content, .eng-card-body) h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  margin-bottom: 12px;
}
.solutions-duo :is(.solution-card-content, .eng-card-body) p {
  font-size: .94rem;
  margin-bottom: 24px;
}
@media (min-width: 769px) {
  .solutions-duo :is(.solution-card-content, .eng-card-body) h3 { min-height: 2.4em; }
}

/* 4. BRAND WALL FLATTENING */
.brand-grid {
  gap: 2rem !important;
}
.brand-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  align-items: flex-start !important;
}
.brand-logo-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  padding: 0 !important;
  margin-bottom: 0.5rem !important;
}
.brand-logo-frame img {
  filter: grayscale(100%) opacity(0.6) !important;
  transition: filter 0.3s ease !important;
}
.brand-card:hover .brand-logo-frame img {
  filter: grayscale(0%) opacity(1) !important;
}
.brand-cat {
  font-size: 0.8rem !important;
  color: var(--slate-400) !important;
  text-align: left !important;
  width: 100%;
}

/* 5. FOOTER COMPACTION */
.site-footer {
  padding: 4rem 0 2rem !important;
}
.footer-grid {
  gap: 2rem !important;
}
.footer-brand {
  max-width: 300px !important;
}

/* 6. REDUCING GOLD AND DECORATIVE OVERUSE */
.kicker-gold {
  color: var(--slate-600) !important; /* Neutralize gold in kickers */
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.headline-gold {
  color: var(--gold-400) !important;
}

/* Fix abrupt background transitions */
.solutions-section, .process-section, .audiences-section, .brands-section, .about-section, .trust-section {
  background: var(--ivory-50) !important;
  color: var(--slate-900) !important;
}

/* Process Section flat */
.process-section {
  background: var(--ivory-100) !important;
}
.process-step-item {
  background: transparent !important;
  border: none !important;
  border-left: 2px solid var(--slate-400) !important;
  border-radius: 0 !important;
  padding-left: 2rem !important;
  margin-bottom: 2rem !important;
}
.step-badge {
  background: var(--slate-800) !important;
  color: var(--ivory-50) !important;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 2px !important;
  display: inline-block !important;
  margin-bottom: 0.5rem !important;
}

/* 7. REMOVE E-COMMERCE BADGES ON CCTV */
/* 8. ALIGN FINAL CTA */
.final-cta-section {
  padding: 6rem 0 !important;
  background: var(--navy-950) !important;
  color: var(--ivory-50) !important;
}
.final-cta-panel {
  background: var(--navy-900) !important;
  border: 1px solid var(--line-dark) !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

/* FLATTEN PILLS */
.solution-tag {
  background: transparent !important;
  color: var(--slate-600) !important;
  padding: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  margin-bottom: 0.5rem !important;
  border: none !important;
}

/* FIX HEADINGS H2 */
.section-heading h2, .split-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

/* CLEAN FINAL CTA PILLS */
.trust-pill {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--ivory-200) !important;
}
.trust-pill svg {
  color: var(--gold-500) !important;
}

/* FIX BUTTONS */
.btn {
  border-radius: 2px !important;
}


/* NARRATIVE VIDEO CSS */
/* FIX 100VW OVERFLOW BUG */
.hero-bg-video {
  width: 100% !important;
  height: 100% !important;
}


/* FIX CONTRAST FAILURES */
#process-title, .process-intro p, .process-step-item h3, .process-step-item p, .brand-wall-desc, .brand-note {
  color: var(--slate-900) !important;
}
.final-cta-copy .kicker-gold {
  color: var(--gold-400) !important;
}


/* FORCE OVERFLOW FIX */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
.hero-cinematic-stage, .hero {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}


/* EXTRA CONTRAST FIXES */
.process-intro .section-kicker, .brand-card .brand-cat {
  color: var(--slate-800) !important;
}

/* V4: local hero composition and footer density; shared cards keep V3 tokens. */
.hero {
  min-height: clamp(620px, 82vh, 860px);
  padding: 0;
}
.hero .hero-layout-cinematic {
  width: min(var(--container), calc(100% - 80px));
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero .hero-copy-editorial { max-width: 760px; }
.hero .hero-headline {
  font-size: clamp(2.8rem, 4.2vw, 3.75rem) !important;
  line-height: 1.1 !important;
}
.hero .hero-lead {
  max-width: 610px !important;
  font-size: 1.08rem !important;
  line-height: 1.6 !important;
  margin: 24px 0 28px !important;
  color: #d1dce4;
}
.hero .hero-actions { margin-bottom: 0; }
.hero .hero-bg-video,
.hero .hero-poster-fallback { object-position: 50% center; background-position: 50% center; }
.hero .hero-cinematic-scrim {
  background:
    linear-gradient(90deg, rgba(5,11,17,.88) 0%, rgba(5,11,17,.78) 38%, rgba(5,11,17,.38) 66%, rgba(5,11,17,.12) 100%),
    linear-gradient(180deg, rgba(5,11,17,.18), transparent 45%, rgba(5,11,17,.55));
}
.site-footer { padding: 28px 0 18px !important; }
.site-footer .footer-grid {
  grid-template-columns: 1.2fr 1.65fr .95fr 1.1fr;
  gap: 24px !important;
  padding-bottom: 18px;
}
.site-footer .footer-tagline { margin: 10px 0 0; line-height: 1.5; font-size: .8rem; }
.site-footer .footer-col-title { margin-bottom: 8px; color: var(--gold-400); font-size: .72rem; }
.site-footer .footer-col a { margin-bottom: 0; line-height: 1.5; min-height: 28px; font-size: .8rem; }
.site-footer .footer-col a:last-child { margin-bottom: 0; }
.site-footer .footer-solutions-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.site-footer .footer-bottom { padding-top: 14px; justify-content: center; text-align: center; }
.site-footer .footer-bottom p { margin: 0; width: 100%; text-align: center; }
@media (min-width: 769px) and (max-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .hero .hero-headline { font-size: 3rem !important; }
  .hero .hero-copy-editorial { max-width: 640px; }
  .hero .hero-bg-video { object-position: 52% center; }
  .hero .hero-poster-fallback { background-position: 52% center; }
}
@media (max-width: 768px) {
  .hero { min-height: 540px; padding: 0; }
  .hero .hero-layout-cinematic {
    width: 100%;
    padding: 36px 24px 40px !important;
  }
  .hero .hero-headline {
    font-size: clamp(1.75rem, 7.1vw, 2.6rem) !important;
    line-height: 1.12 !important;
  }
  .hero .hero-eyebrow {
    font-size: .65rem;
    letter-spacing: .08em;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero .hero-eyebrow::before { display: none; }
  .hero .hero-lead {
    font-size: .96rem !important;
    line-height: 1.5 !important;
    margin: 20px 0 24px !important;
  }
  .hero .hero-actions { flex-direction: row; gap: 10px; }
  .hero .hero-actions .btn {
    min-height: 44px;
    max-width: none;
    padding: 12px 16px;
    font-size: .85rem;
    gap: 6px;
  }
  .hero .hero-bg-video { object-position: 55% center; }
  .hero .hero-poster-fallback { background-position: 55% center; }
  .hero .hero-cinematic-scrim {
    background:
      linear-gradient(180deg, rgba(5,11,17,.35) 0%, rgba(5,11,17,.66) 28%, rgba(5,11,17,.78) 78%, rgba(5,11,17,.7) 100%),
      linear-gradient(90deg, rgba(5,11,17,.3), transparent 100%);
  }
  .solutions-duo { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding: 24px 0 18px !important; }
  .site-footer .footer-grid {
    width: 100%;
    padding: 0 24px 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px !important;
  }
  .site-footer .footer-brand,
  .site-footer .footer-solutions { grid-column: 1 / -1; }
  .site-footer .footer-col:last-child { grid-column: auto; }
  .site-footer .footer-col a { font-size: .8rem; min-height: 32px; }
  .site-footer .footer-bottom {
    width: 100%;
    padding: 14px 24px 0 !important;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 360px) {
  .hero { min-height: 470px; }
  .hero .hero-layout-cinematic { padding: 24px 16px 30px !important; }
  .hero .hero-eyebrow { font-size: .61rem; margin-bottom: 12px; }
  .hero .hero-lead { font-size: .89rem !important; margin: 16px 0 20px !important; }
  .hero .hero-actions { gap: 8px; flex-wrap: nowrap; }
  .hero .hero-actions .btn { font-size: .76rem; padding: 12px 10px; gap: 5px; }
  .site-footer .footer-grid { padding-inline: 16px !important; }
  .site-footer .footer-bottom { padding-inline: 16px !important; }
}
