/* ============================================================
   Ductless4Less — design system
   Value-first HVAC review site. Teal brand + amber "savings" CTA.
   ============================================================ */

:root {
  --ink: #0b1f33;
  --slate-900: #16283a;
  --slate-700: #33475b;
  --slate-500: #5b6b7c;
  --slate-400: #7c8b9a;
  --line: #e4eaef;
  --line-strong: #cdd8e0;
  --bg: #ffffff;
  --bg-alt: #f4f8f8;
  --bg-tint: #eef6f5;

  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --amber-600: #d97514;
  --amber-500: #ef8a1a;
  --amber-100: #fdf0dd;
  --green-600: #16a34a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06), 0 1px 3px rgba(11,31,51,.05);
  --shadow-md: 0 4px 14px rgba(11,31,51,.08);
  --shadow-lg: 0 18px 40px rgba(11,31,51,.14);
  --maxw: 1120px;
  --font-head: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.05rem; }
strong { color: var(--slate-900); font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 62px 0; }
section.alt-bg { background: var(--bg-alt); }
.narrow { max-width: 820px; margin: 0 auto; }

/* ---------- nav ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .four { color: var(--amber-600); }
.brand svg { color: var(--teal-600); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--slate-700); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--teal-700); text-decoration: none; }
.nav-cta { background: var(--amber-500); color: #fff !important; padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--amber-600); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* dropdown menus */
.has-menu { position: relative; }
.menu-top { background: none; border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: .96rem; color: var(--slate-700); display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.menu-top:hover { color: var(--teal-700); }
.menu-top .caret { width: 13px; height: 13px; transition: transform .2s ease; }
.menu { list-style: none; position: absolute; top: calc(100% + 16px); left: 0; min-width: 240px; max-height: 76vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; }
.has-menu.open .menu { display: block; }
.menu li { width: 100%; }
.menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .93rem; color: var(--slate-700); font-weight: 500; }
.menu a:hover { background: var(--bg-tint); color: var(--teal-700); text-decoration: none; }
@media (min-width: 861px) {
  .has-menu::after { content: ""; position: absolute; left: 0; right: -12px; top: 100%; height: 18px; }
  .has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
  .has-menu:hover .menu-top .caret { transform: rotate(180deg); }
}
.has-menu.open .menu-top .caret { transform: rotate(180deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; transition: transform .06s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--amber-600); }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--teal-600); background: var(--bg-tint); }
.btn-white { background: #fff; color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }

/* ---------- page header / hero ---------- */
.page-header { padding: 54px 0 40px; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 700; color: var(--teal-700); margin-bottom: 12px; }
.byline { color: var(--slate-500); font-size: .93rem; font-weight: 600; margin: 10px 0 22px; }
.byline a { color: var(--slate-500); text-decoration: underline; }
.lede { font-size: 1.12rem; color: var(--slate-700); max-width: 760px; }
.featured-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 26px 0; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- BLUF / quick answer ---------- */
.quick-answer { border: 1px solid var(--line); border-left: 4px solid var(--teal-600); background: linear-gradient(180deg, var(--bg-tint), #fff); border-radius: var(--radius-sm); padding: 20px 22px; margin: 4px 0 8px; box-shadow: var(--shadow-sm); }
.qa-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-700); margin-bottom: 8px; }
.quick-answer p:last-child { margin-bottom: 0; }

/* ---------- prose ---------- */
.prose { max-width: 800px; }
.prose h2 { margin: 2.2rem 0 .9rem; }
.prose h3 { margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.15rem; }
.prose li { margin-bottom: .5rem; }
.prose .featured-img { max-width: 100%; }

/* ---------- ranked pick cards ---------- */
.picks { display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin: 0 auto; }
.pick { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.pick.top { border-color: var(--teal-500); box-shadow: 0 0 0 1px var(--teal-500), var(--shadow-md); }
.pick-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pick-head h3 { margin: 0; }
.rank { font-family: var(--font-head); color: var(--teal-600); font-weight: 700; }
.tag { font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; background: var(--bg-alt); color: var(--slate-500); }
.tag.best { background: var(--teal-600); color: #fff; }
.tag.value { background: var(--amber-100); color: var(--amber-600); }
.pick .price { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.pick .price .save { color: var(--green-600); font-size: .86rem; }

/* checklist */
.checklist { display: grid; gap: 10px; margin: 14px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check svg { color: var(--green-600); flex: 0 0 20px; margin-top: 3px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
thead { background: var(--ink); }
thead th { color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 13px 15px; font-size: .82rem; letter-spacing: .02em; white-space: nowrap; }
tbody td { padding: 13px 15px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
tbody tr.hl { background: var(--bg-tint); }
td .brand-cell { font-weight: 700; color: var(--ink); }
caption { caption-side: bottom; text-align: left; padding: 10px 4px 0; font-size: .84rem; color: var(--slate-400); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink); padding: 18px 40px 18px 0; position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q svg { flex: 0 0 20px; color: var(--teal-600); transition: transform .2s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 0 18px; color: var(--slate-700); }
.faq-item.open .faq-a { max-height: 520px; }

/* ---------- section header ---------- */
.sec-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.sec-head .eyebrow { display: block; }
.sec-head p { color: var(--slate-500); margin-top: 8px; }

/* ---------- author box ---------- */
.author { display: flex; gap: 22px; align-items: flex-start; max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.author .avatar { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; color: var(--teal-600); }
.author h3 { margin: 0 0 2px; }
.author .role { color: var(--slate-500); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }

/* sources */
.sources { max-width: 820px; margin: 0 auto; }
.sources li { margin-bottom: .55rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-700), var(--ink)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 620px; margin: 12px auto 24px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* stat row (homepage) */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; max-width: 900px; margin: 30px auto 0; }
.stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 12px; box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--font-head); display: block; font-size: 1.7rem; color: var(--teal-700); }
.stat span { font-size: .84rem; color: var(--slate-500); }

/* hub cards */
.hub { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.hub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .1s ease, box-shadow .2s ease; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.hub-card img { aspect-ratio: 16/10; object-fit: cover; }
.hub-card .body { padding: 18px 20px 22px; }
.hub-card h3 { margin-bottom: 6px; }
.hub-card p { color: var(--slate-500); font-size: .94rem; margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9c6d2; padding: 52px 0 26px; }
.footer a { color: #cdd8e0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1.1fr 1.2fr .8fr; gap: 30px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
.footer .brand { color: #fff; }
.disclosure { font-size: .82rem; color: #8496a6; border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #8496a6; margin-top: 14px; }

/* ---------- verdict box (comparison bottom-line) — amber, to contrast the teal quick-answer ---------- */
.verdict { border: 1px solid var(--amber-100); border-left: 4px solid var(--amber-500); background: linear-gradient(180deg, var(--amber-100), #fff); border-radius: var(--radius-sm); padding: 20px 22px; margin: 4px 0 10px; box-shadow: var(--shadow-sm); }
.verdict .v-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber-600); margin-bottom: 8px; }
.verdict p:last-child { margin-bottom: 0; }

/* ---------- note / tip callout (informational guides) ---------- */
.note { border-left: 3px solid var(--teal-500); background: var(--bg-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 18px 0; font-size: .96rem; }
.note b { color: var(--teal-700); }

/* ---------- BTU sizing calculator (signature interactive moment) ---------- */
.calc { max-width: 560px; margin: 8px 0 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); }
.calc label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 8px; }
.calc .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.calc input, .calc select { font: inherit; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); min-width: 120px; flex: 1; color: var(--ink); background: #fff; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; border-color: var(--teal-500); }
.calc .result { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.calc .result .big { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--teal-700); line-height: 1.1; }
.calc .result .sub { color: var(--slate-500); font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .has-menu { width: 100%; }
  .menu-top { width: 100%; justify-content: space-between; padding: 12px 0; }
  .menu { position: static; box-shadow: none; border: none; padding: 0 0 10px 12px; min-width: 0; }
  .menu a { padding: 10px 0; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .hub { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 46px 0; }
}
