/* ============================================================
   Ubend Plumbing — shared stylesheet
   Clean & premium · ocean navy + fresh aqua · big but not busy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* palette */
  --ink: #062330;
  --navy: #0a3a57;
  --navy-deep: #072b41;
  --blue: #1273b8;
  --aqua: #18bdd2;
  --aqua-bright: #2fd3e6;
  --aqua-soft: #d7f1f6;
  --aqua-tint: #eef9fb;
  --mist: #f3f8fa;
  --paper: #ffffff;
  --line: #e1ebef;
  --line-soft: #eef3f5;
  --muted: #5a7280;
  --muted-soft: #8aa0ac;

  /* type */
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;

  /* spacing / shape */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(7, 43, 65, 0.06);
  --shadow: 0 18px 50px -22px rgba(7, 43, 65, 0.30);
  --shadow-lg: 0 40px 90px -40px rgba(7, 43, 65, 0.45);
  --section: clamp(72px, 9vw, 130px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 800;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding-block: var(--section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--aqua);
  border-radius: 2px;
}
.eyebrow.center::after {
  content: "";
  width: 22px; height: 2px;
  background: var(--aqua);
  border-radius: 2px;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  line-height: 1.6;
}

.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(33px, 4.6vw, 52px);
  margin-block: 16px 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 16px 26px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: var(--aqua);
  color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(24, 189, 210, 0.7);
}
.btn-primary:hover { background: var(--aqua-bright); transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(24, 189, 210, 0.85); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--aqua); color: var(--blue); background: var(--aqua-tint); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 19px 32px; font-size: 17px; }

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfe6ee;
  font-size: 14px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
}
.topbar a { color: #cfe6ee; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 22px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-item svg { width: 15px; height: 15px; color: var(--aqua-bright); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .sep { width: 1px; height: 16px; background: rgba(255,255,255,.16); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(7,43,65,.25); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .word {
  font-family: var(--display);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}
.brand .word b { color: var(--aqua); }
.brand .tag {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
  padding: 10px 15px;
  border-radius: 10px;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--aqua-tint); color: var(--blue); }
.nav-links a.active { color: var(--blue); }

/* dropdown */
.has-drop { position: relative; }
.drop-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.drop-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.has-drop:hover .drop-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 15px;
}
.dropdown a span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); font-family: var(--body); letter-spacing: 0; }
.dropdown a:hover { background: var(--aqua-tint); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
}
.nav-phone .ph-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--aqua-tint);
  border-radius: 11px;
  color: var(--blue);
}
.nav-phone .ph-ico svg { width: 18px; height: 18px; }
.nav-phone .ph-num { font-size: 18px; color: var(--navy); line-height: 1.1; white-space: nowrap; }
.nav-phone small { display: block; font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-soft); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 14px 0 22px;
}
.mobile-menu.open { display: block; }
.mobile-menu .container { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 14px; }

/* ---------- generic sections ---------- */
.bg-mist { background: var(--mist); }
.bg-tint { background: var(--aqua-tint); }
.bg-navy { background: var(--navy-deep); color: #cfe2ea; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9fbac6; padding-block: 72px 30px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer a { color: #9fbac6; transition: color .2s; }
.site-footer a:hover { color: var(--aqua-bright); }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.footer-brand .word { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -.04em; color: #fff; }
.footer-brand .word b { color: var(--aqua); }
.footer-brand p { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: #82a0ac; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: 13px; font-size: 15.5px; }
.footer-contact .fc { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 3px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13.5px; color: #6f8b97;
  flex-wrap: wrap;
}

/* ---------- wave divider ---------- */
.wave { display: block; width: 100%; height: auto; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-phone .ph-num { display: none; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 860px) {
  .topbar-left .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .topbar-right .topbar-item:last-child { display: none; }
  .topbar .sep { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .container { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left { gap: 14px; }
}
