/* ==========================================
   LocalSitesPro Pro Theme (Agency-Grade)
   Beautiful, clean, conversion-focused
   ========================================== */

:root{
  --brand: #2563eb;
  --brand-600:#1d4ed8;
  --ink:#0b1220;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --card:#ffffff;
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

html{ scroll-behavior:smooth; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration:none; }
a:focus{ outline: 3px solid rgba(37,99,235,.25); outline-offset: 3px; border-radius: 10px; }

/* Containers */
.max-w-7xl { max-width: 1200px; }

/* Header polish */
header.sticky{
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header.bg-white{
  border-bottom: 1px solid rgba(229,231,235,.65);
}
header.shadow-lg, header.shadow-md{
  box-shadow: 0 10px 25px rgba(15,23,42,.08) !important;
}

/* Nav links */
nav a, nav button{
  letter-spacing: -0.01em;
}
nav a:hover, nav button:hover{
  transform: translateY(-1px);
}
nav a, nav button{
  transition: transform .18s ease, color .18s ease, background-color .18s ease;
}

/* Dropdown menus */
.group:hover .group-hover\:visible{
  visibility: visible !important;
}
.group:hover .group-hover\:opacity-100{
  opacity: 1 !important;
}
.group > div.absolute{
  border: 1px solid rgba(229,231,235,.75);
  box-shadow: var(--shadow);
}

/* Buttons */
.phone-button{
  background: linear-gradient(135deg, var(--brand), var(--brand-600)) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 45px rgba(37,99,235,.25);
  text-wrap: balance;
}
.phone-button:hover{
  box-shadow: 0 22px 60px rgba(37,99,235,.30);
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color:#fff;
  box-shadow: 0 16px 38px rgba(37,99,235,.22);
}
.btn-primary:hover{ box-shadow: 0 20px 55px rgba(37,99,235,.28); transform: translateY(-1px); }
.btn-outline{
  background: rgba(255,255,255,.85);
  color: var(--brand);
  border: 1px solid rgba(37,99,235,.25);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.btn-outline:hover{ transform: translateY(-1px); box-shadow: 0 18px 44px rgba(15,23,42,.10); }

/* Section headings */
.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.45rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size:.85rem;
  background: rgba(37,99,235,.08);
  color: var(--brand);
  border: 1px solid rgba(37,99,235,.14);
}
.h-title{
  color: var(--ink);
  letter-spacing: -0.03em;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid rgba(229,231,235,.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card:hover{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card, .card *{ transition: box-shadow .2s ease, transform .2s ease; }

/* Trust badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.4rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  color: #0f172a;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
}

/* Images */
.hero-media{
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15,23,42,.16);
  border: 1px solid rgba(229,231,235,.85);
}
img{ max-width:100%; height:auto; }

/* Forms */
input, textarea, select{
  border-radius: 14px !important;
  border: 1px solid rgba(229,231,235,.9) !important;
}
input:focus, textarea:focus, select:focus{
  outline: 3px solid rgba(37,99,235,.20) !important;
  outline-offset: 2px !important;
  border-color: rgba(37,99,235,.45) !important;
}

/* Floating phone */
.floating-phone a{
  box-shadow: 0 18px 60px rgba(37,99,235,.35) !important;
  border-radius: 999px !important;
}

/* ==========================================
   Existing prose typography (enhanced)
   ========================================== */
.prose {
  color: #4b5563;
  font-size: 1.0625rem;
  line-height: 1.8;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.prose h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.prose h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.85;
  text-align: left;
}
.prose a { color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose ul {
  padding-left: 1.25rem;
  margin: 1.25rem 0;
}
.prose li { margin: .35rem 0; }

@media (max-width: 768px){
  .phone-button{ padding: 1rem 1.05rem !important; font-size: 1.05rem !important; }
}


/* Polyares / LeadSmart embed styling */
.btn-large{
  padding: 1.05rem 1.35rem;
  font-size: 1.05rem;
  border-radius: 16px;
}
.polyares-quote-button{
  width: 100%;
  max-width: 360px;
  text-align: center;
  white-space: nowrap;
}
@media (min-width: 640px){
  .polyares-quote-button{ width: auto; max-width: none; }
}

/* Sidebar form container */
.polyares-sidebar-form{
  background: var(--card);
  border: 1px solid rgba(229,231,235,.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
#polyares_form_container{ width: 100% !important; }
#polyares_form{
  width: 100% !important;
  max-width: 360px;
  margin: 0 auto;
  height: 430px !important;
}
#polyares_form iframe{
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,.25) !important;
}


/* LeadSmart / Polyares embed (homepage bottom form) */
.quote-embed-card iframe{
  max-width: 100%;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
  background: #fff;
}
@media (min-width: 1024px){
  .quote-embed-card iframe{
    width: 600px;
  }
}


/* LeadSmart embed inside "Request Free Estimate" box */
.estimate-embed{
  width: 100%;
  display: flex;
  justify-content: center;
}
.estimate-embed iframe{
  width: min(600px, 100%);
  height: 420px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
  background: #fff;
}


/* LeadSmart embed inside Request Free Estimate box */
.estimate-embed{
  width: 100%;
  display: flex;
  justify-content: center;
}
.estimate-embed iframe{
  width: min(600px, 100%);
  height: 420px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
  background: #fff;
}


.btn.justify-center{
  justify-content: center;
}


/* Sidebar LeadSmart form (SERVICE PAGES): centered + clean, shorter height */
.page-service .polyares-sidebar-form{
  width: 100%;
  display: flex;
  justify-content: center;
}
.page-service #polyares_form_container{
  width: 100%;
  display: flex;
  justify-content: center;
}
.page-service #polyares_form{
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.10);
}
.page-service #polyares_form iframe{
  display: block;
  width: 100%;
  height: 377px;
  border: 0;
  border-radius: 12px;
}

/* Make hero CTA buttons visually consistent */
.btn-large{
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  font-size: 1.05rem !important;
  border-radius: 0.75rem !important;
}
