/* ═══════════════════════════════════════════════════
   style.css — Fractal for Utilities
   Single stylesheet for all 6 pages
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg:            #041c2c;
  --bg2:           #072a3d;
  --bg3:           #030f1a;
  --bg-green:      #052218;
  --accent:        #00c88c;
  --accent-light:  #6ee7c7;
  --text:          #e0f4ef;
  --muted:         #9ecfbe;
  --border:        rgba(0, 200, 140, 0.2);
  --border2:       rgba(0, 200, 140, 0.1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(4, 28, 44, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  font-weight: 700 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent-light) !important;
  box-shadow: 0 0 20px rgba(0, 200, 140, 0.3);
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── MOBILE DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 28, 44, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer a:hover,
.nav-drawer a.active { color: var(--accent); }
.nav-drawer .nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 3px;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 9rem 3rem 5rem;
  background: linear-gradient(160deg, #041c2c 0%, #072a3d 60%, var(--bg-green) 100%);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 400px; height: 400px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(0,200,140,0.08) 0%, transparent 70%);
}
.hero::after {
  width: 250px; height: 250px;
  bottom: -40px; left: 5%;
  background: radial-gradient(circle, rgba(0,200,140,0.05) 0%, transparent 70%);
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 28px rgba(0, 200, 140, 0.35);
  color: var(--bg);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(0, 200, 140, 0.5);
  background: rgba(0, 200, 140, 0.06);
}

/* ── STATS STRIP ── */
.stats-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem 3rem;
  background: rgba(0, 200, 140, 0.05);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

/* ── GENERIC SECTION ── */
.section { padding: 4rem 3rem; }
.section-alt { background: var(--bg2); }
.section-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-body {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.75;
}

/* ── UTILITY TYPE CARDS ── */
.utility-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.utility-card {
  background: rgba(0, 200, 140, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.utility-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 200, 140, 0.08);
}
.utility-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.utility-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.utility-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.utility-card-link {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── ENVIRONMENTAL MISSION STRIP ── */
.mission-strip {
  background: linear-gradient(135deg, #041c2c, var(--bg-green));
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  padding: 2.5rem 3rem;
  text-align: center;
}
.mission-strip p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
.mission-strip strong { color: var(--accent); }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--bg2);
  padding: 4rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border2);
}
.cta-strip h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-strip p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer span { color: var(--muted); font-size: 0.78rem; }
footer .footer-tagline { color: var(--accent); font-weight: 500; }

/* ── WHY PAGE: PROBLEM/ANSWER GRID ── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.problem-item {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 1.5rem;
}
.problem-item .pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.pill-problem { background: rgba(255,80,80,0.12); color: #ff8080; }
.pill-answer  { background: rgba(0,200,140,0.12); color: var(--accent); }
.problem-item p { color: var(--muted); font-size: 0.9rem; }

/* ── WHY PAGE: APPROACH CARDS ── */
.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.approach-card {
  background: rgba(0, 200, 140, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}
.approach-card .approach-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.approach-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.approach-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ── WHY PAGE: ENV RELEVANCE ── */
.env-relevance {
  padding: 4rem 3rem;
  background: var(--bg);
}
.env-relevance h2 { margin-bottom: 1.5rem; }
.env-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
}
.env-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.env-point-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.env-point-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.env-point-body p  { color: var(--muted); font-size: 0.88rem; }

/* ── MARKET BACK LINK ── */
.market-back {
  display: inline-block;
  margin: 6.5rem 3rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}
.market-back:hover { color: var(--accent); }

/* ── SOLUTION PAGE TOC ── */
.market-toc {
  padding: 1.5rem 3rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
}
.market-toc-title {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.market-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}
.market-toc-links a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}
.market-toc-links a:hover { color: var(--accent); }

/* ── ENVIRONMENTAL HIGHLIGHT BAND ── */
.env-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 3rem;
  background: rgba(0, 200, 140, 0.04);
  border-bottom: 1px solid var(--border2);
}
.env-highlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.env-highlight-icon { font-size: 1.4rem; flex-shrink: 0; }
.env-highlight-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.env-highlight-body p { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

/* ── SOLUTION CARDS WRAPPER ── */
.solutions-wrap {
  padding: 2rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── INDIVIDUAL SOLUTION CARD ── */
.solution-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  scroll-margin-top: 80px;
  transition: border-color 0.2s;
}
.solution-card:hover { border-color: var(--border); }
.solution-card.env-card { border-left: 3px solid var(--accent); }

.solution-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.solution-card-header h3 { font-size: 1.05rem; font-weight: 700; }
.solution-card-summary {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

.solution-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.solution-col {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border2);
}
.solution-col:last-child { border-right: none; }

.col-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.col-label.problem  { background: rgba(255,80,80,0.1);  color: #ff8080; }
.col-label.solution { background: rgba(0,150,255,0.1);  color: #60b8ff; }
.col-label.impact   { background: rgba(0,200,140,0.1);  color: var(--accent); }

.solution-col ul {
  list-style: disc;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}
.solution-col ul li { margin-bottom: 0.3rem; }

.solution-why {
  background: rgba(0, 200, 140, 0.04);
  border-top: 1px solid var(--border2);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.solution-why-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.1rem;
}
.solution-why ul {
  list-style: disc;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}
.solution-why ul li { margin-bottom: 0.2rem; }

/* ── CONTACT PAGE ── */
.contact-layout {
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-mission h2 { margin-bottom: 1rem; }
.contact-mission p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }

.expect-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.expect-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.expect-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,200,140,0.12);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.expect-step-body h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.15rem; }
.expect-step-body p  { color: var(--muted); font-size: 0.82rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,140,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }
.form-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.form-note a { color: var(--accent); }

.form-thankyou {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0,200,140,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.form-thankyou h3 { color: var(--accent); margin-bottom: 0.75rem; }
.form-thankyou p  { color: var(--muted); }

/* ── MEDIA QUERIES ── */
@media (max-width: 900px) {
  .utility-cards     { grid-template-columns: 1fr; }
  .approach-cards    { grid-template-columns: 1fr; }
  .problem-grid      { grid-template-columns: 1fr; }
  .env-highlight     { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; gap: 2.5rem; }
  .solution-cols     { grid-template-columns: 1fr; }
  .solution-col      { border-right: none; border-bottom: 1px solid var(--border2); }
  .solution-col:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  nav { padding: 0.9rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero           { padding: 7rem 1.5rem 3.5rem; }
  .stats-strip    { padding: 1.5rem; }
  .section        { padding: 3rem 1.5rem; }
  .market-back    { margin: 5.5rem 1.5rem 0; }
  .market-toc     { padding: 1.25rem 1.5rem; }
  .env-highlight  { padding: 1.5rem; }
  .solutions-wrap { padding: 1.5rem 1.5rem 3rem; }
  .mission-strip  { padding: 2rem 1.5rem; }
  .cta-strip      { padding: 3rem 1.5rem; }
  .contact-layout { padding: 3rem 1.5rem; }
  footer          { padding: 1.25rem 1.5rem; flex-direction: column; text-align: center; }

  .solution-card-header { flex-direction: column; }
  .solution-why   { flex-direction: column; gap: 0.5rem; }
}
