/*
 * Global styles for the EmployeeBenefits.Now website.
 * The design follows a clean, modern aesthetic with a white backdrop and blue accents.
 */

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
:root {
  --color-navy: #0f2257;
  --color-blue: #1e88e5;
  --color-teal: #00bfa6;
  --color-pink: #f04b99;
  --color-slate: #4c5970;
  --color-muted: #7b859d;
  --color-border: #e3e8f5;
  --color-panel: #f6f8fc;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 20px 45px rgba(15, 34, 87, 0.08);
  --shadow-soft: 0 10px 25px rgba(15, 34, 87, 0.08);
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #ffffff;
  color: var(--color-slate);
  line-height: 1.7;
  font-size: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-title {
  color: var(--color-navy);
}

.section-lead {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.home-page .services .eyebrow {
  color: var(--color-navy);
}

.home-page .services .section-title {
  color: var(--color-navy);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(30, 136, 229, 0.08);
  color: var(--color-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}

.pill-link::after {
  content: '>';
  transition: transform 0.2s ease;
}

.pill-link:hover::after {
  transform: translateX(4px);
}

.service .pill-link {
  margin-top: auto;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: static; /* no sticky header */
  top: auto;
  z-index: auto;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0f2257;
  margin: 0;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

/* Temporarily hide News link until published */
header nav li.nav-news {
  display: none !important;
}

nav a.active,
nav a:hover {
  color: #1e88e5;
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
  color: var(--color-slate);
  min-height: clamp(520px, 70vh, 720px);
}

.home-page .hero {
  min-height: clamp(220px, 32vh, 340px);
  padding: 2.25rem 0 2.25rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), #fff);
  pointer-events: none;
}

.services-page .hero::after {
  background: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.home-page .hero-grid {
  grid-template-columns: minmax(320px, 520px) minmax(360px, 720px);
  gap: 1.25rem;
  align-items: flex-start;
}

.services-page .hero-grid {
  grid-template-columns: minmax(320px, 520px) minmax(360px, 720px);
  gap: 1.25rem;
}

.about-page .hero-grid {
  grid-template-columns: minmax(320px, 520px) minmax(360px, 720px);
  gap: 1.25rem;
}

.hero-visual {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-page .hero-visual {
  justify-self: start;
}

.about-page .hero-visual {
  justify-self: start;
}

.hero-visual img {
  width: min(380px, 100%);
  max-height: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(15, 34, 87, 0.18));
}

.services-page .hero-visual img {
  width: 100%;
  max-width: 760px;
  max-height: 540px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.about-page .hero-visual img {
  width: 100%;
  max-width: 760px;
  max-height: 540px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.home-page .hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.home-page .hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  white-space: nowrap;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  color: var(--color-muted);
}

.hero-benefits {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--color-slate);
}

.hero-benefits li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal);
}

.hero-metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-metrics strong {
  display: block;
  color: var(--color-blue);
  font-size: 1.5rem;
}

.hero-metrics span {
  font-size: 0.9rem;
  color: var(--color-muted);
}


.enrollment-tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(21, 101, 192, 0.35);
  background: transparent;
}

.status-footnote {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(15, 34, 87, 0.08);
}

.status-chip {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  color: var(--color-muted);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.status-chip.is-complete {
  border-color: rgba(0, 191, 165, 0.4);
  color: var(--color-teal);
}

.benefit-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 34, 87, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.benefit-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.benefit-copy strong {
  font-size: 0.95rem;
  color: var(--color-navy);
}

.benefit-copy span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.benefit-tier {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 101, 192, 0.25);
}

.hero-proof {
  border-top: 1px solid rgba(15, 34, 87, 0.06);
  border-bottom: 1px solid rgba(15, 34, 87, 0.06);
  background: linear-gradient(90deg, rgba(247, 250, 255, 0.8), #fff);
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: center;
}

.hero-proof-grid strong {
  display: block;
  font-size: 1.35rem;
  color: var(--color-navy);
}

.hero-proof-grid span {
  font-size: 0.9rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .enrollment-showcase {
    padding: 2rem 1.5rem 3.25rem;
  }

  
  .hero-proof-grid {
    text-align: left;
  }
}
.btn {
  display: inline-block;
  background-color: var(--color-blue);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  background-color: #1565c0;
  transform: translateY(-1px);
}

/* Section styles */
.about,
.services,
.why,
.call-to-action {
  padding: 4rem 0;
}

.home-page .services {
  padding-top: 2.5rem;
}

.call-to-action {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.06), rgba(0, 191, 166, 0.08));
}

.policy {
  padding: 2.5rem 0 4rem;
}

.policy h1 {
  margin: 0 0 1rem;
  color: var(--color-navy);
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.cta-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 34, 87, 0.08);
}

.call-to-action .callout-grid {
  justify-content: center;
}

.call-to-action .cta-stack {
  max-width: 720px;
  margin: 0 auto;
}

.call-to-action .cta-row {
  justify-content: center;
}

.cta-footnote {
  margin-top: 0.85rem;
  color: var(--color-muted);
}

.cta-footnote a {
  color: var(--color-blue);
  font-weight: 700;
  text-decoration: none;
}

.cta-footnote a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #0b193d;
  color: #d6def5;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: #8ea3d6;
  margin-bottom: 1rem;
}

.site-footer a {
  display: block;
  color: #d6def5;
  text-decoration: none;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  display: inline-flex;
  margin-bottom: 0;
}

/* Zero Commission Section */
.zero-commission {
  background: linear-gradient(180deg, #f7fbff, #edf4ff);
  padding: 5rem 0;
}

.zero-commission-content {
  max-width: 1100px;
  margin: 0 auto;
}

.zero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

.zero-highlight {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  max-width: 780px;
  margin: 0 auto;
}

.zero-description {
  color: var(--color-muted);
}

.zero-list {
  margin-top: 1.75rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.zero-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.zero-list li::before {
  content: '';
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  display: inline-block;
  border-radius: 50%;
  background: var(--color-teal);
}

.zero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-blue);
  display: block;
  margin-bottom: 0.4rem;
}

.zero-number {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #1e88e5;
  text-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.zero-number::after {
  content: '%';
  font-size: 0.32em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.08em;
  color: #1e88e5;
}

.zero-commission h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1e88e5;
  text-align: center;
  margin-top: 0.25rem;
}

.zero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #1565c0;
}

.zero-description {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.zero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: #1e88e5;
  margin-top: 2rem;
}

.about h2,
.services h2,
.why h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e88e5;
  text-align: center;
}

.about p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #555;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.about .split-grid {
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.about .about-copy {
  text-align: center;
}

.about .check-list {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.about-visual {
  display: flex;
  justify-content: flex-end;
}

.about-visual img {
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.about-copy h2 {
  color: var(--color-navy);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.about-copy p {
  color: var(--color-muted);
  max-width: none;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-slate);
  font-weight: 600;
}

.check-list li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-pink);
  position: absolute;
  left: 0;
  top: 0.4rem;
}

.about-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.about-card h3 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.stat-pill {
  display: block;
  margin-bottom: 0.75rem;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  border: 1px solid rgba(15, 34, 87, 0.05);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 30px rgba(15, 34, 87, 0.12);
}

.service .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.service h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.service p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(15, 34, 87, 0.08);
  box-shadow: var(--shadow-soft);
}

.why-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.why-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call to action section */
.call-to-action {
  background-color: #f0f8ff;
  text-align: center;
  padding: 3rem 1rem;
}

.call-to-action h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e88e5;
}

.call-to-action p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

/* Footer */
footer {
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
  color: #555;
  font-size: 0.9rem;
}

/* Simplified footer layout */
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.footer-links a { color: #555; text-decoration: none; transition: color 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: #1e88e5; }

.footer-bottom { border-top: 1px solid #e0e0e0; padding-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { color: #777; font-size: 0.85rem; }

@media (max-width: 768px) {
  footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact page styles */
.contact-page {
  padding: 4rem 0;
}

.contact-page h1 {
  color: #1e88e5;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2rem;
}

.contact-page p {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
}

.contact-wrapper {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: #f7faff;
  padding: 2rem;
  border-radius: 8px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 1px;
  overflow: hidden;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

/* Enhanced select styling for the contact form */
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0l5 6 5-6z" fill="%23333"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem;
}

.contact-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  padding-right: 2rem;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

.contact-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Additional spacing for call-us section within the form */
.contact-form .call-us {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}
.contact-form .call-us a {
  color: #1e88e5;
  text-decoration: none;
  font-weight: 600;
}
.contact-required {
  color: #e74c3c;
}
.contact-error {
  color: #e74c3c;
  margin: 0.25rem 0 0.75rem 0;
  display: none;
}
.contact-callout {
  font-size: 1.05rem;
}

.contact-details {
  flex: 1;
  min-width: 260px;
}

.contact-details h2 {
  color: #1e88e5;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #555;
}

.contact-details a {
  color: #1e88e5;
  text-decoration: none;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable fade-in on services page hero/content */
.services-page .fade-in,
.services-page .fade-in.visible {
  opacity: 1;
  transform: none;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-delay-1 {
  transition-delay: 0.1s;
}
.stagger-delay-2 {
  transition-delay: 0.2s;
}
.stagger-delay-3 {
  transition-delay: 0.3s;
}
.stagger-delay-4 {
  transition-delay: 0.4s;
}
.stagger-delay-5 {
  transition-delay: 0.5s;
}

@media (max-width: 768px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-visual {
    justify-self: center;
  }
  .hero-visual img {
    width: min(420px, 100%);
    max-height: 420px;
  }
  .home-page .hero {
    min-height: clamp(220px, 32vh, 340px);
    padding: 2.25rem 0 2.25rem;
  }
  .home-page .hero h1 {
    white-space: normal;
  }
  .home-page .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .home-page .hero-card {
    text-align: center;
  }
  .home-page .hero-visual {
    justify-self: center;
  }
  .services-page .hero-grid,
  .about-page .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .services-page .hero-card,
  .about-page .hero-card {
    text-align: center;
  }
  .services-page .hero-visual,
  .about-page .hero-visual {
    justify-self: center;
  }
  .hero-metrics {
    flex-direction: column;
  }
  .hero-bubble {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  .zero-grid {
    grid-template-columns: 1fr;
  }
  .zero-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .zero-number {
    font-size: 6rem;
  }
  .zero-description,
  .zero-tagline {
    padding: 0;
  }
  .callout-grid {
    grid-template-columns: 1fr;
  }
  .footer-meta {
    flex-direction: column;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  header nav {
    position: relative;
  }
  .has-nav-js header nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    z-index: 10;
  }
  .has-nav-js header.nav-open nav ul {
    display: flex;
  }
  header nav li {
    width: 100%;
  }
  header nav a {
    width: 100%;
    display: inline-block;
  }
  .contact-wrapper {
    flex-direction: column;
  }
  /* NEW: Added for mobile image centering */
  .contact-image {
    align-items: center;
  }
  .about .split-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    justify-content: center;
  }
}

/* ===============================
   Unified Hero + Services styling
   (scoped under .services-page and .home-page)
   =============================== */

/* Hero */
.services-page .svc-hero,
.about-page .abt-hero {
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  position: relative;
  color: #333;
}

/* Services hero: smaller to get to offerings faster */
.services-page .svc-hero { min-height: clamp(220px, 32vh, 340px); padding: 2.25rem 0 2.25rem; background: none; }
.services-page .svc-hero .hero-card { margin: 1.5rem 0 1.25rem; padding: 1.35rem 1.5rem; background: #fff; box-shadow: none; border: none; }

/* About and News heroes: match slim services hero */
.about-page .abt-hero { min-height: clamp(220px, 32vh, 340px); padding: 2.25rem 0 2.25rem; background: none; }
.about-page .abt-hero .hero-card { margin: 1.5rem 0 1.25rem; padding: 1.35rem 1.5rem; background: #fff; box-shadow: none; border: none; }
.news-page .news-hero { min-height: clamp(280px, 38vh, 420px); }
.news-page .news-hero .hero-card { margin: 3rem 0 2rem; padding: 1.5rem 1.75rem; }

/* Home hero: restore stronger background (remove soft overlay) */
.services-page .svc-hero .hero-bg,
.about-page .abt-hero .hero-bg {
  display: none;
}

.services-page .hero-card,
.about-page .hero-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.65) 100%
  );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 32px rgba(30, 136, 229, 0.15);
  max-width: 760px;
  margin: 2.5rem 0 2rem;
}

/* Flatten hero cards on Services and About heroes */
.services-page .svc-hero .hero-card,
.about-page .abt-hero .hero-card {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
  max-width: 540px;
}

.services-page .hero-card .eyebrow,
.about-page .hero-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #1565c0;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.services-page .hero-card h1,
.about-page .hero-card h1 {
  color: #1e88e5;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.services-page .hero-card .lead,
.about-page .hero-card .lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.25rem;
}

.services-page .cta-row,
.home-page .cta-row,
.about-page .cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .home-page .cta-row {
    flex-wrap: nowrap;
    align-items: center;
  }
}

.services-page .btn-ghost,
.home-page .btn-ghost,
.about-page .btn-ghost {
  background: transparent;
  color: #1e88e5;
  border: 2px solid rgba(30, 136, 229, 0.4);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}

.services-page .btn-ghost:hover,
.home-page .btn-ghost:hover,
.about-page .btn-ghost:hover {
  background: rgba(30, 136, 229, 0.06);
  border-color: #1e88e5;
}

/* Section titles */
.services-page .section-title {
  text-align: center;
  color: #1e88e5;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.services-page .section-subtitle {
  text-align: center;
  color: #555;
  max-width: 850px;
  margin: 0 auto 2rem;
}

/* Core offerings cards */
.services-page .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.services-page .service {
  position: relative;
  background: rgba(247, 250, 255, 0.8);
  border: 1px solid #eaf2ff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

.services-page .service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e88e5, #42a5f5);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.services-page .service:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(30, 136, 229, 0.12);
  background: #ffffff;
}

.services-page .icon-badge,
.about-page .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(30, 136, 229, 0.12);
  margin-bottom: 1rem;
}

.services-page .icon-badge svg,
.services-page .icon-badge img,
.about-page .icon-badge svg,
.about-page .icon-badge img {
  width: 28px;
  height: 28px;
}

.services-page .service h3 {
  color: #1e88e5;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.services-page .service p {
  color: #566;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Small note under offerings */
.services-page .and-more {
  display: block;
  text-align: center;
  margin: 1.5rem auto 0;
  padding: 0.25rem 0;
  background: transparent;
  color: #1565c0;
  font-weight: 800;
  font-size: 1.2rem;
}

/* Why section */
.services-page .svc-why {
  background: #f7faff;
  padding: 4rem 0;
}

.services-page .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.services-page .why-item,
.about-page .why-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e9f1ff;
  border-radius: 12px;
  padding: 1rem 1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.services-page .why-item .check,
.about-page .why-item .check {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(30, 136, 229, 0.12);
  flex: 0 0 44px;
}

.about-page .why-item .check img { width: 22px; height: 22px; }

/* About page: remove boxes and shading in How We Work only */
.about-page .svc-why .why-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* About & Services pages: icon treatment */
/* Services: larger icons, no shaded badge (as requested earlier) */
.services-page .icon-badge {
  background: transparent !important;
  box-shadow: none !important;
  width: 64px;
  height: 64px;
}
.services-page .icon-badge img,
.services-page .icon-badge svg {
  width: 40px;
  height: 40px;
}
/* About: match "How We Work" boxes */
.about-page .icon-badge {
  background: transparent !important;
  box-shadow: none !important;
  width: 48px;
  height: 48px;
}
.about-page .icon-badge img,
.about-page .icon-badge svg {
  width: 32px;
  height: 32px;
}
.about-page .why-item .check {
  background: transparent !important;
  box-shadow: none !important;
  width: 48px;
  height: 48px;
}
.about-page .why-item .check img { width: 32px; height: 32px; }

/* About page cards: make all boxes look like How We Work cards */
.about-page .service {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  background: #fff !important;
  border: 1px solid #e9f1ff !important;
  border-radius: 12px !important;
  padding: 1rem 1rem !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04) !important;
  transition: none;
  text-align: left;
}
.about-page .service::before { content: none !important; }
.about-page .service:hover { transform: none !important; box-shadow: 0 6px 14px rgba(0,0,0,0.04) !important; }
.about-page .service h3 { margin: 0.25rem 0 0.25rem 0; }

/* Center content for the About page's "Why Choose" cards only */
.about-page .abt-why .service {
  align-items: center !important;
  text-align: center !important;
}
.about-page .abt-why .icon-badge { margin-left: auto; margin-right: auto; }

/* Center and borderless cards for Our Principles */
.about-page .abt-principles .service {
  align-items: center !important;
  text-align: center !important;
  border: none !important;
  box-shadow: none !important;
}
.about-page .abt-principles .icon-badge { margin-left: auto; margin-right: auto; }

/* Our Principles: enlarge icons (2x) */
.about-page .abt-principles .icon-badge {
  width: 80px !important;
  height: 80px !important;
}
.about-page .abt-principles .icon-badge img,
.about-page .abt-principles .icon-badge svg {
  width: 64px !important;
  height: 64px !important;
}

/* Services: make Core Benefit Offerings match About's Our Principles */
.services-page .svc-offerings-plain .service,
.home-page .svc-offerings-plain .service {
  align-items: center !important;
  text-align: center !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 1rem 1rem !important;
  transition: none !important;
}
.home-page .svc-offerings-plain .service { transition: transform 200ms ease, background 200ms ease; }
.home-page .svc-offerings-plain .service:hover { transform: translateY(-2px); background: #f8fbff; }

/* Buttons: subtle interactive feel */
.home-page .btn,
.home-page .btn-ghost { transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.home-page .btn:hover { transform: translateY(-1px); }
.home-page .btn:focus-visible,
.home-page .btn-ghost:focus-visible { outline: 2px solid #90caf9; outline-offset: 2px; }
.services-page .svc-offerings-plain .service::before,
.home-page .svc-offerings-plain .service::before { content: none !important; }
.services-page .svc-offerings-plain .service:hover,
.home-page .svc-offerings-plain .service:hover { transform: none !important; box-shadow: none !important; }
.services-page .svc-offerings-plain .icon-badge,
.home-page .svc-offerings-plain .icon-badge { margin-left: auto; margin-right: auto; width: 80px !important; height: 80px !important; background: transparent !important; box-shadow: none !important; }
.services-page .svc-offerings-plain .icon-badge img,
.services-page .svc-offerings-plain .icon-badge svg,
.home-page .svc-offerings-plain .icon-badge img,
.home-page .svc-offerings-plain .icon-badge svg { width: 64px !important; height: 64px !important; }

.services-page .why-item h4 {
  color: #1e88e5;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.services-page .why-item p {
  color: #566;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* CTA band */
.services-page .cta-modern {
  background: linear-gradient(90deg, rgba(30,136,229,0.04), rgba(30,136,229,0.08));
  padding: 3.25rem 0;
}

.services-page .cta-modern .cta-inner {
  text-align: center;
}

.services-page .cta-modern h2 {
  color: #1e88e5;
  margin-bottom: 0.5rem;
}

.services-page .cta-modern p {
  color: #555;
  margin-bottom: 1rem;
}

/* 404 page */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem 3rem;
}

.nf-card {
  max-width: 960px;
  margin: 0 auto;
}

.nf-copy {
  color: #4c5970;
  margin-bottom: 1.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.nf-visual {
  margin: 0 auto 1.25rem;
}

.nf-visual img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .services-page .hero-card,
  .home-page .hero-card,
  .about-page .hero-card {
    margin: 2rem 0 2rem;
    padding: 1.5rem 1.25rem;
  }
  .services-page .cta-row,
  .home-page .cta-row,
  .about-page .cta-row {
    justify-content: center;
  }
}
