/* =====================================================
   WaterTech — Responsive overrides (Leafix header/hero)
   ===================================================== */

@media (max-width: 1399.98px) {
  .header-1 .header-main {
    padding: 0.75rem 0.75rem;
  }

  .header-left {
    gap: 1.25rem;
  }

  .main-menu nav > ul > li > a {
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
  }

  .header-1 .header-right .theme-btn {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
  }

  .hero-section .hero-content {
    max-width: 560px;
  }

  .garden-content-area {
    max-width: 380px;
    bottom: 88px;
  }

  /* Same side-by-side card as the plant cards above. Only the
     inner steps reflow so they fit the narrower text column. */
  #twm .flow-track,
  #mineral-water .train-grid--compact {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet / laptop: stack garden box under content */
@media (max-width: 1199.98px) {
  :root {
    --header-height: 84px;
  }

  .mean__menu-wrapper {
    display: none;
  }

  .header-left {
    gap: 0.75rem;
  }

  .header-1 .logo img {
    height: 44px;
  }

  .hero-section.hero-1 {
    min-height: auto;
  }

  .hero-section.hero-1 .container {
    min-height: auto;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 64px;
  }

  .hero-section .hero-content {
    max-width: 640px;
  }

  .garden-content-area {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2.25rem;
    max-width: 100%;
    width: 100%;
  }

  .why-choose-img {
    height: 380px;
  }

  .industry-card {
    height: 420px;
  }

  .product-overview__grid,
  .product-overview__grid--catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  /* Stacked cards: show the whole photo at full card width.
     A fixed height + object-fit:cover was cropping top/bottom
     and leaving empty bands on the sides. */
  .product-showcase__media,
  .plant-spotlight__media {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .product-showcase__media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: center;
  }

  /* Packaged cards stay image-beside-text, like the plant cards.
     Their step lists drop to one column so the text column can breathe. */
  #twm .flow-track,
  #zld .train-grid,
  #mineral-water .train-grid--compact {
    grid-template-columns: 1fr;
  }

  #softening-plant .product-showcase__media {
    aspect-ratio: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    min-height: 0;
    margin-inline: 0;
    flex: 0 0 auto;
    align-self: stretch;
  }

  #softening-plant .product-showcase__media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .section-padding {
    padding: 70px 0;
  }

  .hero-section.hero-1 .container {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 56px;
  }

  .hero-section .title {
    font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  }

  .hero-section .text {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-shape-1 {
    width: 80px;
    height: 80px;
    right: 4%;
    top: 12%;
  }

  .about-image-wrap > img {
    height: 380px;
    margin-bottom: 2rem;
  }

  .float-bob {
    right: 10px;
    bottom: 40px;
    width: 110px;
    height: 100px;
  }

  .why-choose-img {
    max-width: 100%;
    height: 360px;
    margin-bottom: 2rem;
  }

  .industry-card {
    height: 380px;
    margin-bottom: 1.5rem;
  }

  .process-step {
    margin-bottom: 1.5rem;
  }

  .contact-form-wrap {
    padding: 1.75rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 72px;
  }

  .section-padding {
    padding: 55px 0;
  }

  .header-1 .header-main {
    min-height: 72px;
    padding: 0.55rem 0.35rem;
  }

  .header-1 .header-left .logo a {
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
  }

  .header-1 .logo img {
    height: 40px;
  }

  .main-header__search {
    width: 42px;
    height: 42px;
  }

  .hero-section.hero-1 {
    min-height: auto;
  }

  .hero-section.hero-1 .container {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 48px;
  }

  .hero-section .sub-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
  }

  .hero-section .title {
    font-size: clamp(1.7rem, 7vw, 2.15rem);
    margin-bottom: 0.9rem;
  }

  .hero-section .text {
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 0.65rem;
  }

  .hero-section .hero-content > .text:last-of-type {
    margin-bottom: 1.35rem;
  }

  .hero-btn-area {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-btn-area .theme-btn {
    width: 100%;
  }

  .garden-content-area {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.75rem;
    padding: 1rem;
    gap: 0.85rem;
  }

  .garden-content-area .thumb {
    width: 100%;
    height: 140px;
  }

  .hero-shape-1 {
    display: none;
  }

  .about-stats-overlay {
    position: static;
    margin-top: 1rem;
  }

  .about-image-wrap > img {
    height: 280px;
  }

  .float-bob {
    display: none;
  }

  .specialty-card img {
    height: 140px;
  }

  .why-header-row {
    flex-direction: column;
  }

  .industry-card {
    height: 340px;
    max-width: 100%;
  }

  .project-card {
    height: 260px;
    margin-bottom: 1rem;
  }

  .product-overview__grid,
  .product-overview__grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .filter-type-grid,
  .product-split,
  .flow-track {
    grid-template-columns: 1fr 1fr;
  }

  .train-grid,
  .train-grid--compact {
    grid-template-columns: 1fr 1fr;
  }

  .packaged-family {
    margin-top: 0;
  }

  .plant-spotlight:hover {
    transform: translateY(-2px);
  }

  .plant-spotlight__head {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem 1.2rem;
  }

  .plant-spotlight::before,
  .plant-spotlight--flip::before {
    left: 0;
    right: auto;
    width: 100%;
    height: 3px;
    bottom: auto;
    top: 0;
    background: linear-gradient(
      90deg,
      var(--wt-lime) 0%,
      var(--wt-forest) 100%
    );
  }

  .plant-spotlight__panel,
  .plant-spotlight--flip .plant-spotlight__panel {
    grid-template-columns: 1fr;
  }

  .plant-spotlight--flip .plant-spotlight__media,
  .plant-spotlight--flip .plant-spotlight__body {
    order: initial;
  }

  .plant-spotlight__media {
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .plant-spotlight__body {
    padding: 1.25rem 1.2rem 1.4rem;
  }

  .offer-card:hover {
    transform: translateY(-2px);
  }

  .service-card-v2 {
    padding: 1.25rem 1.15rem 1.3rem;
  }

  .service-card-v2__plants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-overview__title {
    font-size: clamp(1.3rem, 4vw, 1.65rem);
  }

  .product-family,
  .product-standalone-list {
    gap: 1.5rem;
  }

  .product-showcase-list {
    gap: 2.75rem;
  }

  .product-family__header {
    padding: 1.2rem 1.15rem;
    margin-left: auto;
    margin-right: auto;
  }

  .product-family__title {
    font-size: 1.35rem;
  }

  .product-showcase {
    transform: none;
  }

  .product-showcase:hover {
    transform: translateY(-2px);
  }

  .product-showcase::before,
  .product-showcase--reverse::before {
    left: 0;
    right: auto;
    width: 100%;
    height: 3px;
    bottom: auto;
    top: 0;
    background: linear-gradient(
      90deg,
      var(--wt-lime) 0%,
      var(--wt-forest) 100%
    );
  }

  .product-showcase__num,
  .product-showcase--reverse .product-showcase__num {
    top: 0.85rem;
    right: 0.9rem;
    left: auto;
    font-size: 1.85rem;
  }

  .product-showcase__media,
  .plant-spotlight__media,
  .offer-card__media {
    width: 100%;
    min-height: 0;
    max-height: none;
    height: auto;
    aspect-ratio: auto;
  }

  .plant-spotlight__media img,
  .offer-card__media img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  #twm .flow-track,
  #zld .train-grid,
  #mineral-water .train-grid--compact {
    grid-template-columns: 1fr 1fr;
  }

  .flow-track li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.6rem;
    row-gap: 0.2rem;
    align-items: start;
  }

  .flow-track__num {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .flow-track strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .flow-track span:not(.flow-track__num) {
    grid-column: 2;
    grid-row: 2;
  }

  .train-grid .train-card:has(.train-card__stage) {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.6rem;
    align-items: center;
  }

  .train-grid .train-card__stage {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.3rem;
  }

  .train-grid .train-card:has(.train-card__stage) h5 {
    grid-column: 2;
    grid-row: 1;
  }

  .train-grid .train-card:has(.train-card__stage) > :not(.train-card__stage):not(h5) {
    grid-column: 1 / -1;
  }

  .product-showcase__media {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--wt-gray-100);
  }

  .product-tile__media {
    height: 112px;
    max-height: 112px;
    aspect-ratio: auto;
  }

  .info-shot {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  .info-shot__media,
  #uv-sterilisation .info-shot__media {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  .info-shot__media img,
  #uv-sterilisation .info-shot__media img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  /* Beats #uv-sterilisation .info-shot in style.css (2-col + uncapped media). */
  #uv-sterilisation .info-shot {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .micro-subcard__media {
    width: auto;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    margin: -0.95rem -1rem 0.75rem;
  }

  .micro-subcard__media img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .info-shot__body {
    min-width: 0;
    padding: 0 0.15rem 0.2rem;
  }

  .product-family__header {
    max-width: 100%;
    padding: 1.1rem 1rem;
  }

  .product-subnav {
    position: sticky;
    top: var(--header-height);
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.75rem;
    padding: 0.4rem 0 0.55rem;
    background: var(--wt-off-white);
  }

  .product-subnav a {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  .product-showcase-list,
  .product-showcase,
  .product-family,
  .offer-card,
  .plant-spotlight,
  .product-split,
  .filter-type-grid,
  .micro-subcard {
    max-width: 100%;
  }

  .product-showcase-list {
    overflow-x: clip;
  }

  .product-showcase,
  .product-family,
  .filter-type-card,
  .product-split article {
    scroll-margin-top: calc(var(--header-height) + 12px);
  }

  .product-showcase > .row,
  .product-showcase > .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
  }

  .product-split {
    grid-template-columns: 1fr;
  }

  .product-showcase--reverse .product-showcase__media {
    border-left: none;
  }

  .product-showcase__body {
    padding: 1.35rem 1.2rem 1.45rem;
  }

  .product-showcase__title {
    font-size: 1.25rem;
  }

  .offer-card,
  .offer-card--flip {
    grid-template-columns: 1fr;
  }

  .offer-card--flip .offer-card__media,
  .offer-card--flip .offer-card__body {
    order: initial;
  }

  #softening-plant .product-showcase__media {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    margin-inline: 0;
    align-self: stretch;
  }

  #softening-plant .product-showcase__media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  #mineral-water .offer-card__media {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  #mineral-water .offer-card__media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .offer-card__body {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .offer-cols {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

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

  .offer-jump {
    margin-bottom: 1.75rem;
    gap: 0.4rem;
  }

  .plant-jump {
    margin-bottom: 1.75rem;
    gap: 0.4rem;
  }

  .plant-jump a {
    padding: 0.45rem 0.85rem;
    font-size: 0.74rem;
  }

  .plants-intro {
    margin-bottom: 1.35rem;
  }

  .page-banner {
    padding: calc(var(--header-height) + 24px) 0 55px;
  }

  .stat-box .counter {
    font-size: 2rem;
  }

  .site-footer {
    padding-top: 50px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom__bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
  }

  .footer-bottom__bar > .mb-0 {
    width: 100%;
    text-align: center;
  }

  /* The AWELION letters fill the bottom third of the SVG, so the logo is
     sized to make them match the text's capital height and sits on the
     text baseline. */
  .footer-dev {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    align-items: baseline;
    gap: 0.4em;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
  }

  .footer-dev-logo {
    display: block;
    flex-shrink: 0;
    line-height: 0;
  }

  .footer-dev-logo img {
    width: auto;
    height: 2.25em;
    max-width: none;
    top: 0;
    vertical-align: baseline;
  }
}

@media (max-width: 575.98px) {
  .btn-wt {
    width: 100%;
    justify-content: center;
  }

  .about-stat-pill {
    min-width: calc(50% - 0.4rem);
    flex: 1;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .search-popup__form input {
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
  }

  .search-popup__form button {
    width: 56px;
    height: 56px;
  }

  .product-overview__grid,
  .product-overview__grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-showcase__media,
  .plant-spotlight__media,
  .offer-card__media {
    max-height: none;
    height: auto;
  }

  #twm .flow-track,
  #zld .train-grid,
  #mineral-water .train-grid--compact {
    grid-template-columns: 1fr;
  }

  #softening-plant .product-showcase__media {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .product-tile__media {
    height: 88px;
    max-height: 88px;
  }

  .product-tile__body {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .product-tile__name {
    font-size: 0.88rem;
  }

  .filter-type-grid,
  .product-split,
  .flow-track,
  .train-grid,
  .train-grid--compact {
    grid-template-columns: 1fr;
  }

  .hero-section.hero-1 .container {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 40px;
  }

  .garden-content-area p {
    font-size: 0.875rem;
  }
}

/* Print */
@media print {
  .header-sticky,
  .search-popup,
  .off-sidebar,
  .off-sidebar-overlay,
  .hero-bg-media,
  .site-footer,
  .btn-wt,
  .theme-btn {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
