/* ==========================================================================
   Aquatic Solutions — Design System
   A blueprint/engineering-schematic aesthetic for a water treatment
   plant manufacturer. Deep teal + steel + safety-orange accent.
   ========================================================================== */

:root {
  --ink:        #0B2E3B;
  --ink-soft:   #24444F;
  --steel:      #52656C;
  --steel-soft: #7C8C92;
  --teal:       #0E6B76;
  --teal-dark:  #093F47;
  --teal-pale:  #E4F0EF;
  --accent:     #E2762F;
  --accent-dark:#B85A1E;
  --bg:         #F5F8F8;
  --surface:    #FFFFFF;
  --line:       #D9E3E2;
  --line-strong:#B7C7C6;

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

p { max-width: 62ch; }

.container-narrow { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------- */
/* Utility label — small technical annotation, used sparingly              */
/* ---------------------------------------------------------------------- */
.spec-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.spec-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------------------------------------------------------------------- */
/* Top utility bar                                                         */
/* ---------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #CFE3E0;
  font-size: 0.82rem;
}
.topbar a { color: #CFE3E0; }
.topbar a:hover { color: #fff; }
.topbar .divider { color: var(--steel-soft); margin: 0 0.6rem; }

/* ---------------------------------------------------------------------- */
/* Navbar                                                                   */
/* ---------------------------------------------------------------------- */
.navbar-aq {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.navbar-aq .nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.navbar-aq .navbar-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.navbar-aq .navbar-brand .brand-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}
.navbar-aq .navbar-brand .brand-sub {
  display: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--steel);
  letter-spacing: 0.03em;
  padding-top: 2px;
  border-left: 1px solid var(--line-strong);
  padding-left: 0.7rem;
}
@media (min-width: 1200px) {
  .navbar-aq .navbar-brand .brand-sub { display: block; }
}
.navbar-aq .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.65rem !important;
}
.navbar-aq .nav-link:hover,
.navbar-aq .nav-link.active {
  color: var(--teal);
}
.navbar-aq .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(11,46,59,0.10);
}
.navbar-aq .dropdown-item { font-size: 0.92rem; padding: 0.55rem 1.1rem; }
.navbar-aq .dropdown-item:active { background: var(--teal); }
.btn-nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.btn-nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn-aq-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
}
.btn-aq-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-aq-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
}
.btn-aq-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

.btn-aq-outline-dark {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
}
.btn-aq-outline-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Hero — blueprint grid                                                   */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--teal-dark);
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 88%);
  z-index: 1;
}
.hero .container-narrow { position: relative; z-index: 2; }
.hero-eyebrow {
  color: #9FD8CE;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.hero p.lead-text {
  color: #C9DFDC;
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 2.1rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3.4rem; }

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-dark) 38%, rgba(9,63,71,0.88) 52%, rgba(9,63,71,0.5) 68%, rgba(9,63,71,0.18) 85%, rgba(9,63,71,0.05) 100%);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(9,63,71,0.65) 0%, rgba(9,63,71,0) 25%);
}
@media (max-width: 767px) {
  .hero-photo::before {
    background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-dark) 60%, rgba(9,63,71,0.9) 80%, rgba(9,63,71,0.7) 100%);
  }
  .hero-photo::after {
    background: linear-gradient(0deg, rgba(9,63,71,0.85) 0%, rgba(9,63,71,0.5) 40%, rgba(9,63,71,0.3) 100%);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.6rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1.9rem;
  max-width: 640px;
}
.hero-stats .stat-value {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.8rem;
  color: #9FBDB8;
  margin-top: 0.4rem;
}

/* Small hero for interior pages */
.page-hero {
  position: relative;
  background: var(--teal-dark);
  padding: 3.6rem 0 3rem;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 15% 30%, rgba(0,0,0,0.9), transparent 75%);
}
.page-hero .container-narrow { position: relative; z-index: 2; }
.page-hero .crumb { color: #9FD8CE; font-size: 0.85rem; margin-bottom: 0.8rem; }
.page-hero .crumb a { color: #C9DFDC; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 24ch; margin: 0; }
.page-hero p { color: #C9DFDC; margin-top: 0.9rem; max-width: 56ch; }

/* ---------------------------------------------------------------------- */
/* Facility photo band                                                     */
/* ---------------------------------------------------------------------- */
.facility-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.facility-photo img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.facility-photo-caption {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 420px;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(0deg, rgba(11,46,59,0.92) 0%, rgba(11,46,59,0.78) 60%, rgba(11,46,59,0) 100%);
}
.facility-photo-caption .spec-label { color: #9FD8CE; }
.facility-photo-caption p { color: #E7F1EF; font-size: 0.92rem; margin: 0; max-width: 42ch; }
@media (max-width: 767px) {
  .facility-photo img { height: 240px; }
  .facility-photo-caption { padding: 1.1rem 1.2rem; }
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                 */
/* ---------------------------------------------------------------------- */
.section { padding: 4.6rem 0; }
.section-tight { padding: 3.2rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #C7D6D3; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.section-head p { color: var(--steel); margin-top: 0.7rem; }

/* ---------------------------------------------------------------------- */
/* Spec cards — sharp corners, corner-tab tag, used for capability lists    */
/* ---------------------------------------------------------------------- */
.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.6rem;
  height: 100%;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.spec-card:hover { border-color: var(--teal); }
.spec-card .icon-box {
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.spec-card h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.spec-card p { font-size: 0.92rem; color: var(--steel); margin-bottom: 0; }

/* Scope list — used for "Line of work" — dense technical checklist */
.scope-list { border-top: 1px solid var(--line); }
.scope-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.scope-item .idx {
  font-family: var(--font-head);
  color: var(--steel-soft);
  font-size: 0.82rem;
  width: 2.1rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.scope-item .txt { font-size: 0.98rem; color: var(--ink-soft); }
.scope-item:hover .idx { color: var(--accent); }

/* Industry cards */
.industry-card {
  position: relative;
  background: var(--teal-dark);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
  height: 100%;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.industry-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 30px;
  z-index: -1;
}
.industry-card h3 { color: #fff; font-size: 1.12rem; margin-bottom: 0.6rem; }
.industry-card p { color: #B9D6D1; font-size: 0.9rem; margin-bottom: 1.2rem; }
.industry-card a { color: #fff; font-weight: 600; font-size: 0.88rem; }
.industry-card a::after { content: " →"; }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.stat-strip .cell {
  padding: 1.9rem 1.4rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat-strip .cell:last-child { border-right: none; }
.stat-strip .cell .num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--teal);
  font-weight: 700;
}
.stat-strip .cell .lbl { font-size: 0.84rem; color: var(--steel); margin-top: 0.3rem; }

/* Timeline / steps (real sequence — numbering justified) */
.step-row { display: flex; gap: 1.3rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-row .num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--line-strong);
  width: 3rem;
  flex-shrink: 0;
}
.step-row h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-row p { font-size: 0.92rem; color: var(--steel); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--teal);
  border-radius: var(--radius-md);
  padding: 2.6rem 2.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-band h3 { color: #fff; margin-bottom: 0.35rem; font-size: 1.35rem; }
.cta-band p { color: #D3ECE9; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Cards: blog / product / store                                          */
/* ---------------------------------------------------------------------- */
.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.media-card .media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--teal-pale), #DDEDEC);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  font-size: 2.1rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.media-card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}
.media-card .media.has-photo {
  background: var(--surface);
}
.media-card .body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.media-card .tag { font-size: 0.72rem; color: var(--teal); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.media-card h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.media-card p { font-size: 0.9rem; color: var(--steel); flex: 1; }
.media-card .meta { font-size: 0.8rem; color: var(--steel-soft); margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }

.price-tag { font-family: var(--font-head); color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.price-tag .old { text-decoration: line-through; color: var(--steel-soft); font-weight: 400; font-size: 0.9rem; margin-right: 0.4rem; }

/* Filter pills (store) */
.pill-filter { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pill-filter .btn {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.86rem;
}
.pill-filter .btn.active,
.pill-filter .btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.form-control, .form-select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,107,118,0.12);
}
label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; display: block; }

.contact-info-card {
  background: var(--teal-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card .row-item { display: flex; gap: 0.9rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-info-card .row-item:first-of-type { border-top: none; }
.contact-info-card .row-item .lbl { color: #9FD8CE; font-size: 0.78rem; }
.contact-info-card .row-item .val { color: #fff; font-size: 0.98rem; }
.contact-info-card a { color: #fff; }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; height: 100%; min-height: 260px; }

/* ---------------------------------------------------------------------- */
/* Accordion (FAQ / industries detail)                                     */
/* ---------------------------------------------------------------------- */
.accordion-aq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-md) !important; margin-bottom: 0.8rem; overflow: hidden; }
.accordion-aq .accordion-button { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink); background: var(--surface); }
.accordion-aq .accordion-button:not(.collapsed) { background: var(--teal-pale); color: var(--teal-dark); box-shadow: none; }
.accordion-aq .accordion-button:focus { box-shadow: none; }
.accordion-aq .accordion-button::after { filter: hue-rotate(140deg); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #A9C0BB; padding: 3.6rem 0 0; }
.site-footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: 1.1rem; }
.site-footer a { color: #A9C0BB; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.site-footer .footer-logo { height: 30px; width: auto; filter: brightness(1.15); }
.site-footer .locations { font-size: 0.9rem; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.6rem; padding: 1.3rem 0; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
.social-row { display: flex; gap: 0.7rem; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--teal); border-color: var(--teal); }

/* ---------------------------------------------------------------------- */
/* Cookie banner                                                           */
/* ---------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  max-width: 620px; margin: 0 auto;
  background: var(--ink);
  color: #D6E4E1;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  z-index: 1080;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.hide { transform: translateY(30px); opacity: 0; pointer-events: none; }
.cookie-banner p { margin: 0; font-size: 0.86rem; flex: 1; min-width: 220px; }
.cookie-banner .actions { display: flex; gap: 0.6rem; }
.cookie-banner .btn-decline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: var(--radius-sm); }
.cookie-banner .btn-accept { background: var(--accent); border: none; color: #fff; font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem;
  width: 44px; height: 44px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(11,46,59,0.25);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--teal-dark); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 1.6rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .cell:nth-child(2) { border-right: none; }
  .stat-strip .cell { border-bottom: 1px solid var(--line); }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 767.98px) {
  .hero { padding: 3.2rem 0 3rem; text-align: left; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-stats .stat-value { font-size: 1.4rem; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .contact-info-card { padding: 1.7rem 1.4rem; }
}
