/* Trident HVAC — design tokens + base styles
   Typography from Aquora (Figtree). Colour palette from tridentair.ca (red + deep navy + yellow). */
:root {
  /* Deep navy from tridentair.ca theme stylesheet */
  --navy-950: #051d3e;
  --navy-900: #07254e;
  --navy-800: #0c2e60;
  --navy-700: #143f7e;
  --navy-100: #d8def0;
  --navy-50:  #eef1f8;

  --accent: #d63343;       /* tridentair.ca primary red — CTA */
  --accent-hover: #bd2433;
  --accent-soft: #fbe7ea;

  /* Optional secondary accent (yellow) — available via var if needed */
  --accent-2: #fbb101;
  --accent-2-soft: #fff5dc;

  --ink:   #1a1d21;     /* primary text — near-black, high readability */
  --ink-2: #353a44;     /* secondary copy — readable gray */
  --ink-3: #555b66;     /* muted body text — still passes AA on white */
  --ink-4: #767d89;     /* low-emphasis captions / placeholder */

  --bg: #ffffff;
  --bg-2: #faf6f3;         /* warm off-white */
  --bg-3: #f0ece8;
  --line: #e7e7e7;
  --line-2: #ddd4da;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(5, 29, 62, 0.06), 0 1px 3px rgba(5, 29, 62, 0.04);
  --shadow:    0 4px 16px rgba(5, 29, 62, 0.08), 0 2px 4px rgba(5, 29, 62, 0.04);
  --shadow-lg: 0 24px 48px rgba(5, 29, 62, 0.14), 0 8px 16px rgba(5, 29, 62, 0.06);

  --container: 1240px;
  --gutter: 24px;

  /* Aquora's single-family typography */
  --font-display: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY SYSTEM (Aquora-inspired Figtree scale)

   Headings:                              Body:
   H1: 64px / 70 / 600                    Large paragraph:   18px / 28 / 500   .text-large
   H2: 56px / 64 / 600                    Regular paragraph: 18px / 28 / 400   (default <p>)
   H3: 40px / 48 / 600                    Small paragraph:   16px / 24 / 500   .text-small
   H4: 32px / 40 / 600                    Extra small:       16px / 24 / 400   .text-xs
   H5: 24px / 32 / 600
   H6: 20px / 28 / 600

   Mobile gracefully scales H1–H4 via clamp().
   ───────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.56;          /* ≈28px on 18px body */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5vw, 64px);   line-height: 1.09; letter-spacing: -0.018em; }
h2 { font-size: clamp(32px, 4vw, 56px);   line-height: 1.14; letter-spacing: -0.015em; }
h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.20; }
h4 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; }
h5 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.33; }
h6 { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.40; }

p { margin: 0; text-wrap: pretty; }

/* ── Reusable typography utility classes ──────────────── */
.text-large    { font-size: 18px; line-height: 28px; font-weight: 500; }
.text-regular  { font-size: 18px; line-height: 28px; font-weight: 400; }
.text-small    { font-size: 16px; line-height: 24px; font-weight: 500; }
.text-xs       { font-size: 16px; line-height: 24px; font-weight: 400; }

/* Lead paragraph — used after section headings as supporting copy */
.lead {
  font-size: 18px;
  line-height: 1.56;
  font-weight: 500;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ── Buttons ────────────────────────────────────────── */
/* All buttons: 16px / weight 500 / line-height 1 — matches "Buttons should use 16px medium" rule */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(214, 51, 67, 0.32);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px rgba(214, 51, 67, 0.42); }

.btn-dark {
  background: var(--navy-950);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-800); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-light:hover { background: var(--bg-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; font-weight: 500; }

/* ── Section scaffolding ────────────────────────────── */
section { padding: 96px 0; position: relative; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section-head .lead { font-size: 18px; line-height: 1.56; font-weight: 500; color: var(--ink-2); }

/* ── Utilities ──────────────────────────────────────── */
.divider { height: 1px; background: var(--line); width: 100%; }
.muted   { color: var(--ink-3); }
.muted-2 { color: var(--ink-4); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-3);
  color: var(--ink-2);
}

/* Stripe placeholder for imagery */
.placeholder {
  background-color: #2a3a52;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.04) 0 12px,
      transparent 12px 24px);
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y, 28px));
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .9s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Soft hover float for cards */
.svc-card, .review-card, .area-row, .brand-pill, .why-item, .faq-item {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s, background .25s;
}

/* Scrolling marquee for service-area / brands */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
  gap: 56px;
  padding-right: 56px;
  align-items: center;
}

/* Star icon helper */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #ffb400;
}
