/* ===== Avenor — Engineering Water Solutions ===== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --blue: #1f5fa8;
  --blue-light: #3f8fd9;
  --bg-light: #f4f7fa;
  --text: #1c2b3a;
  --gray: #5a6b7b;
  --border: #e1e8ee;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--navy); }
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(11,37,69,0.08);
  border-bottom-color: transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg { width: 34px; height: 34px; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.logo-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 600;
  margin-top: 1px;
}

nav.main-nav ul {
  display: flex;
  gap: 32px;
}
nav.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(120deg, #fff 0%, #fff 46%, var(--navy) 46%, var(--navy-dark) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 420px;
  padding-top: 50px;
  padding-bottom: 50px;
}
.hero-copy h1 {
  font-size: 34px;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}
.hero-copy h1 strong { color: var(--blue); }
.hero-copy p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 26px;
  max-width: 480px;
}
.hero-visual {
  border-radius: var(--radius);
  min-height: 300px;
  background: linear-gradient(160deg, var(--blue-light), var(--navy-dark));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 24px 20px;
  overflow: hidden;
  position: relative;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual .hero-visual-tag {
  position: relative;
  z-index: 2;
  background: rgba(11,31,58,0.6);
  color: var(--blue-light);
  padding: 10px 18px;
  border-radius: 4px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.water-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18,58,107,0.35), rgba(8,26,51,0.55));
  z-index: 1;
}

/* ===== Water drop hero animation ===== */
.water-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.drop {
  animation: dropFall 2.8s cubic-bezier(.5,0,1,.5) infinite;
}
@keyframes dropFall {
  0%   { transform: translateY(-210px); opacity: 1; }
  55%  { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(-210px); opacity: 0; }
}
.ripple {
  fill: none;
  stroke: #dff0ff;
  stroke-width: 2;
  opacity: 0;
  animation: rippleGrow 2.8s ease-out infinite;
}
.ripple1 { animation-delay: 1.54s; }
.ripple2 { animation-delay: 1.74s; }
.ripple3 { animation-delay: 1.94s; }
@keyframes rippleGrow {
  0%   { rx: 6; ry: 2; opacity: 0.9; stroke-width: 2.5; }
  100% { rx: 150; ry: 28; opacity: 0; stroke-width: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .drop, .ripple { animation: none; opacity: 0; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Photo blocks ===== */
.photo-feature {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}
.photo-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 260px;
}
.photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .photo-grid-2 { grid-template-columns: 1fr; }
}

.hero-strip {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: #fff;
  padding: 16px 0;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.hero-strip .container { position: relative; z-index: 1; }
.hero-strip strong { color: var(--blue-light); }

/* ===== Pillars ===== */
.pillars {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.pillar {
  text-align: center;
  padding: 10px 28px;
  position: relative;
}
.pillar:not(:first-child) {
  border-left: 1px solid var(--border);
}
.pillar .icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: #fafbfd;
  box-shadow: 0 10px 24px rgba(11,37,69,0.08), inset 0 0 0 1px rgba(11,37,69,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover .icon {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11,37,69,0.14), inset 0 0 0 1px rgba(11,37,69,0.05);
}
.pillar .icon svg {
  width: 42px;
  height: 42px;
}
.pillar h4 {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
  padding-bottom: 14px;
  margin-bottom: 14px;
  position: relative;
}
.pillar h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.pillar p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-left: 1px solid var(--border); }
  .pillar:nth-child(3), .pillar:nth-child(4) { border-left: none; border-top: 1px solid var(--border); padding-top: 30px; margin-top: 20px; }
  .pillar:nth-child(3) { border-left: none; }
}
@media (max-width: 640px) {
  .hero-copy { display:flex; flex-direction:column; gap:12px; }
  .hero-copy .btn { width:100%; margin-left:0 !important; }
  .hero-copy .btn + .btn { margin-top: 12px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar:not(:first-child) { border-left: none !important; border-top: 1px solid var(--border); padding-top: 30px; margin-top: 20px; }
}

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-header {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-header .eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}
.section-header h2 {
  color: var(--navy);
  font-size: 28px;
  margin-top: 10px;
}
.section-header p {
  color: var(--gray);
  margin-top: 14px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 12px 28px rgba(11,37,69,0.1);
  transform: translateY(-3px);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.card h3 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 10px;
}
.card p { color: var(--gray); font-size: 14.5px; }

/* ===== News / Blog cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: 0 12px 28px rgba(11,37,69,0.1);
  transform: translateY(-3px);
}
.news-card .news-image {
  height: 180px;
  overflow: hidden;
}
.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card .news-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12.5px;
}
.news-meta .news-tag {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.news-meta .news-date { color: var(--gray); }
.news-card h3 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 10px;
}
.news-card p { color: var(--gray); font-size: 14.5px; flex: 1; }
.news-card .news-link {
  margin-top: 16px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.news-card .news-link:hover { color: var(--navy); }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-copy { display:flex; flex-direction:column; gap:12px; }
  .hero-copy .btn { width:100%; margin-left:0 !important; }
  .hero-copy .btn + .btn { margin-top: 12px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* Two-column list card (challenges / solutions) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.list-block h3 {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.list-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.list-item .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 6px;
}
.list-item h5 {
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 4px;
}
.list-item p { color: var(--gray); font-size: 14px; }

/* ===== Stats / impact ===== */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.stats .container { position: relative; z-index: 1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-grid .stat h4 {
  font-size: 14px;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.stats-grid .stat p { font-size: 13px; color: #cfd9e6; }

/* ===== Approach steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.step {
  position: relative;
  padding: 20px;
}
.step .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h4 { color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 13.5px; }

/* ===== Why us ===== */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
}
.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ===== CTA banner ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-banner .container { position: relative; z-index: 1; }

/* ===== Water caustics overlay (dark sections) ===== */
.water-caustics {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.water-caustics::before,
.water-caustics::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.12) 0%, transparent 55%),
    radial-gradient(circle at 72% 62%, rgba(143,197,255,0.16) 0%, transparent 50%),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,0.08) 0%, transparent 45%);
  mix-blend-mode: screen;
  animation: causticsDrift 16s ease-in-out infinite alternate;
}
.water-caustics::after {
  background:
    radial-gradient(circle at 82% 22%, rgba(255,255,255,0.09) 0%, transparent 50%),
    radial-gradient(circle at 28% 68%, rgba(143,197,255,0.12) 0%, transparent 55%);
  animation-duration: 21s;
  animation-direction: alternate-reverse;
}
@keyframes causticsDrift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(3%, -4%) scale(1.08); }
  100% { transform: translate(-4%, 3%) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .water-caustics::before, .water-caustics::after { animation: none; }
}

/* ===== Wave lines overlay (dark sections) ===== */
.wave-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wave-lines svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveDrift 20s linear infinite;
}
@keyframes waveDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-lines svg { animation: none; }
}

.cta-banner h2 { font-size: 26px; margin-bottom: 14px; }
.cta-banner p { color: #cfd9e6; margin-bottom: 28px; }

/* ===== Footer ===== */
footer {
  background: var(--navy-dark);
  color: #cfd9e6;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h5 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid a { font-size: 14px; color: #b9c6d6; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8ea0b5;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item h5 { color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--gray); font-size: 14.5px; }

form.contact-form {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
}
.form-row textarea { min-height: 120px; resize: vertical; }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,31,58,0.3), rgba(8,26,51,0.4));
  z-index: 1;
}

/* ===== Page intro (text under the page-hero video) ===== */
.page-intro {
  background: #fff;
  padding: 46px 0 8px;
}
.page-intro .eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}
.page-intro h1 { font-size: 30px; margin-top: 10px; max-width: 700px; color: var(--navy); }
.page-intro p { color: var(--gray); margin-top: 14px; max-width: 640px; }

.tag-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 20px;
}
.page-intro .tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--navy);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { background: #fff; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 150px; }
  .page-intro h1 { font-size: 26px; }
}

@media (max-width: 640px) {
  .hero-copy { display:flex; flex-direction:column; gap:12px; }
  .hero-copy .btn { width:100%; margin-left:0 !important; }
  .hero-copy .btn + .btn { margin-top: 12px; }
  nav.main-nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 26px; }
  .page-hero { min-height: 110px; }
  .page-intro { padding-top: 32px; }
  .page-intro h1 { font-size: 22px; }
  .hero-visual { min-height: 220px; padding-top: 16px; }
  .hero-visual .hero-visual-tag { font-size: 12px; padding: 8px 12px; }
}
