/* ============================================
   GROUNDWATER DIGITAL — Main Stylesheet
   Version 1.0 | March 2026
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary */
  --deep-navy: #0A1628;
  --ocean-blue: #0B3D91;
  --aqua-cyan: #00B4D8;
  --bright-cyan: #00D4FF;
  /* Secondary */
  --teal: #008B8B;
  --slate: #1E293B;
  --cool-gray: #94A3B8;
  --light-gray: #F1F5F9;
  /* Neutral */
  --white: #FFFFFF;
  --near-black: #020617;
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0B3D91, #00B4D8);
  --grad-dark: linear-gradient(180deg, #0A1628, #020617);
  --grad-accent: linear-gradient(135deg, #00B4D8, #00D4FF);
  /* Spacing */
  --section-pad: 6rem 1.5rem;
  --section-pad-sm: 4rem 1.25rem;
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cool-gray);
  background: var(--near-black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bright-cyan); }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { color: var(--white); line-height: 1.2; }
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; font-size: 1.125rem; }
.mono { font-family: 'JetBrains Mono', monospace; }
.text-cyan { color: var(--aqua-cyan); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 180, 216, .25);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 180, 216, .4);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--aqua-cyan);
  border: 2px solid var(--aqua-cyan);
}
.btn-secondary:hover { background: rgba(0, 180, 216, .1); color: var(--bright-cyan); }

/* --- Header / Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 180, 216, .1);
}
.nav-wrapper {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--cool-gray); font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: .4rem; vertical-align: .15em; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + .75rem); left: 50%; transform: translateX(-50%);
  background: var(--slate); border: 1px solid rgba(0,180,216,.15);
  border-radius: var(--radius-sm); padding: .5rem 0;
  min-width: 240px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.dropdown-menu a { display: block; padding: .6rem 1.25rem; color: var(--cool-gray); font-size: .9rem; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(0,180,216,.08); color: var(--white); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: .5rem; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--deep-navy); border-bottom: 1px solid rgba(0,180,216,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(0,180,216,.05); }
  .nav-links a { display: block; padding: 1rem 1.5rem; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; background: rgba(0,0,0,.2); }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  :root { --section-pad: var(--section-pad-sm); }
}

/* --- Hero --- */
.hero {
  padding: 10rem 1.5rem 6rem;
  background: var(--grad-dark);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(0,180,216,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 700px; }
.hero p { max-width: 580px; font-size: 1.25rem; color: var(--cool-gray); margin-bottom: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,180,216,.1); border: 1px solid rgba(0,180,216,.2);
  border-radius: 50px; padding: .4rem 1rem; margin-bottom: 1.5rem;
  font-size: .85rem; color: var(--aqua-cyan); font-weight: 500;
}

/* --- Sections --- */
.section { padding: var(--section-pad); }
.section-dark { background: var(--deep-navy); }
.section-darker { background: var(--near-black); }
.section-slate { background: var(--slate); }
.section-light { background: var(--light-gray); color: #334155; }
.section-light h2, .section-light h3, .section-light h4 { color: var(--deep-navy); }
.section-light p { color: #475569; }
.section-light .card { background: var(--white); border-color: #e2e8f0; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header p { color: var(--cool-gray); }

/* --- Cards --- */
.card {
  background: var(--slate);
  border: 1px solid rgba(0,180,216,.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,180,216,.1); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(0,180,216,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--aqua-cyan);
}
.card-icon i { width: 24px; height: 24px; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Pyramid / Steps --- */
.pyramid { max-width: 600px; margin: 0 auto; }
.pyramid-level {
  padding: 1.25rem 2rem;
  text-align: center;
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.pyramid-level:nth-child(1) { background: rgba(0,180,216,.15); max-width: 50%; margin-left: auto; margin-right: auto; }
.pyramid-level:nth-child(2) { background: rgba(0,180,216,.12); max-width: 65%; margin-left: auto; margin-right: auto; }
.pyramid-level:nth-child(3) { background: rgba(0,180,216,.09); max-width: 80%; margin-left: auto; margin-right: auto; }
.pyramid-level:nth-child(4) { background: rgba(0,180,216,.06); max-width: 100%; }

.steps { counter-reset: step; }
.step {
  display: flex; gap: 1.5rem; margin-bottom: 2rem;
  counter-increment: step;
}
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--grad-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white); font-size: 1.1rem;
}
.step-content h4 { margin-bottom: .25rem; }
.step-content p { margin-bottom: 0; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--ocean-blue), var(--aqua-cyan));
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: .25rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--aqua-cyan); border: 3px solid var(--deep-navy);
  transform: translateX(-6px);
}
.timeline-item h4 { color: var(--aqua-cyan); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }

/* --- Stats --- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; color: var(--aqua-cyan); }
.stat-label { font-size: .9rem; color: var(--cool-gray); margin-top: .25rem; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-pad);
  background: var(--grad-primary);
  text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 2rem; font-size: 1.2rem; }
.cta-section .btn-primary { background: var(--white); color: var(--ocean-blue); }
.cta-section .btn-primary:hover { box-shadow: 0 6px 30px rgba(255,255,255,.3); }

/* --- For-You / Checklist --- */
.checklist { list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(0,180,216,.08);
}
.checklist li::before {
  content: '✓'; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,180,216,.15); color: var(--aqua-cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid rgba(0,180,216,.1); padding: 1.5rem 0; }
.faq-question { color: var(--white); font-weight: 600; font-size: 1.1rem; margin-bottom: .5rem; cursor: pointer; }
.faq-answer { color: var(--cool-gray); font-size: 1rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .9rem; color: var(--cool-gray); margin-bottom: .4rem; font-weight: 500; }
.form-input, .form-textarea {
  width: 100%; padding: .875rem 1rem;
  background: rgba(0,180,216,.05); border: 1px solid rgba(0,180,216,.15);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: inherit; font-size: 1rem;
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--aqua-cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(148,163,184,.5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* --- Footer --- */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(0,180,216,.08);
  padding: 4rem 1.5rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-heading { color: var(--white); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--cool-gray); font-size: .9rem; }
.footer-links a:hover { color: var(--aqua-cyan); }
.footer-bottom {
  border-top: 1px solid rgba(0,180,216,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: rgba(148,163,184,.6);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* --- Service Page Hero --- */
.page-hero {
  padding: 9rem 1.5rem 4rem;
  background: var(--grad-dark);
  position: relative;
}
.page-hero .breadcrumb {
  font-size: .85rem; color: var(--cool-gray); margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--cool-gray); }
.page-hero .breadcrumb a:hover { color: var(--aqua-cyan); }
.page-hero .breadcrumb span { color: var(--aqua-cyan); }
.page-hero h1 { max-width: 700px; }
.page-hero p { max-width: 600px; font-size: 1.2rem; }

/* Badges row */
.badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,180,216,.08); border: 1px solid rgba(0,180,216,.15);
  border-radius: 50px; padding: .35rem .9rem;
  font-size: .8rem; color: var(--aqua-cyan); font-weight: 500;
}

/* --- Two-col layout --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* --- About page --- */
.team-card {
  display: flex; gap: 2rem; align-items: flex-start;
  background: var(--slate); border-radius: var(--radius);
  padding: 2.5rem; border: 1px solid rgba(0,180,216,.1);
}
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--white); flex-shrink: 0;
}
@media (max-width: 768px) { .team-card { flex-direction: column; align-items: center; text-align: center; } }

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }
