/* AQUAPROCESS UFH - Layout: grid, header, footer, sections */

/* -- Header -- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height var(--ease), background var(--ease), border-color var(--ease),
    box-shadow var(--ease), backdrop-filter var(--ease);
}

/* Over hero: light text/controls for contrast on imagery */
.site-header:not(.is-scrolled) .nav-desktop a {
  color: var(--white);
}

.site-header:not(.is-scrolled) .nav-desktop a::after {
  background: var(--white);
}

.site-header:not(.is-scrolled) .nav-desktop a:hover {
  color: var(--white);
}

.site-header:not(.is-scrolled) .menu-toggle {
  color: var(--white);
}

.site-header:not(.is-scrolled) .header-ctas .btn-secondary {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
  box-shadow: none;
}

.site-header:not(.is-scrolled) .header-ctas .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  box-shadow: none;
}

.site-header:not(.is-scrolled) .header-ctas .btn-primary {
  background: #C8102E;
  color: var(--white);
  border-color: #C8102E;
  box-shadow: none;
}

.site-header:not(.is-scrolled) .header-ctas .btn-primary:hover {
  background: #A50D25;
  border-color: #A50D25;
  color: var(--white);
  box-shadow: none;
}

/* Scrolled / solid white */
.site-header.is-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 var(--hairline);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled .nav-desktop a {
  color: var(--navy);
}

.site-header.is-scrolled .nav-desktop a::after {
  background: var(--navy);
}

.site-header.is-scrolled .nav-desktop a:hover {
  color: var(--navy);
}

.site-header.is-scrolled .menu-toggle {
  color: var(--navy);
}

.site-header.is-scrolled .header-ctas .btn-secondary {
  color: #C8102E;
  border-color: #C8102E;
  background: transparent;
  box-shadow: none;
}

.site-header.is-scrolled .header-ctas .btn-secondary:hover {
  background: #C8102E;
  color: var(--white);
  box-shadow: none;
}

.site-header.is-scrolled .header-ctas .btn-primary {
  background: #C8102E;
  color: var(--white);
  border-color: #C8102E;
  box-shadow: none;
}

.site-header.is-scrolled .header-ctas .btn-primary:hover {
  background: #A50D25;
  border-color: #A50D25;
  color: var(--white);
  box-shadow: none;
}

/* Non-hero pages: keep solid header and clear content below it */
body:not(.has-hero) .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(8px);
}

body:not(.has-hero) {
  padding-top: var(--header-h);
}

body:not(.has-hero) .site-header:not(.is-scrolled) .nav-desktop a {
  color: var(--navy);
}

body:not(.has-hero) .site-header:not(.is-scrolled) .menu-toggle {
  color: #C8102E;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 0;
  color: var(--navy);
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: min(150px, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (min-width: 1025px) {
  .site-header .container.header-inner,
  .site-header .header-inner {
    justify-content: flex-start;
    gap: 0.75rem;
    max-width: 100%;
  }

  .site-header .logo {
    order: 0;
    margin-left: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .site-header .logo-img {
    height: 32px;
    max-width: 148px;
  }

  .site-header .nav-desktop {
    justify-content: center;
    margin-left: 0;
    min-width: 0;
  }

  .site-header .header-ctas {
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* Keep header CTAs on one screen width on typical laptops */
@media (min-width: 1025px) and (max-width: 1366px) {
  .site-header .logo-img {
    height: 28px;
    max-width: 128px;
  }

  .nav-desktop {
    gap: 0.55rem;
  }

  .nav-desktop a {
    font-size: 0.78rem;
  }

  .header-ctas {
    gap: 0.4rem;
  }

  .header-ctas .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    min-height: 40px;
  }
}

.logo-img--white {
  display: block;
}

.logo-img--blue {
  display: none;
}

/* Scrolled / light header: blue logo */
.site-header.is-scrolled .logo-img--white,
body:not(.has-hero) .site-header .logo-img--white {
  display: none;
}

.site-header.is-scrolled .logo-img--blue,
body:not(.has-hero) .site-header .logo-img--blue {
  display: block;
}

/* Mobile menu panel is white: blue logo */
.nav-mobile .logo-img--white {
  display: none;
}

.nav-mobile .logo-img--blue {
  display: block;
}

/* Light page panels / combo cards: force blue logo */
.combo-card .logo-img--white,
.page-screen .logo-img--white {
  display: none;
}

.combo-card .logo-img--blue,
.page-screen .logo-img--blue {
  display: block;
}

/* Footer is navy: white logo only */
.footer-brand .logo-img {
  height: 48px;
  max-width: 220px;
}

.footer-brand .logo-img--blue {
  display: none;
}

.footer-brand .logo-img--white {
  display: block;
}

/* Hide text logo labels inside .logo when image logos are used */
.logo > .logo-mark,
.logo > .logo-sub {
  display: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.35rem);
  flex: 1;
  justify-content: flex-start;
  flex-wrap: nowrap;
  margin-left: 0.5rem;
}

.nav-desktop a {
  font-size: clamp(0.78rem, 0.95vw, 0.875rem);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--navy);
  transition: width var(--ease);
}

.nav-desktop a:hover {
  color: var(--navy);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #C8102E;
  background: transparent;
  border-radius: 0;
  transition: color var(--ease);
}

.menu-toggle:hover {
  background: transparent;
  color: #A50D25;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Over hero: white lines, no fill */
.site-header:not(.is-scrolled) .menu-toggle,
.site-header:not(.is-scrolled) .menu-toggle:hover {
  color: var(--white);
  background: transparent;
}

/* Scrolled / non-hero pages: red lines, no fill */
.site-header.is-scrolled .menu-toggle,
.site-header.is-scrolled .menu-toggle:hover,
body:not(.has-hero) .site-header .menu-toggle,
body:not(.has-hero) .site-header .menu-toggle:hover {
  color: #C8102E;
  background: transparent;
}

/* Menu backdrop (darkens page when open) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(7, 29, 51, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Side panel explore menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 33.333%;
  max-width: 480px;
  min-width: 320px;
  z-index: 200;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 280ms ease, visibility 280ms ease;
  visibility: hidden;
  overflow: hidden; /* only the links list scrolls; close stays pinned */
  overscroll-behavior: contain;
  box-shadow: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 0.5rem;
}

.nav-mobile-links a {
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--navy);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.nav-group-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8102E;
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.nav-mobile-links a.nav-link-detail {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-mobile-links a.nav-link-detail:hover {
  color: #C8102E;
}

.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  background: var(--white);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
}

.nav-mobile-ctas-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

.nav-mobile-ctas-row .btn {
  width: 100%;
  min-height: 48px;
  padding-inline: 0.55rem;
  text-align: center;
  justify-content: center;
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.2;
}

.nav-close {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8102E;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .header-ctas .btn {
    display: none;
  }

  .header-ctas {
    margin-left: auto;
  }

  .menu-toggle {
    margin-left: 0;
    background: transparent;
  }
}

@media (min-width: 1025px) {
  .nav-mobile {
    width: 33.333%;
    max-width: none;
    min-width: 340px;
    padding: 1.75rem clamp(1.25rem, 2vw, 2rem) 2rem;
  }

  .nav-mobile-links {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .nav-mobile {
    width: 98%;
    max-width: none;
    min-width: 0;
  }
}

/* Lean conversion-page header */
.header-lean .nav-desktop,
.header-lean .header-ctas .btn,
.header-lean .menu-toggle {
  display: none;
}

.header-lean .header-ctas {
  gap: 0.5rem;
}

.header-lean .btn-whatsapp-header {
  display: inline-flex;
}

.btn-whatsapp-header {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.btn-whatsapp-header:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.header-lean .btn-whatsapp-header {
  display: inline-flex;
}

@media (max-width: 768px) {
  .header-inner {
    gap: 0.75rem;
  }

  .logo-img {
    height: 28px;
    max-width: 130px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -- Sections -- */
.section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section--ice {
  background: var(--ice);
}

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

.section--navy h2,
.section--navy .eyebrow,
.section--navy p {
  color: var(--white);
}

.section--navy .eyebrow {
  opacity: 0.75;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-intro p {
  margin-top: 1rem;
}

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

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }
}

.img-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ice);
}

.img-frame {
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Photos are pre-zoomed 20% in assets; light hover zoom only */
  transition: transform 400ms ease;
}

.img-frame:hover img {
  transform: scale(1.04);
}

/* Explicit 20% crop-zoom for selected frames */
.img-frame--zoom-20 img {
  transform: scale(1.2);
  transform-origin: center center;
}

.img-frame--zoom-20:hover img {
  transform: scale(1.24);
}

/* -- Footer -- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 3.5rem;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2rem;
  align-items: start;
}

.footer-danfoss {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-top: 1.25rem;
  opacity: 1;
  border-radius: 3px;
}

.footer-services li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-brand .logo {
  margin-bottom: 0.25rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col p,
.footer-col li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.footer-social a:hover {
  background: #ffffff;
  color: #0b2a4a;
  border-color: #ffffff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-disclaimer {
  max-width: 520px;
  text-align: right;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-disclaimer {
    text-align: left;
    max-width: none;
  }
}

/* Minimal footer for conversion pages */
.footer-minimal {
  background: var(--navy);
  padding: 1.5rem var(--gutter);
  text-align: center;
}

.footer-minimal p,
.footer-minimal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-minimal a:hover {
  color: var(--white);
}

/* Book consultation FAB + Ravi popup */
.contact-fab-wrap {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease;
}

/* Home page: hide FAB until hero is scrolled past */
body.has-hero .contact-fab-wrap:not(.is-fab-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

body.has-hero .contact-fab-wrap.is-fab-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-fab-popup {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: min(260px, 78vw);
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
  border: 1px solid var(--hairline);
}

.contact-fab-popup-text {
  display: block;
  flex: 1;
}

.contact-fab-wave {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  transform-origin: 70% 70%;
  animation: fab-wave 1.6s ease-in-out infinite;
}

@keyframes fab-wave {
  0% { transform: rotate(0deg); }
  12% { transform: rotate(18deg); }
  24% { transform: rotate(-10deg); }
  36% { transform: rotate(18deg); }
  48% { transform: rotate(-6deg); }
  60% { transform: rotate(10deg); }
  72%, 100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab-wave {
    animation: none;
  }
}

.contact-fab-popup::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transform: rotate(45deg);
}

.contact-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem 0.85rem 0.95rem;
  border-radius: 999px;
  background: #C8102E;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: transform var(--ease), background var(--ease);
  text-decoration: none;
}

.contact-fab:hover {
  background: #A50D25;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: none;
}

.contact-fab-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-fab-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  stroke: currentColor;
}

.contact-fab-label {
  white-space: nowrap;
  display: inline-block;
}

/* Book consultation + WhatsApp side by side */
.contact-fab-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

/* Circular WhatsApp icon beside Book consultation */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
  flex-shrink: 0;
  transition: transform var(--ease), background var(--ease);
}

.whatsapp-fab:hover {
  background: #1ebe57;
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-fab-wrap .whatsapp-fab {
  position: static;
  z-index: auto;
}

.whatsapp-fab-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-fab-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  stroke: none;
}

/* Point Ravi popup toward the consultation pill (right side of the pair) */
.contact-fab-wrap:has(.contact-fab-actions) .contact-fab-popup::after {
  right: 1.6rem;
}

/* Consultation / brochure pages: WhatsApp in the normal corner */
body.page-consultation .whatsapp-fab,
body.page-brochure .whatsapp-fab,
body.page-contact .whatsapp-fab {
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

/* Utility page */
.utility-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter);
  text-align: center;
}

.utility-page .inner {
  max-width: 520px;
}

.utility-page h1 {
  margin-bottom: 1rem;
}

.utility-page p {
  margin-bottom: 2rem;
}
