/* ============================================
   Guanacaste Pest Control — Shared Stylesheet
   ============================================ */

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

:root {
  --green:       #2d6a4f;
  --green-dark:  #1b4332;
  --green-light: #40916c;
  --green-pale:  #d8f3dc;
  --green-bg:    #f0f7f3;
  --off-white:   #f8f9f7;
  --white:       #ffffff;
  --ink:         #1a2e1f;
  --ink-mid:     #3d5246;
  --ink-light:   #6b7c6e;
  --border:      #dde8e1;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.12);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ---- UTILITY ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,106,79,0.35);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green-bg);
  color: var(--green-dark);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.1rem;
}

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo span { font-size: 1.4rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--green-bg);
  color: var(--green);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--green-bg);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-toggle a {
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  color: var(--ink-light);
  transition: all var(--transition);
}
.lang-toggle a.active, .lang-toggle a:hover {
  background: var(--green);
  color: #fff;
}
.nav-mobile-cta {
  display: none;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: #b7e4c7;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero-phone {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-phone a {
  color: #fff;
  font-weight: 700;
}

/* ---- TRUST STRIP ---- */
.trust-strip {
  background: var(--green-dark);
  color: rgba(255,255,255,0.88);
  padding: 0.85rem 0;
  overflow: hidden;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 1rem;
  white-space: nowrap;
}
.trust-item + .trust-item {
  border-left: 1px solid rgba(255,255,255,0.2);
}
.trust-icon { font-size: 1rem; }

/* ---- SECTION HEADINGS ---- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.section-sub {
  color: var(--ink-light);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.65;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-pale);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  display: block;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ---- SECTIONS ---- */
section { padding: 4.5rem 0; }
section:nth-child(even):not(.hero) { background: var(--white); }

/* ---- SCORPION ALERT BOX ---- */
.alert-box {
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: 2px solid #f9a825;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.alert-box-icon { font-size: 2rem; flex-shrink: 0; }
.alert-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #7a5200;
  margin-bottom: 0.3rem;
}
.alert-box p {
  font-size: 0.9rem;
  color: #7a5200;
  line-height: 1.5;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2.5rem 0;
}
.stat {
  background: var(--white);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.3;
}

/* ---- PROCESS STEPS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}
.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.step p {
  font-size: 0.87rem;
  color: var(--ink-light);
  line-height: 1.5;
}

/* ---- TESTIMONIALS ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial-stars {
  color: #f9a825;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-size: 0.93rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.testimonial-loc {
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.contact-info p {
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.contact-method:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cm-phone .contact-method-icon { background: #e8f5e9; }
.cm-wa .contact-method-icon { background: #e8f8f0; }
.contact-method-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-method-text span {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 0.35rem;
}
form input, form select, form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--green);
}
form textarea { resize: vertical; min-height: 120px; }
form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
form button[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
  color: #fff;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
  background: #1ebe5a;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%  { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
}
.wa-float-label {
  position: fixed;
  bottom: 1.5rem;
  right: 5.5rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 998;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
}
.wa-float:hover ~ .wa-float-label,
.wa-float-label:hover {
  opacity: 1;
  transform: translateX(0);
}

/* ---- AREAS SERVED TAGS ---- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  section { padding: 3rem 0; }

  .nav-links { display: none; }
  .nav-mobile-cta { display: flex; }
  .nav-cta .btn { display: none; }

  .hero { padding: 3rem 0 2.5rem; }

  .trust-item { padding: 0.3rem 0.6rem; font-size: 0.76rem; }
  .trust-item + .trust-item { border-left: none; }
  .trust-strip-inner { gap: 0.25rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
