/* ============================================
   GROUNDWATER DIGITAL — Main Stylesheet
   Version 3.0 | March 2026 — Industrial Refined
   ============================================ */

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

:root {
  /* Primary */
  --deep-navy: #0A1628;
  --ocean-blue: #0B3D91;
  --aqua-cyan: #0879A1;
  --bright-cyan: #0A6B8A;
  /* Earth tones */
  --warm-sand: #F8F6F1;
  --stone: #E8E4DD;
  /* Secondary */
  --teal: #006D77;
  --slate: #FFFFFF;
  --cool-gray: #4A5568;
  --light-gray: #F7F8FA;
  /* Neutral */
  --white: #FFFFFF;
  --near-black: #111827;
  /* Text */
  --heading-color: #111827;
  --body-color: #4A5568;
  --body-light: #6B7280;
  /* Borders */
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0B3D91 0%, #0879A1 100%);
  --grad-hero: linear-gradient(135deg, #0B3D91 0%, #0E4DA4 40%, #0A6B8A 100%);
  /* Spacing */
  --section-pad: 7rem 1.5rem;
  --section-pad-sm: 4.5rem 1.25rem;
  --container: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--body-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-cyan); text-decoration: none; transition: color .25s; }
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 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--heading-color);
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: 3.75rem; font-weight: 700; margin-bottom: 1.5rem; }
h2 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.75rem; }
h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem;
  letter-spacing: 0;
}
p { margin-bottom: 1rem; font-size: 1.0625rem; }
.mono { font-family: 'DM Mono', 'Courier New', monospace; }
.text-cyan { color: var(--aqua-cyan); }
.text-white { color: var(--heading-color); }
.text-center { text-align: center; }
.label-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--aqua-cyan);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ocean-blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(11, 61, 145, .2);
}
.btn-primary:hover {
  background: #0A3580;
  box-shadow: 0 8px 24px rgba(11, 61, 145, .3);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--ocean-blue);
  border: 1.5px solid var(--ocean-blue);
}
.btn-secondary:hover {
  background: var(--ocean-blue);
  color: var(--white);
  border-color: var(--ocean-blue);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.nav-wrapper {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1.5rem;
}
.nav-logo { position: relative; z-index: 1001; }
.nav-logo img {
  height: 90px; width: auto;
  transition: height .3s ease;
}
.site-header.scrolled .nav-logo img { height: 48px; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--body-color); font-size: .9rem; font-weight: 500;
  letter-spacing: .01em;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ocean-blue); }
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { 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;
  transition: transform .2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .5rem 0;
  min-width: 260px; box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.dropdown-menu a {
  display: block; padding: .65rem 1.5rem;
  color: var(--body-color); font-size: .9rem; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--light-gray); color: var(--ocean-blue); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--heading-color); 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(--white); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border-light); }
  .nav-links a { display: block; padding: 1rem 1.5rem; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; background: var(--light-gray); }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  :root { --section-pad: var(--section-pad-sm); }
}

/* --- Hero --- */
.hero {
  padding: 11rem 1.5rem 7rem;
  background: linear-gradient(to right, rgba(10, 22, 40, .78), rgba(10, 22, 40, .45)),
              url('/assets/images/hero-drilling-rig.jpg') center/cover no-repeat;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; color: var(--white); font-size: 3.5rem; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.hero p { max-width: 560px; font-size: 1.2rem; color: rgba(255,255,255,.88); margin-bottom: 2.5rem; line-height: 1.8; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: .45rem 1.1rem; margin-bottom: 1.75rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .8rem; color: rgba(255,255,255,.92); font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); color: var(--white); }

/* --- Scroll Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.section .section-header,
.section .card,
.section .team-card,
.section .team-lead,
.section .two-col > div,
.section .about-story-grid > div,
.section .stat-grid > div {
  animation: fadeUp .6s ease both;
}
.section .section-header { animation-delay: .05s; }
.section .card:nth-child(1) { animation-delay: .1s; }
.section .card:nth-child(2) { animation-delay: .18s; }
.section .card:nth-child(3) { animation-delay: .26s; }
.section .card:nth-child(4) { animation-delay: .34s; }
.section .card:nth-child(5) { animation-delay: .42s; }
.section .card:nth-child(6) { animation-delay: .5s; }

/* --- Sections --- */
.section { padding: var(--section-pad); }
.section-dark { background: var(--white); }
.section-darker { background: var(--light-gray); }
.section-slate { background: var(--light-gray); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--body-light); font-size: 1.1rem; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.07);
}
.section-darker .card { background: var(--white); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(8,121,161,.08), rgba(11,61,145,.06));
  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-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  letter-spacing: .02em;
}
.pyramid-level:nth-child(1) { background: var(--ocean-blue); max-width: 50%; margin-left: auto; margin-right: auto; }
.pyramid-level:nth-child(2) { background: rgba(11, 61, 145, .72); max-width: 65%; margin-left: auto; margin-right: auto; }
.pyramid-level:nth-child(3) { background: rgba(11, 61, 145, .48); max-width: 80%; margin-left: auto; margin-right: auto; }
.pyramid-level:nth-child(4) { background: rgba(11, 61, 145, .2); max-width: 100%; color: var(--ocean-blue); }

.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(--ocean-blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  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(--white);
  transform: translateX(-6px);
}
.timeline-item h4 { color: var(--aqua-cyan); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }

/* --- Stats --- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-family: 'DM Mono', monospace; font-size: 2.75rem; font-weight: 700; color: var(--ocean-blue); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--body-light); margin-top: .5rem; font-weight: 500; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-pad);
  background: var(--deep-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(8,121,161,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.7); max-width: 580px; margin: 0 auto 2.5rem; font-size: 1.15rem; }
.cta-section .btn-primary { background: var(--white); color: var(--ocean-blue); }
.cta-section .btn-primary:hover { box-shadow: 0 8px 30px rgba(255,255,255,.15); transform: translateY(-2px); }

/* --- For-You / Checklist --- */
.checklist { list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.checklist li::before {
  content: '✓'; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(8, 121, 161, .08); 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 var(--border); padding: 1.5rem 0; }
.faq-question { color: var(--heading-color); font-weight: 600; font-size: 1.1rem; margin-bottom: .5rem; cursor: pointer; }
.faq-answer { color: var(--body-color); font-size: 1rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: .85rem; color: var(--body-color);
  margin-bottom: .4rem; font-weight: 500;
}
.form-input, .form-textarea, select.form-input {
  width: 100%; padding: .875rem 1rem;
  background: var(--light-gray); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--heading-color);
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-input:focus, .form-textarea:focus, select.form-input:focus {
  outline: none; border-color: var(--aqua-cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(8, 121, 161, .08);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: #9CA3AF; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* Form messages */
.form-message {
  margin-top: 1rem; padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500;
}
.form-message-success {
  background: #ECFDF5; border: 1px solid #A7F3D0;
  color: #065F46;
}
.form-message-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #991B1B;
}

/* --- Footer --- */
.site-footer {
  background: var(--deep-navy);
  padding: 5rem 1.5rem 2rem;
  color: rgba(255,255,255,.7);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { max-width: 320px; font-size: .9rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: rgba(255,255,255,.4); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .25s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.3);
}
@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: 10rem 1.5rem 4.5rem;
  background: var(--deep-navy);
  position: relative;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}
.page-hero h1 { max-width: 700px; color: var(--white); }
.page-hero p { max-width: 600px; font-size: 1.15rem; color: rgba(255,255,255,.7); }
.page-hero .breadcrumb {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .8rem; color: rgba(255,255,255,.4); margin-bottom: 1rem;
  letter-spacing: .02em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.7); }

/* 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(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px; padding: .35rem .9rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .75rem; color: rgba(255,255,255,.7); font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase;
}

/* --- 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 --- */
.about-story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-story-grid img {
  border-radius: var(--radius); width: 100%;
}
.story-images { position: relative; }
.story-images .story-back {
  border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
.story-images .story-front {
  position: absolute; bottom: -2rem; right: -1rem;
  width: 55%; border-radius: var(--radius);
  border: 4px solid var(--white); box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-images .story-front { position: static; width: 70%; margin-top: 1rem; }
}

.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.team-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.07); }
.team-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.team-card-body { padding: 1.5rem; }
.team-card-body h4 { margin-bottom: .25rem; }
.team-card-body .team-role { color: var(--aqua-cyan); font-size: .8rem; font-weight: 600; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.team-card-body p { font-size: .95rem; }

.team-lead {
  display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; border: 1px solid var(--border);
}
.team-lead img {
  width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius-lg);
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .team-lead { grid-template-columns: 1fr; text-align: center; }
  .team-lead img { margin: 0 auto; }
}

/* --- 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; }
