/* Aegis Labs site-wide visual language.
   The homepage is the reference implementation; this layer brings legacy
   pages into the same type scale, spacing, colour and hero treatment. */

:root {
  --site-green: #178A4C;
  --site-green-dark: #126B3B;
  --site-bg: #EFF8F2;
  --site-ink: #142019;
  --site-muted: #6B7A72;
  --site-border: #E3ECE6;
  --site-radius: 22px;
  --site-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Keep the live client links clear and usable when cards wrap on smaller screens. */
.aegis-project-actions { justify-content: flex-start; flex-wrap: wrap; }
.aegis-project-actions > a.aegis-live-project-link { padding: 9px 11px; border: 1px solid #bfe0ca; border-radius: 999px; background: #f4fbf6; }

body:not(.hp) {
  font-family: var(--site-font);
  color: var(--site-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.hp) h1,
body:not(.hp) .ct-h1,
body:not(.hp) .ab-h1,
body:not(.hp) .ind2-h1,
body:not(.hp) .svc2-h1 {
  font-family: var(--site-font) !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  color: var(--site-ink) !important;
}

body:not(.hp) h2,
body:not(.hp) .section-hd h2,
body:not(.hp) .ab-h2,
body:not(.hp) .ind2-split-h2 {
  font-family: var(--site-font) !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.5px !important;
  color: var(--site-ink) !important;
}

body:not(.hp) h3,
body:not(.hp) button,
body:not(.hp) input,
body:not(.hp) select,
body:not(.hp) textarea {
  font-family: var(--site-font);
}

body:not(.hp) p,
body:not(.hp) li,
body:not(.hp) label {
  font-family: var(--site-font);
}

body:not(.hp) .eyebrow {
  color: var(--site-green) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Same header language on pages that still use the earlier compact markup. */
body:not(.hp) .hp-topbar > .shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body:not(.hp) .hp-header > .shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body:not(.hp) .hp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--site-border);
}

body:not(.hp) .hp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  font-size: 19px;
  font-weight: 800;
}

body:not(.hp) .hp-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

body:not(.hp) .hp-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

body:not(.hp) .hp-nav a {
  color: #2B3A32;
  font-size: 14px;
  font-weight: 600;
}

body:not(.hp) .hp-nav a:hover,
body:not(.hp) .hp-nav a.active {
  color: var(--site-green);
}

body:not(.hp) .hp-topbar {
  min-height: 44px;
  background: #0D1712 !important;
  color: #CFE3D6 !important;
  font-size: 13px;
  font-weight: 500;
}

body:not(.hp) .hp-topbar > .shell > span {
  display: inline-flex;
  align-items: center;
}

body:not(.hp) .hp-topbar-socials {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

body:not(.hp) .hp-topbar-socials a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 999px;
  color: #CFE3D6 !important;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  line-height: 1;
}

body:not(.hp) .hp-topbar-socials a[data-social="instagram"] {
  width: 26px;
  padding: 0;
  font-size: 0;
}

body:not(.hp) .hp-topbar-socials a[data-social="instagram"] svg {
  width: 13px;
  height: 13px;
}

body:not(.hp) .hp-menu-btn {
  display: none;
  width: 26px;
  height: 26px;
  color: var(--site-ink);
  font-size: 0;
}

body:not(.hp) .hp-menu-btn::before,
body:not(.hp) .hp-menu-btn::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
}

/* Homepage-inspired split hero for all service and landing page heroes. */
body:not(.hp) .svc-hero-section,
body:not(.hp) .ct-hero,
body:not(.hp) .ab-hero,
body:not(.hp) .ind2-hero {
  background: var(--site-bg);
}

/* The quote page owns a dark hero; keep its headline readable when the
   shared landing-page typography is applied. */
body:not(.hp) .q-hero h1 { color: #fff !important; }
body:not(.hp) .q-hero h1 span { color: #4ade80 !important; }

body:not(.hp) .svc-hero-section {
  padding: 40px 0 48px;
}

body:not(.hp) .svc-hero-grid,
body:not(.hp) .ct-hero,
body:not(.hp) .ab-hero,
body:not(.hp) .ind2-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

body:not(.hp) .svc-hero-text p,
body:not(.hp) .ct-hero-text p,
body:not(.hp) .ab-lead,
body:not(.hp) .ind2-lead {
  max-width: 440px;
  color: var(--site-muted) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

body:not(.hp) .svc-hero-img-wrap,
body:not(.hp) .ct-hero-img-wrap {
  width: min(440px, 100%);
  height: min(440px, 70vw) !important;
  aspect-ratio: 1 / 1;
  max-height: none;
  margin: 0 auto;
  overflow: hidden;
  border: 0 !important;
  border-radius: 32px !important;
  background: linear-gradient(160deg, #DDEFE3, #CFE9D8);
}

body:not(.hp) .svc-hero-img-wrap img,
body:not(.hp) .ct-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.hp) .svc-hero-btns,
body:not(.hp) .ct-actions,
body:not(.hp) .cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

body:not(.hp) .btn,
body:not(.hp) .hp-btn {
  border-radius: 999px;
  font-family: var(--site-font);
  font-size: 14px;
  font-weight: 700;
}

body:not(.hp) .btn-primary,
body:not(.hp) .hp-btn-primary {
  background: var(--site-green) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(23, 138, 76, .3);
}

body:not(.hp) .btn-primary:hover,
body:not(.hp) .hp-btn-primary:hover {
  background: var(--site-green-dark) !important;
}

body:not(.hp) .btn-outline {
  border-color: var(--site-border);
  color: var(--site-ink);
  background: #fff;
}

body:not(.hp) .section,
body:not(.hp) .ab-section,
body:not(.hp) .aegis-service-why {
  border-color: var(--site-border);
}

body:not(.hp) .section-hd p,
body:not(.hp) .section-hd + p,
body:not(.hp) .feat-card p,
body:not(.hp) .process-step p,
body:not(.hp) .faq-a,
body:not(.hp) .svc2-desc {
  color: var(--site-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body:not(.hp) .feat-card,
body:not(.hp) .process-step,
body:not(.hp) .price-card,
body:not(.hp) .security-tier,
body:not(.hp) .ct-info-card,
body:not(.hp) .ct-form-card {
  border-color: var(--site-border);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 32, 25, .06);
}

body:not(.hp) .cta-band,
body:not(.hp) .hp-cta {
  background: #fff;
}

body:not(.hp) .hp-footer {
  padding: 64px 0 28px;
  background: #0D1712 !important;
  color: #B9CCC1;
}

body:not(.hp) .hp-footer > .shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

body:not(.hp) .hp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

body:not(.hp) .hp-footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

body:not(.hp) .hp-footer p,
body:not(.hp) .hp-footer a {
  color: #9FB5A9;
  font-size: 14px;
  line-height: 1.7;
}

body:not(.hp) .stats-strip-num,
body:not(.hp) .stat-n,
body:not(.hp) .price-amt {
  color: var(--site-green);
}

@media (max-width: 980px) {
  body:not(.hp) .hp-nav { display: none; }
  body:not(.hp) .hp-menu-btn { display: block; }
  body:not(.hp) .svc-hero-grid,
  body:not(.hp) .ct-hero,
  body:not(.hp) .ab-hero,
  body:not(.hp) .ind2-hero { grid-template-columns: 1fr; }
  body:not(.hp) .svc-hero-img-wrap,
  body:not(.hp) .ct-hero-img-wrap { width: min(440px, 100%); height: min(440px, 70vw) !important; }
}

@media (max-width: 640px) {
  body:not(.hp) .hp-header > .shell,
  body:not(.hp) .hp-topbar > .shell { padding-left: 20px; padding-right: 20px; }
  body:not(.hp) .svc-hero-section { padding: 24px 0 28px; }
  body:not(.hp) .svc-hero-grid,
  body:not(.hp) .ct-hero,
  body:not(.hp) .ab-hero,
  body:not(.hp) .ind2-hero { padding-left: 20px; padding-right: 20px; gap: 28px; }
  body:not(.hp) .svc-hero-img-wrap,
  body:not(.hp) .ct-hero-img-wrap { width: 100%; height: min(440px, calc(100vw - 40px)) !important; border-radius: 22px !important; }
  body:not(.hp) .svc-hero-btns,
  body:not(.hp) .ct-actions,
  body:not(.hp) .cta-row { align-items: stretch; flex-direction: column; }
}

/* Full-width section rhythm: use background changes and spacing instead of frames. */
body.hp .hp-svc,
body.hp .hp-cta,
body.hp .aegis-primary-motto,
body.hp .aegis-reviews-section,
body.hp .aegis-home-portfolio,
body.hp .aegis-social-proof,
body:not(.hp) .section,
body:not(.hp) .section-sm,
body:not(.hp) .section-lg,
body:not(.hp) .aegis-live-portfolio,
body:not(.hp) .aegis-service-why,
body:not(.hp) .aegis-additional-services,
body:not(.hp) .aegis-social-proof,
body:not(.hp) .cta-band,
body:not(.hp) .section-light2,
body:not(.hp) .section-dark2 {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.hp .hp-svc,
body.hp .aegis-home-portfolio { background: #fff; }
body.hp .hp-cta { background: #f2faf5; }
body:not(.hp) .section,
body:not(.hp) .section-sm,
body:not(.hp) .section-lg {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: #fff;
}
body:not(.hp) main > .section:nth-of-type(even) { background: #f6fbf8; }
body:not(.hp) .section > .shell,
body:not(.hp) .section-sm > .shell,
body:not(.hp) .section-lg > .shell { max-width: 1240px; margin-left: auto; margin-right: auto; }

/* Remove container-like outlines from primary content surfaces. */
body:not(.hp) .content-card,
body:not(.hp) .quote-panel,
body:not(.hp) .pricing-hero-card,
body:not(.hp) .pricing-security-band,
body:not(.hp) .ct-form-card,
body:not(.hp) .ct-info-card {
  border-color: transparent !important;
  box-shadow: 0 8px 28px rgba(20, 32, 25, .06);
}

/* Cards remain distinct, but rely on quiet surfaces and shadows rather than hard frames. */
body.hp .hp-hl-card,
body.hp .aegis-project-card,
body:not(.hp) .feat-card,
body:not(.hp) .process-step,
body:not(.hp) .price-card,
body:not(.hp) .security-tier,
body:not(.hp) .ind-card,
body:not(.hp) .aegis-project-card {
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(20, 32, 25, .06);
}

/* Divider cleanup. Form controls and focus states keep their own affordances. */
body:not(.hp) .hp-header,
body.hp .hp-footer-top,
body:not(.hp) .hp-footer-top,
body:not(.hp) .footer,
body:not(.hp) .footer-bottom,
body:not(.hp) .marquee-wrap,
body:not(.hp) .aegis-primary-motto,
body:not(.hp) .aegis-reviews-section,
body:not(.hp) .aegis-service-why,
body:not(.hp) .cta-band {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
body:not(.hp) .cta-band { width: 100%; margin-left: 0; margin-right: 0; border-radius: 0; background: #f2faf5; }
