/* ============================================================
   THE PEAK ROOFING — "The Premium Bid"
   Charcoal + burgundy wine + ivory. Full-screen photo hero with
   corner text and a floating quote card. Portfolio strip below.
   Palette: charcoal #1c1917/#292524 · burgundy #7f1d1d · ivory #faf7f2
   (NO navy, NO orange — HVAC site owns those)
   ============================================================ */
:root {
  --ink: #1c1917;            /* warm charcoal */
  --accent: #292524;
  --brand: #7f1d1d;          /* burgundy wine */
  --brand-light: #a13c3c;
  --bg: #faf7f2;             /* ivory */
  --bg-soft: #f2ede3;
  --panel: #ffffff;
  --line: #e3dccf;
  --muted: #6b6560;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Dark sticky header with shadow */
.site-header {
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem; font-weight: 700; color: #fff;
  text-decoration: none; letter-spacing: 0.01em;
}
.brand span { font-style: italic; color: var(--brand-light); }
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a { color: #e7e2d8; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: #fff; }

.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 13px 30px; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
  border-radius: 999px; box-shadow: 0 3px 10px rgba(127,29,29,0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #5f1616; transform: translateY(-1px); }
.btn-small { padding: 9px 20px; font-size: 0.85rem; }

/* HERO — full-screen photo, corner text + floating card */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: flex-end;
  background: var(--accent);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0.25) 0%, rgba(28,25,23,0.15) 45%, rgba(28,25,23,0.82) 100%);
  z-index: 1;
}
/* Corner text — bottom-left */
.hero-text {
  position: relative; z-index: 2;
  max-width: 520px; padding: 48px 24px 56px;
  color: #fff;
}
.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.9rem; line-height: 1.12; margin-bottom: 14px;
  color: #fff; font-weight: 700;
  text-shadow: 0 3px 24px rgba(0,0,0,0.45);
}
.hero-text h1 em { color: #e8b4b4; font-style: italic; }
.hero-text p { font-size: 1.08rem; color: #f0ece3; max-width: 440px; margin-bottom: 26px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* Floating quote card — bottom-right, overlaps the hero */
.quote-card {
  position: relative; z-index: 3;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  padding: 30px 30px 26px;
  margin: 0 24px 56px auto;
  max-width: 330px;
  border-top: 5px solid var(--brand);
}
.quote-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem; color: var(--ink); margin-bottom: 4px;
}
.quote-card .qc-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.quote-card input {
  width: 100%; padding: 11px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--ink);
  background: var(--bg-soft);
}
.quote-card input:focus { outline: 2px solid var(--brand-light); border-color: transparent; }
.quote-card .btn { width: 100%; text-align: center; }
.quote-card .qc-note { font-size: 0.75rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Portfolio strip — before / during / after */
.portfolio { padding: 72px 0; }
.portfolio h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; color: var(--ink); margin-bottom: 8px;
}
.portfolio .lead { color: var(--muted); margin-bottom: 34px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,0.14); }
.pf-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pf-label {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.pf-label.after { background: var(--brand); }

.section { padding: 68px 0; }
.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; color: var(--ink); margin-bottom: 10px;
}
.section .lead { color: var(--muted); margin-bottom: 34px; max-width: 640px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 2px 8px rgba(28,25,23,0.06);
  padding: 26px 24px;
}
.service-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-item {
  background: var(--accent); color: #ddd8cd; padding: 24px;
  border-radius: 12px; border-bottom: 4px solid var(--brand);
}
.why-item h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.why-item p { font-size: 0.95rem; color: #b3ada1; }

.site-footer {
  background: var(--ink); color: #b3ada1;
  padding: 44px 0; margin-top: 40px; font-size: 0.92rem;
}
.site-footer a { color: var(--brand-light); }
.site-footer .footer-note { margin-top: 12px; font-size: 0.85rem; color: #8a8378; }

/* Blog */
.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--line); padding: 22px 0; }
.post-list a { color: var(--ink); text-decoration: none; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.post-list a:hover { color: var(--brand); }
.post-list .meta { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.post-body { max-width: 720px; }
.post-body h2 { font-size: 1.5rem; margin-top: 34px; color: var(--ink); }
.post-body p { margin: 16px 0; }
.post-body ul, .post-body ol { margin: 16px 0 16px 24px; }
.post-body blockquote { border-left: 4px solid var(--brand); padding-left: 18px; color: var(--muted); margin: 20px 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 0.95rem; }
th { background: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .hero { min-height: 540px; flex-direction: column; justify-content: flex-end; }
  .hero-text h1 { font-size: 2.1rem; }
  .quote-card { margin: 0 16px 30px; max-width: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 16px; }
  .main-nav a:nth-child(3) { display: none; }
}
