/* ===============================
   MOBILE.CSS - Valley Pest Experts
   Mobile Styles (≤1023px) – Updated January 2026 – More Visually Appealing
================================ */

/* ---------- ROOT VARIABLES (Consistent with Desktop) ---------- */
:root {
  --primary:    #0a5c1e;      /* Deep forest green – main brand */
  --primary-dark: #064012;    /* Darker green for accents */
  --gold:       #f4c430;      /* Warm Welsh gold – highlights & CTAs */
  --gold-dark:  #e0a600;      /* Darker gold hover */
  --red:        #c0392b;      /* Urgent red for emergency CTAs */
  --dark-text:  #2d3e2f;      /* Rich dark green-gray text */
  --light-bg:   #f9fafb;      /* Very soft off-white background */
  --card-bg:    #ffffff;      /* Clean white cards */
  --border:     #d4e4d4;      /* Subtle green-tinted borders */
  --shadow:     rgba(10, 92, 30, 0.12); /* Soft green shadow */
}

/* ---------- RESET / BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--light-bg);
  text-align: center;
}

/* ---------- LINKS ---------- */
a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover,
a:active {
  color: var(--gold);
}

/* ---------- HEADER ---------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 5px solid var(--primary);
  padding: 1.8rem 5%;
  text-align: center;
}

.logo-container img {
  max-width: 140px;
  margin-bottom: 1rem;
}

.site-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.site-header .tagline {
  font-size: 1.05rem;
  color: var(--primary-dark);
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

.header-cta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.header-cta a {
  padding: 1rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  touch-action: manipulation;
}

.header-cta .primary-cta {
  background-color: var(--gold);
  color: var(--primary);
}

.header-cta .primary-cta:active {
  background-color: var(--gold-dark);
  transform: scale(0.98);
}

.header-cta .secondary-cta {
  background-color: var(--primary);
  color: white;
}

.header-cta .secondary-cta:active {
  background-color: var(--primary-dark);
  transform: scale(0.98);
}

/* ---------- SERVICE HUBS ---------- */
.service-hubs {
  background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
  padding: 2.5rem 5%;
}

.service-hubs h2 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  color: var(--primary);
}

.link-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.link-grid a {
  background-color: var(--card-bg);
  padding: 1.3rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
}

.link-grid a:active {
  background-color: var(--gold);
  color: var(--primary);
  transform: scale(0.98);
  box-shadow: 0 2px 8px var(--shadow);
}

/* ---------- ABOUT / TEXT ---------- */
.about {
  padding: 2.5rem 5%;
  background-color: var(--card-bg);
  border-radius: 12px;
  margin: 1.5rem 5%;
  box-shadow: 0 4px 16px var(--shadow);
}

.about h2 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.about h3 {
  font-size: 1.5rem;
  margin: 1.6rem 0 0.8rem;
  color: var(--primary-dark);
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2d3e2f;
}

.about-text ul.service-list {
  margin: 1.2rem 0;
  padding-left: 1.6rem;
  list-style-type: square;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

/* ---------- COVERAGE LIST ---------- */
.coverage-list {
  margin: 1.8rem 5%;
}

.coverage-list ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  font-size: 1.1rem;
  color: var(--primary);
}

.coverage-list li {
  background: #f0f7f0;
  padding: 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.coverage-list li:active {
  background: var(--gold);
  color: var(--primary);
  transform: scale(0.98);
}

/* ---------- SERVICES GALLERY ---------- */
.services-gallery {
  padding: 2.5rem 5%;
  background: linear-gradient(to bottom, #f9fafb, #f0f7f0);
  border-radius: 12px;
  margin: 1.5rem 5%;
}

.services-gallery h2 {
  font-size: 1.9rem;
  margin-bottom: 1.8rem;
  color: var(--primary);
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.projects-grid figure {
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--border);
  background-color: var(--card-bg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px var(--shadow);
}

.projects-grid figure:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px var(--shadow);
}

.projects-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
  transition: transform 0.4s ease;
}

.projects-grid figure:active img {
  transform: scale(1.03);
}

.projects-grid figcaption {
  padding: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  background: #f0f7f0;
}

/* ---------- BADGE SECTION ---------- */
.badge-section {
  padding: 2rem 5%;
  background-color: #f0f7f0;
  text-align: center;
  border-radius: 12px;
  margin: 1.5rem 5%;
}

.badge-section img {
  max-width: 80px;
  margin-bottom: 1rem;
}

.badge-section h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.badge-section p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- MAP SECTION ---------- */
.map-section {
  padding: 2.5rem 5%;
}

.map-section h2 {
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.map-container iframe {
  width: 100%;
  height: 340px;
  border: 4px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--shadow);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: var(--primary);
  color: white;
  padding: 2.5rem 5%;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--gold);
  font-weight: 600;
}

.site-footer .small-print {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 1.5rem;
}

/* ---------- MOBILE FLOAT CALL BUTTON (Enhanced) ---------- */
.mobile-call-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(145deg, var(--red), #a93226);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}

.mobile-call-float:active {
  transform: scale(0.92);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* ---------- IMAGE OPTIMIZATION TIPS (for HTML) ---------- */
/* Use in your HTML for fast loading & Google ranking:
   <img src="/images/filename.webp" alt="descriptive text" loading="lazy" width="100%" height="auto">
   - Convert images to WebP for smaller file size.
   - Keep file size <80KB per image.
   - Use responsive sizes with srcset if needed.
*/
