/* Panama City HVAC Co. - v1.0
   Palette: cobalt #1D4ED8 / ice #EFF6FF / slate text / white dominant
   Type: Manrope (display) + IBM Plex Sans (body) */

:root {
  --cobalt: #1D4ED8;
  --cobalt-dark: #1E40AF;
  --cobalt-deep: #172E8C;
  --ice: #EFF6FF;
  --ice-border: #DBEAFE;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --white: #FFFFFF;
  --radius: 6px;
  --max: 1120px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--cobalt); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

ul.checks { list-style: none; margin: 0 0 1rem; }
ul.checks li { padding-left: 1.75rem; position: relative; margin-bottom: 0.65rem; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.85rem; height: 0.45rem;
  border-left: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt);
  transform: rotate(-45deg);
}

/* Header */
.topbar { background: var(--cobalt-deep); color: #C7D6FE; font-size: 0.9rem; padding: 0.4rem 0; text-align: center; }
.topbar strong { color: var(--white); }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--ice-border);
  position: sticky; top: 0; z-index: 50;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--slate-900); text-decoration: none; line-height: 1.15; }
.brand span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--cobalt); letter-spacing: 0.02em; }

nav.primary ul { list-style: none; display: flex; gap: 1.4rem; }
nav.primary a { text-decoration: none; color: var(--slate-700); font-weight: 600; font-size: 0.95rem; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--cobalt); }

.btn {
  display: inline-block; background: var(--cobalt); color: var(--white);
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: var(--radius); border: none;
  font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--cobalt-dark); }
.btn.ghost { background: transparent; color: var(--cobalt); border: 2px solid var(--cobalt); }
.btn.ghost:hover { background: var(--ice); }
.btn.big { font-size: 1.15rem; padding: 0.95rem 1.8rem; }

.nav-phone { white-space: nowrap; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 3px; background: var(--slate-900); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ice) 0%, var(--white) 100%); padding: 3.5rem 0 3rem; }
.hero .wrap { max-width: 820px; }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { font-size: 1.15rem; margin-bottom: 1.5rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.95rem; color: var(--slate-500); margin-top: 0.9rem; }

.trustline { border-top: 1px solid var(--ice-border); border-bottom: 1px solid var(--ice-border); background: var(--white); }
.trustline .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: center; padding: 0.85rem 1.25rem; font-weight: 600; font-size: 0.95rem; color: var(--slate-700); }

/* Sections */
section.block { padding: 3.25rem 0; }
section.block.tint { background: var(--ice); }
.lead-max { max-width: 780px; }

/* Cards */
.grid { display: grid; gap: 1.4rem; margin-top: 1.75rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--ice-border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card.linked { border-top: 4px solid var(--cobalt); }
.card h3 a { color: var(--slate-900); text-decoration: none; }
.card h3 a:hover { color: var(--cobalt); }
.card .more { font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Process */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.75rem; }
.step { counter-increment: step; background: var(--white); border: 1px solid var(--ice-border); border-radius: var(--radius); padding: 1.5rem; }
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--cobalt); color: var(--white);
  font-family: var(--font-display); font-weight: 800;
  margin-bottom: 0.8rem;
}

/* Testimonials */
.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.75rem; }
.quote { background: var(--white); border: 1px solid var(--ice-border); border-left: 4px solid var(--cobalt); border-radius: var(--radius); padding: 1.5rem; }
.quote p { font-style: italic; }
.quote cite { font-style: normal; font-weight: 700; color: var(--slate-900); font-size: 0.95rem; }

/* Areas */
.towns { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem 1.5rem; margin: 1rem 0; }
.towns li { padding-left: 1.4rem; position: relative; }
.towns li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cobalt); }

/* FAQ */
.faq { margin-top: 1.5rem; max-width: 860px; }
.faq details { border: 1px solid var(--ice-border); border-radius: var(--radius); background: var(--white); margin-bottom: 0.8rem; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--slate-900); padding: 1rem 1.25rem; list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cobalt); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 1.25rem 1.25rem; }

/* CTA band */
.cta-band { background: var(--cobalt); color: var(--white); padding: 3rem 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #DCE7FE; max-width: 720px; }
.cta-band .btn { background: var(--white); color: var(--cobalt); }
.cta-band .btn:hover { background: var(--ice); }

/* Content pages */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1rem 1.3rem; }
.prose ul li { margin-bottom: 0.5rem; }

.callout { background: var(--ice); border: 1px solid var(--ice-border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.callout strong { color: var(--slate-900); }

table.spec { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.98rem; }
table.spec th, table.spec td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--ice-border); vertical-align: top; }
table.spec th { background: var(--ice); font-family: var(--font-display); color: var(--slate-900); }

/* Map */
.map-embed { border: 1px solid var(--ice-border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Footer */
footer.site { background: var(--slate-900); color: #B9C4D8; padding: 3rem 0 2rem; font-size: 0.95rem; }
footer.site h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.8rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2.5rem; }
footer.site a { color: #DCE7FE; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 0.45rem; }
.foot-towns { color: #8B99B5; }
.foot-bottom { border-top: 1px solid #24324B; margin-top: 2.25rem; padding-top: 1.25rem; color: #8B99B5; font-size: 0.88rem; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .towns { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  nav.primary {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--ice-border);
    padding: 1rem 1.25rem 1.5rem;
  }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; gap: 0.9rem; }
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  body { padding-bottom: 64px; }
  .callbar {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--cobalt); text-align: center;
  }
  .callbar a {
    display: block; color: var(--white); text-decoration: none;
    font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
    padding: 1rem;
  }
}
