/* Header-adjacent hero system. Thank You is intentionally excluded. */
:root {
  --intro-navy: #071b3b;
  --intro-navy-deep: #04142e;
  --intro-white: #f7faff;
  --intro-muted: #d4dfed;
  --intro-accent: #e23f58;
}

body:not(.page-home):not(.page-thank-you) main { padding-top: 172px; }
.page-home main { padding-top: 0; }

body:not(.page-home):not(.page-thank-you) .inner-hero {
  --intro-image: url('/assets/img/generated/zyflox-process-integrated-logistics-bg.webp');
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: clamp(300px, 25vw, 390px);
  place-items: center;
  margin: 0;
  padding: clamp(46px, 5vw, 72px) 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--intro-white);
  background-color: var(--intro-navy);
  background-image: linear-gradient(90deg, rgba(3, 18, 43, 0.8), rgba(5, 31, 68, 0.7)), var(--intro-image);
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

body.page-about:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-about-v2.webp'); background-position: center 48%; }
body.page-services:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-services-v2.webp'); background-position: center 52%; }
body.page-industries:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-industries-v2.webp'); background-position: center 50%; }
body.page-technology:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-technology-v2.webp'); background-position: center 48%; }
body.page-contact:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-contact-v2.webp'); background-position: center 48%; }
body.page-faq:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-faq-v2.webp'); background-position: center 50%; }
body.page-careers:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-careers-v2.webp'); background-position: center 46%; }
body.page-privacy-policy:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-privacy-v2.webp'); background-position: center 50%; }
body.page-terms:not(.page-home) .inner-hero { --intro-image: url('/assets/img/generated/zyflox-intro-terms-v2.webp'); background-position: center 50%; }

body:not(.page-home):not(.page-thank-you) .inner-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(20, 71, 127, 0.08), rgba(0, 13, 34, 0.23));
  pointer-events: none;
}

body:not(.page-home):not(.page-thank-you) .inner-hero .container { width: min(100%, 1240px); }

body:not(.page-home):not(.page-thank-you) .inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  justify-items: center;
  text-align: center;
}

body:not(.page-home):not(.page-thank-you) .inner-hero-grid > div {
  display: grid;
  justify-items: center;
}

body:not(.page-home):not(.page-thank-you) .inner-hero .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #e5edf7;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body:not(.page-home):not(.page-thank-you) .inner-hero .section-label::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  content: '';
  background: var(--intro-accent);
  box-shadow: 0 0 0 5px rgba(226, 63, 88, 0.12);
}

body:not(.page-home):not(.page-thank-you) .inner-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(2.35rem, 4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 8px 32px rgba(0, 10, 28, 0.42);
}

body:not(.page-home):not(.page-thank-you) .inner-hero-grid > p {
  max-width: 760px;
  margin: 4px auto 0;
  color: var(--intro-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 8, 24, 0.58);
}

/* Services typography: natural one/two-line headings and silver index marks. */
body.page-services .service-depth-copy h2 {
  width: 100%;
  max-width: none;
  text-wrap: balance;
}

body.page-services .service-depth-copy > span {
  gap: 0.68rem;
  color: var(--zf-silver, #c7d0dd);
  font-size: clamp(0.98rem, 0.7vw + 0.7rem, 1.12rem);
  letter-spacing: 0.055em;
}

body.page-services .service-depth-copy > span i {
  color: inherit;
  font-size: 1.16em;
}

/* Homepage keeps slider structure and behavior, adding the same premium frame. */
.page-home .hero-slider-section {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-home .hero-slide-overlay {
  background: linear-gradient(90deg, rgba(2, 16, 39, 0.84), rgba(4, 28, 62, 0.6), rgba(4, 25, 56, 0.42));
}

@media (max-width: 767px) {
  .site-footer .footer-company > img {
    display: block;
    width: min(190px, 62vw) !important;
    height: auto !important;
    margin-inline: auto;
  }

  .site-footer .footer-contact address {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.15rem;
  }

  .site-footer .footer-contact address > p {
    min-width: 0;
    margin: 0;
  }

  .site-footer .footer-contact address > p:first-child,
  .site-footer .footer-contact address > p:nth-child(n + 4) {
    grid-column: 1 / -1;
  }

  .site-footer .footer-contact address > p:nth-child(2),
  .site-footer .footer-contact address > p:nth-child(3) {
    grid-column: auto;
  }

  body:not(.page-home):not(.page-thank-you) main { padding-top: 102px; }
  .page-home main { padding-top: 102px; }

  body:not(.page-home):not(.page-thank-you) .inner-hero {
    width: 100%;
    min-height: 300px;
    margin: 0;
    padding: 42px 0;
    border-radius: 0;
    background-image: linear-gradient(180deg, rgba(3, 17, 40, 0.69), rgba(3, 20, 47, 0.84)), var(--intro-image);
    background-position: center;
  }

  body:not(.page-home):not(.page-thank-you) .inner-hero .container { padding-inline: 24px; }
  body:not(.page-home):not(.page-thank-you) .inner-hero-grid { gap: 15px; }
  body:not(.page-home):not(.page-thank-you) .inner-hero .section-label { margin-bottom: 16px; font-size: 0.7rem; }
  body:not(.page-home):not(.page-thank-you) .inner-hero h1 { font-family: inherit; font-size: clamp(2rem, 8.4vw, 2.65rem); line-height: 1.08; }
  body:not(.page-home):not(.page-thank-you) .inner-hero-grid > p { font-size: 0.96rem; line-height: 1.55; }

  .page-home .hero-slider-section {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  /* Homepage slider: compact top clearance and services-style mobile gutters. */
  .page-home .hero-slider-section,
  .page-home .hero-swiper,
  .page-home .hero-slide {
    height: clamp(540px, calc(1020px - 120vw), 620px);
    max-height: 620px;
    min-height: 0;
  }

  .page-home .hero-swiper .swiper-wrapper {
    height: 100%;
  }

  .page-home .hero-slide-picture {
    background: #071a35;
  }

  .page-home .hero-slide-picture img,
  .page-home .hero-slide-image,
  .page-home .hero-swiper .swiper-slide-active.hero-motion-pan-right .hero-slide-image,
  .page-home .hero-swiper .swiper-slide-active.hero-motion-pan-left .hero-slide-image,
  .page-home .hero-swiper .swiper-slide-active.hero-motion-pan-up .hero-slide-image,
  .page-home .hero-swiper .swiper-slide-active.hero-motion-pan-down .hero-slide-image,
  .page-home .hero-swiper .swiper-slide-active.hero-motion-zoom-center .hero-slide-image {
    object-fit: cover;
    object-position: center center;
    transform: none !important;
    animation: none !important;
  }

  .page-home .hero-slide-overlay,
  .page-home .hero-overlay-warehouse .hero-slide-overlay,
  .page-home .hero-overlay-supply .hero-slide-overlay,
  .page-home .hero-overlay-integrated .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(3, 17, 40, 0.48), rgba(3, 18, 43, 0.68)),
      linear-gradient(90deg, rgba(3, 18, 43, 0.22), rgba(3, 18, 43, 0.12));
  }

  .page-home .hero-slide .container {
    width: 100%;
    height: 100%;
    min-height: 0;
    align-content: start;
    gap: 0;
    padding: clamp(1.5rem, 4.5svh, 2.35rem) 0 3.65rem;
  }

  .page-home .hero-slide-content {
    display: grid;
    width: calc(100% - 1rem);
    max-width: 31rem;
    justify-items: center;
    padding-inline: 0;
    margin-inline: auto;
    text-align: center;
  }

  /* One shared mobile content column keeps every slide on identical gutters. */
  .page-home .hero-slide-content > .eyebrow,
  .page-home .hero-slide-content > h1,
  .page-home .hero-slide-content > h2,
  .page-home .hero-slide-content > strong,
  .page-home .hero-slide-content > .hero-copy,
  .page-home .hero-slide-content > .hero-actions {
    width: 100%;
    max-width: none;
  }

  .page-home .hero-slide-content .eyebrow {
    display: inline-flex;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto 0.95rem;
    color: #e8eef7;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    white-space: normal;
    text-transform: uppercase;
  }

  .page-home .hero-slide-content .eyebrow::before {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #e23f58;
    box-shadow: 0 0 0 5px rgba(226, 63, 88, 0.14);
  }

  .page-home .hero-slide-content h1,
  .page-home .hero-slide-content .hero-title {
    width: 100%;
    max-width: none !important;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(1.68rem, 6.8vw, 1.95rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    overflow: visible;
    white-space: normal;
    text-wrap: wrap;
    text-shadow: 0 7px 28px rgba(0, 10, 28, 0.48);
  }

  .page-home .hero-title-three-lines span {
    display: inline;
    white-space: normal;
  }

  .page-home .hero-slide-content > strong,
  .page-home .hero-slide-content .hero-copy {
    width: 100%;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-wrap: wrap;
  }

  .page-home .hero-slide-content > strong {
    margin: 1rem auto 0;
    color: #f2f6fb;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .page-home .hero-slide-content .hero-copy {
    margin: 0.9rem auto 0;
    color: #d4dfed;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.58;
    text-shadow: 0 3px 18px rgba(0, 8, 24, 0.54);
  }

  .page-home .hero-actions {
    width: 100%;
    max-width: none;
    gap: 0.65rem;
    margin-top: 1.15rem;
  }

  .page-home .hero-actions .btn {
    min-height: 48px;
    padding: 0.68rem 0.75rem;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
  }

  .page-home .hero-swiper-controls {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .page-home .hero-swiper {
    touch-action: pan-y pinch-zoom;
  }

  .page-home .hero-swiper-pagination {
    border: 0 !important;
    box-shadow: none;
  }

  .page-home .hero-swiper-pagination .swiper-pagination-bullet {
    border: 0 !important;
  }

  /* Every homepage section uses the same outer mobile gutter as service cards. */
  .page-home main > section:not(.hero-slider-section) > .container {
    width: 100%;
    max-width: none;
    padding-inline: 16px !important;
  }

  .page-home main > section:not(.hero-slider-section) h1,
  .page-home main > section:not(.hero-slider-section) h2,
  .page-home main > section:not(.hero-slider-section) h3,
  .page-home main > section:not(.hero-slider-section) p {
    max-width: 100%;
    overflow: visible;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .page-home .about-preview .row {
    --bs-gutter-x: 1rem;
  }

  .page-home .about-preview .about-ledger {
    padding-left: 0.85rem;
  }

  .page-home .about-preview .about-ledger p {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .page-home .purpose-intro h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.78rem, 7.4vw, 2.05rem);
    line-height: 1.12;
    white-space: normal;
    text-wrap: pretty;
  }

  .page-home .purpose-intro h2 span {
    display: inline;
    white-space: normal;
  }

  .page-home .services-overview-home .services-overview-head,
  .page-home .services-overview-home .services-overview-head h2,
  .page-home .services-overview-home .services-overview-head p,
  .page-home .industry-copy,
  .page-home .industry-copy h2,
  .page-home .network-board-head,
  .page-home .network-board-head h2,
  .page-home .why-choice-copy,
  .page-home .why-choice-copy h2,
  .page-home .commitment-layout h2,
  .page-home .process-section .section-heading,
  .page-home .process-section .section-heading h2,
  .page-home .testimonial-trust .testimonial-heading-block,
  .page-home .testimonial-trust .testimonial-heading-block h2,
  .page-home .faq-showcase .faq-intro,
  .page-home .faq-showcase .faq-intro h2 {
    width: 100%;
    max-width: none;
  }

  .page-home .services-overview-home .services-overview-head h2 {
    font-size: clamp(1.78rem, 7.4vw, 2.05rem);
    line-height: 1.14;
    text-wrap: pretty;
  }

  /* Mobile network: city names live on the map; remove the duplicate list. */
  .page-home .network-board .network-copy {
    display: none;
  }

  .page-home .network-board .network-layout {
    display: block;
  }

  .page-home .network-board {
    padding: 0.75rem;
  }

  .page-home .network-board-head {
    padding-inline: 0.25rem;
  }

  .page-home .network-board .network-map-panel {
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-home .network-board .network-map-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.35rem 0.35rem 0.75rem;
  }

  .page-home .network-board .network-map-top span,
  .page-home .network-board .network-map-top strong {
    margin: 0;
    line-height: 1.3;
  }

  .page-home .network-board .network-map-top span {
    font-size: 0.7rem;
    letter-spacing: 0.085em;
  }

  .page-home .network-board .network-map-top strong {
    font-size: 0.75rem;
    text-align: right;
  }

  .page-home .network-board .network-map-canvas {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0.35rem 0 0;
    overflow: hidden;
    border-radius: 14px;
    background:
      radial-gradient(circle at 48% 44%, rgba(30, 63, 204, 0.3), transparent 55%),
      linear-gradient(180deg, rgba(10, 35, 92, 0.86) 0%, rgba(7, 26, 62, 0.96) 100%) !important;
  }

  .page-home .india-network-map-image {
    top: 46%;
  }

  .page-home .network-pin {
    top: calc(var(--pin-y) - 4%);
  }

  .page-home .network-pin {
    z-index: 3;
    width: 12px;
    height: 12px;
  }

  .page-home .network-pin .pin-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
    box-shadow: 0 0 0 5px rgba(30, 63, 204, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
  }

  .page-home .network-pin .pin-label,
  .page-home .network-pin em {
    display: block !important;
    padding: 0.27rem 0.4rem;
    color: #f7faff;
    border: 1px solid rgba(216, 226, 241, 0.26);
    background: rgba(5, 20, 47, 0.9);
    font-size: clamp(0.56rem, 2.45vw, 0.65rem);
    line-height: 1;
    text-shadow: none;
    box-shadow: 0 7px 18px rgba(2, 10, 24, 0.3);
  }

  .page-home .network-pin[data-city="Delhi"] .pin-label {
    bottom: 1.35rem;
  }

  .page-home .network-pin[data-city="Gurugram"] .pin-label {
    right: 1rem;
    top: 0.75rem;
  }

  .page-home .network-pin[data-city="Noida"] .pin-label {
    left: 1rem;
    top: -1.15rem;
  }

  .page-home .network-pin[data-city="Lucknow"] .pin-label {
    left: 1rem;
    top: 1.05rem;
  }

  .page-home .network-pin[data-city="Ahmedabad"] .pin-label,
  .page-home .network-pin[data-city="Mumbai"] .pin-label,
  .page-home .network-pin[data-city="Bengaluru"] .pin-label {
    right: 1rem;
  }

  .page-home .network-pin[data-city="Pune"] .pin-label,
  .page-home .network-pin[data-city="Chennai"] .pin-label,
  .page-home .network-pin[data-city="Hyderabad"] .pin-label,
  .page-home .network-pin[data-city="Kolkata"] .pin-label {
    left: 1rem;
  }

  /* Services: use more of the mobile viewport without touching other pages. */
  body.page-services .service-depth > .container {
    width: 100%;
    max-width: none;
    padding-inline: 8px !important;
  }

  .page-services .service-depth-row {
    width: 100%;
    border-radius: 14px;
  }

  .page-services .service-depth-copy {
    padding: 1.35rem 1rem 1.5rem;
  }

  .page-services .service-depth-media {
    padding-inline: 1rem;
  }

  /* Shared pre-footer CTA: wider reading column on every mobile page. */
  body .footer-cta-banner > .container {
    width: 100%;
    max-width: none;
    padding-inline: 8px !important;
  }

  body .footer-cta-card {
    width: 100%;
    min-height: 500px;
    padding: 0 !important;
    border-radius: 14px;
  }

  body .footer-cta-content {
    width: 100%;
    max-width: none;
    padding: 1.25rem 0.75rem 1rem !important;
  }

  body .footer-cta-copy,
  body .footer-cta-copy h2,
  body .footer-cta-copy p,
  body .footer-cta-eyebrow {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  body .footer-cta-eyebrow {
    display: block;
    padding: 0;
    text-align: left;
  }

  body .footer-cta-eyebrow::before {
    display: none !important;
    content: none !important;
  }

  body .footer-cta-copy h2 {
    font-size: clamp(1.72rem, 7.2vw, 2.1rem);
    line-height: 1.16;
    text-wrap: balance;
  }

  body .footer-cta-actions,
  body .footer-cta-button {
    width: 100%;
    max-width: none;
  }

  /* Services closing CTA: clean single-column mobile composition. */
  body.page-services .quote-slab .container {
    width: 100%;
    max-width: none;
    padding-inline: 8px !important;
  }

  body.page-services .quote-slab-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    width: 100%;
    min-height: 0;
    padding: 1.15rem 1rem !important;
    border-radius: 14px;
  }

  body.page-services .service-fit-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 12px;
  }

  body.page-services .service-fit-copy,
  body.page-services .service-fit-copy h2,
  body.page-services .service-fit-copy p {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  body.page-services .service-fit-copy .section-label {
    margin-bottom: 0.45rem;
    padding: 0;
  }

  body.page-services .service-fit-copy .section-label::before {
    display: none !important;
    content: none !important;
  }

  body.page-services .service-fit-copy h2 {
    font-size: clamp(1.65rem, 7.2vw, 2rem);
    line-height: 1.16;
  }

  body.page-services .service-depth-copy h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.42rem, 6.2vw, 1.68rem);
    line-height: 1.16;
    text-wrap: balance;
  }

  body.page-services .service-depth-copy > span {
    gap: 0.62rem;
    color: var(--zf-silver, #c7d0dd);
    font-size: 0.98rem;
  }

  body.page-services .service-depth-copy > span i {
    font-size: 1.18em;
  }

  body.page-services .service-fit-copy p {
    margin-top: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  body.page-services .quote-slab-inner .btn {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.15rem;
  }
}

@media (max-width: 374px) {
  .page-home .hero-slide .container { padding-inline: 0; }
  .page-home .hero-slide-content { width: calc(100% - 0.75rem); padding-inline: 0; }
  .page-home .hero-slide-content h1,
  .page-home .hero-slide-content .hero-title { font-size: 1.68rem; }
  .page-home main > section:not(.hero-slider-section) > .container { padding-inline: 12px !important; }
  body:not(.page-home):not(.page-thank-you) .inner-hero { width: 100%; padding: 38px 0; }
  body:not(.page-home):not(.page-thank-you) .inner-hero .container { padding-inline: 19px; }
  body:not(.page-home):not(.page-thank-you) .inner-hero h1 { font-size: 1.92rem; }
  body.page-services .service-depth > .container { padding-inline: 5px !important; }
  .page-services .service-depth-copy { padding-inline: 0.85rem; }
  .page-services .service-depth-media { padding-inline: 0.85rem; }
  body .footer-cta-banner > .container { padding-inline: 5px !important; }
  body .footer-cta-content { padding-inline: 0.65rem !important; }
  body.page-services .quote-slab .container { padding-inline: 5px !important; }
  body.page-services .quote-slab-inner { padding-inline: 0.85rem !important; }
}
