/* Northtex Comfort Co. — SAMPLE premium HVAC demo
   Distinct from agency ink/ember: cool slate + sky cyan
   Type: Outfit + DM Sans
*/

:root {
  --navy: #0c1a24;
  --navy-soft: #122433;
  --navy-mid: #1a3344;
  --sky: #39b7e0;
  --sky-hot: #5cc8ea;
  --sky-dim: rgba(57, 183, 224, 0.14);
  --cream: #f2f6f8;
  --cream-dim: #b8c5ce;
  --muted: #7a8a96;
  --line: rgba(242, 246, 248, 0.1);
  --warn: #f5d76e;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --max: 1100px;
  --sticky-h: 58px;
  --banner-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-hot); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* Gate */
#gate {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(155deg, #0c1a24 0%, #122433 50%, #0a3040 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#gate.hidden { display: none; }
.gate-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 40px 36px;
  max-width: 400px; width: 100%; text-align: center;
  backdrop-filter: blur(16px);
}
.gate-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.gate-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.gate-card > p { font-size: 13px; color: var(--cream-dim); margin-bottom: 24px; }
.gate-card input {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35); color: #fff;
  font-family: inherit; font-size: 15px; margin-bottom: 12px; outline: none;
}
.gate-card input:focus { border-color: var(--sky); }
.gate-card button {
  width: 100%; padding: 12px; border: none; border-radius: 8px;
  background: var(--sky); color: #0c1a24;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gate-card button:hover { background: var(--sky-hot); }
.gate-err { color: #f87171; font-size: 12px; min-height: 18px; margin-bottom: 8px; }

/* Top sample banner */
.demo-banner-top {
  position: sticky; top: 0; z-index: 200;
  background: var(--warn); color: #0c1a24;
  text-align: center; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 16px; min-height: var(--banner-h);
}

.demo-badge {
  position: fixed;
  bottom: calc(14px + var(--sticky-h));
  left: 14px; z-index: 300;
  background: rgba(12, 26, 36, 0.9);
  color: var(--warn); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 4px;
  border: 1px solid rgba(245, 215, 110, 0.4);
  pointer-events: none;
}

.sample-chip {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #0c1a24; background: var(--warn);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 14px;
}

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Nav */
.nav {
  position: sticky; top: var(--banner-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(12, 26, 36, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.nav-brand:hover { text-decoration: none; color: #fff; }
.nav-mark {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--sky);
  background: radial-gradient(circle at 40% 35%, var(--sky-dim), transparent 60%);
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: var(--cream-dim); font-size: 0.9rem; font-weight: 500; text-decoration: none;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--sky) !important; color: #0c1a24 !important;
  padding: 8px 16px; border-radius: 8px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--sky-hot) !important; text-decoration: none !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 20px; background: var(--navy-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a {
  color: var(--cream); padding: 12px 0; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu .nav-cta {
  display: inline-block; margin-top: 8px; text-align: center; border-bottom: none;
}

/* Hero */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  padding: 80px 24px 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,26,36,0.35) 0%, rgba(12,26,36,0.88) 70%, var(--navy) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: #fff;
  max-width: 720px; margin-bottom: 18px;
}
.hero-lead {
  max-width: 560px; font-size: 1.08rem;
  color: var(--cream-dim); margin-bottom: 28px; line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sky); color: #0c1a24; }
.btn-primary:hover { background: var(--sky-hot); color: #0c1a24; }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cream-dim); color: #fff; }

.strip-trust {
  background: var(--navy-soft); border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}
.strip-inner {
  max-width: var(--max); margin: 0 auto;
  font-size: 0.8rem; color: var(--muted); text-align: center;
}
.strip-inner strong { color: var(--warn); }

.section { padding: 72px 24px; }
.section-alt {
  background: var(--navy-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 12px;
}
.section-lead {
  max-width: 560px; color: var(--cream-dim);
  margin-bottom: 32px; font-size: 1.05rem; line-height: 1.65;
}

.photo-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 36px;
}
.photo-row figure {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--navy-mid);
}
.photo-row img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-row figure:hover img { transform: scale(1.04); }
.photo-row figcaption {
  font-size: 0.72rem; color: var(--muted);
  padding: 8px 12px; border-top: 1px solid var(--line);
}

/* Accordion */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  background: var(--navy-soft);
}
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: #fff; text-align: left;
}
.acc-trigger:hover { background: rgba(57, 183, 224, 0.06); }
.acc-icon {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--sky); position: relative; flex-shrink: 0;
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--sky);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.acc-icon::before { width: 10px; height: 2px; }
.acc-icon::after { width: 2px; height: 10px; transition: opacity 0.2s; }
.acc-item.is-open .acc-icon::after { opacity: 0; }
.acc-panel {
  padding: 0 20px 18px;
  color: var(--cream-dim); font-size: 0.95rem;
}
.acc-panel[hidden] { display: none !important; }

/* Why */
.why-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 40px; align-items: center;
}
.why-list { margin: 0 0 24px; }
.why-list li {
  position: relative; padding: 8px 0 8px 22px;
  color: var(--cream-dim); font-size: 0.95rem;
}
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--sky);
}
.why-visual {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--navy-mid);
}
.why-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.why-visual figcaption {
  font-size: 0.72rem; color: var(--muted);
  padding: 10px 14px; border-top: 1px solid var(--line);
}

.area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 28px;
}
.area-grid span {
  background: var(--navy); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; text-align: center;
  font-weight: 600; font-size: 0.9rem; color: var(--cream);
}
.photo-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.photo-pair figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.photo-pair img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.steps li {
  background: var(--navy-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
}
.step-num {
  display: block; font-family: var(--font-display);
  font-weight: 800; font-size: 0.85rem; color: var(--sky); margin-bottom: 10px;
}
.steps h3 {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 700; color: #fff; margin-bottom: 6px;
}
.steps p { font-size: 0.88rem; color: var(--cream-dim); }

.cta-section {
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(57, 183, 224, 0.12), transparent 50%),
    var(--navy);
  padding-bottom: calc(72px + var(--sticky-h));
}
.quote-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: start;
}
.contact-line {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; margin: 8px 0;
}
.contact-line a { color: var(--sky-hot); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

.quote-card {
  background: var(--navy-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  border-top: 3px solid var(--sky);
}
.quote-label {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky); font-weight: 700; margin-bottom: 8px;
}
.quote-card h3 {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 700; color: #fff; margin-bottom: 12px;
}
.quote-card p {
  color: var(--cream-dim); font-size: 0.95rem; margin-bottom: 20px;
}
.quote-card .btn { width: 100%; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px calc(40px + var(--sticky-h));
  background: var(--navy);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px; font-size: 0.85rem; color: var(--muted);
}
.footer a { color: var(--cream-dim); }
.footer a:hover { color: var(--sky-hot); }
.footer-sub { margin-top: 8px; max-width: 480px; line-height: 1.5; font-size: 0.78rem; }

/* Sticky quote bar */
.sticky-quote {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  display: flex; align-items: stretch; min-height: var(--sticky-h);
  background: rgba(12, 26, 36, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-quote.is-hidden {
  transform: translateY(100%); opacity: 0; pointer-events: none;
}
.sticky-label {
  display: none; align-items: center;
  padding: 0 16px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn); white-space: nowrap;
}
.sticky-quote a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.sticky-call { background: var(--sky); color: #0c1a24 !important; }
.sticky-call:hover { background: var(--sky-hot); text-decoration: none !important; }
.sticky-email {
  color: var(--cream) !important; border-left: 1px solid var(--line);
}
.sticky-email:hover { background: var(--navy-mid); text-decoration: none !important; }

@media (min-width: 720px) {
  .sticky-label { display: flex; }
  .sticky-quote a { flex: 0 0 auto; padding: 0 28px; }
}

@media (max-width: 900px) {
  .photo-row { grid-template-columns: 1fr; }
  .why-grid, .quote-grid, .photo-pair { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; padding: 56px 20px 48px; }
  .section { padding: 56px 20px; }
  .cta-section { padding-bottom: calc(56px + var(--sticky-h)); }
  .area-grid { grid-template-columns: 1fr; }
}
