/* =========================================================
   DLO DISTRIBUTORS
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   COLOURS
========================================================= */

:root {
  --navy: #06263f;
  --blue: #0d4f86;
  --green: #8aa04b;
  --earth: #9caf62;
  --light-blue: #eaf4fb;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --text: #1c1c1c;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  font-family: Arial, Helvetica, sans-serif;

  color: var(--text);
  background: var(--white);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  width: 100%;

  position: sticky;
  top: 0;

  z-index: 1000;

  background: var(--navy);
}

.nav-container {
  width: min(1200px, 92%);

  min-height: 72px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =========================================================
   HEADER LOGO
========================================================= */

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  width: 145px;
  max-height: 62px;

  object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.main-nav {
  display: flex;
  align-items: center;

  gap: 30px;
}

.main-nav a {
  color: var(--white);

  font-size: 0.95rem;
  font-weight: 700;

  text-transform: uppercase;

  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--earth);
}


/* =========================================================
   EMAIL US BUTTON
========================================================= */

.email-button {
  min-height: 44px;

  padding: 0 21px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 7px;

  color: var(--white);
  background: var(--green);

  font-size: 0.9rem;
  font-weight: 700;

  line-height: 1;

  text-transform: uppercase;

  white-space: nowrap;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.email-button:hover {
  background: var(--earth);
}

.email-button:active {
  transform: translateY(1px);
}

.email-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}


/* =========================================================
   MOBILE BUTTON HIDDEN ON DESKTOP
========================================================= */

.mobile-menu-button {
  display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 635px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background-image: url("../images/mountain-hero.png");

  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background: rgba(3, 22, 37, 0.45);
}

.hero-content {
  position: relative;

  z-index: 2;

  width: 90%;
  max-width: 800px;

  padding: 40px 0;

  text-align: center;

  color: var(--white);
}

.hero-logo {
  width: 260px;

  max-height: 300px;

  margin: 0 auto 20px;

  object-fit: contain;
}

.hero h1 {
  margin: 0;

  color: var(--white);

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(2.3rem, 5vw, 4rem);

  line-height: 1.1;
}

.green-line {
  width: 48px;
  height: 4px;

  margin: 22px auto;

  background: var(--green);
}

.hero-subtitle {
  margin: 0;

  color: var(--white);

  font-size: 1.25rem;
  font-style: italic;
}


/* =========================================================
   FUN FACT
========================================================= */

.fun-fact-bar {
  width: 100%;

  margin-top: -1px;

  position: relative;

  z-index: 5;

  background: var(--navy);
}

.fun-fact-bar-content {
  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  text-align: center;

  white-space: nowrap;
}

.fun-fact-label {
  color: var(--green);

  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
}

.fun-fact-text {
  color: var(--white);

  font-size: 1.35rem;
  font-style: italic;
}


/* =========================================================
   HYDROVEX
========================================================= */

.hydrovex-section {
  overflow: hidden;

  background: linear-gradient(
    90deg,
    #e8f4fd 0%,
    #edf7fd 50%,
    #d9effc 100%
  );
}

.hydrovex-grid {
  min-height: 430px;

  display: grid;

  grid-template-columns: 1.15fr 1fr;

  gap: 30px;

  align-items: center;
}

.hydrovex-content {
  padding: 50px 0;
}

.hydrovex-logo {
  width: 285px;
}

.blue-line {
  width: 32px;
  height: 3px;

  margin: 14px 0 20px;

  background: var(--blue);
}

.hydrovex-content p {
  margin: 0 0 24px;

  color: var(--navy);

  font-size: 1.05rem;

  line-height: 1.5;
}


/* =========================================================
   HYDROVEX BUTTONS
========================================================= */

.supplier-buttons {
  display: flex;
  align-items: center;

  gap: 16px;
}

.supplier-button {
  min-height: 52px;

  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  color: var(--white);
  background: var(--blue);

  font-size: 0.85rem;
  font-weight: 700;

  text-transform: uppercase;

  white-space: nowrap;

  transition: background 0.2s ease;
}

.supplier-button:hover {
  background: var(--navy);
}

.supplier-button-light {
  background: var(--earth);
}

.supplier-button-light:hover {
  background: var(--green);
}


/* =========================================================
   WATER SPLASH
========================================================= */

.hydrovex-water {
  width: 100%;

  padding: 10px 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hydrovex-water img {
  width: 115%;

  max-width: 850px;

  height: 340px;

  object-fit: contain;
  object-position: center;

  mix-blend-mode: multiply;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
  padding: 55px 0;

  background: var(--white);
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 4px 1.2fr;

  gap: 38px;

  align-items: stretch;
}

.about-image img {
  width: 100%;
  height: 330px;

  object-fit: cover;

  border-radius: 12px;
}

.about-divider {
  width: 4px;

  min-height: 330px;

  background: var(--navy);

  border-radius: 4px;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  margin: 0 0 8px;

  color: var(--green);

  font-weight: 700;

  text-transform: uppercase;
}

.small-line {
  width: 28px;
  height: 3px;

  margin: 10px 0 18px;

  background: var(--green);
}

.about-content p:not(.section-label) {
  color: var(--navy);

  font-size: 1rem;

  line-height: 1.6;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  padding: 45px 0 28px;

  background: var(--light-gray);
}

.contact-grid {
  display: grid;

  grid-template-columns: 0.85fr 1fr 1fr;

  gap: 28px;

  align-items: stretch;
}

.hours-card,
.contact-card {
  padding: 28px;
}

.hours-card {
  color: var(--navy);
}

.contact-card {
  background: var(--white);

  border-radius: 10px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.hours-card h3,
.contact-card h3 {
  margin: 0;

  color: var(--navy);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 1.3rem;
}

.hours-card p,
.contact-card p {
  color: var(--navy);

  line-height: 1.6;
}

.contact-card a {
  color: var(--navy);

  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--blue);
}


/* =========================================================
   CCIB MEMBERSHIP
========================================================= */

.contact-ccib {
  width: 100%;

  padding: 26px 0 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 18px;
}

.contact-ccib img {
  width: 120px;

  max-width: 100%;

  height: auto;

  object-fit: contain;
}

.contact-ccib-text {
  color: var(--navy);

  font-size: 1.15rem;
  font-weight: 700;

  line-height: 1.3;

  white-space: nowrap;
}


/* =========================================================
   CONTACT MODAL
========================================================= */

.contact-modal {
  position: fixed;

  inset: 0;

  z-index: 20000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px 20px;
}

.contact-modal.is-open {
  display: flex;
}


/* =========================================================
   MODAL DARK OVERLAY
========================================================= */

.contact-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(3, 22, 37, 0.78);

  backdrop-filter: blur(3px);
}


/* =========================================================
   MODAL WINDOW
========================================================= */

.contact-modal-window {
  width: min(570px, 100%);

  max-height: calc(100vh - 60px);

  overflow-y: auto;

  position: relative;

  z-index: 2;

  padding: 34px 38px 38px;

  border-radius: 14px;

  background: var(--white);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   MODAL CLOSE BUTTON
========================================================= */

.contact-modal-close {
  width: 42px;
  height: 42px;

  padding: 0;

  position: absolute;

  top: 14px;
  right: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  color: var(--navy);
  background: var(--light-gray);

  font-size: 1.9rem;
  font-weight: 400;

  line-height: 1;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.contact-modal-close:hover {
  color: var(--white);
  background: var(--navy);
}


/* =========================================================
   MODAL LOGO
========================================================= */

.contact-modal-logo {
  width: 150px;

  margin: 0 auto 18px;
}


/* =========================================================
   MODAL HEADING
========================================================= */

.contact-modal-window h2 {
  margin: 0 45px 8px;

  color: var(--navy);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 1.8rem;

  text-align: center;
}

.contact-modal-intro {
  max-width: 430px;

  margin: 0 auto 26px;

  color: #445766;

  font-size: 0.98rem;

  line-height: 1.5;

  text-align: center;
}


/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: var(--navy);

  font-size: 0.95rem;
  font-weight: 700;
}

.optional-text {
  color: #687985;

  font-size: 0.82rem;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;

  padding: 12px 13px;

  border: 1px solid #c9d1d7;
  border-radius: 7px;

  color: var(--navy);
  background: var(--white);

  font-size: 1rem;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input {
  min-height: 48px;
}

.form-group textarea {
  min-height: 145px;

  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);

  box-shadow: 0 0 0 3px rgba(13, 79, 134, 0.12);
}


/* =========================================================
   HONEYPOT SPAM FIELD
========================================================= */

.website-field {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   SEND MESSAGE BUTTON
========================================================= */

.contact-submit-button {
  width: 100%;

  min-height: 52px;

  margin-top: 3px;

  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 8px;

  color: var(--white);
  background: var(--green);

  font-size: 0.95rem;
  font-weight: 700;

  text-transform: uppercase;

  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.contact-submit-button:hover {
  background: var(--earth);
}

.contact-submit-button:disabled {
  opacity: 0.65;

  cursor: not-allowed;
}


/* =========================================================
   CONTACT FORM STATUS
========================================================= */

.contact-form-status {
  display: none;

  margin-top: 16px;

  padding: 12px 14px;

  border-radius: 7px;

  font-size: 0.95rem;

  line-height: 1.45;

  text-align: center;
}

.contact-form-status.success {
  display: block;

  color: #245321;
  background: #e8f5e5;

  border: 1px solid #b6dbb0;
}

.contact-form-status.error {
  display: block;

  color: #7b2020;
  background: #fbeaea;

  border: 1px solid #e5bcbc;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  width: 100%;

  padding: 0;

  color: var(--white);

  background: var(--navy);
}

.footer-inner {
  width: min(1200px, 92%);

  min-height: 70px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  margin: 0;

  color: var(--white);

  font-size: 0.9rem;

  text-align: center;
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 850px) {


  /* =======================================================
     HEADER
  ======================================================= */

  .site-header {
    position: relative;

    z-index: 9999;
  }

  .nav-container {
    position: relative;

    width: 100%;

    min-height: 120px;

    padding: 20px 26px;

    display: flex;

    align-items: center;
    justify-content: flex-end;
  }


  /* HIDE SMALL HEADER LOGO */

  .nav-brand {
    display: none !important;
  }


  /* =======================================================
     HAMBURGER
  ======================================================= */

  .mobile-menu-button {
    width: 54px;
    height: 54px;

    margin-left: auto;
    padding: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    position: relative;

    z-index: 10001;

    border: 0;

    background: transparent;

    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 34px;
    height: 4px;

    display: block;

    background: var(--white);

    border-radius: 5px;

    transition: 0.25s ease;
  }


  /* =======================================================
     MOBILE MENU CLOSED
  ======================================================= */

  .main-nav {
    display: none;
  }


  /* =======================================================
     MOBILE MENU OPEN
  ======================================================= */

  .main-nav.mobile-open {
    width: 100%;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 10000;

    padding: 26px 20px 30px;

    margin: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 18px;

    background: var(--navy);

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
  }

  .main-nav.mobile-open a {
    width: 100%;

    padding: 10px;

    display: block;

    color: var(--white);

    font-size: 1.1rem;
    font-weight: 700;

    text-align: center;

    text-transform: uppercase;

    white-space: nowrap;
  }


  /* =======================================================
     MOBILE MENU ORDER
  ======================================================= */

  .nav-hydrovex {
    order: 1;
  }

  .nav-about {
    order: 2;
  }

  .nav-contact {
    order: 3;
  }

  .email-button {
    order: 4;
  }


  /* =======================================================
     MOBILE EMAIL BUTTON
  ======================================================= */

  .main-nav.mobile-open .email-button {
    width: min(300px, 100%);

    min-height: 50px;

    padding: 0 20px;

    margin-top: 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    color: var(--white);

    background: var(--green);

    font-size: 1.05rem;
  }

  .main-nav.mobile-open .email-button:hover {
    color: var(--white);

    background: var(--earth);
  }


  /* =======================================================
     HAMBURGER TO X
  ======================================================= */

  .mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }


  /* =======================================================
     HERO
  ======================================================= */

  .hero {
    min-height: 540px;

    padding: 30px 0;

    background-position: center bottom;
  }

  .hero-content {
    width: 92%;

    padding: 20px 0;
  }

  .hero-logo {
    width: 180px;

    max-height: 220px;

    margin: 0 auto 24px;
  }

  .hero h1 {
    font-size: 2.4rem;

    line-height: 1.08;
  }

  .green-line {
    margin: 20px auto;
  }

  .hero-subtitle {
    font-size: 1.05rem;

    line-height: 1.4;
  }


  /* =======================================================
     FUN FACT
  ======================================================= */

  .fun-fact-bar-content {
    min-height: 82px;

    padding: 14px 15px;

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    white-space: normal;
  }

  .fun-fact-label,
  .fun-fact-text {
    font-size: 1rem;

    line-height: 1.4;
  }


  /* =======================================================
     HYDROVEX
  ======================================================= */

  .hydrovex-grid {
    min-height: 0;

    grid-template-columns: 1fr;

    gap: 10px;
  }

  .hydrovex-content {
    padding: 40px 0 15px;
  }

  .hydrovex-logo {
    width: 240px;
  }

  .supplier-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .supplier-button {
    width: 100%;
  }

  .hydrovex-water {
    padding: 0 0 20px;
  }

  .hydrovex-water img {
    width: 100%;

    max-width: 100%;

    height: auto;
  }


  /* =======================================================
     ABOUT
  ======================================================= */

  .about-grid {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .about-image img {
    height: 260px;
  }

  .about-divider {
    width: 100%;
    height: 4px;

    min-height: 4px;
  }


  /* =======================================================
     CONTACT
  ======================================================= */

  .contact-section {
    padding: 38px 0 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .hours-card,
  .contact-card {
    padding: 24px;
  }


  /* =======================================================
     CCIB
  ======================================================= */

  .contact-ccib {
    padding: 22px 0 3px;

    gap: 15px;
  }

  .contact-ccib img {
    width: 100px;
  }

  .contact-ccib-text {
    font-size: 1rem;
  }


  /* =======================================================
     CONTACT MODAL MOBILE
  ======================================================= */

  .contact-modal {
    padding: 20px 14px;
  }

  .contact-modal-window {
    width: min(540px, 100%);

    max-height: calc(100vh - 40px);

    padding: 30px 24px 28px;

    border-radius: 12px;
  }

  .contact-modal-logo {
    width: 135px;

    margin-bottom: 16px;
  }

  .contact-modal-window h2 {
    margin-left: 36px;
    margin-right: 36px;

    font-size: 1.6rem;
  }

  .contact-modal-intro {
    margin-bottom: 22px;

    font-size: 0.95rem;
  }

  .contact-modal-close {
    width: 40px;
    height: 40px;

    top: 11px;
    right: 11px;
  }


  /* =======================================================
     FOOTER
  ======================================================= */

  .footer-inner {
    min-height: 65px;

    padding: 12px 0;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 520px) {

  .nav-container {
    min-height: 110px;

    padding: 18px 22px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-logo {
    width: 165px;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .fun-fact-label,
  .fun-fact-text {
    font-size: 0.95rem;
  }

  .hydrovex-logo {
    width: 220px;
  }


  /* CCIB */

  .contact-ccib {
    gap: 12px;

    padding: 20px 0 2px;
  }

  .contact-ccib img {
    width: 85px;
  }

  .contact-ccib-text {
    font-size: 0.92rem;

    white-space: nowrap;
  }


  /* CONTACT MODAL */

  .contact-modal {
    padding: 10px;
  }

  .contact-modal-window {
    max-height: calc(100vh - 20px);

    padding: 27px 18px 24px;
  }

  .contact-modal-logo {
    width: 120px;
  }

  .contact-modal-window h2 {
    margin-left: 32px;
    margin-right: 32px;

    font-size: 1.45rem;
  }

  .contact-modal-intro {
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group input {
    min-height: 46px;
  }

  .form-group textarea {
    min-height: 125px;
  }

  .contact-submit-button {
    min-height: 50px;
  }

}