/* ==========================================================================
   Water Benders — assets/css/style.css
   Sections:
   1. Design tokens      6. Layout & sections
   2. Base               7. Services / steps / panels
   3. 3D canvas          8. Portfolio cards
   4. Navigation         9. Form
   5. Buttons           10. Footer & accessibility
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* colors */
  --abyss: #04070d;
  --navy: #0b1730;
  --charcoal: #141a24;
  --teal: #00d2c8;
  --brass: #b89a62;
  --ink: #f2f6fb;                       /* main text (brighter for contrast) */
  --soft: #e1e8f2;                      /* lead / intro paragraphs */
  --mute: #b8c4d6;                      /* secondary text */
  --line: rgba(184, 154, 98, 0.32);

  /* dark halo behind text so it stays readable over the bright fountain */
  --text-shadow: 0 1px 3px rgba(4, 7, 13, 0.9), 0 2px 24px rgba(4, 7, 13, 0.85);

  /* section glass: lower alpha / blur = more of the fountain shows through */
  --band-bg: rgba(4, 7, 13, 0.4);
  --band-blur: 2px;

  /* fonts */
  --display: 'Marcellus', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
}


/* ==========================================================================
   2. Base
   ========================================================================== */
html {
  background: radial-gradient(120% 90% at 70% 10%, var(--navy), var(--abyss) 60%) fixed;
  scroll-behavior: smooth;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
  text-shadow: var(--text-shadow);
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

p { text-shadow: var(--text-shadow); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: #7ff3ec; }

option { background: var(--navy); color: var(--ink); }

.text-mute { color: var(--mute) !important; }

/* No text selection, except contact details (email, phone, address) and form fields */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

a[href^="mailto:"],
a[href^="tel:"],
address,
.selectable,
input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img {
  -webkit-user-drag: none;
}


/* ==========================================================================
   3. 3D canvas (fixed behind the whole page)
   ========================================================================== */
#fountain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


/* ==========================================================================
   4. Navigation (translucent + blurred header)
   ========================================================================== */
.wb-nav {
  padding: 1rem 0;
  background: rgba(4, 7, 13, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(184, 154, 98, 0.18);
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
}

/* added by main.js after the page scrolls */
.wb-nav.scrolled {
  background: rgba(4, 7, 13, 0.65);
  padding: 0.55rem 0;
  border-color: var(--line);
}

.brand-name {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}

.wb-nav .nav-link {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
}

.wb-nav .nav-link:hover,
.wb-nav .nav-link.active {
  color: var(--teal);
}

/* mobile menu */
@media (max-width: 991px) {
  .wb-nav .navbar-collapse {
    background: rgba(4, 7, 13, 0.75);
    padding: 1rem;
    margin-top: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
  }
}

@media (max-width: 400px) {
  .brand-name { font-size: 1.1rem; }
}


/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn-wb {
  background: var(--teal);
  color: #021513;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
}

.btn-wb:hover {
  background: #5ef0e8;
  color: #021513;
}

.btn-ghost {
  background: rgba(4, 7, 13, 0.45);     /* dark fill keeps the label readable */
  color: #fff;
  border: 1px solid var(--brass);
  border-radius: 999px;
  font-weight: 500;
  padding: 0.7rem 1.6rem;
}

.btn-ghost:hover,
.btn-ghost.active {
  background: var(--brass);
  color: #120e05;
  border-color: var(--brass);
}


/* ==========================================================================
   6. Layout & sections
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.hero-copy {
  position: relative;
  isolation: isolate;                   /* keeps the dark halo below the text */
  max-width: 34rem;
}

/* soft dark halo behind the hero text */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -4rem -5rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(4, 7, 13, 0.78), rgba(4, 7, 13, 0));
  pointer-events: none;
}

.hero h1 { color: #fff; }

.hero .lead {
  color: var(--soft);
  margin: 1.4rem 0 2rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.hint {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: var(--soft);
}

.page-hero { padding: 10rem 0 3rem; }

.page-hero p {
  max-width: 38rem;
  color: var(--soft);
  font-size: 1.1rem;
}

.section { padding: 6rem 0; }

/* dark frosted band so text stays readable over the 3D scene */
.glass-band {
  background: var(--band-bg);
  -webkit-backdrop-filter: blur(var(--band-blur));
  backdrop-filter: blur(var(--band-blur));
}


/* ==========================================================================
   7. Services, steps, panels
   ========================================================================== */
.service {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.service p {
  margin: 0.4rem 0 0;
  max-width: 36rem;
  color: var(--mute);
}

.step {
  height: 100%;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.step b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brass);
}

.step p {
  margin: 0.3rem 0 0;
  color: var(--mute);
}

.panel {
  background: rgba(11, 23, 48, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem;
}


/* ==========================================================================
   8. Portfolio cards
   ========================================================================== */
.work {
  height: 100%;
  background: rgba(11, 23, 48, 0.55);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.work-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0b1730, #0c3a44 60%, #00d2c8 170%);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* placeholder gradients (hidden once you add a real <img>) */
[data-cat]:nth-child(3n+2) .work-thumb {
  background: linear-gradient(160deg, #141a24, #0b1730 55%, #b89a62 210%);
}

[data-cat]:nth-child(3n) .work-thumb {
  background: linear-gradient(200deg, #04070d, #12304a 60%, #7ff3ec 200%);
}

.work-body { padding: 1.2rem 1.4rem 1.5rem; }

.work-body p {
  margin: 0.3rem 0 0;
  color: var(--mute);
  font-size: 0.92rem;
}


/* ==========================================================================
   9. Form
   ========================================================================== */
.form-control,
.form-select {
  background: rgba(4, 7, 13, 0.65);
  color: var(--ink);
  border: 1px solid rgba(147, 161, 184, 0.4);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  background: rgba(4, 7, 13, 0.85);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(0, 210, 200, 0.18);
}

.form-label {
  color: var(--mute);
  font-size: 0.9rem;
}


/* ==========================================================================
   10. Footer & accessibility
   ========================================================================== */
.wb-footer {
  background: rgba(4, 7, 13, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.wb-footer a { color: var(--ink); }
.wb-footer a:hover { color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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