/* Legend1st-inspired Chaitanya Design system. */
:root {
  --color-primary: #d41030;
  --color-primary-dark: #b60d28;
  --color-accent: #3858e9;
  --color-accent-dark: #183ad6;
  --color-secondary: #302c2c;
  --color-text: #302c2c;
  --color-muted: #696588;
  --color-light: #f5f5f5;
  --color-border: rgba(0, 0, 0, 0.125);
  --color-white: #ffffff;
  --color-black: #070707;
  --shadow-sm: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 35px 0;
  --shadow-md: rgba(0, 0, 0, 0.04) 0 4px 50px 0;
  --card-padding: 24px;
  --card-border: 1px solid rgba(0, 0, 0, 0.05);
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --container: 1320px;
  --gutter: 40px;
  --transition: 180ms ease;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header and footer reference refresh */
.site-topbar__inner {
  justify-content: space-between;
}

.site-topbar__contacts,
.site-topbar__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.site-topbar__contacts a,
.site-topbar__contacts span {
  position: relative;
  color: #ffffff;
}

.site-topbar__contacts a:not(:last-child)::after,
.site-topbar__contacts span:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}

.site-topbar a {
  text-decoration: none;
}

.site-topbar a:hover,
.site-topbar a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.site-topbar__socials a,
.footer-socials a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  position: relative;
}

.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: 240px;
  display: grid;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(17, 35, 55, 0.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.primary-nav .sub-menu a {
  min-height: 42px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
}

.primary-nav .sub-menu a::after {
  display: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus {
  background: #fff4f6;
}

.services-mega {
  position: relative;
}

.services-mega__toggle {
  white-space: nowrap;
}

.services-mega__toggle::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 180ms ease;
}

.services-mega__panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 25;
  width: min(860px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 35, 55, 0.14);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.services-mega:hover .services-mega__panel,
.services-mega:focus-within .services-mega__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.services-mega:hover .services-mega__toggle::before,
.services-mega:focus-within .services-mega__toggle::before {
  opacity: 1;
}

.services-mega__item {
  min-height: 92px;
  display: grid !important;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px !important;
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
}

.services-mega__item:hover,
.services-mega__item:focus {
  background: #fff4f6;
}

.services-mega__item::after {
  display: none;
}

.services-mega__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff4f6;
  color: var(--color-primary);
}

.services-mega__icon img,
.services-mega__icon svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.services-mega__item strong {
  display: block;
  color: var(--color-secondary);
  font-size: 14px;
  line-height: 1.25;
}

.services-mega__item small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.2;
}

.header-cta {
  align-items: center;
  gap: 10px;
}

.header-cta .button {
  min-height: 50px;
  padding: 0 20px;
  white-space: nowrap;
}

.header-cta__expert {
  display: none;
}

.site-footer {
  padding-top: 0;
}

.site-footer__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 58px;
  padding: 42px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__cta h2 {
  max-width: 820px;
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.site-footer__eyebrow {
  color: #ffb7c2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__grid {
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(150px, 1fr));
  align-items: start;
}

.site-footer__brand {
  display: grid;
  gap: 6px;
}

.site-footer__brand span {
  color: #ffb7c2;
  font-size: 13px;
}

.site-footer__links,
.footer-nav ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.footer-nav a {
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__links a:hover,
.site-footer__links a:focus,
.footer-nav a:hover,
.footer-nav a:focus {
  color: #ffffff;
}

.site-footer__contact p {
  margin: 0 0 10px;
}

.site-footer__hours {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-socials,
.site-footer__map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.site-footer__map-links a,
.footer-rating a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-rating {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-rating strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.footer-rating span {
  display: block;
  margin: 6px 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (min-width: 75rem) {
  .header-cta__expert {
    display: inline-flex;
  }
}

@media (max-width: 63.99rem) {
  .services-mega__panel,
  .primary-nav .sub-menu {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 8px;
    padding: 8px;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .services-mega__toggle::before {
    display: none;
  }

  .services-mega__item {
    min-height: 72px;
  }

  .header-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-cta__expert {
    display: inline-flex;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .site-topbar__contacts,
  .site-topbar__socials {
    gap: 6px 12px;
  }

  .site-topbar__contacts a:not(:last-child)::after,
  .site-topbar__contacts span:not(:last-child)::after {
    display: none;
  }

  .site-footer__cta,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__cta {
    padding: 32px 0;
    margin-bottom: 34px;
  }
}

/* Final production overrides: logo sizing and live form states. */
.site-header .site-branding {
  min-width: 0;
  max-width: min(260px, 34vw);
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
}

.site-header .site-branding .custom-logo,
.site-header .site-branding__mark {
  width: auto !important;
  max-width: 100% !important;
  height: var(--chaitanya-logo-height, 58px) !important;
  max-height: var(--chaitanya-logo-height, 58px) !important;
  object-fit: contain;
}

.site-header .site-branding__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .site-branding__mark img {
  width: auto;
  max-width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: contain;
  background: transparent !important;
}

.lead-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.form-notice p {
  margin: 0;
}

.form-notice p + p {
  margin-top: 6px;
}

.form-notice--success {
  border: 1px solid rgba(22, 163, 74, 0.22);
  background: #ecfdf3;
  color: #166534;
}

.form-notice--error {
  border: 1px solid rgba(212, 16, 48, 0.22);
  background: #fff4f6;
  color: #9f1239;
}

@media (max-width: 63.99rem) {
  .site-header .site-branding {
    max-width: min(180px, 52vw);
  }

  .site-header .site-branding .custom-logo,
  .site-header .site-branding__mark {
    height: min(var(--chaitanya-logo-height, 58px), 48px) !important;
    max-height: 48px !important;
  }
}

/* Unified Font Awesome icon, card, placeholder, and review refinements. */
.service-card__icon .fa-icon,
.services-mega__icon .fa-icon {
  width: 34px;
  height: 34px;
}

.whatsapp-expert span .fa-icon,
.footer-socials .fa-icon {
  width: 16px;
  height: 16px;
}

.card,
.partner-logo-card,
.feature-card,
.service-card,
.portfolio-card,
.testimonial-card,
.google-review-card,
.google-reviews-empty,
.blog-card,
.process-step,
.career-card,
.industry-card,
.team-card,
.lead-form,
.stat {
  border-radius: var(--radius-lg);
  border: var(--card-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.service-card,
.portfolio-card,
.blog-card,
.testimonial-card,
.google-review-card,
.process-step,
.career-card,
.industry-card,
.team-card,
.stat {
  padding: var(--card-padding);
}

.portfolio-card .media-frame,
.blog-card .media-frame,
.team-card .media-frame {
  width: calc(100% + var(--card-padding) * 2);
}

.google-review-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.google-review-card__stars .fa-icon {
  width: 15px;
  height: 15px;
  color: #f6b800;
}

.google-review-card__stars span {
  margin-left: 8px;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 700;
}

.google-reviews-empty {
  max-width: 760px;
  margin-inline: auto;
  padding: 34px;
  text-align: center;
}

.process-step__icon,
.milestone-card__icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fff4f6;
  color: var(--color-primary);
}

.process-step__icon .fa-icon,
.milestone-card__icon .fa-icon {
  width: 22px;
  height: 22px;
}

.milestone-card__icon {
  position: relative;
  z-index: 1;
}

/* Simplified header, WhatsApp expert button, and Google reviews */
.site-header,
body:not(.has-scrolled) .site-header,
body.has-scrolled .site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.site-header__inner {
  min-height: 82px;
}

.site-branding {
  flex: 0 0 auto;
}

.site-branding .custom-logo {
  width: auto;
  max-width: 190px;
  height: var(--chaitanya-logo-height, 58px);
  max-height: var(--chaitanya-logo-height, 58px);
  display: block;
}

.site-branding__mark {
  width: 72px;
  height: var(--chaitanya-logo-height, 58px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-branding__mark img {
  padding: 0;
  background: transparent;
}

.primary-nav {
  justify-content: flex-end;
  gap: 18px;
}

.primary-nav > ul {
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  font-size: 15px;
}

.header-cta {
  display: inline-flex;
  margin-left: 4px;
}

.whatsapp-expert {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(37, 211, 102, 0.24);
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  color: #112337;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.whatsapp-expert span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

.whatsapp-expert:hover,
.whatsapp-expert:focus {
  color: #112337;
  background: rgba(37, 211, 102, 0.16);
  transform: translateY(-1px);
}

.google-reviews-section .section-actions {
  margin-top: 28px;
}

.google-reviews-widget {
  overflow: hidden;
  padding: 22px;
}

.google-reviews-widget iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.google-review-card__stars {
  margin-bottom: 14px;
  color: var(--color-primary);
  font-weight: 800;
}

.milestones-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.milestones-copy {
  max-width: 520px;
}

.milestones-copy .button {
  margin-top: 24px;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.milestone-card {
  position: relative;
  min-height: 180px;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 26px;
}

.milestone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--color-primary);
  opacity: 0.92;
  pointer-events: none;
}

.milestone-card__index {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(212, 16, 48, 0.18);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.milestone-card .stat__value {
  position: relative;
  z-index: 1;
  color: #112337;
  font-size: clamp(30px, 4vw, 52px);
}

.milestone-card .stat__label {
  position: relative;
  z-index: 1;
  max-width: 16rem;
  font-size: 14px;
  line-height: 1.5;
}

.pagination ul,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 74.99rem) {
  .primary-nav {
    gap: 10px;
  }

  .primary-nav a {
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (max-width: 63.99rem) {
  .site-header__inner {
    min-height: 72px;
  }

  .site-branding .custom-logo,
  .site-branding__mark {
    max-width: 150px;
    height: min(var(--chaitanya-logo-height, 58px), 48px);
    max-height: 48px;
  }

  .primary-nav {
    align-items: stretch;
  }

  .header-cta {
    width: 100%;
    margin-left: 0;
  }

  .whatsapp-expert {
    justify-content: center;
    width: 100%;
  }

  .milestones-layout,
  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .milestone-card {
    min-height: 150px;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-secondary);
}

a {
  color: var(--color-black);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
}

.section {
  padding: 86px 0;
}

.section--soft {
  background: var(--color-light);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker,
.card__eyebrow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 16.8px;
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.14;
  font-weight: 700;
}

.section-description,
.hero__lead,
.card__text,
.entry-content,
.service-card__desc,
.process-step__text,
.testimonial-card__text,
.blog-card__excerpt,
.career-card__text,
.portfolio-card__text,
.site-footer__about {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 21px;
}

.card,
.partner-logo-card,
.feature-card,
.service-card,
.portfolio-card,
.testimonial-card,
.blog-card,
.process-step,
.career-card,
.industry-card,
.team-card,
.lead-form {
  min-width: 0;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card,
.service-card,
.portfolio-card,
.testimonial-card,
.blog-card,
.process-step,
.career-card,
.industry-card,
.team-card,
.lead-form {
  padding: var(--card-padding);
}

.service-card:hover,
.portfolio-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.process-step:hover,
.career-card:hover,
.industry-card:hover,
.team-card:hover,
.partner-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 16, 48, 0.18);
}

.card > :first-child,
.feature-card > :first-child,
.service-card > :first-child,
.portfolio-card > :first-child,
.testimonial-card > :first-child,
.blog-card > :first-child,
.process-step > :first-child,
.career-card > :first-child,
.industry-card > :first-child,
.team-card > :first-child {
  margin-top: 0;
}

.card > :last-child,
.feature-card > :last-child,
.service-card > :last-child,
.portfolio-card > :last-child,
.testimonial-card > :last-child,
.blog-card > :last-child,
.process-step > :last-child,
.career-card > :last-child,
.industry-card > :last-child,
.team-card > :last-child {
  margin-bottom: 0;
}

.button,
.wp-block-button__link,
input[type='submit'] {
  min-width: 100px;
  min-height: 43px;
  padding: 14px 27px;
  border: 0;
  border-radius: 25px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  box-shadow: none;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
input[type='submit']:hover,
input[type='submit']:focus {
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.button:active,
.wp-block-button__link:active,
input[type='submit']:active {
  background: #a00a23;
}

.button--ghost {
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 18.4px;
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(212, 16, 48, 0.08);
  color: var(--color-secondary);
}

.site-topbar {
  background: #112337;
  color: #ffffff;
  font-size: 14px;
}

.site-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-topbar a {
  color: #ffffff;
}

.site-header,
body:not(.has-scrolled) .site-header,
body.has-scrolled .site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
  backdrop-filter: none;
}

.site-header__inner {
  min-height: 90px;
}

.site-branding__mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.site-branding__text strong {
  color: var(--color-secondary);
  font-size: 16px;
  font-weight: 700;
}

.site-branding__text span {
  color: var(--color-muted);
  font-size: 12px;
}

.primary-nav a,
.footer-nav a {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--color-secondary);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.primary-nav a:hover::after,
.primary-nav a:focus::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: var(--color-primary);
}

.nav-toggle {
  border: 0;
  background: transparent;
  color: var(--color-secondary);
}

.hero {
  padding: 86px 0 74px;
  background:
    radial-gradient(circle at 86% 20%, rgba(212, 16, 48, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.hero__grid {
  gap: 72px;
  align-items: center;
}

.hero__title {
  max-width: 760px;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 1.02;
  font-weight: 700;
}

.hero__lead {
  max-width: 680px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 27.2px;
}

.hero__bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero__bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--color-secondary);
  font-size: 14px;
  line-height: 21px;
}

.hero__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: inset 0 0 0 4px #ffffff;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 21px;
}

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

.hero__actions {
  gap: 16px;
  margin-top: 28px;
}

.hero__panel {
  padding: 18px;
  border-radius: 28px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.hero__mockup {
  overflow: hidden;
  border-radius: 24px;
  background: #e9e9e9;
  border: 0;
  animation: none;
}

.hero__mockup-caption {
  padding: 20px;
  background: var(--color-white);
}

.hero__mockup img {
  width: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.service-card__icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 20px;
  background: #fff4f6;
  color: var(--color-primary);
}

.service-card__icon-img {
  width: 70px;
  height: 70px;
  display: block;
  object-fit: contain;
}

.service-card__icon svg {
  width: 46px;
  height: 46px;
  color: currentColor;
}

.fa-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: currentColor;
  vertical-align: -0.125em;
}

.fa-icon path {
  fill: currentColor;
}

.stat {
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  border: var(--card-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.stat__value {
  color: #112337;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.stat__label {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 16.8px;
}

.card__title {
  color: var(--color-secondary);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 33.6px;
  margin: 8px 0 10px;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover,
.card__title a:focus,
.card__meta a:hover,
.card__meta a:focus {
  color: var(--color-primary);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 18px;
}

.card__meta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.media-frame {
  display: block;
  overflow: hidden;
  margin: calc(var(--card-padding) * -1) calc(var(--card-padding) * -1) 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-light);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.media-frame__placeholder {
  object-fit: cover;
  background: var(--color-light);
}

.portfolio-card,
.blog-card,
.testimonial-card,
.career-card,
.industry-card,
.process-step {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card .card__meta,
.blog-card .card__meta,
.career-card .card__meta,
.industry-card .card__meta,
.process-step .card__meta {
  margin-top: auto;
}

.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.case-card__metrics div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-light);
}

.case-card__metrics strong {
  display: block;
  color: #112337;
  font-size: 24px;
  line-height: 1;
}

.case-card__metrics span {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 16px;
}

.case-meta {
  margin: 32px 0;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-card__bar {
  height: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(212, 16, 48, 0.1);
}

.capability-card__bar span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.faq-card .card__text p {
  margin: 0;
}

.feature-card--dark,
.quote-cta {
  background: #112337;
  color: var(--color-white);
  border: 0;
  box-shadow: none;
}

.feature-card--dark .card__eyebrow,
.feature-card--dark .card__title {
  color: #ffffff;
}

.feature-card--dark .card__text {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card--dark .button--ghost {
  color: #ffffff;
}

.quote-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 58px;
  border-radius: 20px;
}

.reference-gallery {
  overflow: hidden;
  padding: 18px 0 72px;
  background: var(--color-white);
}

.reference-gallery__track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: chaitanya-marquee 44s linear infinite;
}

.reference-gallery__tile {
  position: relative;
  overflow: hidden;
  width: 260px;
  height: 170px;
  display: flex;
  align-items: end;
  padding: 20px;
  border-radius: 22px;
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #112337, #d41030);
}

.reference-gallery__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(17, 35, 55, 0.72) 100%);
}

.reference-gallery__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-gallery__tile--2,
.reference-gallery__tile--5 {
  height: 210px;
  background: linear-gradient(135deg, #302c2c, #696588);
}

.reference-gallery__tile--3,
.reference-gallery__tile--6 {
  background: linear-gradient(135deg, #d41030, #ff7a90);
}

.reference-gallery__tile span {
  position: relative;
  z-index: 1;
  max-width: 12rem;
}

.about-reference-grid {
  align-items: center;
}

.about-reference-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 28px;
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
  overflow: hidden;
}

.about-reference-visual > img {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.about-reference-card {
  position: relative;
  z-index: 1;
  width: min(92%, 520px);
  margin: 0 0 28px;
}

.pill {
  min-height: 0;
  padding: 4px 12px;
  border-radius: 25px;
  background: rgba(212, 16, 48, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
}

.clients-marquee {
  overflow: hidden;
  position: relative;
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: chaitanya-marquee 30s linear infinite;
}

.partner-logo-card {
  min-width: 190px;
  min-height: 110px;
  padding: 24px;
}

.partner-logo-card img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
}

@keyframes chaitanya-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.lead-form-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 34px;
}

.lead-form label {
  margin-bottom: -4px;
  color: var(--color-secondary);
  font-size: 14px;
}

.form-control,
textarea,
select,
input[type='text'],
input[type='email'],
input[type='url'],
input[type='tel'],
input[type='search'] {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-white);
  color: #112337;
  font-size: 14px;
  line-height: 38px;
}

textarea {
  min-height: 120px;
  padding: 12px;
  line-height: 21px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.1);
}

.site-footer {
  background: #112337;
  color: rgba(255, 255, 255, 0.78);
}

.long-services-section {
  background: var(--color-white);
}

.long-services-list {
  display: grid;
  gap: 30px;
  max-width: 1080px;
}

.long-services-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 24px;
}

.long-services-item h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.25;
}

.long-services-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.8;
}

.site-footer::before {
  background: var(--color-primary);
  border-radius: 0;
}

.site-footer a {
  color: #ffffff;
}

.entry-title,
.page-title,
.archive-title,
.search-title {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 700;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 63.99rem) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding: 56px 0;
  }

  .site-header__inner {
    min-height: 76px;
  }

  .hero {
    padding: 52px 0;
  }

  .services-grid,
  .lead-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-cta {
    grid-template-columns: 1fr;
  }

  .hero__mockup img {
    min-height: 320px;
  }

  .about-reference-visual {
    min-height: 520px;
  }
}

@media (max-width: 47.99rem) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 14px;
  }

  .section {
    padding: 32px 0;
  }

  .site-topbar__inner,
  .hero__bullets,
  .check-list,
  .services-grid,
  .lead-form-grid,
  .lead-form-stats {
    grid-template-columns: 1fr;
  }

  .site-topbar__inner {
    display: grid;
    justify-content: start;
    gap: 4px;
    padding: 8px 0;
  }

  .hero__actions .button,
  .header-cta .button {
    width: 90%;
  }

  .primary-nav {
    padding: 20px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
  }
}

/* Final header/footer overrides so the reference shell wins after legacy layers. */
.site-topbar__inner {
  justify-content: space-between;
}

.primary-nav {
  position: relative;
}

.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: 240px;
  display: grid;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(17, 35, 55, 0.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.services-mega {
  position: relative;
}

.services-mega__toggle {
  white-space: nowrap;
}

.services-mega__panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 25;
  width: min(860px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 35, 55, 0.14);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.services-mega:hover .services-mega__panel,
.services-mega:focus-within .services-mega__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.services-mega__item {
  min-height: 92px;
  display: grid !important;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px !important;
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
}

.services-mega__item::after {
  display: none;
}

.services-mega__item:hover,
.services-mega__item:focus {
  background: #fff4f6;
}

.services-mega__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff4f6;
  color: var(--color-primary);
}

.services-mega__icon img,
.services-mega__icon svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.services-mega__item strong {
  display: block;
  color: var(--color-secondary);
  font-size: 14px;
  line-height: 1.25;
}

.services-mega__item small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.2;
}

.header-cta {
  align-items: center;
  gap: 10px;
}

.header-cta .button {
  min-height: 50px;
  padding: 0 20px;
  white-space: nowrap;
}

.header-cta__expert {
  display: none;
}

.site-footer {
  padding-top: 0;
}

.site-footer__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 58px;
  padding: 42px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__cta h2 {
  max-width: 820px;
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.site-footer__eyebrow {
  color: #ffb7c2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__grid {
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(150px, 1fr));
  align-items: start;
}

.site-footer__brand {
  display: grid;
  gap: 6px;
}

.site-footer__brand span {
  color: #ffb7c2;
  font-size: 13px;
}

.site-footer__links,
.footer-nav ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.footer-nav a {
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__contact p {
  margin: 0 0 10px;
}

.site-footer__hours {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-socials,
.site-footer__map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.site-footer__map-links a,
.footer-rating a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-rating {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-rating strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.footer-rating span {
  display: block;
  margin: 6px 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (min-width: 75rem) {
  .header-cta__expert {
    display: inline-flex;
  }
}

@media (max-width: 63.99rem) {
  .services-mega__panel,
  .primary-nav .sub-menu {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 8px;
    padding: 8px;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .header-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-cta__expert {
    display: inline-flex;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .site-topbar__contacts,
  .site-topbar__socials {
    gap: 6px 12px;
  }

  .site-topbar__contacts a:not(:last-child)::after,
  .site-topbar__contacts span:not(:last-child)::after {
    display: none;
  }

  .site-footer__cta,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__cta {
    padding: 32px 0;
    margin-bottom: 34px;
  }
}
