/* ============================================================
   HYDRO TIDE — dark "logo-matched" theme
   Palette: near-black #00030C + electric blue + chrome white
   Type: Sora (display) + Inter (body)
   ============================================================ */

:root {
  --bg: #00030C;
  --bg-2: #060C18;
  --foam: #060C18;        /* alias kept so inline var(--foam) still works */
  --surface: #0C1426;
  --surface-2: #111C32;
  --line: #1E2A42;

  --head: #EFF5FF;        /* chrome-white headings */
  --text: #BFCFE6;        /* body text */
  --muted: #8195B0;

  --brand: #1395F8;       /* electric blue (TIDE) */
  --brand-2: #0071DE;     /* deeper blue */
  --brand-deep: #003A8D;  /* wave blue */
  --accent: #38A9FA;      /* bright spray / links */
  --ink: #00030C;         /* true dark where needed */
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, 0.7);
  --glow: 0 10px 30px -8px rgba(19, 149, 248, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 0;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 36px -8px rgba(19,149,248,0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1.5px solid rgba(120, 180, 250, 0.45);
}
.btn-ghost:hover { background: rgba(56,169,250,0.14); text-decoration: none; border-color: var(--accent); }
.btn-dark {            /* secondary on dark = bright white pill */
  background: #fff; color: var(--ink);
}
.btn-dark:hover { transform: translateY(-2px); text-decoration: none; background: #e7f1ff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 3, 12, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 54px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.5rem 0.8rem;
  color: var(--text); font-weight: 500; font-size: 0.96rem; border-radius: 8px;
}
.nav-links a:hover { background: var(--surface); color: var(--head); text-decoration: none; }

.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.16s ease; list-style: none; margin: 0;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { padding: 0.55rem 0.7rem; font-size: 0.92rem; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-phone { font-family: "Sora", sans-serif; font-weight: 700; color: var(--head); white-space: nowrap; }
.nav-phone:hover { color: var(--accent); text-decoration: none; }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--head); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(19,149,248,0.30), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(0,58,141,0.35), transparent 55%),
    linear-gradient(165deg, #00030C 0%, #061122 75%);
  color: #dbe8fb; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.18rem; color: #aec3e0; max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: "Sora", sans-serif; font-size: 1.5rem; color: var(--accent); }
.hero-trust small { color: #9ab2d2; font-size: 0.82rem; }

.hero-card {
  background: rgba(120, 180, 250, 0.06);
  border: 1px solid rgba(120, 180, 250, 0.20);
  border-radius: 18px; padding: 1.6rem; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(120,180,250,0.14); color: #cfe0f5; font-size: 0.97rem; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li svg { flex: none; margin-top: 3px; }

.wave { display: block; width: 100%; height: auto; margin-top: -1px; }
.wave path { fill: var(--bg); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-foam { background: var(--bg-2); }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; border-left: 4px solid var(--brand);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-left-color: var(--accent); }
.card .ico { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; margin-bottom: 1rem; color: var(--brand); }
.card h3 a { color: var(--head); }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.8rem; }
.card .more { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.9rem; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.5rem 0; }
.checklist li svg { flex: none; color: var(--accent); margin-top: 4px; }
.media-block {
  background: linear-gradient(160deg, var(--brand-deep), #00030C);
  border: 1px solid var(--line);
  border-radius: 20px; min-height: 340px; display: grid; place-items: center;
  color: #bcd6f5; text-align: center; padding: 2rem; box-shadow: var(--shadow);
}
.media-block .ph { font-size: 0.85rem; opacity: 0.8; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 0.9rem; box-shadow: var(--glow); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* areas grid */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.area-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem; font-weight: 600; font-family: "Sora", sans-serif; font-size: 0.95rem; color: var(--head); display: flex; align-items: center; gap: 0.5rem; }
.area-chip:hover { border-color: var(--brand); color: var(--accent); text-decoration: none; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.stars { color: #f5b53e; letter-spacing: 2px; margin-bottom: 0.6rem; }
.quote p { font-size: 0.97rem; }
.quote .who { font-family: "Sora", sans-serif; font-weight: 600; color: var(--head); font-size: 0.9rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.7rem; background: var(--surface); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: "Sora", sans-serif; font-weight: 600; color: var(--head); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 420px at 85% 120%, rgba(19,149,248,0.40), transparent 60%),
    linear-gradient(150deg, #061122, #00030C);
  border: 1px solid var(--line);
  color: #fff; border-radius: 22px; padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b6ccec; max-width: 520px; margin-inline: auto; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* breadcrumb */
.crumb { font-size: 0.85rem; color: #93a8c6; padding: 1rem 0 0; }
.crumb a { color: #93a8c6; }

/* page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(700px 420px at 90% -20%, rgba(19,149,248,0.28), transparent 60%),
    linear-gradient(160deg, #00030C, #061122);
  color: #dbe8fb; padding: clamp(2.8rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #aec3e0; max-width: 620px; font-size: 1.1rem; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* contact / form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--head); font-family: "Sora", sans-serif; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: var(--surface-2); color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-card h3 { color: var(--head); }
.info-row { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row svg { color: var(--brand); flex: none; }
.info-row strong { color: var(--head); }

/* ---------- Footer ---------- */
.site-footer { background: #04080F; color: #9fb2cd; padding: 3.2rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer a { color: #9fb2cd; font-size: 0.93rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.foot-brand { margin-bottom: 0.9rem; }
.foot-brand img { height: 96px; width: auto; display: block; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.10); margin-top: 2.4rem; padding-top: 1.4rem; font-size: 0.82rem; color: #7891ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.8rem; gap: 0.2rem; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem; font-size: 1.05rem; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent; }
  .nav-phone { display: none; }
}
@media (max-width: 560px) {
  .cards, .quotes, .steps, .areas, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.1rem; }
  .brand img { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
