/* ASC Pest Control — Sub-page shared styles */

/* Page hero (shorter, gradient only — no background image) */
.page-hero {
  background: radial-gradient(900px 500px at 60% -20%, rgba(244, 84, 30, 0), transparent 55%),
              linear-gradient(180deg, #0b0f1500 0%, var(--bg) 100%);
  padding: clamp(5rem,6rem + 4vw,9rem) 0 clamp(3rem,3rem + 2vw,5rem);
  text-align: center;
}
.page-hero .badge { margin-bottom: 1.2rem; }
.page-hero h1 { font-size: clamp(2rem,1rem + 4.5vw,3.6rem); font-weight: 900; color: #fff; margin-bottom: .9rem; }
.page-hero .hero-lead { color: #d3dae1; font-size: clamp(1rem,.95rem + .4vw,1.2rem); max-width: 52ch; margin: 0 auto 2rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* Image placeholder */
.img-placeholder {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; color: var(--muted); font-size: .85rem; font-weight: 500;
  text-align: center; padding: 2rem;
  min-height: 220px;
}
.img-placeholder span { max-width: 24ch; line-height: 1.4; }

/* Split section: image + copy */
.split { display: grid; gap: clamp(2rem,1rem + 4vw,4rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse > *:first-child { order: 2; }
.split.reverse > *:last-child  { order: 1; }
@media (max-width: 55.9rem) { .split.reverse > * { order: unset; } }

/* Section with icon heading */
.detail-section { padding-block: clamp(3rem,2rem + 4vw,6rem); }
.detail-section:nth-child(even) { background: var(--bg-alt); }
.detail-section h2 { font-size: clamp(1.5rem,1rem + 2.2vw,2.4rem); margin-bottom: .6rem; }
.detail-section .section-lead { margin-bottom: 1.6rem; }

/* Feature list */
.feature-list { display: grid; gap: .75rem; margin: 1.4rem 0; list-style: none; padding: 0; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.feature-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(244,84,30,.14); border: 1px solid rgba(244,84,30,.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff7a45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; margin-top: 1px; }

/* Info cards (3 or 4 up) */
.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,14rem),1fr)); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.info-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card .card-icon { margin-bottom: .9rem; }
.info-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.info-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* Standard badge row */
.standard-badges { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.2rem 0; }
.std-badge { display: inline-flex; align-items: center; gap: .45rem; background: rgba(244,84,30,.1); border: 1px solid rgba(244,84,30,.3); color: var(--orange-bright); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px; }

/* Area cards */
.area-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,16rem),1fr)); }
.area-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: border-color .25s, transform .25s; }
.area-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.area-card h3 { font-size: 1rem; margin-bottom: .3rem; color: var(--fg); }
.area-card p { color: var(--muted); font-size: .88rem; }
.area-card .area-tag { display: inline-block; margin-top: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-bright); }

/* Contact page */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }
.contact-info h2 { font-size: clamp(1.4rem,1rem + 1.8vw,2rem); margin-bottom: .7rem; }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; transition: border-color .2s; }
.contact-method:hover { border-color: var(--orange); }
.contact-method .card-icon { flex: none; }
.contact-method strong { display: block; font-size: .9rem; color: var(--fg); }
.contact-method a, .contact-method span { color: var(--muted); font-size: .9rem; }

/* Form styles */
.pg-form-row { display: grid; gap: 0 1.5rem; }
@media (min-width: 30rem) { .pg-form-row { grid-template-columns: 1fr 1fr; } }
.pg-form .field { margin-bottom: 1.2rem; }
.pg-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.pg-form input, .pg-form textarea, .pg-form select {
  width: 100%; min-width: 0; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; color: var(--fg); font-family: inherit;
  font-size: max(1rem, 16px); transition: border-color .2s; min-height: 48px;
}
.pg-form input:focus, .pg-form textarea:focus, .pg-form select:focus { outline: none; border-color: var(--orange); }
.pg-form textarea { resize: vertical; min-height: 110px; }
.pg-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23aab3bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* CTA band (reuse on sub-pages) */
.page-cta { background: radial-gradient(900px 400px at 50% -10%, rgba(244,84,30,.4), transparent 60%), #0b0f15; text-align: center; padding-block: clamp(3.5rem,2rem + 5vw,6rem); }
.page-cta h2 { font-size: clamp(1.9rem,1rem + 3vw,3rem); color: #fff; margin: .3rem 0 .7rem; }
.page-cta .section-lead { margin: 0 auto 1.8rem; color: #cbd3db; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* Band section */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem,2rem + 3vw,4rem); text-align: center; }
.band h3 { font-size: clamp(1.2rem,.9rem + 1.5vw,1.8rem); margin-bottom: .6rem; }
.band p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.5rem; }

/* Step number cards */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(244,84,30,.15); border: 1px solid rgba(244,84,30,.4); color: var(--orange-bright); font-size: .9rem; font-weight: 800; margin-bottom: .75rem; }

/* FAQ details pattern */
.faq-section { padding-block: clamp(2.5rem,2rem + 3vw,5rem); }
.faq-section:nth-child(even) { background: var(--bg-alt); }
.faq-category { margin-bottom: 2rem; }
.faq-category h3 { font-size: clamp(1.2rem,1rem + 1vw,1.6rem); margin-bottom: 1rem; color: var(--fg); }

/* ── Mobile optimizations ── */
@media (max-width: 480px) {
  /* Form rows stack to single column */
  .pg-form-row { grid-template-columns: 1fr; }
  /* Buttons full-width */
  .pg-form .btn { width: 100%; justify-content: center; }
  /* Contact grid stacks */
  .contact-grid { grid-template-columns: 1fr; }
  /* Hero actions wrap and grow */
  .page-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .page-hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero-actions .btn { justify-content: center; }
  .split { gap: 1.5rem; }
}

/* ── Real images filling former placeholders (added) ── */
.img-placeholder.has-img,
.blog-hero-img-placeholder.has-img,
.post-hero-img-placeholder.has-img,
.blog-card-thumb-placeholder.has-img,
.img-container-inner.has-img { padding: 0; border: 0; overflow: hidden; }
.has-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Page-hero background image + readability overlay (added) ── */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero > .hero-bg { background: var(--ink-950); }
.page-hero > .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.page-hero > .hero-bg::after { content: ""; position: absolute; inset: 0; background: transparent; }
.page-hero > .container { position: relative; z-index: 1; }
/* Soft vignette behind the text only — keeps the photo visible but text crisp */
.page-hero > .container::before {
  content: ""; position: absolute; inset: -2.5rem -1rem; z-index: -1;
  background: radial-gradient(ellipse 78% 80% at 50% 50%,
              rgba(11,15,21,.72) 0%, rgba(11,15,21,.45) 55%, rgba(11,15,21,0) 80%);
  pointer-events: none;
}
.page-hero h1, .page-hero .hero-lead, .page-hero .badge {
  text-shadow: 0 2px 6px rgba(0,0,0,.9), 0 2px 30px rgba(0,0,0,.95);
}

/* ── Floating contact actions (email / call / WhatsApp) (added) ── */
.contact-fab { display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.contact-fab.is-fixed { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 9998; }
.contact-fab a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s, filter .15s; }
.contact-fab a:hover { transform: translateY(-2px); filter: brightness(1.07); }
.contact-fab .fab-email { background: #2b3a4a; }
.contact-fab .fab-call  { background: #F4541E; }
.contact-fab .fab-wa    { background: #25D366; }

/* ── Images fully fill placeholders, no frames/borders (applies whenever a slot has an <img>) ── */
.img-placeholder:has(> img),
.blog-card-thumb-placeholder:has(> img),
.post-hero-img-placeholder:has(> img),
.blog-hero-img-placeholder:has(> img),
.img-container-inner:has(> img) {
  padding: 0 !important; border: 0 !important; gap: 0 !important;
  background: transparent !important; overflow: hidden; box-shadow: none !important;
  min-height: 220px;
}
.img-placeholder > img,
.blog-card-thumb-placeholder > img,
.post-hero-img-placeholder > img,
.blog-hero-img-placeholder > img,
.img-container-inner > img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  display: block !important; border: 0 !important; border-radius: inherit;
}
/* hide the leftover placeholder label/icon once a real image is present */
.img-placeholder:has(> img) > span,
.img-placeholder:has(> img) > svg,
.blog-card-thumb-placeholder:has(> img) > span,
.post-hero-img-placeholder:has(> img) > span,
.blog-hero-img-placeholder:has(> img) > span { display: none !important; }
/* let the image fill the full height of its column in split layouts */
.split .img-placeholder:has(> img) { height: 100%; }

/* ============================================================
   BURGUNDY / LIGHT REBRAND OVERRIDES (sub-pages)
   ============================================================ */
/* Page hero base (when no image) -> burgundy band */
.page-hero {
  background: radial-gradient(900px 500px at 60% -20%, rgba(176, 32, 63, 0), transparent 55%),
              linear-gradient(180deg, var(--burgundy-deep) 0%, var(--burgundy-deep) 100%);
}
/* keep heading legible whether on burgundy or over a photo */
.page-hero h1 { color: #fff; }
.page-hero .hero-lead { color: rgba(255,255,255,.9); }

/* Page CTA band -> burgundy */
.page-cta {
  background: radial-gradient(900px 400px at 50% -10%, rgba(176,32,64,.55), transparent 60%), var(--burgundy-deep);
}
.page-cta h2 { color: #fff; }
.page-cta .section-lead { color: rgba(255,255,255,.9); }

/* Feature checkmarks -> olive */
.feature-list li::before {
  background: rgba(107,142,35,.14); border-color: rgba(107,142,35,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B8E23' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
/* Standard badges + step numbers -> olive / burgundy */
.std-badge { background: rgba(107,142,35,.12); border-color: rgba(107,142,35,.4); color: var(--olive-deep); }
.step-num { background: rgba(176,32,64,.14); border-color: rgba(176,32,64,.4); color: var(--burgundy); }

/* Cards / methods hover accent -> burgundy (tokens already light) */
.info-card:hover, .area-card:hover, .contact-method:hover { border-color: var(--burgundy); }
.area-card .area-tag { color: var(--burgundy); }
.detail-section:nth-child(even) { background: var(--bg-alt); }

/* Remove page-hero overlays */
.page-hero > .hero-bg::after { background: transparent !important; }
.page-hero > .container::before { display: none !important; }

/* ===== Burgundy + Olive 50/50 rebalance (sub-pages) ===== */
:root { --bg-alt: #EBEEF0; }
.eyebrow { color: var(--olive-deep); }
.info-card .card-icon, .contact-method .card-icon { color: var(--olive-deep); }
/* Sub-page CTA band -> olive (page hero stays burgundy) */
.page-cta { background: radial-gradient(900px 400px at 50% -10%, rgba(107,142,35,.55), transparent 60%), var(--olive-deep); }
.page-cta h2 { color: #fff; }
.page-cta .section-lead { color: rgba(255,255,255,.9); }
/* Step numbers -> olive ; hovers alternate */
.step-num { background: rgba(107,142,35,.14); border-color: rgba(107,142,35,.4); color: var(--olive-deep); }
.info-card:hover, .contact-method:hover { border-color: var(--olive); }
.area-card:hover { border-color: var(--burgundy); }
.detail-section:nth-child(even) { background: var(--bg-alt); }
.band { background: var(--bg-alt); }

/* ===== Light-gray polish layer ===== */
:root {
  --gray-50:  #f6f7f8;   /* very light gray  */
  --gray-100: #eef0f2;   /* light gray       */
  --gray-200: #e3e6e9;   /* soft border gray */
}
/* Subtle alternating tint so long pages don't read as one flat slab */
.detail-section:nth-child(odd) { background: var(--gray-50); }
.detail-section:nth-child(even) { background: var(--gray-100); }
/* Image placeholders read as soft gray panels with a hairline border */
.img-placeholder {
  background: var(--gray-100);
  border-color: var(--gray-200);
}
.img-placeholder.has-img { border-color: var(--gray-200); }
/* Cards and form fields pick up the same restrained gray palette */
.info-card, .area-card, .contact-method, .step-card {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.field input, .field select, .field textarea { background: #fff; border-color: var(--gray-200); }
.pg-form { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
/* Hairline separators between stacked sections */
.detail-section + .detail-section { border-top: 1px solid var(--gray-200); }

/* Outline buttons on the dark CTA band must stay readable (white text). */
.page-cta .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
  background: transparent;
}
.page-cta .btn-outline-light:hover,
.page-cta .btn-outline-light:active {
  background: #fff;
  color: var(--olive-deep, #3d4d16);
  border-color: #fff;
}

/* ===== Button geometry resilience inside the theme =====
   When ASC pages render within the active theme, the theme's own button/link
   styles can override the ASC shape. Re-assert geometry (not width, so 100%
   form buttons keep working) scoped to .asc-page. */
.asc-page .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem;
  padding: .8rem 1.5rem !important;
  border-radius: 999px !important;
  border: 2px solid transparent !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  line-height: 1.2 !important;
  letter-spacing: .02em;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.asc-page .btn-lg { padding: 1rem 1.9rem !important; font-size: 1rem !important; }
.asc-page .btn-primary { background: var(--burgundy, #B02040) !important; color: #fff !important; }
.asc-page .btn-primary:hover { background: var(--burgundy-deep, #8a1832) !important; }
.asc-page .btn-outline-light { background: transparent !important; color: var(--olive-deep, #557018) !important; border-color: var(--olive, #6B8E23) !important; }
.asc-page .btn-outline-light:hover { background: var(--olive, #6B8E23) !important; color: #fff !important; }
/* keep full-width submit buttons full width */
.asc-page .btn[style*="width: 100%"], .asc-page .btn[style*="width:100%"] { width: 100% !important; }
/* hero + CTA outline buttons stay light on dark bands */
.asc-page .hero .btn-outline-light, .asc-page .hero-cta .btn-outline-light,
.asc-page .cta .btn-outline-light, .asc-page .cta-actions .btn-outline-light,
.asc-page .page-cta .btn-outline-light {
  color: #fff !important; border-color: rgba(255,255,255,.6) !important; background: transparent !important;
}
.asc-page .hero .btn-outline-light:hover, .asc-page .hero-cta .btn-outline-light:hover,
.asc-page .cta .btn-outline-light:hover, .asc-page .cta-actions .btn-outline-light:hover,
.asc-page .page-cta .btn-outline-light:hover {
  background: #fff !important; color: var(--olive-deep, #557018) !important; border-color: #fff !important;
}
