/* Bullpen Pest Control - Modern Local Pest Site
   Dark/cream baseball aesthetic + clean OBEX-inspired flow */

:root {
  --charcoal: #1a1a1a;
  --dark: #0f0f0f;
  --cream: #f5f0e6;
  --cream-light: #faf7f0;
  --accent: #c9a227; /* subtle gold/brass for baseball feel */
  --accent-hover: #b8921f;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --border: #e5e0d5;
  --success: #2e7d32;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--cream-light);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-light); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.top-bar {
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  text-align: center;
}

.top-bar a { color: var(--cream); font-weight: 500; }
.top-bar a:hover { color: var(--accent); }

/* Header / Nav */
.header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--charcoal);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
  color: var(--cream);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="%23c9a227" opacity="0.15"/></svg>') repeat;
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.1rem;
}

.hero p {
  color: rgba(245,240,230,0.85);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(245,240,230,0.7);
}

.hero-meta strong { color: var(--cream); }

/* Section commons */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-header p {
  font-size: 1.1rem;
}

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.bg-dark h2, .bg-dark h3 { color: var(--cream); }
.bg-dark p { color: rgba(245,240,230,0.8); }

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { flex-grow: 1; font-size: 0.95rem; }
.service-card a {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}
.service-card a:hover { text-decoration: underline; }

/* Trust / Why us */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.trust-item .icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--charcoal);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-card h3 { margin-bottom: 0.25rem; }
.price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0.5rem 0;
}
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-light); }
.price-initial { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.25rem; }

.price-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.price-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.area-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}
.area-link:hover {
  border-color: var(--accent);
  background: var(--cream);
  color: var(--charcoal);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial .author {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.95rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--cream);
}

.blog-card-body { padding: 1.35rem; }
.blog-card .date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.92rem; margin-bottom: 0.75rem; }

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(245,240,230,0.85); max-width: 520px; margin: 0 auto 1.5rem; }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(245,240,230,0.75);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: var(--cream);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 0.45rem; }
.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
.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(201,162,39,0.15);
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 3.5rem 0 4rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; }
}

/* Schema / accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
