/* Shingle Standard tier — Crestview Heating & Air
   Thesis: "A family HVAC company's 1974 sales brochure, still in print because it still works."
   Palette: Warm cream paper, terracotta rust brand, dark brown ink.
   Typefaces: Fraunces (editorial serif display) + Source Sans 3 (body).

   To customize for a new client:
   1. Update brand color variables below
   2. Search/replace business name, phone, address, email in HTML files
   3. Swap placeholder content / imagery
*/

:root {
  --brand:       #8C4A1E;
  --brand-dark:  #6E3915;
  --brand-light: #B05E28;
  --paper:       #F7F3EC;
  --ink:         #231A0E;
  --muted:       #7A6B5D;
  --line:        #D4C9BC;
  --surface:     #EDE7DD;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fraunces for all display headings */
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

::selection {
  background: var(--brand);
  color: var(--paper);
}

/* ---- Scroll reveal ---- */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* Safety: reveal after 2s even if JS fails (CSP/network/ad-block) */
  animation: reveal-fallback 0.6s ease 2s forwards;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
}

/* ---- Brochure section rule (thick top border used as section header) ---- */
.section-rule {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  margin-bottom: 2rem;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Print ---- */
@media print {
  header, footer, .mobile-menu, .no-print { display: none !important; }
}
