/* Newark Heating & Cooling — site stylesheet */
:root {
  --navy: #12243B;
  --navy-2: #1B3352;
  --navy-3: #243F63;
  --flame: #C2410C;
  --flame-hover: #A8380A;
  --flame-soft: #FB923C;
  --ice: #1D5F9E;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --text: #1E2733;
  --muted: #55606E;
  --line: #DCE3EC;
  --on-navy: #C9D3E0;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(18, 36, 59, 0.10);
  --container: 1180px;
  --header-h: 72px;
  --ease: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); }
a:hover { color: var(--flame); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; letter-spacing: 0.005em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--flame); color: var(--white); padding: 8px 14px; z-index: 2000; border-radius: 4px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: var(--radius); font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; transition: background var(--ease), color var(--ease), border-color var(--ease); line-height: 1.1; text-align: center; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--flame); color: var(--white); }
.btn-primary:hover { background: var(--flame-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-2); color: var(--on-navy); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 38px; }
.topbar-left { display: flex; gap: 22px; }
.topbar span { white-space: nowrap; }
.topbar strong { color: var(--flame-soft); font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(18, 36, 59, 0.06); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--flame); }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; flex-shrink: 0; line-height: 1.05; }
.header-phone-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.header-phone-number { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--flame); white-space: nowrap; }
.header-phone:hover .header-phone-number { color: var(--flame-hover); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-shrink: 0; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 13px 24px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }
.mobile-nav .mobile-nav-call { background: var(--flame); color: var(--white); text-align: center; font-family: var(--font-display); font-size: 21px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 36, 59, 0.94) 0%, rgba(18, 36, 59, 0.82) 48%, rgba(18, 36, 59, 0.45) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 88px 0 80px; max-width: 700px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--flame-soft); }
.hero-sub { font-size: 20px; color: var(--on-navy); margin-bottom: 28px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-weight: 600; color: var(--white); }
.trust-list li { margin: 0; display: flex; align-items: center; gap: 8px; }
.trust-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--flame-soft); flex-shrink: 0; }
.page-hero .hero-inner { padding: 56px 0 52px; max-width: 760px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); }

.breadcrumbs { font-size: 14px; color: var(--on-navy); margin-bottom: 14px; }
.breadcrumbs a { color: var(--on-navy); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame); margin-bottom: 10px; }
.prose { max-width: 780px; min-width: 0; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.content-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.content-figure { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.content-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.field-note { margin: 30px 0; padding: 22px 26px 22px 26px; background: var(--bg); border-left: 5px solid var(--flame); border-radius: 0 var(--radius) var(--radius) 0; }
.section.alt .field-note { background: var(--white); }
.field-note-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame); margin-bottom: 6px; }
.field-note p { margin: 0; font-size: 17px; color: var(--text); }

.aside-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.aside-card h3 { color: var(--white); }
.aside-card p { font-size: 16px; }
.aside-phone { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--flame-soft); text-decoration: none; white-space: nowrap; margin: 6px 0 16px; }
.aside-phone:hover { color: var(--white); }
.aside-links { margin-top: 22px; background: var(--bg); border-radius: var(--radius); padding: 22px 24px; }
.aside-links h3 { font-size: 19px; }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li { margin: 0; border-bottom: 1px solid var(--line); }
.aside-links li:last-child { border-bottom: 0; }
.aside-links a { display: block; padding: 9px 0; text-decoration: none; font-weight: 600; color: var(--navy); }
.aside-links a:hover { color: var(--flame); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--flame); border-bottom: 3px solid var(--flame); transform: rotate(-45deg); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: var(--text); transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.card:hover { border-color: var(--flame); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--bg); color: var(--flame); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--muted); margin: 0 0 14px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--flame); font-size: 15px; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.area-link { display: block; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--navy); }
.area-link small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.area-link:hover { border-color: var(--flame); color: var(--flame); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--flame); color: var(--white); font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 20px; }
.steps p { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- Call band ---------- */
.call-band { background: var(--flame); color: var(--white); padding: 34px 0; }
.call-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.call-band h2 { color: var(--white); margin: 0 0 4px; font-size: clamp(26px, 3vw, 34px); }
.call-band p { margin: 0; color: #FFE9DC; }
.call-band .btn { background: var(--white); color: var(--flame); }
.call-band .btn:hover { background: var(--navy); color: var(--white); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 440px; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 700; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; color: var(--navy); position: relative; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--flame); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 22px 18px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Estimate ---------- */
.estimate { background: var(--navy); color: var(--on-navy); padding: 76px 0; }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
.estimate h2 { color: var(--white); }
.estimate-phone { display: inline-block; font-family: var(--font-display); font-size: clamp(38px, 5vw, 54px); font-weight: 800; color: var(--flame-soft); text-decoration: none; white-space: nowrap; margin: 8px 0 14px; }
.estimate-phone:hover { color: var(--white); }
.form-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); }
.form-card h3 { margin-bottom: 4px; }
.form-card > p { font-size: 15px; color: var(--muted); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; color: var(--navy); }
.form-group input { width: 100%; padding: 13px 14px; font-size: 17px; font-family: var(--font-body); border: 1px solid #B9C4D2; border-radius: 6px; background: var(--white); color: var(--text); }
.form-group input:focus { outline: 3px solid rgba(29, 95, 158, 0.25); border-color: var(--ice); }
.form-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0C1929; color: var(--on-navy); padding: 60px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: var(--white); font-size: 18px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-logo img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-phone { display: inline-block; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--flame-soft) !important; white-space: nowrap; margin: 4px 0 8px; }
.footer-bottom { border-top: 1px solid rgba(201, 211, 224, 0.18); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Simple pages ---------- */
.simple-page { padding: 64px 0 80px; }
.simple-page .prose { margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-phone { margin-left: auto; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .content-aside { position: static; }
  .estimate-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16.5px; }
  .topbar { display: none; }
  :root { --header-h: 64px; }
  .logo img { height: 40px; }
  .header-phone-label { display: none; }
  .header-phone-number { font-size: 22px; }
  .header-inner { gap: 10px; }
  .hero-inner { padding: 60px 0 56px; }
  .page-hero .hero-inner { padding: 40px 0 38px; }
  .hero-sub { font-size: 18px; }
  .hero::after { background: linear-gradient(180deg, rgba(18, 36, 59, 0.9) 0%, rgba(18, 36, 59, 0.86) 100%); }
  .section { padding: 54px 0; }
  .estimate { padding: 56px 0; }
  .call-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .logo img { height: 34px; }
  .header-phone-number { font-size: 19px; }
  .menu-toggle { width: 40px; padding: 9px 8px; }
  .btn { font-size: 18px; padding: 14px 18px; }
}

/* ---------- Mobile sticky call bar (<=1024px) ---------- */
.mobile-call-bar { display: none; }
@media (max-width: 1024px) {
  .mobile-call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: var(--flame); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18); }
  .mobile-call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.02em; color: var(--white); text-decoration: none; white-space: nowrap; }
  .mobile-call-bar a:active { background: var(--flame-hover); }
  .mobile-call-bar svg { width: 17px; height: 17px; flex-shrink: 0; }
  .site-footer { padding-bottom: 72px; }
}
.form-optional { font-weight: 400; color: var(--muted); }
.hero .eyebrow, .estimate .eyebrow { color: var(--flame-soft); }
