/* ==========================================================================
   WATERWELL PLASTIC TANK SOLUTIONS - CORE STYLESHEET
   Style classification: Flat Corporate-Industrial (Swiss-Grid)
   Strictly solid flat colours | No shadows | Hard edges (radius: 0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette (Strictly flat solid colours) */
  --wl-navy-900: #0a2540; /* Footer, deepest panels, primary text on light */
  --wl-navy-700: #0d3b6e; /* Logo tank navy: headings, nav text, dark sections */
  --wl-blue-600: #0b6eb5; /* Links, hover states, small accents (passes 4.5:1 contrast) */
  --wl-blue-500: #0a8fdb; /* Logo "WELL" blue: large decorative text, active lines */
  --wl-sky-100: #e3f1fa; /* Image panels, table row tints, soft backing blocks */
  --wl-sky-50: #f3f8fc; /* Alternate section background */
  --wl-safety: #f5b800; /* Primary CTA button only & active indicators. Navy text always */
  --wl-ink: #14202c; /* Body text */
  --wl-slate: #55677a; /* Secondary text, metadata, descriptions */
  --wl-line: #d5e1eb; /* 1px dividers, borders and grid lines */
  --wl-white: #ffffff; /* Base white background */
  --wl-error: #b3261e; /* Accessible form error text */

  /* Dark mode / dark section line tint (flat rgba solid colour) */
  --wl-line-dark: rgba(255, 255, 255, 0.18);

  /* Typography */
  --wl-font-display: "Barlow Condensed", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --wl-font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  /* Spacing Scale (8px base) */
  --wl-space-1: 8px;
  --wl-space-2: 16px;
  --wl-space-3: 24px;
  --wl-space-4: 32px;
  --wl-space-6: 48px;
  --wl-space-8: 64px;
  --wl-space-12: 96px;
  --wl-space-16: 128px;

  /* Section Padding */
  --wl-section-py: clamp(64px, 8vw, 128px);

  /* Transitions (Color-only, restrained) */
  --wl-transition-fast: 250ms ease;
}

/* --------------------------------------------------------------------------
   02. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wl-white);
  color: var(--wl-ink);
  font-family: var(--wl-font-body);
  font-size: 1.0625rem; /* 17px */
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hard rule: Default alignment is left */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl {
  text-align: left;
  margin-top: 0;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY SCALE (Fluid using clamp)
   -------------------------------------------------------------------------- */
h1,
.wl-h1 {
  font-family: var(--wl-font-display);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--wl-navy-900);
  margin-bottom: var(--wl-space-4);
  text-transform: uppercase;
}

h2,
.wl-h2 {
  font-family: var(--wl-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--wl-navy-900);
  margin-bottom: var(--wl-space-3);
  text-transform: uppercase;
}

h3,
.wl-h3 {
  font-family: var(--wl-font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wl-navy-900);
  margin-bottom: var(--wl-space-2);
}

p,
.wl-body {
  font-family: var(--wl-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wl-ink);
  max-width: 68ch;
  margin-bottom: var(--wl-space-3);
}

.wl-body-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--wl-navy-700);
}

small,
.wl-small {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--wl-slate);
}

/* Catalogue numbers for products & sequences */
.wl-num {
  font-family: var(--wl-font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--wl-blue-500);
}

/* --------------------------------------------------------------------------
   04. OVERRIDES FOR BOOTSTRAP DEFAULTS
   Remove all SaaS aesthetics, rounded corners, and default box shadows
   -------------------------------------------------------------------------- */
.container,
.container-fluid,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 1280px;
  padding-left: 24px;
  padding-right: 24px;
}

.card,
.btn,
.dropdown-menu,
.modal-content,
.offcanvas,
.nav-pills .nav-link {
  border-radius: 0 !important;
  box-shadow: none !important;
}

a {
  color: var(--wl-navy-700);
  text-decoration: none;
  transition: color var(--wl-transition-fast);
}

a:hover {
  color: var(--wl-blue-600);
}

/* --------------------------------------------------------------------------
   05. BUTTONS (Flat, 0 radius, high contrast, keyboard accessible)
   -------------------------------------------------------------------------- */
.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--wl-font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--wl-transition-fast),
    color var(--wl-transition-fast), border-color var(--wl-transition-fast);
  white-space: nowrap;
}

/* Primary CTA: Safety Yellow with Navy text */
.wl-btn--primary {
  background-color: var(--wl-safety);
  color: var(--wl-navy-900) !important;
  border-color: var(--wl-safety);
}
.wl-btn--primary:hover,
.wl-btn--primary:focus-visible {
  background-color: var(--wl-navy-900);
  color: var(--wl-white) !important;
  border-color: var(--wl-navy-900);
}

/* Dark Button: Navy 700 with White text */
.wl-btn--dark {
  background-color: var(--wl-navy-700);
  color: var(--wl-white) !important;
  border-color: var(--wl-navy-700);
}
.wl-btn--dark:hover,
.wl-btn--dark:focus-visible {
  background-color: var(--wl-navy-900);
  color: var(--wl-white) !important;
  border-color: var(--wl-navy-900);
}

/* Line / Outline Button on Light Background */
.wl-btn--line {
  background-color: transparent;
  color: var(--wl-navy-700) !important;
  border-color: var(--wl-navy-700);
}
.wl-btn--line:hover,
.wl-btn--line:focus-visible {
  background-color: var(--wl-navy-700);
  color: var(--wl-white) !important;
  border-color: var(--wl-navy-700);
}

/* Line / Outline Button on Dark Background */
.wl-btn--line-light {
  background-color: transparent;
  color: var(--wl-white) !important;
  border-color: rgba(255, 255, 255, 0.4);
}
.wl-btn--line-light:hover,
.wl-btn--line-light:focus-visible {
  background-color: var(--wl-white);
  color: var(--wl-navy-900) !important;
  border-color: var(--wl-white);
}

/* Text Link (Underline offset, no arrow symbol) */
.wl-link {
  color: var(--wl-navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.wl-link:hover {
  color: var(--wl-blue-600);
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   06. FORM FIELDS (52px high, 1px border, 2px radius, accessible)
   -------------------------------------------------------------------------- */
.wl-form-group {
  margin-bottom: var(--wl-space-3);
  text-align: left;
}

.wl-form-label {
  display: block;
  font-family: var(--wl-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wl-navy-900);
  margin-bottom: 6px;
  text-transform: none;
}

.wl-form-control,
.wl-form-select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 12px 16px;
  font-family: var(--wl-font-body);
  font-size: 1rem;
  color: var(--wl-ink);
  background-color: var(--wl-white);
  border: 1px solid var(--wl-line);
  border-radius: 2px;
  box-shadow: none !important;
  transition: border-color var(--wl-transition-fast);
}

textarea.wl-form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.wl-form-control:focus,
.wl-form-select:focus {
  outline: 3px solid var(--wl-blue-600);
  outline-offset: 2px;
  border-color: var(--wl-blue-600);
}

.wl-form-error {
  display: none;
  font-size: 0.875rem;
  color: var(--wl-error);
  margin-top: 6px;
  font-weight: 500;
}

.was-validated .wl-form-control:invalid ~ .wl-form-error,
.wl-form-control.is-invalid ~ .wl-form-error {
  display: block;
}

.was-validated .wl-form-control:invalid,
.wl-form-control.is-invalid {
  border-color: var(--wl-error);
}

/* --------------------------------------------------------------------------
   07. RULE LIST COMPONENT (Structured, thin borders, non-card layout)
   -------------------------------------------------------------------------- */
.wl-rule-list {
  border-top: 1px solid var(--wl-line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wl-rule-item {
  border-bottom: 1px solid var(--wl-line);
  padding: var(--wl-space-3) 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--wl-space-3);
  align-items: baseline;
}

@media (max-width: 767.98px) {
  .wl-rule-item {
    grid-template-columns: 1fr;
    gap: var(--wl-space-1);
    padding: var(--wl-space-2) 0;
  }
}

.wl-rule-title {
  font-family: var(--wl-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wl-navy-900);
  margin: 0;
}

.wl-rule-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wl-slate);
  margin: 0;
}

/* Dark rule list variant */
.wl-rule-list--dark {
  border-top: 1px solid var(--wl-line-dark);
}
.wl-rule-list--dark .wl-rule-item {
  border-bottom: 1px solid var(--wl-line-dark);
}
.wl-rule-list--dark .wl-rule-title {
  color: var(--wl-white);
}
.wl-rule-list--dark .wl-rule-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   08. PHOTO FRAME COMPONENT (Flat offset backing, zero blur/shadow)
   -------------------------------------------------------------------------- */
.wl-photo-frame {
  position: relative;
  display: block;
}

.wl-photo-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  background-color: var(--wl-sky-100);
  z-index: 0;
}

.wl-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--wl-line);
}

/* Dark section photo backing */
.wl-photo-frame--dark::before {
  background-color: var(--wl-navy-700);
}
.wl-photo-frame--dark img {
  border-color: var(--wl-line-dark);
}

/* Product white-background photo panel */
.wl-product-panel {
  background-color: var(--wl-sky-100);
  border: 1px solid var(--wl-line);
  padding: var(--wl-space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.wl-product-panel img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   09. PAGE BANNER COMPONENT (Inner Pages)
   -------------------------------------------------------------------------- */
.wl-page-banner {
  background-color: var(--wl-navy-900);
  color: var(--wl-white);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 64px);
  border-bottom: 1px solid var(--wl-line-dark);
}

.wl-breadcrumb {
  font-size: 0.875rem;
  color: var(--wl-blue-500);
  margin-bottom: var(--wl-space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.wl-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.wl-breadcrumb a:hover {
  color: var(--wl-white);
}

.wl-page-banner h1 {
  color: var(--wl-white);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. LAYOUT & SECTION SPACING UTILITIES
   -------------------------------------------------------------------------- */
.wl-section {
  padding-top: var(--wl-section-py);
  padding-bottom: var(--wl-section-py);
  border-bottom: 1px solid var(--wl-line);
}

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

.wl-section--sky-50 {
  background-color: var(--wl-sky-50);
}

.wl-section--navy-700 {
  background-color: var(--wl-navy-700);
  color: var(--wl-white);
  border-bottom: 1px solid var(--wl-line-dark);
}
.wl-section--navy-700 h2,
.wl-section--navy-700 h3 {
  color: var(--wl-white);
}
.wl-section--navy-700 p {
  color: rgba(255, 255, 255, 0.85);
}

.wl-section--navy-900 {
  background-color: var(--wl-navy-900);
  color: var(--wl-white);
  border-bottom: 1px solid var(--wl-line-dark);
}
.wl-section--navy-900 h2,
.wl-section--navy-900 h3 {
  color: var(--wl-white);
}
.wl-section--navy-900 p {
  color: rgba(255, 255, 255, 0.8);
}

.wl-section-header {
  max-width: 720px;
  margin-bottom: var(--wl-space-6);
}

.wl-section-header p {
  color: var(--wl-slate);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
/* Focus styles */
:focus-visible {
  outline: 3px solid var(--wl-blue-600) !important;
  outline-offset: 3px !important;
}

/* Skip to content link */
.wl-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background-color: var(--wl-safety);
  color: var(--wl-navy-900);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0;
  transition: top 150ms ease-in-out;
}
.wl-skip-link:focus {
  top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   12. PRELOADER (One-time orchestrated flourish, solid flat colours)
   -------------------------------------------------------------------------- */
.wl-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: var(--wl-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  animation: wlPreloaderFailsafe 0.4s ease 1.6s forwards;
}

@keyframes wlPreloaderFailsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.wl-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wl-preloader__logo-box {
  background-color: var(--wl-white);
  padding: 16px;
  border: 1px solid var(--wl-line-dark);
  margin-bottom: 24px;
}

.wl-preloader__bar {
  width: 160px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.wl-preloader__progress {
  width: 0%;
  height: 100%;
  background-color: var(--wl-safety);
}

/* --------------------------------------------------------------------------
   13. TOPBAR & MAIN HEADER
   -------------------------------------------------------------------------- */
.wl-topbar {
  background-color: var(--wl-navy-900);
  color: rgba(255, 255, 255, 0.85);
  height: 36px;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--wl-line-dark);
  display: flex;
  align-items: center;
}

.wl-topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--wl-transition-fast);
}

.wl-topbar a:hover {
  color: var(--wl-safety);
}

.wl-header {
  background-color: var(--wl-white);
  height: 106px;
  border-bottom: 1px solid var(--wl-line);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: height 200ms ease;
  display: flex;
  align-items: center;
}

.wl-header--scrolled {
  height: 95px;
}

.wl-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wl-brand__logo {
  height: 100px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: height 200ms ease;
  display: block;
}

.wl-header--scrolled .wl-brand__logo {
  height: 75px;
}

@media (max-width: 991.98px) {
  .wl-header {
    height: 60px;
  }
  .wl-header--scrolled {
    height: 54px;
  }
  .wl-brand__logo {
    height: 38px;
    max-width: 140px;
  }
  .wl-header--scrolled .wl-brand__logo {
    height: 34px;
    max-width: 120px;
  }
}

.wl-nav {
  margin: 0;
  padding: 0;
}

.wl-nav__link {
  font-family: var(--wl-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wl-navy-700);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color var(--wl-transition-fast);
}

.wl-nav__link:hover {
  color: var(--wl-navy-900);
}

.wl-nav__link--active {
  color: var(--wl-navy-900);
}

.wl-nav__link--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--wl-safety);
}

/* Plain two-line CSS hamburger menu */
.wl-menu-toggle {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
}

.wl-menu-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--wl-navy-900);
  transition: transform var(--wl-transition-fast),
    background-color var(--wl-transition-fast);
}

/* --------------------------------------------------------------------------
   14. MOBILE OFFCANVAS DRAWER
   -------------------------------------------------------------------------- */
.wl-offcanvas {
  background-color: var(--wl-navy-900) !important;
  color: var(--wl-white) !important;
  width: 320px !important;
  border-left: 1px solid var(--wl-line-dark) !important;
}

.wl-mobile-nav__link {
  font-family: var(--wl-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wl-white);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--wl-line-dark);
  transition: color var(--wl-transition-fast),
    padding-left var(--wl-transition-fast);
}

.wl-mobile-nav__link:hover {
  color: var(--wl-safety);
}

.wl-mobile-nav__link--active {
  color: var(--wl-safety);
  border-left: 4px solid var(--wl-safety);
  padding-left: 12px;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.wl-footer {
  background-color: var(--wl-navy-900);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--wl-line-dark);
}

.wl-footer__heading {
  font-family: var(--wl-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wl-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--wl-space-3);
}

.wl-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-footer__list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--wl-transition-fast);
}

.wl-footer__list a:hover {
  color: var(--wl-safety);
  text-decoration: underline;
}

.wl-footer__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.wl-footer__badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--wl-line-dark);
  font-size: 0.8125rem;
  color: var(--wl-safety);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. MOBILE FLOATING CALL / WHATSAPP BAR (Under 768px)
   -------------------------------------------------------------------------- */
.wl-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1020;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--wl-line-dark);
}

.wl-mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wl-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
}

.wl-mobile-bar__btn--call {
  background-color: var(--wl-navy-900);
  color: var(--wl-white) !important;
  border-right: 1px solid var(--wl-line-dark);
}

.wl-mobile-bar__btn--wa {
  background-color: var(--wl-safety);
  color: var(--wl-navy-900) !important;
}
