/* ===== CSS CUSTOM PROPERTIES ===== */
    :root {
      --color-bg: #0a0a0a;
      --color-surface: #111111;
      --color-grey: #4A494A;
      --color-accent: #0077A6;
      --color-accent-bright: #00B8E0;
      --color-white: #ffffff;
      --color-border: rgba(0, 180, 216, 0.2);
      --font-heading: 'Playfair Display', 'Georgia', serif;
      --font-sub: 'Poppins', sans-serif;
      --transition: 0.3s ease;
      --header-h: 20px;
    }

    ::selection {
      background: var(--color-accent-bright);
      color: var(--color-bg);
    }

    /* ===== RESET & BASE ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      background: var(--color-bg);
      color: var(--color-white);
      font-family: var(--font-sub);
      font-weight: 400;
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    .content {
      width: 95%;
      max-width: 1440px;
      margin: 0 auto;
    }

    img { max-width: 100%; height: auto; display: block; }
    a { text-decoration: none; color: inherit; }

    h1, h2, h3 {
      font-family: var(--font-heading);
      font-weight: 700;
      line-height: 1;
      color: var(--color-white);
      margin-bottom: 2rem;
    }
    h4, h5, h6 {
      font-family: var(--font-sub);
      font-weight: 600;
    }
    h1 {
      font-size: clamp(2.4rem, 5vw, 4.2rem);
    }
    h2 {
      font-size: clamp(2rem, 4.6vw, 3.8rem);
    }
    h3 {
      font-size: clamp(1.4rem, 4vw, 3.2rem);
    }
    h4 {
      font-size: clamp(1rem, 1.4vw, 1.4rem);
    }
    p {
      margin-bottom: 2rem;
    }

    /* ===== CARBON FIBER BACKGROUND ===== */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      background: url(../images/backgrounds/carbon-fiber.webp) no-repeat center fixed var(--color-grey);
      background-size: cover;
      background-blend-mode: multiply;
    }

    /* ===== FIXED HEADER ===== */
    #site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      background: rgba(8, 8, 8, 0.95);
      -webkit-backdrop-filter: blur(12px);
              backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--color-surface);
      padding: 20px;
    }
    #site-header .content {
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
              align-items: center;
      -webkit-justify-content: space-between;
              justify-content: space-between;
    }
    .header-logo img {
      width: 100%;
      max-width: 400px;
    }
    .header-right {
      display: -webkit-flex;
      display: flex;
      -webkit-flex-direction: row;
              flex-direction: row;
      -webkit-align-items: flex-end;
              align-items: flex-end;
      color: var(--color-white);
      line-height: 1.4;
      gap: 20px;
    }
    .header-right p {
      margin: 0;
    }

    /* ===== STICKY SECTIONS ===== */
    .sticky-section {
      position: -webkit-sticky;
      position: sticky;
      top: var(--header-h);
      z-index: 1;
      width: 95%;
      margin: auto;
      height: 100vh;
      min-height: auto;
      border-radius: 2rem;
      border-top: 1px solid var(--color-grey);
      box-shadow: 20px 20px 50px black;
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
              align-items: center;
      overflow: hidden;
      box-shadow: 0 -50px 100px var(--color-bg);
    }

    /* Individual z-index for stacking order */
    .sticky-section:nth-child(1) { z-index: 10; }
    .sticky-section:nth-child(2) { z-index: 20; }
    .sticky-section:nth-child(3) { z-index: 30; }
    .sticky-section:nth-child(4) { z-index: 40; }
    .sticky-section:nth-child(5) { z-index: 50; }

    /* ===== SECTION BACKGROUNDS ===== */
    .section-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    .section-overlay {
      position: absolute;
      inset: 0;
    }

    .tile {
      width: 100%;
      max-width: 850px;
      margin: 0 0 0 auto;
      padding: 3rem;
      border-radius: 2rem;
      border-top: 1px solid var(--color-grey);
      border-left: 1px solid var(--color-grey);
      background: rgba(8, 8, 8, 0.2);
      -webkit-backdrop-filter: blur(20px);
              backdrop-filter: blur(20px);
      box-shadow: 20px 20px 50px black;
      position: relative;
      z-index: 2;
      -webkit-transition: all .3s;
              transition: all .3s;
    }
    .tile:hover {
      box-shadow: 10px 10px 20px black;
      -webkit-transition: all .3s;
              transition: all .3s;
    }

    /* ===== HERO SECTION ===== */
    #hero .section-bg {
      background: url(../images/backgrounds/steve-abell-slider.webp) no-repeat center;
      background-size: cover;
    }
    .hero-badge {
      display: inline-block;
      background: rgba(0, 180, 216, 0.1);
      border: 1px solid rgba(0, 180, 216, 0.4);
      color: var(--color-accent);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 2px;
      margin-bottom: 20px;
      font-family: var(--font-sub);
    }
    #hero h1 {
      font-size: clamp(2.4rem, 5vw, 4.2rem);
      color: var(--color-white);
      max-width: 600px;
      margin-bottom: 28px;
      text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    }
    #hero h1 .brand-name {
      color: var(--color-accent);
      display: block;
    }
    .hero-logo-mark img {
      width: 90%;
      max-width: 532px;
      margin-bottom: 16px;
    }

    /* ===== BUTTON STYLES ===== */
    .btn {
      display: inline-block;
      padding: 12px 20px;
      font-family: var(--font-sub);
      font-size: 1.2rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      border-radius: 30px;
      cursor: pointer;
      -webkit-transition: all var(--transition);
      transition: all var(--transition);
      border: none;
      text-align: center;
    }

    .btn-primary {
      background: var(--color-accent-bright);
      color: var(--color-bg);
    }
    .btn-primary:hover, .btn-primary:focus {
      background: var(--color-accent-bright);
      -webkit-transform: translateY(-2px);
              transform: translateY(-2px);
      box-shadow: 0 0 150px var(--color-accent-bright);
      outline: none;
    }

    .btn-outline {
      background: transparent;
      color: var(--color-accent-bright);
      border: 1px solid var(--color-accent-bright);
    }
    .btn-outline:hover, .btn-outline:focus {
      background: var(--color-accent-bright);
      color: var(--color-bg);
      -webkit-transform: translateY(-2px);
              transform: translateY(-2px);
      box-shadow: 0 0 150px var(--color-accent-bright);
      outline: none;
    }

    /* ===== SECTION 2: SERVING ONTARIO ===== */
    #section-serving {
      min-height: 100vh;
    }
    #section-serving .section-bg {
      background: url(../images/backgrounds/absolute-water-treatment-van-house-slider.webp) no-repeat center;
      background-size: cover;
    }

    /* ===== SECTION 3: WELL WATER ===== */
    #section-wellwater {
      min-height: 100vh;
    }
    #section-wellwater .tile {
      margin: 0;
    }
    #section-wellwater .section-bg {
      background: url(../images/backgrounds/water-softener-equipment-slider.webp) no-repeat center;
      background-size: cover;
    }

    /* ===== SECTION 4: COMPACT DELUXE ===== */
    #section-compact {
      min-height: 100vh;
    }
    #section-compact .tile {
      margin: 0 auto;
      text-align: center;
    }
    #section-compact .section-bg {
      background: url(../images/backgrounds/compact-deluxe-slider.webp) no-repeat center;
      background-size: cover;
    }
    #section-compact h2 {
      color: var(--color-accent-bright);
    }
    #section-compact .buttons {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
    }
    #section-compact .h2o-mark {
      position: absolute;
      top: 20px;
      right: 20px;
    }
    #section-compact .h2o-mark img {
      height: 80px;
    }

    /* ===== SECTION 5: CUSTOM DELUXE ===== */
    #section-custom {
      min-height: 100vh;
    }
    #section-custom .tile {
      margin: 0 auto;
      text-align: center;
    }
    #section-custom .section-bg {
      background: url(../images/backgrounds/custom-deluxe-slider.webp) no-repeat center;
      background-size: cover;
    }
    #section-custom h2 {
      color: var(--color-accent-bright);
    }
    #section-custom .buttons {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
    }
    #section-custom .h2o-mark {
      position: absolute;
      top: 20px;
      right: 20px;
    }
    #section-custom .h2o-mark img {
      height: 80px;
    }

    /* ===== WORK GALLERY SECTION ===== */
    #section-work {
      padding: 10rem 0;
      position: relative;
      z-index: 60;
      text-align: center;
    }

    /* Tab Buttons */
    .tab-nav {
      display: -webkit-flex;
      display: flex;
      -webkit-justify-content: center;
              justify-content: center;
      gap: 6px;
      margin-bottom: 40px;
      -webkit-flex-wrap: wrap;
              flex-wrap: wrap;
      padding: 0 20px;
    }
    .tab-btn {
      padding: 9px 20px;
      font-family: var(--font-sub);
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.3px;
      background: rgba(255,255,255,0.04);
      border: transparent;
      border-top: 1px solid var(--color-grey);
      color: var(--color-white);
      border-radius: 100px;
      cursor: pointer;
      -webkit-transition: all var(--transition);
              transition: all var(--transition);
      white-space: nowrap;
    }
    .tab-btn:hover {
      border: 1px solid var(--color-accent-bright);
      color: var(--color-accent-bright);
      -webkit-transform: translateY(-2px);
              transform: translateY(-2px);
    }
    .tab-btn.active {
      background: var(--color-accent-bright);
      border-color: var(--color-accent-bright);
      color: var(--color-bg);
      box-shadow: 0 0 150px var(--color-accent-bright);
    }

    /* Gallery */
    .gallery-panel {
      display: none;
      max-width: 1440px;
      margin: 0 auto;
    }
    .gallery-panel.active {
      display: -webkit-flex;
      display: flex;
      -webkit-flex-wrap: wrap;
              flex-wrap: wrap;
      gap: 12px;
      -webkit-animation: fadeIn 0.35s ease;
              animation: fadeIn 0.35s ease;
    }
    @-webkit-keyframes fadeIn {
      from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
      to { opacity: 1; -webkit-transform: none; transform: none; }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: none; }
    }
    .gallery-item {
      -webkit-flex: 1 1 calc(50% - 6px);
              flex: 1 1 calc(50% - 6px);
      min-width: 220px;
      max-width: calc(50% - 6px);
      aspect-ratio: 4/3;
      overflow: hidden;
      border-radius: 2rem;
      background: var(--color-bg);
      cursor: pointer;
      position: relative;
      -webkit-transition: all .3s ease;
              transition: all .3s ease;
    }
    .gallery-item:hover {
      box-shadow: 0 0 150px var(--color-accent-bright);
      -webkit-transition: all .3s ease;
              transition: all .3s ease;
    }
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      -webkit-transition: -webkit-transform 0.5s ease;
              transition: transform 0.5s ease;
    }
    .gallery-item:hover img {
      -webkit-transform: scale(1.06);
              transform: scale(1.06);
    }
    .gallery-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0, 180, 216, 0);
      -webkit-transition: background var(--transition);
              transition: background var(--transition);
    }
    .gallery-item:hover::after {
      background: rgba(0, 180, 216, 0.08);
    }
    .gallery-zoom-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%) scale(0);
              transform: translate(-50%, -50%) scale(0);
      z-index: 2;
      width: 80px;
      height: 80px;
      background: rgba(0,180,216,0.85);
      border-radius: 50%;
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
              align-items: center;
      -webkit-justify-content: center;
              justify-content: center;
      -webkit-transition: -webkit-transform var(--transition);
              transition: transform var(--transition);
    }
    .gallery-zoom-icon svg {
      width: 40px;
      height: 40px;
      fill: none;
      stroke: var(--color-bg);
      stroke-width: 2;
    }
    .gallery-item:hover .gallery-zoom-icon {
      -webkit-transform: translate(-50%, -50%) scale(1);
              transform: translate(-50%, -50%) scale(1);
    }

    /* ===== LIGHTBOX ===== */
    #lightbox {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0,0,0,0.95);
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
              align-items: center;
      -webkit-justify-content: center;
              justify-content: center;
      opacity: 0;
      pointer-events: none;
      -webkit-transition: opacity 0.3s ease;
              transition: opacity 0.3s ease;
    }
    #lightbox.open {
      opacity: 1;
      pointer-events: all;
    }
    .lightbox-img-wrap {
      position: relative;
      max-width: 90vw;
      max-height: 88vh;
    }
    .lightbox-img-wrap img {
      max-width: 90vw;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 2rem;
      box-shadow: 0 30px 150px var(--color-bg);
      display: block;
    }
    .lightbox-close {
      position: fixed;
      top: 20px;
      right: 24px;
      background: var(--color-surface);
      color: var(--color-accent-bright);
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 50%;
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
              align-items: center;
      -webkit-justify-content: center;
              justify-content: center;
      cursor: pointer;
      font-size: 1.2rem;
      -webkit-transition: all var(--transition);
              transition: all var(--transition);
    }
    .lightbox-close:hover {
      background: var(--color-accent-bright);
      color: var(--color-bg);
    }
    .lightbox-nav {
      position: fixed;
      top: 50%;
      -webkit-transform: translateY(-50%);
              transform: translateY(-50%);
      background: var(--color-surface);
      border: none;
      color: var(--color-accent-bright);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: -webkit-flex;
      display: flex;
      -webkit-align-items: center;
              align-items: center;
      -webkit-justify-content: center;
              justify-content: center;
      cursor: pointer;
      font-size: 2rem;
      -webkit-transition: all var(--transition);
              transition: all var(--transition);
    }
    .lightbox-nav:hover {
      background: var(--color-accent-bright);
      color: var(--color-bg);
    }
    #lb-prev { left: 16px; }
    #lb-next { right: 16px; }
    .lightbox-caption {
      text-align: center;
      color: var(--color-white);
      font-size: 0.8rem;
      margin-top: 12px;
      font-family: var(--font-sub);
    }

    /* ===== CONTACT SECTION ===== */
    #section-contact {
      padding: 0 0 100px;
      position: relative;
      z-index: 65;
    }
    .contact-grid {
      max-width: 1440px;
      margin: 0 auto;
      display: -webkit-flex;
      display: flex;
      gap: 60px;
      -webkit-align-items: flex-start;
              align-items: flex-start;
    }
    .contact-info {
      -webkit-flex: 1;
              flex: 1;
      padding-top: 2rem;
    }
    .contact-info h4 {
      color: var(--color-accent-bright);
    }
    .contact-info a {
      -webkit-transition: color var(--transition);
              transition: color var(--transition);
    }
    .contact-info a:hover {
      color: var(--color-accent-bright);
      -webkit-transition: color var(--transition);
              transition: color var(--transition);
    }
    .cert-badges {
      display: -webkit-flex;
      display: flex;
      gap: 12px;
      margin-top: 28px;
      -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
    }
    .badge {
      height: 60px;
    }
    .contact-form-area {
      -webkit-flex: 1;
      flex: 1;
      border: none;
      border-left: 1px solid var(--color-accent-bright);
      padding: 2rem;
    }

    /* ===== FOOTER ===== */
    #site-footer {
      padding: 40px 0;      
      position: relative;
      z-index: 70;
    }
    #site-footer .content {
      display: -webkit-flex;
      display: flex;
      -webkit-justify-content: space-between;
              justify-content: space-between;
      -webkit-align-items: center;
              align-items: center;
    }
    #site-footer .content p {
      margin-bottom: 0;
      text-align: left;
    }
    .rd-icon {
      height: 30px;
    }

    /* ===== SCROLL INDICATOR ===== */
    .scroll-hint {
      position: absolute;
      bottom: 50px;
      left: 50%;
      -webkit-transform: translateX(-50%);
              transform: translateX(-50%);
      display: -webkit-flex;
      display: flex;
      -webkit-flex-direction: column;
              flex-direction: column;
      -webkit-align-items: center;
              align-items: center;
      gap: 6px;
      color: var(--color-accent-bright);
      font-size: 0.7rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      font-family: var(--font-sub);
      -webkit-animation: bounce 2s ease-in-out infinite;
              animation: bounce 2s ease-in-out infinite;
    }
    .scroll-hint svg {
      width: 20px;
      height: 20px;
      stroke: var(--color-accent-bright);
      fill: none;
      stroke-width: 2;
    }
    @-webkit-keyframes bounce {
      0%, 100% { -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }
      50% { 
        -webkit-transform: translateX(-50%) translateY(6px); 
                transform: translateX(-50%) translateY(6px); }
    }

    @keyframes bounce {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(6px); }
    }


    /* ===== FADE-UP ANIMATION ===== */
    .fade-up {
      opacity: 0;
      transform: translateY(200px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .fade-up.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Staggered delay variants for grouped elements */
    .fade-up[data-delay="1"] { transition-delay: 0.1s; }
    .fade-up[data-delay="2"] { transition-delay: 0.2s; }
    .fade-up[data-delay="3"] { transition-delay: 0.3s; }
    .fade-up[data-delay="4"] { transition-delay: 0.4s; }
    .fade-up[data-delay="5"] { transition-delay: 0.5s; }

    /* Respect reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
      .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 960px) {
      .header-right p {
        display: none;
      }

      .hero-logo-mark {
        display: none;
      }
    }

    @media (max-width: 768px) {
      body::before {
        content: '';
        background: none;
      }
      .header-right .btn-outline span {
        display: none;
      }

      .tile {
        padding: 1.5rem;
      }

      #hero.sticky-section,
      #section-compact.sticky-section,
      #section-custom.sticky-section {
        -webkit-align-items: flex-end;
                align-items: flex-end;
      }
      #hero .content,
      #section-compact .content,
      #section-custom .content {
        margin-bottom: 20%;
      }

      #section-serving.sticky-section,
      #section-wellwater.sticky-section {
        -webkit-align-items: flex-start;
                align-items: flex-start;
      }
      #section-serving .content,
      #section-wellwater .content {
        margin-top: 5%;
      }

      .mobile-carbon-fiber {
        background: url(../images/backgrounds/carbon-fiber-768.webp) repeat center #444444;
        background-size: contain;
        background-blend-mode: multiply;
      }

      #hero .section-bg {
        background: url(../images/backgrounds/steve-abell-slider-768.webp) no-repeat center;
        background-size: cover;
      }
      #section-serving .section-bg {
        background: url(../images/backgrounds/absolute-water-treatment-van-house-slider-768.webp) no-repeat center;
        background-size: cover;
      }
      #section-wellwater .section-bg {
        background: url(../images/backgrounds/water-softener-equipment-slider-768.webp) no-repeat center;
        background-size: cover;
      }
      #section-compact .section-bg {
        background: url(../images/backgrounds/compact-deluxe-slider-768.webp) no-repeat center;
        background-size: cover;
      }
      #section-compact .section-bg {
        background: url(../images/backgrounds/compact-deluxe-slider-768.webp) no-repeat center;
        background-size: cover;
      }
      #section-custom .section-bg {
        background: url(../images/backgrounds/custom-deluxe-slider-768.webp) no-repeat center;
        background-size: cover;
      }

      .contact-grid {
        -webkit-flex-direction: column;
        flex-direction: column;
        padding: 10% 5% 0;
      }
      .contact-info { -webkit-flex: none; flex: none; width: 100%; }
      .contact-form-area {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--color-accent-bright);
        padding: 0;
      }
      .contact-grid {
        gap: 40px;
      }
      .contact-info {
        padding-top: 0;
      }

      #section-compact .h2o-mark img,
      #section-custom .h2o-mark img {
        height: 40px;
      }

      #site-footer .content {
        -webkit-flex-direction: column;
                flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        text-align: center;
      }
      #site-footer .content p {
        text-align: center;
      }

      .gallery-panel.active { padding: 0 20px; gap: 8px; }
      .gallery-item {
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
        max-width: 100%;
      }
      .gallery-item:hover,
      .gallery-item:focus {
        box-shadow: none;
      }
      .gallery-zoom-icon {
        display: none;
      }
      .gallery-zoom-icon svg {
        display: none;
      }

      /* Disable lightbox on mobile */
      .gallery-item { cursor: default; }
    }

    @media (max-width: 600px) {
      .header-right .btn-outline {
        display: none;
      }
    }

    @media (max-width: 480px) {
      .mobile-carbon-fiber {
        background: url(../images/backgrounds/carbon-fiber-480.webp) repeat center #444444;
        background-size: contain;
        background-blend-mode: multiply;
      }

      #hero .section-bg {
        background: url(../images/backgrounds/steve-abell-slider-480.webp) no-repeat center;
        background-size: cover;
      }
      #section-serving .section-bg {
        background: url(../images/backgrounds/absolute-water-treatment-van-house-slider-480.webp) no-repeat center;
        background-size: cover;
      }
      #section-wellwater .section-bg {
        background: url(../images/backgrounds/water-softener-equipment-slider-480.webp) no-repeat center;
        background-size: cover;
      }
      #section-compact .section-bg {
        background: url(../images/backgrounds/compact-deluxe-slider-480.webp) no-repeat center;
        background-size: cover;
      }
      #section-compact .section-bg {
        background: url(../images/backgrounds/compact-deluxe-slider-480.webp) no-repeat center;
        background-size: cover;
      }
      #section-custom .section-bg {
        background: url(../images/backgrounds/custom-deluxe-slider-480.webp) no-repeat center;
        background-size: cover;
      }
    }

    /* ===== Focus Visible ===== */
    :focus-visible {
      outline: 2px solid var(--color-accent-bright);
      outline-offset: 3px;
    }