/* Missouri City Roofing Contractors — Design DNA
   Register: BRAND
   Mood: Job-site structural honesty — a shingle spec sheet, not a home-services
   SaaS dashboard. Reads like a crew that measures twice.
   Anchor refs: a bundle of architectural shingles stacked on a pallet, a chalk
   line snapped across roof decking, a framing square laid on plywood
   Color: warm cream/clay canvas, deep espresso-brown ink, brick-red brand accent,
   charcoal secondary (Committed palette — warm-earthy, no blue/steel-gray)
   Type: Oswald (condensed grotesque display) + PT Sans (humanist body)
   Layout: strict visible Swiss grid, oversized headline, no split-screen
   Motion: calm, slow draw-in — quint easing
   Signature element: animated diagonal shingle-course overlay lines that draw
   across a full-width band beneath the hero, mimicking overlapping shingle courses
*/

:root {
  --canvas: oklch(96% 0.018 60);
  --canvas-alt: oklch(91% 0.022 58);
  --panel: oklch(98% 0.01 60);
  --ink: oklch(21% 0.02 40);
  --ink-soft: oklch(40% 0.02 42);
  --brick: oklch(50% 0.16 30);
  --brick-dark: oklch(40% 0.15 28);
  --charcoal: oklch(28% 0.015 40);
  --charcoal-light: oklch(88% 0.012 50);
  --line: oklch(78% 0.02 55);
  --grid-line: oklch(84% 0.015 55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 88px),
    repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 88px);
  background-attachment: fixed;
}

h1, h2, h3, .display {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  max-width: 1160px;
  margin: 0 auto;
  background: var(--panel);
  border-bottom: 3px solid var(--charcoal);
}

.nav-brand { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-brand span { color: var(--brick); }

.nav-links { display: flex; gap: 30px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links a { color: var(--ink-soft); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--brick); }

.nav-cta {
  background: var(--brick);
  color: white !important;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-cta:hover { background: var(--brick-dark); }

/* ---- Hero: strict grid, oversized headline ---- */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 32px 0;
  border-left: 3px solid var(--charcoal);
  border-right: 3px solid var(--charcoal);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-copy .sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
}

.hero-ctas { display: flex; gap: 16px; opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.34s forwards; }

.btn-primary {
  background: var(--brick);
  color: white;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  transition: background 0.25s ease;
}
.btn-primary:hover { background: var(--brick-dark); }

.btn-secondary {
  border: 2px solid var(--charcoal);
  padding: 15px 30px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-secondary:hover { border-color: var(--brick); color: var(--brick); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signature: diagonal shingle-course overlay band */
.shingle-band {
  max-width: 1160px;
  margin: 48px auto 0;
  padding: 0 32px;
  border-left: 3px solid var(--charcoal);
  border-right: 3px solid var(--charcoal);
}
.shingle-svg { width: 100%; height: auto; display: block; }
.shingle-course {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: drawShingle 1.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.shingle-course:nth-child(2) { animation-delay: 0.15s; }
.shingle-course:nth-child(3) { animation-delay: 0.3s; }
.shingle-course:nth-child(4) { animation-delay: 0.45s; }
.shingle-course:nth-child(5) { animation-delay: 0.6s; }
@keyframes drawShingle { to { stroke-dashoffset: 0; } }

/* ---- Sections ---- */
section { padding: 76px 0; }
.section-alt { background: var(--charcoal); color: var(--charcoal-light); }
.section-alt h2, .section-alt .display { color: var(--charcoal-light); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--brick);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 16px; max-width: 640px; }
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 560px; }
.section-alt .section-head p { color: oklch(78% 0.015 50); }

/* ---- Services: strict grid, numbered spec-sheet cells ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 2px solid var(--charcoal);
  border-left: 2px solid var(--charcoal);
}
.service-cell {
  padding: 28px 24px;
  border-right: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
}
.service-cell .num { color: var(--brick); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 12px; display: block; }
.service-cell h3 { font-size: 18px; margin-bottom: 10px; text-transform: none; letter-spacing: normal; font-weight: 700; }
.service-cell p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- Trust / rating strip ---- */
.trust-strip {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 48px 0;
  text-align: center;
}
.trust-strip .big-rating {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--brick);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.trust-strip p { color: var(--ink-soft); font-size: 15px; max-width: 520px; margin: 0 auto; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--brick);
  color: white;
  text-align: center;
  padding: 72px 32px;
}
.cta-band h2 { color: white; font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 14px; }
.cta-band p { color: oklch(94% 0.02 30); margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--charcoal); color: white; }
.cta-band .btn-primary:hover { background: oklch(20% 0.015 40); }

/* ---- Footer ---- */
footer {
  padding: 40px 32px;
  border-top: 3px solid var(--charcoal);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Inner page layout ---- */
.page-header {
  padding: 56px 32px 40px;
  max-width: 820px;
  margin: 0 auto;
}
.page-header h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 16px; }
.page-header p { font-size: 18px; color: var(--ink-soft); text-transform: none; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--charcoal);
  border-left: 2px solid var(--charcoal);
  max-width: 1160px;
  margin: 0 auto 64px;
}
.stat-strip .stat {
  padding: 24px;
  border-right: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
}
.stat strong { font-family: 'Oswald', sans-serif; font-size: 26px; display: block; color: var(--brick); margin-bottom: 6px; text-transform: uppercase; }
.stat span { font-size: 14px; color: var(--ink-soft); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1160px;
  margin: 0 auto 80px;
  border: 2px solid var(--charcoal);
}
.contact-card {
  padding: 40px;
  background: var(--panel);
}
.contact-card + .contact-card { border-left: 2px solid var(--charcoal); }
.contact-card a.phone { font-family: 'Oswald', sans-serif; font-size: 30px; color: var(--brick); display: block; margin: 8px 0 24px; text-transform: uppercase; }
.contact-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-row:last-child { border-bottom: none; }

form.light-form { display: flex; flex-direction: column; gap: 16px; }
form.light-form label { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.03em; }
form.light-form input, form.light-form select, form.light-form textarea {
  border: 2px solid var(--line);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--canvas);
}
form.light-form textarea { resize: vertical; min-height: 90px; }
form.light-form button {
  background: var(--brick);
  color: white;
  border: none;
  padding: 15px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s ease;
}
form.light-form button:hover { background: var(--brick-dark); }

@media (max-width: 780px) {
  .services-grid, .stat-strip { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-card + .contact-card { border-left: none; border-top: 2px solid var(--charcoal); }
  .nav-links { display: none; }
  .hero, .shingle-band { border-left: none; border-right: none; }
}
