/* ============================================
   Pump Division - Global Styles
   Mobile-first | Dark navy theme
   ============================================ */

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

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273548;
  --accent: #1e3a8a;
  --accent-light: #3b82f6;
  --accent-bright: #60a5fa;
  --cta: #2563eb;
  --cta-hover: #1d4ed8;
  --white: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --success: #22c55e;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for sticky call bar */
}

a { color: var(--accent-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  background: linear-gradient(135deg, #0c1220 0%, #162040 100%);
  border-bottom: 1px solid rgba(59,130,246,.15);
  position: sticky; top: 0; z-index: 100;
}

.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 5%;
}

.logo { font-size: 1.35rem; font-weight: 800; color: var(--white); letter-spacing: -.5px; }
.logo span { color: var(--accent-bright); }

.header-phone {
  display: none; /* shown on larger screens */
  font-size: 1.1rem; font-weight: 700; color: var(--accent-bright);
}
.header-phone a { color: var(--accent-bright); }
.header-phone a:hover { color: var(--white); }

.nav-toggle {
  background: none; border: none; color: var(--white); font-size: 1.5rem;
  cursor: pointer; padding: .25rem;
}

.main-nav {
  display: none; /* toggled via JS */
  background: var(--bg-card);
  padding: .5rem 0;
}
.main-nav.open { display: block; }

.main-nav ul { list-style: none; }
.main-nav li a {
  display: block; padding: .85rem 5%; color: var(--gray-light);
  font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .2s, color .2s;
}
.main-nav li a:hover, .main-nav li a.active {
  background: rgba(37,99,235,.1); color: var(--white);
}
.main-nav .nav-cta a {
  background: var(--cta); color: var(--white); text-align: center;
  margin: .5rem 5%; border-radius: 8px; font-weight: 700;
}
.main-nav .nav-cta a:hover { background: var(--cta-hover); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7em; }
.dropdown-menu {
  display: none; list-style: none; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  padding: .5rem 0; min-width: 240px; z-index: 200;
}
.dropdown-menu li a {
  padding: .6rem 1.25rem !important; font-size: .9rem !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
  white-space: nowrap;
}
.dropdown-menu li:last-child a { border-bottom: none !important; }

/* Mobile dropdown */
.nav-dropdown.open > .dropdown-menu { display: block; }

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .header-phone { display: block; }
  .header-top { padding: .75rem 5%; }

  .main-nav {
    display: block !important; background: transparent; padding: 0;
    border-top: 1px solid rgba(255,255,255,.05);
  }
  .main-nav > ul {
    display: flex; justify-content: center; gap: 0;
    max-width: var(--max-w); margin: 0 auto;
  }
  .main-nav li a {
    padding: .75rem 1.25rem; border-bottom: none; font-size: .95rem;
  }
  .main-nav .nav-cta a {
    margin: .35rem 0 .35rem 1rem; padding: .55rem 1.25rem;
  }
  .dropdown-menu {
    position: absolute; top: 100%; left: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }
  .nav-dropdown:hover > .dropdown-menu { display: block; }
}

/* FAQ accordion */
.faq-toggle { display: none; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-toggle:checked + .faq-question + .faq-answer { max-height: 500px; }
.faq-question { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-bright); transition: transform .3s; }
.faq-toggle:checked + .faq-question::after { content: '−'; }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  padding: 3rem 0 3.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,.15) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero .subtitle { color: var(--gray-light); font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .phone-big {
  font-size: 2.2rem; font-weight: 800; color: var(--accent-bright);
  display: block; margin-bottom: 1.25rem;
}
.hero .phone-big a { color: var(--accent-bright); }
.hero .phone-big a:hover { color: var(--white); }

.btn {
  display: inline-block; padding: .9rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1.05rem; transition: all .2s;
  border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--cta); color: var(--white); }
.btn-primary:hover { background: var(--cta-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,99,235,.4); }
.btn-secondary { background: transparent; color: var(--accent-bright); border: 2px solid var(--accent-bright); }
.btn-secondary:hover { background: var(--accent-bright); color: var(--bg-dark); }

.hero-buttons { display: flex; flex-direction: column; gap: .75rem; align-items: center; }

@media (min-width: 768px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero .phone-big { font-size: 2.8rem; }
  .hero-buttons { flex-direction: row; justify-content: center; }
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badges {
  background: var(--bg-card); padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.badges-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  text-align: center;
}
.badge-item { padding: 1rem .5rem; }
.badge-icon { font-size: 2rem; margin-bottom: .5rem; }
.badge-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.badge-item p { font-size: .8rem; color: var(--gray); }

@media (min-width: 768px) {
  .badges-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 3rem 0; }
.section-dark { background: var(--bg-dark); }
.section-card { background: var(--bg-card); }

.section-title {
  font-size: 1.75rem; font-weight: 800; text-align: center;
  margin-bottom: .75rem;
}
.section-subtitle {
  text-align: center; color: var(--gray); max-width: 600px;
  margin: 0 auto 2rem;
}

/* Cards */
.cards-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-light); }
.card-icon { font-size: 2.25rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: var(--gray); font-size: .95rem; }
.card .card-link {
  display: inline-block; margin-top: .75rem; font-weight: 600;
  color: var(--accent-bright); font-size: .9rem;
}
.card .card-link:hover { color: var(--white); }

@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* Testimonial */
.testimonial {
  background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  max-width: 700px; margin: 0 auto; position: relative;
}
.testimonial::before {
  content: '"'; font-size: 5rem; color: rgba(255,255,255,.15);
  position: absolute; top: -.25rem; left: 1rem; font-family: Georgia, serif;
}
.testimonial blockquote {
  font-size: 1.1rem; font-style: italic; line-height: 1.7;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.testimonial .stars { color: #fbbf24; font-size: 1.25rem; margin-bottom: .75rem; }
.testimonial cite { color: var(--gray-light); font-size: .9rem; font-style: normal; }

/* Service Areas */
.areas-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem;
}
.areas-grid a {
  display: block; padding: .6rem .75rem; background: var(--bg-card);
  border-radius: 8px; color: var(--gray-light); font-size: .9rem;
  transition: background .2s, color .2s; text-align: center;
}
.areas-grid a:hover { background: var(--accent); color: var(--white); }

@media (min-width: 600px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .areas-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   Content Pages
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #162044 50%, #1e3a8a 100%);
  padding: 2.5rem 0; text-align: center;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.page-hero p { color: var(--gray-light); max-width: 600px; margin: 0 auto; }

@media (min-width: 768px) {
  .page-hero { padding: 3.5rem 0; }
  .page-hero h1 { font-size: 2.5rem; }
}

.content-section { padding: 2.5rem 0; }
.content-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent-bright); }
.content-section h3 { font-size: 1.15rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.content-section p { color: var(--gray-light); margin-bottom: 1rem; max-width: 800px; }
.content-section ul { color: var(--gray-light); padding-left: 1.25rem; margin-bottom: 1rem; }
.content-section li { margin-bottom: .4rem; }

.content-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) {
  .content-grid { grid-template-columns: 2fr 1fr; }
}

/* Sidebar */
.sidebar-box {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid rgba(59,130,246,.15);
}
.sidebar-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--white); }
.sidebar-box p, .sidebar-box li { color: var(--gray-light); font-size: .9rem; }
.sidebar-box .phone-link {
  display: block; font-size: 1.35rem; font-weight: 800;
  color: var(--accent-bright); margin: .75rem 0;
}
.sidebar-box .btn { width: 100%; margin-top: .5rem; display: block; }

/* Image Placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #1e293b, #1e3a8a);
  border-radius: var(--radius); padding: 3rem 1rem;
  text-align: center; color: var(--gray); font-size: .85rem;
  min-height: 200px; display: flex; align-items: center; justify-content: center;
}

/* Pricing Table */
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.pricing-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.pricing-card h3 { margin-bottom: .5rem; }
.pricing-card .price { font-size: 1.5rem; font-weight: 800; color: var(--accent-bright); margin-bottom: .5rem; }
.pricing-card p { color: var(--gray); font-size: .9rem; }

@media (min-width: 600px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   Contact Form
   ============================================ */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: .4rem;
  color: var(--gray-light); font-size: .9rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .85rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); background: var(--bg-card);
  color: var(--white); font-family: var(--font); font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-bright);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Google Map */
.map-container {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.map-container iframe { width: 100%; height: 350px; border: none; }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  padding: 2.5rem 0; text-align: center;
}
.cta-banner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.cta-banner p { color: var(--gray-light); margin-bottom: 1.25rem; }
.cta-banner .phone-big {
  font-size: 2rem; font-weight: 800; display: block; margin-bottom: 1rem;
}
.cta-banner .phone-big a { color: var(--white); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0a0f1e; padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: .75rem;
  color: var(--white);
}
.footer-col p, .footer-col li, .footer-col a {
  color: var(--gray); font-size: .9rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-col .footer-phone {
  font-size: 1.2rem; font-weight: 700; color: var(--accent-bright);
}
.footer-col .footer-phone a { color: var(--accent-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 1.25rem; text-align: center;
  color: var(--gray); font-size: .8rem;
}

@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   Sticky Call Bar (Mobile)
   ============================================ */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: .75rem; text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.sticky-call a {
  color: var(--white); font-size: 1.15rem; font-weight: 800;
  display: block;
}

@media (min-width: 768px) {
  .sticky-call { display: none; }
  body { padding-bottom: 0; }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Process Steps */
.steps { counter-reset: step; }
.step {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1rem; position: relative;
  padding-left: 4rem; border: 1px solid rgba(255,255,255,.06);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.step h3 { font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--gray); font-size: .9rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); padding: 1.25rem 0; }
.faq-item h3 { cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--white); }
.faq-item p { color: var(--gray); margin-top: .5rem; font-size: .9rem; }

/* Info grid for contact page */
.info-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.info-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  border: 1px solid rgba(255,255,255,.06);
}
.info-card .info-icon { font-size: 2rem; margin-bottom: .5rem; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.info-card p { color: var(--gray); font-size: .9rem; }
.info-card a { color: var(--accent-bright); font-weight: 600; }

@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }

/* Hide nav Call Now on desktop (it's in the header already) */
@media (min-width: 768px) {
  .nav-cta { display: none !important; }
}
