/*
Theme Name: StimWRx Custom
Theme URI: https://stimwrx.com
Author: StimWRx
Description: Custom theme for StimWRx - Precision Well Stimulation. Diagnose. Prescribe. Revitalize.
Version: 1.0
Text Domain: stimwrx
*/

/* This file provides the BASELINE chrome (colors, fonts, nav, footer,
   hamburger menu) that's shared across the whole site. Each page's own
   template additionally includes its own <style> block with that page's
   specific layout/sections — those page-level rules render after this
   stylesheet in the DOM, so they safely take precedence wherever they
   overlap. This baseline exists so that even a page WITHOUT a dedicated
   template (i.e. one that hasn't been built yet) still shows a properly
   styled, on-brand nav and footer instead of an unstyled bullet list. */

:root {
  --red: #AA1F2E;
  --red-dim: #7a1520;
  --dark: #1a1819;
  --charcoal: #333132;
  --mid: #4a4748;
  --light: #F7F8F9;
  --white: #ffffff;
  --serif: 'Bebas Neue', sans-serif;
  --cond: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(26,24,25,0.97) 0%, rgba(26,24,25,0.0) 100%);
  backdrop-filter: blur(4px);
}
.nav-logo-img { display:flex; align-items:center; text-decoration:none; }
.nav-logo {
  font-family: var(--cond); font-size: 24px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--white);
  text-decoration: none; display: flex; align-items: center; gap: 0;
}
.nav-logo .w { color: var(--red); }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--cond); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,248,249,0.65); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
/* DROPDOWN */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 6px; }
.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(247,248,249,0.45);
  transition: transform 0.2s;
}
.nav-item:hover > a::after { transform: rotate(180deg); border-top-color: var(--white); }
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(26,24,25,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 240px;
  padding: 20px 0 8px;
  margin-top: 0;
  z-index: 200;
}
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 20px;
  background: transparent;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 10px 20px;
  font-family: var(--cond); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247,248,249,0.55); text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--white);
  background: rgba(170,31,46,0.12);
  border-left-color: var(--red);
}
.nav-cta {
  font-family: var(--cond); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--red); color: var(--white) !important;
  padding: 11px 26px; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #c4222f !important; }
.nav-cta::after { display: none !important; }
.nav-hamburger { display: none; }

/* ── FOOTER ── */
footer {
  background: #0d0c0d; padding: 72px 48px 40px;
  border-top: 1px solid rgba(247,248,249,0.06);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(247,248,249,0.06);
}
.footer-brand p {
  font-size: 13px; line-height: 1.72; font-weight: 300;
  color: rgba(247,248,249,0.38); max-width: 280px; margin-top: 14px;
}
.footer-col h4 {
  font-family: var(--cond); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,248,249,0.3); margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 13px; font-weight: 300;
  color: rgba(247,248,249,0.48); text-decoration: none; margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: var(--cond); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,248,249,0.22);
}
.ces-line { display: flex; align-items: center; gap: 8px; }
.ces-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* ── BUTTONS (baseline; pages may restyle) ── */
.btn-primary {
  font-family: var(--cond); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--red); color: var(--white);
  padding: 16px 36px; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #c4222f; }
.btn-ghost, .btn-secondary {
  font-family: var(--cond); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(247,248,249,0.28); color: var(--white);
  background: transparent;
  padding: 16px 36px; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--white); }

/* ── RESPONSIVE GRID UTILITIES ──
   Used in place of inline grid-template-columns so mobile can override
   them. Inline styles can't be beaten by a plain CSS media query. */
.grid-2-stack { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
  .grid-2-stack { grid-template-columns: 1fr; }
}
.grid-3-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
@media (max-width: 900px) {
  .grid-3-stack { grid-template-columns: 1fr 1fr; }
  .grid-4-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3-stack, .grid-4-stack { grid-template-columns: 1fr; }
}


@media (max-width: 768px) {
  nav { padding: 14px 20px; position: relative; flex-wrap: wrap; }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; background: none; border: none;
  }
  .nav-hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--white); transition: all 0.25s;
  }
  nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; }
  nav.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 0; padding: 12px 0 8px;
  }
  nav.nav-open .nav-links li { width: 100%; }
  nav.nav-open .nav-links > li > a {
    padding: 10px 0; width: 100%; justify-content: space-between;
  }
  .nav-dropdown {
    position: static; transform: none; border: none;
    background: rgba(255,255,255,0.04); padding: 0;
    min-width: unset; width: 100%;
  }
  .nav-item:hover .nav-dropdown { display: none; }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 8px 16px; font-size: 11px; }
  .nav-cta { margin: 8px 0 4px; display: inline-block; }
  footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ces-line { justify-content: center; }
}
