/* =====================================================
   J&L Pest Solutions – Modern Professional Stylesheet
   ===================================================== */

:root {
  --navy: #0a2540;
  --navy-mid: #143a5c;
  --navy-light: #1e4a75;
  --blue: #1e6bb8;
  --blue-hover: #155a9c;
  --cream: #f5f7fa;
  --off-white: #fafbfc;
  --text: #1c2b33;
  --text-muted: #5a6a72;
  --border: #e0e5eb;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

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

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* Header & footer hug the edges more */
.container-edge,
.footer-container {
  width: min(1400px, 96%);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-header p {
  margin-bottom: 0;
}

.bg-cream { background: var(--cream); }
.bg-navy-alt { background: var(--navy); color: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 122, 44, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #111;
  text-decoration: none;
}

/* Header logo – retina asset at ~half natural size */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .logo-img {
    height: 56px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  height: 760px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Light natural look – minimal overlay so image stays visible */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,37,64,0.65) 0%, rgba(10,37,64,0.35) 55%, rgba(10,37,64,0.15) 100%);
  z-index: 0;
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content .lead {
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #7eb8f0;
  font-family: "Montserrat", sans-serif;
}

.stat span {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #fff;
}

/* Slider controls */
.slider-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.15);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,37,64,0.55);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}

.slider-arrow:hover {
  background: rgba(10,37,64,0.85);
}

.slider-arrow.prev { left: 1.25rem; }
.slider-arrow.next { right: 1.25rem; }

@media (max-width: 768px) {
  .hero-slider { height: 520px; }
  .slider-arrow { display: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.trust-item i {
  color: var(--navy-mid);
  font-size: 1.25rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  color: var(--navy);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Species / Services grid ---------- */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.3rem;
}

.species-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.species-item:hover {
  border-color: var(--navy-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.species-item .species-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #e8f0ec;
}

.species-item .species-label {
  padding: 0.85rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.species-item i {
  font-size: 1.75rem;
  color: var(--navy-mid);
  margin: 1.25rem 0 0.5rem;
  display: block;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  transform: translateX(-50%);
}

.step h3 {
  margin-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin-left: 1.5rem;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
  overflow: hidden;
}

.footer-bg-logo {
  position: absolute;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: url("../images/bullseye-logo-transparentcropped.png") center/contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
}

.footer-brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

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


.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Page hero (About / Contact) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}

/* ---------- About page ---------- */
.about-story-hero {
  position: relative;
  min-height: 760px;
  background: linear-gradient(rgba(10,37,64,0.55), rgba(10,37,64,0.60)),
              url("../images/countryside-about.jpg") center 40%/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 4.5rem 0;
}

.about-story-hero .container {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.about-story-hero h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.about-story-hero p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-story-hero .lead {
  color: rgba(255,255,255,0.95);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  background: linear-gradient(145deg, #d4e5dc, #b8d4c8);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.team-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  font-family: "Montserrat", sans-serif;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-info-card h3 {
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.info-row i {
  width: 40px;
  height: 40px;
  background: #eef3f9;
  color: var(--navy-mid);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-row strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.info-row p,
.info-row a {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.info-row a:hover {
  color: var(--navy-mid);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(30, 107, 184, 0.15);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #e8f0fa;
  color: #0a2540;
  border: 1px solid #b8d0e8;
}

.alert-error {
  background: #fce8e8;
  color: #8b2e2e;
  border: 1px solid #f0b4b4;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
.slider-nav {
  display: none;
}
/* ---------- Photo risk cards (Why Control Matters) ---------- */
.card-photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-photo-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.card-photo-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.card-photo-body h3 {
  margin-bottom: 0.5rem;
}

.card-photo-body p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Live form validation states */
.form-group input.is-valid,
.form-group textarea.is-valid,
.form-group select.is-valid {
  border-color: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.15);
  background: #f6fbf8;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
  background: #fff8f7;
}

.field-hint {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.field-hint.error { color: #d92d20; }
.field-hint.success { color: #22a06b; }

#formFeedback {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}

#formFeedback.success {
  display: block !important;
  background: #e6f4ea;
  color: #1e5c38;
  border: 1px solid #b7dfc4;
}

#formFeedback.error {
  display: block !important;
  background: #fce8e8;
  color: #8b2e2e;
  border: 1px solid #f0b4b4;
}

#formFeedback ul {
  margin: 0.4rem 0 0 1.1rem;
  padding: 0;
}

#formFeedback li {
  margin-bottom: 0.2rem;
}


/* 4 risk cards on wider screens */
.risk-cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Team photo with avatar fallback */
.team-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
}

.team-avatar-wrap .team-avatar {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  background: #e8eef5;
}
