/* ============================================================
   BASE — TX AIR PRO  (Bright Residential)
   ------------------------------------------------------------
   Design tokens, reset, typography, layout primitives.
   Edit :root to retheme. Color palette is pulled from the
   real logo: navy text, orange flame, blue snowflake, silver.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Light editorial palette */
  --bg:           #ffffff;   /* page background */
  --paper:        #f4f2ee;   /* cards / secondary surfaces — warm off-white */
  --cream:        #f4f2ee;   /* alt section background */
  --sand:         #f0ede8;   /* ticker / warmer accent */
  --line:         #e5e5e5;   /* borders and dividers */
  --line-strong:  #c8c8c8;

  /* Text */
  --ink:          #0f1e38;   /* headlines, primary text (dark navy) */
  --navy:         #111111;   /* deepest section bg (emergency bar / footer / CTA band) */
  --navy-soft:    #1a1a1a;
  --slate:        #111111;   /* body text */
  --mute:         #6b6b6b;   /* tertiary / muted text */
  --silver:       #aaaaaa;
  --silver-soft:  #e5e5e5;

  /* Accent — orange from the logo, used sparingly */
  --orange:       #e8761a;
  --orange-hot:   #ff8a2d;
  --orange-deep:  #c25e0e;
  --blue:         #e8761a;   /* deprecated; mapped to orange */
  --blue-soft:    #f4f2ee;

  --red:          #d8311c;   /* emergency only */
  --red-hot:      #ff4634;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Oswald', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spatial */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw:   1280px;
  --ease:   cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---- Document --------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.005em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--ink);
}

h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h4 { font-size: 1.2rem; letter-spacing: .02em; }

p { color: var(--slate); }
.lead { font-size: 1.125rem; color: var(--slate); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem; height: 1px;
  background: var(--orange);
}

/* Tabular numerals — used for phone, counters, addresses */
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Layout primitives ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: rgba(255,255,255,.78); }

/* Hairline divider */
.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* Section header pattern */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
  max-width: 980px;
}
@media (min-width: 720px) {
  .sec-head { grid-template-columns: auto 1fr; align-items: end; gap: 2.5rem; }
}
.sec-head__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--orange);
  letter-spacing: .25em;
  text-transform: uppercase;
}
.sec-head__title { line-height: .95; }
.sec-head__sub {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 55ch;
}

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Page entry stagger */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise   { animation: rise .8s var(--ease) both; }
.rise-1 { animation-delay: .1s; }
.rise-2 { animation-delay: .25s; }
.rise-3 { animation-delay: .4s; }
.rise-4 { animation-delay: .55s; }

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