/* ============================================
   MY MOON PEST CONTROL — style.css
   Mobile-first, performance-optimized
   ============================================ */

/* ── CSS Variables ── */
:root {
  --accent: #1a7a4a;
  --accent-dark: #135c38;
  --accent-light: #e8f5ee;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #888;
  --bg: #ffffff;
  --bg-soft: #f8faf9;
  --bg-dark: #0f2218;
  --border: #e0e8e4;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 70px; /* space for sticky CTA */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Sticky CTA (mobile bottom bar) ── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  height: 56px;
}
.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
  transition: opacity 0.15s;
}
.sticky-btn:active { opacity: 0.85; }
.sticky-call {
  background: #fff;
  color: var(--accent);
  border-right: 1px solid var(--border);
}
.sticky-book {
  background: var(--accent);
  color: #fff;
}

/* ── Header ── */
.site-header {
  background: var(--bg-dark);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { font-size: 22px; }
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-left: -4px;
  align-self: flex-end;
  padding-bottom: 2px;
}
.logo-sm .logo-text { font-size: 16px; color: var(--text); }
.logo-sm .logo-sub { color: var(--text-muted); }
.header-call {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ── Section Base ── */
.section {
  padding: 52px 0;
}
.section h2 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 36px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #0f2218 0%, #1a4a30 100%);
  padding: 36px 0 48px;
  color: #fff;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #a8e6c0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(168,230,192,0.3);
}
.hero h1 {
  font-size: clamp(26px, 6.5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 480px;
}
.hero-bullets {
  margin-bottom: 24px;
}
.hero-bullets li {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-row {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-item strong {
  font-size: 18px;
  font-weight: 800;
  color: #a8e6c0;
}
.trust-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Lead Form ── */
.hero-form-wrap { order: -1; } /* form first on mobile */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.form-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.form-title strong { color: var(--accent); }
.form-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.field-group {
  margin-bottom: 14px;
}
.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.field-group input,
.field-group select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s;
}
.field-group select {
  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='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-group input:focus,
.field-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.12);
}
.field-group input.error,
.field-group select.error {
  border-color: #e53935;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
  gap: 6px;
}
.btn-primary:active { transform: scale(0.98); background: var(--accent-dark); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-full { width: 100%; font-size: 17px; padding: 16px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.btn-secondary:hover { background: var(--accent-light); }
.form-privacy {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
}

/* Form Success State */
.form-success {
  text-align: center;
  padding: 24px 0 8px;
}
.success-icon { font-size: 40px; margin-bottom: 12px; }
.form-success h3 { font-size: 20px; margin-bottom: 8px; color: var(--accent); }
.form-success p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ── Why Section ── */
.why-section { background: var(--bg-soft); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--border);
}
.why-icon { font-size: 28px; margin-bottom: 10px; }
.why-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── Pest Grid ── */
.pest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pest-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 14px;
  border: 1px solid var(--border);
}
.pest-emoji { font-size: 30px; margin-bottom: 10px; }
.pest-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pest-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── Services ── */
.services-section { background: var(--bg-dark); color: #fff; }
.services-section h2 { color: #fff; }
.services-section .section-sub { color: rgba(255,255,255,0.7); }
.services-grid {
  display: grid;
  gap: 16px;
}
.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.service-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: rgba(26,122,74,0.2);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 14px;
}
.service-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-points li {
  font-size: 13px;
  color: #a8e6c0;
  padding-left: 16px;
  position: relative;
}
.service-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Benefits ── */
.benefits-section { background: var(--bg-soft); }
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.benefit-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  border: 1px solid var(--border);
  align-items: flex-start;
}
.benefit-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.benefit-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.benefit-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Trust / Reviews ── */
.reviews-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.review-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.stars {
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}
.review-card footer { font-size: 13px; color: var(--text-muted); }
.review-card footer strong { color: var(--text); font-style: normal; margin-right: 4px; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.trust-badge {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(26,122,74,0.2);
}

/* ── FAQ ── */
.faq-section { background: var(--bg-soft); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 18px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  gap: 12px;
  line-height: 1.4;
}
.faq-q[aria-expanded="true"] { color: var(--accent); }
.faq-icon {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 18px 18px; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── Final CTA ── */
.final-cta-section { background: var(--accent); }
.final-cta-box { text-align: center; padding: 8px 0; }
.final-cta-box h2 {
  color: #fff;
  font-size: clamp(22px, 5vw, 34px);
  margin-bottom: 14px;
}
.final-cta-box p {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.cta-buttons .btn-primary {
  background: #fff;
  color: var(--accent);
  font-size: 17px;
  padding: 16px 32px;
  width: 100%;
  max-width: 340px;
}
.cta-buttons .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  width: 100%;
  max-width: 340px;
}
.cta-buttons .btn-secondary:hover { background: rgba(255,255,255,0.1); }
.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ── Footer ── */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding: 44px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 280px; }
.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 7px; }
.footer-links li { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: #a8e6c0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.8; }

/* ── TABLET & UP ── */
@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .pest-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* ── DESKTOP ── */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }

  .hero { padding: 60px 0 72px; }
  .hero-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .hero-copy { flex: 1; }
  .hero-form-wrap { flex: 0 0 380px; order: 0; }
  .hero h1 { font-size: 42px; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-buttons { flex-direction: row; justify-content: center; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary { width: auto; }

  .section { padding: 72px 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ── Focus styles for accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* Visibility fixes for RyBy branding */
.logo-icon {
  color: #ffffff !important;
}

footer .logo-text,
footer .logo-icon {
  color: #ffffff !important;
}
