/* ==========================================================================
   North East AC Engineers — Site styles
   Palette: Charcoal #111827 | Emerald #10B981 | Soft Gray #F3F4F6 | White #FFF
   Plain static CSS. No frameworks.
   ========================================================================== */

:root {
  --charcoal: #111827;
  --charcoal-2: #1f2937;
  --emerald: #10b981;
  --emerald-dark: #0e9f6e;
  --emerald-darker: #0b8457;
  --soft-gray: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --white: #ffffff;
  --max: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-darker); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--emerald-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--charcoal); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--gray { background: var(--soft-gray); }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--charcoal h1,
.section--charcoal h2,
.section--charcoal h3 { color: var(--white); }
.section--tight { padding: 36px 0; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--gray-600); }
.section--charcoal .lead { color: #d1d5db; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--emerald-darker); margin: 0 0 0.5rem; }
.section--charcoal .eyebrow { color: var(--emerald); }
.muted { color: var(--gray-600); }

/* Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--emerald); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Focus visibility ------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn--primary { background: var(--emerald); color: var(--charcoal); }
.btn--primary:hover { background: var(--emerald-dark); color: var(--charcoal); }
.btn--phone { background: var(--emerald); color: var(--charcoal); }
.btn--phone:hover { background: var(--emerald-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn--outline { background: transparent; color: var(--emerald-darker); border-color: var(--emerald); }
.btn--outline:hover { background: var(--emerald); color: var(--charcoal); }
.btn--lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* Top bar ---------------------------------------------------------------- */
.topbar {
  background: var(--charcoal);
  color: #d1d5db;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--emerald); }
.topbar__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__note { color: var(--gray-400); }

/* Header / nav ----------------------------------------------------------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--gray-200); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name span { color: var(--emerald); }
.brand__logo { height: 46px; width: auto; display: block; }
.site-footer .brand__logo { height: 54px; }
.nav__toggle {
  display: none;
  background: transparent; border: 2px solid var(--gray-400); color: var(--charcoal);
  border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; font-weight: 600;
}
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { margin: 0; position: relative; }
.nav__menu a { color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 12px; display: inline-block; border-radius: 8px; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--emerald-darker); background: var(--soft-gray); }
.nav__menu a[aria-current="page"] { color: var(--emerald-darker); }
.nav__cta { margin-left: 8px; }
.nav__cta a { background: var(--emerald); color: var(--charcoal) !important; padding: 10px 16px; }
.nav__cta a:hover { background: var(--emerald-dark); }

/* Dropdown --------------------------------------------------------------- */
.has-dropdown > .dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 4px 0 0; z-index: 200;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown a { color: var(--charcoal); display: block; padding: 9px 12px; font-size: 0.92rem; }
.dropdown a:hover { background: var(--soft-gray); color: var(--charcoal); }

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16,185,129,0.18), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero p { color: #d1d5db; font-size: 1.15rem; }
.hero__usps { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.hero__usps li { padding-left: 30px; position: relative; color: #e5e7eb; }
.hero__usps li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 800; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero__placeholder {
  border-radius: var(--radius); background: linear-gradient(135deg, #1f2937, #0b8457);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  color: #d1fae5; font-weight: 600; text-align: center; padding: 20px;
}

/* Inline call-to-call link ---------------------------------------------- */
.tel { white-space: nowrap; font-weight: 700; }

/* Trust strip ------------------------------------------------------------ */
.trust-strip { background: var(--soft-gray); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: center; padding: 18px 20px; }
.trust-strip .trust-item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }
.trust-strip .trust-item svg { color: var(--emerald-darker); flex: none; }

/* Cards / grids ---------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); height: 100%;
}
.card h3 { margin-top: 0; }
.card--link { display: block; text-decoration: none; color: var(--charcoal); transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--emerald); color: var(--charcoal); }
.card__icon {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(16,185,129,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--emerald-darker);
}
.card__more { color: var(--emerald-darker); font-weight: 700; display: inline-block; margin-top: 6px; }
.card--link:hover .card__more { color: var(--emerald-dark); }

/* Feature list with ticks ------------------------------------------------ */
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--emerald-darker); font-weight: 800; }
.section--charcoal .ticks li::before { color: var(--emerald); }

/* Two-column content ----------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--media-right { grid-template-columns: 1fr 1fr; }
.media-placeholder {
  border-radius: var(--radius); background: var(--soft-gray); border: 1px dashed var(--gray-400);
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-weight: 600; text-align: center; padding: 20px;
}
figure { margin: 0 0 1rem; }
figure img, figure .media-placeholder { border-radius: var(--radius); }
figcaption { font-size: 0.88rem; color: var(--gray-600); margin-top: 8px; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat__num { font-size: 2rem; font-weight: 800; color: var(--emerald); }
.stat__label { color: #d1d5db; font-size: 0.95rem; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--emerald); color: var(--charcoal); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 20px; }
.cta-band h2 { color: var(--charcoal); margin: 0; }
.cta-band p { margin: 4px 0 0; color: #064e3b; }
.cta-band .btn--primary { background: var(--charcoal); color: var(--white); }
.cta-band .btn--primary:hover { background: var(--charcoal-2); }

/* Forms ------------------------------------------------------------------ */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--gray-200); }
.section--charcoal .form-card { color: var(--charcoal); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-row .req { color: #b91c1c; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--charcoal);
  border: 1px solid var(--gray-400); border-radius: 8px; background: var(--white);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.form-consent { font-size: 0.85rem; color: var(--gray-600); }
.form-note { font-size: 0.85rem; color: var(--gray-600); margin-top: 10px; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--emerald-darker); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; color: var(--gray-600); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { background: var(--soft-gray); font-size: 0.88rem; border-bottom: 1px solid var(--gray-200); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 20px; max-width: var(--max); margin: 0 auto; }
.breadcrumbs li { margin: 0; color: var(--gray-600); }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--gray-400); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--emerald-darker); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Testimonials ----------------------------------------------------------- */
.review { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.review__stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 8px; }
.review__text { font-style: italic; color: var(--charcoal); }
.review__who { font-weight: 700; margin-top: 10px; }
.review__placeholder-tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--soft-gray); color: var(--gray-600); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; font-weight: 700; }

/* Areas list ------------------------------------------------------------- */
.area-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.area-links a {
  display: block; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 12px 14px; text-decoration: none; color: var(--charcoal); font-weight: 600;
}
.area-links a:hover { border-color: var(--emerald); color: var(--emerald-darker); }
.area-links a::before { content: "\1F4CD"; margin-right: 8px; }

/* Prose (blog / legal) --------------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img, .prose .media-placeholder { margin: 1.5em 0; }
.post-meta { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 1.5em; }
.post-tag { display: inline-block; background: rgba(16,185,129,0.12); color: var(--emerald-darker); font-weight: 700; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }

.callout {
  background: var(--soft-gray); border-left: 4px solid var(--emerald); border-radius: 8px;
  padding: 18px 20px; margin: 1.5em 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Blog cards ------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; }
.post-card .media-placeholder, .post-card img { min-height: 170px; margin-bottom: 14px; }
.post-card h3 { margin-bottom: 8px; }
.post-card .card__more { margin-top: auto; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: #d1d5db; padding: 48px 0 0; }
.site-footer a { color: #e5e7eb; text-decoration: none; }
.site-footer a:hover { color: var(--emerald); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 8px; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__contact a { font-weight: 700; color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding: 18px 0; font-size: 0.85rem; color: var(--gray-400); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__legal a { color: var(--gray-400); }
.footer__disclaimer { font-size: 0.8rem; color: var(--gray-400); max-width: 640px; }

/* Page intro ------------------------------------------------------------- */
.page-hero { background: var(--charcoal); color: var(--white); padding: 48px 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #d1d5db; max-width: 720px; }

/* Utility ---------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1rem; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--soft-gray); border: 1px solid var(--gray-200); border-radius: 999px; padding: 6px 14px; margin: 0; font-size: 0.9rem; font-weight: 600; }
.section--charcoal .pill-list li { background: var(--charcoal-2); border-color: rgba(255,255,255,0.12); color: #e5e7eb; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-block; }
  .nav__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--gray-200);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav { position: relative; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 8px; border-radius: 6px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta a { display: block; text-align: center; }
  .has-dropdown > .dropdown { position: static; display: block; box-shadow: none; border: none; background: var(--soft-gray); padding: 0 0 0 12px; margin: 0; }
  .dropdown a { color: var(--charcoal); }
  .dropdown a:hover { background: transparent; color: var(--emerald-darker); }
  .split, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .area-links { grid-template-columns: 1fr 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .area-links { grid-template-columns: 1fr; }
  .topbar__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
