/* All Vacuums Sales & Service — styles.css
   Clean, modern local-service aesthetic. Mobile-first. */

:root{
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #121417;
  --muted: #5a6772;
  --border: #e3e7ee;
  --brand: #1b5e86;        /* muted blue */
  --brand-2: #0f8a6a;      /* muted green accent */
  --brand-dark: #13455f;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(18,20,23,.08);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1140px;
  --pad: clamp(16px, 3vw, 28px);
  --pad-lg: clamp(24px, 4vw, 56px);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height:1.55;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
p{margin:0 0 1rem 0}
small{color: var(--muted)}

.container{width:min(var(--max), 100% - (var(--pad)*2)); margin-inline:auto}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: var(--pad); top: var(--pad);
  width:auto; height:auto; background: var(--bg);
  padding:10px 12px; border:1px solid var(--border); border-radius:10px;
  z-index: 10000;
}

/* Header */
.header{
  position: sticky; top: 0; z-index: 9999;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  position: relative; /* anchor mobile nav dropdown to header */
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display:flex; align-items:center; gap: 12px;
  min-width: 0;
  flex-shrink: 0; /* do not allow logo area to collapse on mobile */
}
.site-logo{
  height: 44px;
  width: auto;
  display:block;
  object-fit: contain;
}
@media (min-width: 900px){
  .site-logo{ height: 50px; }
}
.footer-logo{
  height: 36px;
  width:auto;
  display:block;
}

.logo{
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display:grid; place-items:center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(27,94,134,.18);
}
.brand h1{
  font-size: 1rem;
  margin:0;
  line-height:1.1;
}
.brand span{
  display:block;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Nav */
.nav{
  display:flex; align-items:center; gap: 18px;
}
.nav a{
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 10px;
  border-radius: 10px;
}
.nav a:hover{background: var(--surface); color: var(--text)}
.nav a[aria-current="page"]{
  color: var(--brand-dark);
  background: rgba(27,94,134,.10);
}

.header-cta{
  display:flex; align-items:center; gap: 10px;
  flex-shrink: 0; /* don't crush logo */
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 800;
  font-size: .95rem;
  cursor:pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover{background: var(--surface)}
.btn:active{transform: translateY(1px)}

.btn-primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover{background: var(--brand-dark); border-color: var(--brand-dark)}
.btn-soft{
  background: rgba(15,138,106,.10);
  border-color: rgba(15,138,106,.22);
  color: #0d5f4a;
}
.btn-soft:hover{background: rgba(15,138,106,.16)}

.icon{
  width: 18px; height: 18px; flex: 0 0 18px;
  display:inline-block;
}
.icon svg{width:100%; height:100%}

/* Mobile nav toggle */
.mobile-toggle{
  display:none;
}
@media (max-width: 980px){
  .brand{min-width:auto}
  .nav{
    display:none;
    position:absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(100% + 10px); /* was 64px; this is safer across header heights */
    flex-direction:column;
    gap: 8px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open{display:flex}
  .nav a{width:100%}
  .mobile-toggle{display:inline-flex}
}

/* --- MOBILE HEADER OPTIMIZATION (SAFE OVERRIDES ONLY) --- */
@media (max-width: 700px){
  /* Make the real logo readable on phones */
  .site-logo{ height: 56px; }
  /* Slightly reduce button padding so logo doesn't get squeezed */
  .header-cta .btn{ padding: 10px 12px; font-size: .92rem; }
}
@media (max-width: 520px){
  /* Even more logo presence on tiny devices */
  .site-logo{ height: 60px; }
  /* Keep header clean: hide secondary soft button if present (Directions) */
  .header-cta .btn-soft{ display:none; }
}

/* Sections */
.section{
  padding: var(--pad-lg) 0;
}
.section-tight{
  padding: calc(var(--pad-lg) * .75) 0;
}
.surface{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Hero */
.hero{
  padding: calc(var(--pad-lg) * 1.15) 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-dark);
  background: rgba(27,94,134,.10);
  border: 1px solid rgba(27,94,134,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
}
h1,
h2{
  font-size: clamp(2rem, 4.3vw, 3.2rem);
  line-height: 1.08;
  margin: 14px 0 12px 0;
  letter-spacing: -0.02em;
}
.lead{
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  margin-bottom: 18px;
  max-width: 52ch;
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap: 10px;
  margin-top: 16px;
}

.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-pad{padding: 18px}
.card h3{margin:0 0 6px 0; font-size: 1.15rem}
.card p{color: var(--muted)}
.card a.inline{
  color: var(--brand);
  font-weight: 800;
}

.hero-media{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff, #f3f6fa);
}
.placeholder{
  min-height: 320px;
  display:grid;
  place-items:center;
  padding: 18px;
  color: var(--muted);
  text-align:center;
}
.placeholder strong{
  display:block;
  color: var(--text);
  margin-bottom: 8px;
}
.placeholder code{
  display:block;
  text-align:left;
  white-space:pre-wrap;
  background: rgba(18,20,23,.04);
  border: 1px dashed rgba(18,20,23,.18);
  padding: 10px 12px;
  border-radius: 12px;
  max-height: 240px;
  overflow:auto;
  font-size: .85rem;
}

/* Grids */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
}

/* Trust strip */
.trust{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 980px){
  .trust{grid-template-columns: 1fr}
}
.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}
.badge{
  background: rgba(18,20,23,.03);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
  color: var(--muted);
}

/* Location cards */
.loc{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.loc .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.loc .meta span{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  background: rgba(18,20,23,.03);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
}

/* CTA band */
.cta-band{
  background: linear-gradient(135deg, rgba(27,94,134,.10), rgba(15,138,106,.10));
  border: 1px solid rgba(18,20,23,.06);
  border-radius: var(--radius);
  padding: 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.cta-band h3{margin:0; font-size: 1.15rem}
.cta-band p{margin: 0; color: var(--muted)}
@media (max-width: 980px){
  .cta-band{flex-direction:column; align-items:flex-start}
}

/* Page header */
.page-head{
  padding: 28px 0 10px 0;
}
.page-head h1,
h2{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 8px 0;
}
.breadcrumbs{
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}

/* Forms */
form{
  display:grid;
  gap: 12px;
}
label{font-weight: 800}
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
}
textarea{min-height: 140px; resize: vertical}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .form-row{grid-template-columns: 1fr}
}

/* Footer */
.footer{
  background: #0c141a;
  color: rgba(255,255,255,.92);
  padding: 34px 0;
  margin-top: 40px;
}
.footer a{color: rgba(255,255,255,.92); text-decoration: underline}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
@media (max-width: 980px){
  .footer-grid{grid-template-columns: 1fr}
}
.footer small{color: rgba(255,255,255,.70)}
.footer .mini{
  display:flex; gap: 10px; align-items:center;
}
.footer .mini .logo{box-shadow:none}
.footer ul{list-style:none; padding:0; margin:0; display:grid; gap: 8px}
hr.sep{
  border:0; border-top: 1px solid rgba(255,255,255,.12);
  margin: 18px 0;
}


/* --- Conversions & Trust Enhancements --- */

/* Mobile sticky action bar (call + directions) */
.mobile-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px;
  display:none;
}
.mobile-bar .inner{
  width:min(var(--max), 100% - (var(--pad)*2));
  margin-inline:auto;
  display:flex;
  gap: 10px;
}
.mobile-bar .inner .btn{
  flex: 1 1 0;
  padding: 12px 10px;
  justify-content:center;
}
@media (max-width: 820px){
  .mobile-bar{display:block;}
  body{padding-bottom: 78px;} /* space for sticky bar */
}

/* Subtle section headings */
.section h3.section-title{
  margin: 0 0 12px 0;
  font-size: 1.25rem;
}

/* Review cards */
.stars{
  display:inline-flex; gap: 2px; align-items:center;
  color: #c48a00;
}
.stars svg{width:16px; height:16px}
.review-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .review-grid{grid-template-columns: 1fr;}
}
.review{
  padding: 18px;
}
.review .who{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
  margin-bottom: 10px;
}
.review .who strong{display:block}
.review .src{
  font-weight:800;
  color: var(--muted);
  font-size: .9rem;
}
.review p{margin:0; color: var(--muted)}

/* FAQ / accordion (details/summary) */
.faq details{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(18,20,23,.06);
  overflow:hidden;
}
.faq details + details{margin-top: 10px;}
.faq summary{
  list-style:none;
  cursor:pointer;
  padding: 14px 16px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary .chev{
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
  transition: transform .18s ease;
}
.faq details[open] summary .chev{transform: rotate(180deg);}
.faq .answer{
  padding: 0 16px 14px 16px;
  color: var(--muted);
}

/* Small “trust row” stats */
.stat-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}
.stat{
  background: rgba(27,94,134,.08);
  border: 1px solid rgba(27,94,134,.18);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  color: var(--brand-dark);
}
.note{
  font-size: .9rem;
  color: var(--muted);
}
