/* === Roberts Wildlife — Base Styles ===
   Mirrors Avada source palette + typography exactly.
   Fonts: Lora (h1–h4) + Inter (body / nav / buttons / h5 / h6) */

:root {
  /* Color palette (Avada awb-color1..8) */
  --c-white:      #ffffff;
  --c-off-white:  #f9f9fb;
  --c-gray-50:    #f2f3f5;
  --c-gray-300:   #bcbcbc;
  --c-blue:       #198fd9;
  --c-blue-dark:  #147ab9;
  --c-gray-700:   #434549;
  --c-gray-900:   #212326;
  --c-text:       #141617;

  /* Owner-message gradient */
  --grad-owner:   linear-gradient(180deg, #878787 0%, #adcad8 100%);

  /* Fonts */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', Arial, Helvetica, sans-serif;

  /* Container */
  --max-width:    1248px;
  --gutter:       24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.015em;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--c-gray-300); }

/* In-body content links: distinguishable from body text */
.service-section p a:not(.btn),
.service-section li a:not(.btn),
.intro-section p a:not(.btn),
.legal-page a:not(.btn) {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.service-section p a:not(.btn):hover,
.service-section li a:not(.btn):hover,
.intro-section p a:not(.btn):hover,
.legal-page a:not(.btn):hover {
  color: var(--c-blue-dark);
}

/* Related services block (bottom of service pages) */
.related-services {
  padding: 60px 0;
  background: var(--c-off-white);
  border-top: 1px solid var(--c-gray-50);
}
.related-services h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}
.related-services .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.related-services .card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-50);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.related-services .card:hover {
  transform: translateY(-2px);
  border-color: var(--c-blue);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  color: var(--c-text);
}
.related-services .card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-services .card-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}
.related-services .card-text span {
  font-size: 14px;
  color: var(--c-gray-700);
}
@media (max-width: 768px) {
  .related-services .grid { grid-template-columns: 1fr; }
}

address { font-style: normal; }

/* === Headings === */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--c-text);
}

h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--c-text);
}

h1 { font-size: 60px; margin: 0.67em 0; }
h2 { font-size: 40px; margin: 0 0 1.1em; }
h3 { font-size: 36px; margin: 1em 0; }
h4 { font-size: 24px; margin: 1.33em 0; }
h5 { font-size: 20px; margin: 1.67em 0; }
h6 { font-size: 16px; margin: 2.33em 0; }

p { margin: 0 0 1em; }

/* === Container === */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 60px 0;
}
.section.tight { padding: 30px 0; }

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.015em;
  padding: 13px 29px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background: var(--c-blue);
  color: var(--c-white);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--c-blue-dark);
  color: var(--c-white);
  box-shadow: 0 4px 12px rgba(25, 143, 217, 0.35);
}

/* === Header === */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-50);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: minmax(120px, 16%) 1fr;
  align-items: center;
  gap: 24px;
}

.logo a { display: block; }
.logo img { width: 100%; max-width: 160px; height: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--c-text);
  text-transform: none;
  transition: color 0.25s ease;
}
.main-nav a:hover { color: var(--c-gray-300); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle svg { display: block; width: 28px; height: 28px; fill: var(--c-text); }

/* === Hero (home) === */

.hero {
  position: relative;
  text-align: center;
  padding: 110px 24px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-overlay {
  display: flex;
  justify-content: center;
}
.hero-card {
  background: rgba(249, 249, 251, 0.78);
  padding: 35px;
  max-width: 50%;
  width: 100%;
}
.hero-card h1 {
  font-size: 60px;
  margin: 0 0 0.2em;
  color: var(--c-text);
}
.hero-card h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 0.6em;
  color: var(--c-text);
  letter-spacing: 0;
}
.hero-card .phone-cta {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  margin-top: 0.4em;
  display: inline-block;
}
.hero-card .phone-cta a { color: var(--c-text); }
.hero-card .phone-cta a:hover { color: var(--c-blue); }

@media (max-width: 1024px) {
  .hero-card { max-width: 75%; }
}
@media (max-width: 768px) {
  .hero { padding: 60px 16px; }
  .hero-card { max-width: 100%; padding: 24px; }
  .hero-card h1 { font-size: 38px; }
  .hero-card h2 { font-size: 22px; }
  .hero-card .phone-cta { font-size: 32px; }
}
@media (max-width: 480px) {
  .hero-card h1 { font-size: 32px; }
  .hero-card .phone-cta { font-size: 26px; }
}

/* === Service cards (3-card strip on home) === */

.service-cards-section {
  padding: 60px 0;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--c-white);
  border: 1px solid var(--c-gray-50);
  padding: 24px 24px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 16px;
}
.service-card h2 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--c-text);
}
.service-card .btn { margin-top: auto; }

@media (max-width: 1024px) {
  .service-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* === Why Choose section === */

.why-choose-section {
  padding: 80px 0;
  background: var(--c-off-white);
}
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-list h2 {
  font-size: 36px;
  margin-bottom: 0.6em;
}
.checklist {
  list-style: none;
  font-size: 18px;
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-blue);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 19px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: rotate(45deg);
}
.why-image {
  text-align: center;
}
.why-image .rounded-img {
  border-radius: 50%;
  width: 80%;
  max-width: 420px;
  margin: 0 auto 24px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
  font-size: 18px;
}
.rating .stars {
  color: #f5b301;
  font-size: 22px;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .why-choose-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* === Service Area section === */

.service-area {
  background: var(--c-gray-50);
  padding: 60px 0;
}
.service-area .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.service-area img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* === Two-column intro sections (Wildlife + Pest) === */

.intro-section {
  padding: 60px 0;
}
.intro-section + .intro-section {
  background: var(--c-gray-50);
}

/* === Form section === */

.form-section {
  padding: 80px 0;
  background: var(--c-white);
}
.form-section h2 {
  text-align: center;
}
.fusion-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fusion-form .form-row.full { grid-column: 1 / -1; }

.fusion-form input,
.fusion-form select,
.fusion-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-gray-300);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fusion-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-sans);
}
.fusion-form input:focus,
.fusion-form select:focus,
.fusion-form textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(25, 143, 217, 0.15);
}
.fusion-form .has-error input,
.fusion-form .has-error select,
.fusion-form .has-error textarea {
  border-color: #d94947;
}
.fusion-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}
.form-success,
.form-error {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 500;
  padding: 12px;
  display: none;
}
.form-success { color: #1f7a1f; background: #e8f5e8; }
.form-error   { color: #d94947; background: #fdd; }
.form-success.is-active,
.form-error.is-active { display: block; }

/* === Tabs (More Info accordion) === */

.tabs-section {
  padding: 60px 0;
  background: var(--c-gray-50);
}
.tabs-section > .container > h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}
.tabs {
  background: var(--c-white);
  border: 1px solid var(--c-gray-50);
}
.tab-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-gray-50);
}
.tab-list li {
  flex: 1 1 auto;
}
.tab-list button {
  width: 100%;
  background: var(--c-white);
  border: 0;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-text);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tab-list button:hover {
  background: var(--c-gray-50);
}
.tab-list button[aria-selected="true"] {
  color: var(--c-blue);
  border-bottom-color: var(--c-blue);
}
.tab-panel {
  display: none;
  padding: 32px;
}
.tab-panel.is-active {
  display: block;
}
.tab-panel img {
  float: left;
  max-width: 300px;
  margin: 0 24px 16px 0;
}
.tab-panel h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 1em 0 0.4em;
}
.tab-panel p { line-height: 1.7; }

/* === Owner Message section === */

.owner-message {
  background: var(--grad-owner);
  padding: 80px 0;
}
.owner-message .container {
  max-width: 80%;
}
.owner-message h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--c-gray-50);
}
.owner-message blockquote {
  background: var(--c-white);
  padding: 32px;
  border-left: 4px solid var(--c-blue);
  font-style: italic;
}
.owner-message blockquote p { margin: 0 0 1em; }
.owner-message blockquote p:last-child { margin-bottom: 0; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Subpage hero (service pages) === */

.service-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gray-700);
  color: var(--c-white);
  text-align: center;
  padding: 60px 24px;
  overflow: hidden;
}
.service-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 23, 0.55);
  z-index: 1;
}
.service-hero .hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.service-hero h1 {
  color: var(--c-white);
  font-size: 48px;
  margin: 0;
}

/* === Service page sections === */

.service-section {
  padding: 60px 0;
}
.service-section + .service-section {
  border-top: 1px solid var(--c-gray-50);
}
.service-section.alt {
  background: var(--c-gray-50);
}
.service-section ul,
.service-section ol {
  margin: 0 0 1em 1.4em;
}
.service-section li { margin-bottom: 0.4em; }

.callout {
  background: var(--c-blue);
  color: var(--c-white);
  text-align: center;
  padding: 40px 24px;
}
.callout h4 {
  color: var(--c-white);
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

/* Numbered process steps */
.process-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
}
.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-50);
}
.process-list li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

/* Checklist (Signs You May Have a... / Why Choose reasons / Preventing tips) */
.signs-list,
.reasons-list,
.prevent-list {
  list-style: none;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.signs-list li,
.reasons-list li,
.prevent-list li {
  padding: 10px 0 10px 36px;
  position: relative;
  line-height: 1.6;
}
.signs-list li::before,
.reasons-list li::before,
.prevent-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-blue);
}
.signs-list li::after,
.reasons-list li::after,
.prevent-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 17px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: rotate(45deg);
}

/* City list (service-area grid) */
.city-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin: 16px 0 0;
}
.city-list li {
  padding: 4px 0 4px 20px;
  position: relative;
}
.city-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
}
@media (max-width: 768px) {
  .city-list { grid-template-columns: 1fr; }
}

.dangers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.dangers-grid .card {
  background: var(--c-white);
  padding: 24px;
  border: 1px solid var(--c-gray-50);
}
.dangers-grid .card h2 {
  font-size: 20px;
  margin: 0 0 0.6em;
  color: var(--c-blue);
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* === Contact page === */

.contact-section {
  padding: 80px 0;
}
.contact-section h1 {
  text-align: center;
  margin-bottom: 0.4em;
}
.contact-section .lead {
  text-align: center;
  font-size: 22px;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--c-gray-700);
}
.contact-info {
  text-align: center;
  margin-bottom: 40px;
  font-size: 22px;
}
.contact-info a { color: var(--c-blue); font-weight: 600; }
.contact-info a:hover { color: var(--c-blue-dark); }

/* === Legal pages === */

.legal-page {
  padding: 60px 0;
}
.legal-page .container {
  max-width: 860px;
}
.legal-page h1 {
  text-align: center;
  margin-bottom: 0.6em;
}
.legal-page h2 { font-size: 28px; margin-top: 1.4em; }
.legal-page h3 { font-size: 22px; margin-top: 1.2em; }
.legal-page p { line-height: 1.7; margin-bottom: 1em; }
.legal-page ul { margin: 0 0 1em 1.4em; }
.legal-page li { margin-bottom: 0.4em; }

/* === Footer === */

.site-footer {
  background: var(--c-white);
  border-top: 1px solid var(--c-gray-50);
  padding: 32px 0;
  text-align: center;
}
.site-footer p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--c-gray-700);
}
.site-footer .footer-links {
  list-style: none;
  display: inline-flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer .footer-links a {
  font-size: 14px;
  color: var(--c-gray-700);
}
.site-footer .footer-links a:hover {
  color: var(--c-blue);
}
.site-footer .last-updated {
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-gray-300);
}

/* === Responsive === */

@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 28px; }
  .service-hero h1 { font-size: 38px; }
  .dangers-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 14px var(--gutter);
  }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-top: 1px solid var(--c-gray-50);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid var(--c-gray-50);
  }
  .main-nav a {
    display: block;
    padding: 16px var(--gutter);
  }

  .service-area .grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .fusion-form { grid-template-columns: 1fr; }

  .dangers-grid { grid-template-columns: 1fr; }

  .tab-list { flex-direction: column; }
  .tab-list button { border-bottom: 1px solid var(--c-gray-50); }
  .tab-list button[aria-selected="true"] {
    border-bottom-color: var(--c-blue);
    background: var(--c-gray-50);
  }
  .tab-panel { padding: 20px; }
  .tab-panel img {
    float: none;
    margin: 0 auto 16px;
    max-width: 100%;
  }

  .owner-message .container { max-width: 100%; padding: 0 var(--gutter); }
  .owner-message blockquote { padding: 20px; }

  .service-hero h1 { font-size: 32px; }
  .service-hero { min-height: 280px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .section { padding: 40px 0; }
}
