/* ===========================================================
   Imperial Pest Management — shared stylesheet
   =========================================================== */
:root {
  --color-forest: #1b4332;
  --color-forest-dark: #122b21;
  --color-sage: #2d6a4f;
  --color-sage-light: #eef6f1;
  --color-gold: #c98a34;
  --color-gold-dark: #8a5a17;
  --color-gold-darker: #6e480f;
  --color-badge: #d62828;
  --color-badge-dark: #b31f1f;
  --color-badge-light: #fbe8e8;

  --color-bg: #ffffff;
  --color-cream: #f6f1e4;
  --color-cream-dark: #ece3cc;
  --color-ink: #24302a;
  --color-ink-light: #54605a;
  --color-border: #e4ddc9;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(18, 43, 33, 0.08);
  --shadow-md: 0 10px 28px rgba(18, 43, 33, 0.14);

  --max-width: 1180px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-forest); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--color-ink-light); }
em { color: var(--color-gold); font-style: italic; }

.section { padding: 80px 0; }
.section-alt { background: var(--color-cream); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 14px;
  font-family: var(--font-base);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-gold-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-gold-darker); }

.btn-outline { background: transparent; border-color: #ffffff70; color: #fff; }
.btn-outline:hover { background: #ffffff18; }

.btn-dark { background: var(--color-forest); color: #fff; }
.btn-dark:hover { background: var(--color-forest-dark); }

.btn-line { background: transparent; border-color: var(--color-forest); color: var(--color-forest); }
.btn-line:hover { background: var(--color-forest); color: #fff; }

.btn-ghost { background: var(--color-sage-light); color: var(--color-forest); }
.btn-ghost:hover { background: #dcefe3; }

.btn-red { background: var(--color-badge); color: #fff; box-shadow: var(--shadow-sm); }
.btn-red:hover { background: var(--color-badge-dark); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--color-forest-dark);
  letter-spacing: 0.2px;
}
.logo-sub {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-top: 4px;
}
.logo-badge {
  width: auto;
  height: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.logo-badge svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a { color: var(--color-ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--color-forest); border-color: var(--color-gold-dark); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .phone-link { font-weight: 700; color: var(--color-forest-dark); font-size: 0.9rem; display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-forest-dark); border-radius: 2px; }

/* ---------- Hero (home page, full-bleed photo + pillars) ---------- */
.hero-v2 {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18,43,33,0.74), rgba(18,43,33,0.6) 55%, rgba(18,43,33,0.85)),
    url('../images/hero-home-field.jpg') center 60%/cover no-repeat,
    linear-gradient(120deg, var(--color-forest), var(--color-forest-dark));
  padding: 90px 0 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-v2 .container { position: relative; z-index: 1; width: 100%; }
.hero-v2-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-v2 .eyebrow { color: #ecd9b4; letter-spacing: 3px; }
.hero-v2 h1 { margin-bottom: 18px; }
.hero-v2 p.lead { color: #e7efe9; font-size: 1.08rem; max-width: 560px; margin: 0 auto 36px; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #ffffff22;
  border: 1px solid #ffffff30;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 46px;
}
.pillar-link {
  background: #ffffff10;
  padding: 26px 28px;
  transition: background 0.2s ease;
}
.pillar-link:hover { background: #ffffff1c; }
.pillar-link h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.pillar-link p { color: #d9e6dd; font-size: 0.88rem; margin: 0; }
.hero-v2-spacer { height: 46px; }

/* ---------- Info box (used on About page) ---------- */
.hero-art {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
}
.hero-art ul { display: grid; gap: 14px; }
.hero-art li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); }
.hero-art .ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hero-art h4 { font-size: 0.98rem; margin-bottom: 4px; font-family: var(--font-base); font-weight: 700; }
.hero-art p { font-size: 0.85rem; margin: 0; }

/* ---------- Stats bar (honest facts, not invented numbers) ---------- */
.stats-bar { background: var(--color-cream-dark); padding: 48px 0; }
.stats-bar .grid-4 { text-align: center; align-items: start; }
.stat { padding: 0 22px; }
.stat:not(:first-child) { border-left: 1px solid var(--color-border); }
.stat-ico {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--color-sage-light); color: var(--color-forest);
  display: flex; align-items: center; justify-content: center;
}
.stat strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; color: var(--color-forest); margin-bottom: 8px; line-height: 1; }
.stat strong.stat-word { font-size: 1.55rem; letter-spacing: 0.5px; }
.stat span { display: block; max-width: 190px; margin: 0 auto; font-size: 0.82rem; color: var(--color-ink-light); line-height: 1.5; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .card-body { padding: 24px; }

.card .photo {
  aspect-ratio: 4/3;
  position: relative;
  background-size: cover;
  background-position: center;
}
.card .ico {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--color-forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: absolute; left: 16px; bottom: -20px;
  box-shadow: var(--shadow-sm);
}
.card.agri .ico { background: var(--color-sage); }
.card h3 { margin: 28px 0 8px; padding: 0 24px; }
.card p.desc { font-size: 0.92rem; padding: 0 24px 24px; margin: 0; }
.card .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0 24px 20px; }
.card .tag-list span { font-size: 0.74rem; background: var(--color-sage-light); padding: 4px 10px; border-radius: var(--radius-pill); color: var(--color-forest); }

/* plain (non-photo) card used on services page */
.card.plain { padding: 26px; scroll-margin-top: 110px; }
.card.plain:target { box-shadow: 0 0 0 3px var(--color-gold-dark); }
.card.plain .ico { position: static; margin-bottom: 16px; }
.card.plain h3 { padding: 0; margin: 0 0 8px; }
.card.plain p.desc { padding: 0; margin-bottom: 14px; }
.card.plain .tag-list { padding: 0; }

/* ---------- Pillar detail sections (alternating photo/text) ---------- */
.pillar-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 60px 0;
}
.pillar-detail.reverse .pillar-photo { order: 2; }
.pillar-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.pillar-text .eyebrow { color: var(--color-gold-dark); }
.pillar-text h2 { margin-bottom: 10px; }
.pillar-text p.lead { margin-bottom: 20px; }
.pillar-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 26px; }
.pillar-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--color-ink); }
.pillar-list li::before { content: "•"; color: var(--color-gold); font-weight: 700; }

/* ---------- Why us / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius-md); text-align: center; padding: 28px 20px; border: 1px solid var(--color-border); }
.step .num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--color-gold-dark); margin-bottom: 10px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-forest-dark), var(--color-forest));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 46px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; color: #fff; }
.cta-banner p { color: #d9e6dd; margin-bottom: 24px; }
.cta-banner .hero-actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Quote / inspection request form ---------- */
.quote-section { background: var(--color-forest); color: #fff; border-radius: var(--radius-md); padding: 54px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
.quote-photo {
  border-radius: var(--radius-md);
  background-size: cover; background-position: center;
  min-height: 280px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
}
.quote-section .eyebrow { color: #ecd9b4; }
.quote-section h2 { color: #fff; margin-bottom: 12px; }
.quote-section p.lead { color: #d9e6dd; margin-bottom: 20px; }
.quote-contact { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.quote-contact a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #cfdcd4; padding: 56px 0 24px; border-top: 3px solid var(--color-badge); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; font-family: var(--font-serif); }
.footer-grid p, .footer-grid a { color: #fff; font-size: 0.88rem; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-family: var(--font-serif); margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #ffffff20; padding-top: 20px; text-align: center; font-size: 0.82rem; color: #8ca396; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--color-forest-dark);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-header .eyebrow { color: #ecd9b4; }
.page-header p { color: #cfdcd4; margin-top: 10px; }

/* ---------- Tabs (services page) ---------- */
.tabs { display: flex; gap: 14px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius-pill); border: 2px solid var(--color-border);
  background: #fff; font-weight: 700; font-size: 0.88rem; cursor: pointer; color: var(--color-ink-light);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tab-ico { flex-shrink: 0; }
.tab-btn:hover { border-color: var(--color-forest); color: var(--color-forest); transform: translateY(-1px); }
.tab-btn[data-tab="pest"]:hover { border-color: var(--color-badge); color: var(--color-badge); }
.tab-btn.active { background: var(--color-forest); border-color: var(--color-forest); color: #fff; box-shadow: var(--shadow-sm); }
.tab-btn[data-tab="pest"].active { background: var(--color-badge); border-color: var(--color-badge); }
.tab-btn.active:hover { transform: none; color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Gallery ---------- */
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  color: #fff; font-weight: 700; font-size: 0.85rem; text-align: center; padding: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.gallery-item .cap { padding: 14px 16px; font-size: 0.85rem; color: var(--color-ink-light); }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-body { padding: 0 24px 24px; }
.blog-thumb {
  aspect-ratio: 16/9; margin-bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  color: #fff; font-weight: 700; padding: 16px; text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.blog-meta { font-size: 0.76rem; color: var(--color-gold-dark); font-weight: 700; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.blog-meta.pest { color: var(--color-badge); }
.blog-meta.agri { color: var(--color-sage); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 16px; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--color-sage-light); color: var(--color-forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.areas-list span { background: var(--color-cream); padding: 7px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pillar-detail, .pillar-detail.reverse { grid-template-columns: 1fr; }
  .pillar-detail.reverse .pillar-photo { order: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .stats-bar .stat { border-left: none !important; padding: 0 16px; }
  .stats-bar .stat:nth-child(even) { border-left: 1px solid var(--color-border) !important; }
  .stats-bar .stat:nth-child(n+3) { margin-top: 28px; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--color-border); transform: translateY(-130%); transition: transform 0.25s ease; z-index: 99; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-v2 { padding: 56px 0 0; min-height: auto; }
  .cta-banner, .quote-section { padding: 28px; }
  .pillar-list { grid-template-columns: 1fr; }
  .header-cta .btn-sm span.full { display: none; }
  .stats-bar .stat { border-left: none !important; padding: 0; }
  .stats-bar .stat:not(:first-child) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-border); }
}
