/* ==========================================================================
   HYDRACK — brand stylesheet
   All brand tokens live in :root below. Change a value there and it
   updates everywhere on the site.
   ========================================================================== */

:root {
  /* Brand palette (from Hydrack brand sheet) */
  --navy-950: #040c1c;
  --navy-900: #07162D;
  --navy-700: #134375;
  --blue-600: #04609D;
  --blue-500: #0678C5;
  --blue-400: #057BE3;
  --blue-300: #069EEE;
  --sky-300:  #43C4FF;
  --white:    #FFFFFF;

  /* Neutrals */
  --light-bg:   #F4F7FB;
  --light-bg-2: #EAF0F8;
  --card:       #FFFFFF;
  --line:       #D7E1EF;
  --text:       #2B354C;
  --text-soft:  #4A5670;
  --text-faint: #8593AC;

  /* Type */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(19, 67, 117, 0.10);
  --shadow-lg: 0 16px 50px rgba(7, 22, 45, 0.16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type helpers ---------- */
h1, h2, h3 { line-height: 1.2; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-bottom: 0.6em; }
h3 { font-size: 1.12rem; margin-bottom: 0.45em; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 1.1em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--blue-400); flex: none; }
.eyebrow-light { color: var(--sky-300); }
.eyebrow-light::before { background: var(--sky-300); }

.blue { color: var(--blue-400); }
.sky  { color: var(--sky-300); }
.grad {
  background: linear-gradient(90deg, var(--blue-300), var(--sky-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(90deg, var(--blue-400), var(--blue-300));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6, 158, 238, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6, 158, 238, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--sky-300); color: var(--sky-300); }
.btn-full { width: 100%; }

.text-link { color: var(--blue-400); font-weight: 600; }
.text-link:hover { color: var(--blue-300); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  background: rgba(4, 12, 28, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--sky-300); }
.nav-links .nav-cta {
  border: 1.5px solid var(--sky-300);
  color: var(--sky-300);
  padding: 9px 22px;
  border-radius: 9px;
}
.nav-links .nav-cta:hover { background: var(--sky-300); color: var(--navy-900); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% 20%, rgba(19, 67, 117, 0.55), transparent 60%),
    linear-gradient(140deg, var(--navy-950) 0%, var(--navy-900) 55%, #0a2242 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-waves {
  position: absolute;
  inset: 0;
  background: url("../assets/wave-lines.png") no-repeat right -140px top -180px / 900px auto;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 150px;
  padding-bottom: 110px;
  position: relative;
}
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero-sub {
  color: rgba(224, 236, 250, 0.85);
  font-size: 1.08rem;
  max-width: 32em;
  margin-bottom: 2em;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 40% 22px 40% 22px / 34% 22px 34% 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(67, 196, 255, 0.18);
  transform: rotate(0.001deg); /* GPU hint for smooth radius clipping */
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; max-height: 520px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--light-bg); }
.section-light:nth-of-type(even) { background: var(--light-bg-2); }
.section-dark { background: linear-gradient(140deg, var(--navy-950), var(--navy-900) 70%); color: var(--white); }
.section-intro { max-width: 46em; color: var(--text-soft); margin-bottom: 3em; }

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 3em;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.stat-figure { min-height: 58px; display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.stat-big { font-size: 2.1rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.stat-blue { color: var(--blue-400); }
.stat-note { font-size: 0.78rem; color: var(--text-faint); }
.stat-icon { width: 46px; height: 46px; color: var(--blue-400); align-self: center; }
.stat-card p { font-size: 0.95rem; color: var(--text-soft); }
.stat-card strong { color: var(--blue-400); font-weight: 600; }
.stat-source { font-size: 0.72rem; color: var(--text-faint); margin-top: 10px; }

/* ---------- Statement band ---------- */
.section-statement { background: var(--navy-900); color: var(--white); padding: 84px 0; }
.statement-inner { max-width: 880px; }
.statement {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(233, 241, 250, 0.95);
  margin-bottom: 1.2em;
}
.section-statement .text-link { color: var(--sky-300); }

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 3em;
}
.why-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card p { font-size: 0.94rem; color: var(--text-soft); }

.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-circle svg { width: 24px; height: 24px; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.about-text p { color: var(--text-soft); margin-bottom: 1.1em; }
.about-visual {
  border-radius: 24px 40% 24px 40% / 24px 32% 24px 32%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3.2 / 4; }

.drives {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 52px;
  background-image: url("../assets/wave-lines.png");
  background-repeat: no-repeat;
  background-position: right -180px top -220px;
  background-size: 760px auto;
}
.drives-text { font-size: 1.18rem; font-weight: 400; max-width: 44em; color: rgba(230, 240, 250, 0.95); }

/* ---------- Team (kept for future use) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 3em; }
.team-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 30px; text-align: center;
}
.monogram {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--navy-700); color: var(--white);
  font-size: 1.5rem; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.team-cred { color: var(--blue-400); font-size: 0.85rem; margin-bottom: 14px; }
.team-quote { color: var(--text-faint); font-style: italic; font-size: 0.9rem; }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-card p { font-size: 0.92rem; color: var(--text-soft); }
.svc-spec {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    linear-gradient(90deg, rgba(4, 12, 28, 0.92), rgba(7, 22, 45, 0.78)),
    url("../assets/water-splash.jpg") center / cover no-repeat;
  padding: 84px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin: 0; max-width: 18em; }

/* ---------- Contact ---------- */
.section-contact { position: relative; overflow: hidden; }
.contact-waves {
  position: absolute; inset: 0;
  background: url("../assets/wave-lines.png") no-repeat left -260px bottom -320px / 900px auto;
  opacity: 0.35;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.section-contact h2 { color: var(--white); }
.contact-list { list-style: none; margin-top: 2.4em; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; color: rgba(230, 240, 250, 0.9); }
.contact-list a:hover { color: var(--sky-300); }
.contact-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.contact-icon svg { width: 19px; height: 19px; }

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(6px);
}
.contact-form { display: grid; gap: 8px; }
.contact-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-300);
  margin-top: 10px;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(4, 12, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 13px 16px;
  transition: border-color 0.18s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(200, 214, 232, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--sky-300); }
.contact-form button { margin-top: 20px; }
.form-note { font-size: 0.75rem; color: rgba(200, 214, 232, 0.5); text-align: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(210, 224, 240, 0.7); padding: 44px 0; }
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-logo { height: 26px; width: auto; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; }
.footer-links a:hover { color: var(--sky-300); }
.footer-note { font-size: 0.78rem; }
.footer-note a:hover { color: var(--sky-300); }

/* ---------- Why-now cards (illustrated) ---------- */
.why-now-card { padding: 0 0 26px; overflow: hidden; }
.why-illus {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.why-illus img { width: 100%; height: 200px; object-fit: contain; padding: 14px 18px; }
.why-now-title { color: var(--blue-400); font-size: 1.05rem; padding: 0 26px; }
.why-now-card > p { padding: 0 26px; }

.flow-strip {
  margin-top: 2.4em;
  font-weight: 600;
  color: var(--navy-700);
  font-size: 1.02rem;
}
.flow-strip span { color: var(--blue-300); padding: 0 6px; }

/* ---------- About feature rows ---------- */
.feature-rows { list-style: none; margin-top: 1.8em; display: grid; gap: 12px; }
.feature-rows li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.feature-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 10px;
  background: #EAF2FC;
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-rows h3 { font-size: 0.98rem; margin-bottom: 0.15em; }
.feature-rows p { font-size: 0.88rem; color: var(--text-soft); }

.about-visual-wide { align-self: stretch; border-radius: 18px; }
.about-visual-wide img { aspect-ratio: auto; height: 100%; min-height: 380px; }

/* ---------- PG chemistry table ---------- */
.pg-intro { max-width: 62em; color: var(--text-soft); }
.pg-intro p { margin-bottom: 1em; }
.pg-table-wrap {
  margin-top: 2.2em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.pg-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pg-table th {
  background: var(--navy-700);
  color: var(--white);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 22px;
}
.pg-table td {
  padding: 14px 22px;
  font-size: 0.93rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pg-table tbody tr { background: var(--navy-900); color: rgba(228, 238, 250, 0.92); }
.pg-table tbody tr:nth-child(even) { background: #0B2140; }
.pg-table td:first-child { font-weight: 600; color: var(--white); width: 32%; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .stat-card, .why-card, .svc-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { max-width: 460px; }
  .stat-grid, .why-grid, .svc-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .stat-grid, .why-grid, .svc-grid, .team-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 36px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .drives { padding: 36px 28px; }
  .cta-inner { justify-content: center; text-align: center; }
  .pg-table { min-width: 0; }
  .pg-table th, .pg-table td { padding: 12px 14px; font-size: 0.84rem; }
}
