/*
  Second Generation Roofing — concept redesign by Timaeus.
  Brand palette taken from the original logo and site: deep brick red,
  gold, warm cream, coral CTA. Light theme on purpose to match the
  existing brand; not theme-switching.
*/
:root {
  --brick: #8f1d1b;
  --brick-deep: #6e1210;
  --gold: #d4a017;
  --gold-soft: #e6bc4a;
  --coral: #e78a63;
  --ink: #2b2320;
  --muted: #6f635c;
  --cream: #faf7f2;
  --cream2: #f3ede4;
  --white: #ffffff;
  --line: #e7ddd3;
  --footer: #241d1a;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.ribbon {
  background: var(--brick-deep); color: #f6e3d3;
  text-align: center; font-size: 12.5px; letter-spacing: .03em; padding: 7px 16px;
}
.ribbon b { color: var(--gold-soft); font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.58));
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border-bottom: 1px solid rgba(231,221,211,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 24px rgba(43,35,32,.05);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 26px;
}
.nav-logo img { height: 76px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  letter-spacing: .01em; padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brick); }
.nav-links a.active { color: var(--brick); border-bottom-color: var(--gold); }
.nav-cta {
  display: inline-block; background: var(--brick); color: #fff !important;
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--brick-deep); transform: translateY(-1px); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 18px; cursor: pointer; color: var(--ink); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,12,8,.82) 0%, rgba(24,12,8,.55) 45%, rgba(24,12,8,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 90px 24px; width: 100%; }
.eyebrow {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.08; max-width: 15ch; text-wrap: balance;
}
.hero .lede { margin-top: 22px; max-width: 52ch; font-size: 18px; color: #f0e6dc; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px;
  border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease; border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brick); color: #fff; }
.btn.primary:hover { background: var(--brick-deep); }
.btn.gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #3a2703; }
.btn.ghost {
  border: 1px solid rgba(255,255,255,.45); color: #fff;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.btn.ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn.ghost-dark { border: 1.5px solid var(--brick); color: var(--brick); }
.btn.ghost-dark:hover { background: var(--brick); color: #fff; }

/* ---------- stat band ---------- */
.stats { background: var(--brick); color: #fff; }
.stats-inner {
  max-width: 1240px; margin: 0 auto; padding: 34px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stats .n { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); color: var(--gold-soft); }
.stats .l { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #eeD9c8; margin-top: 4px; }

/* ---------- page hero (subpages) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,12,8,.66), rgba(24,12,8,.72)); }
.page-hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 92px 24px; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.page-hero p { margin-top: 14px; max-width: 58ch; color: #f0e6dc; font-size: 17px; }

/* ---------- sections ---------- */
section { padding: 80px 24px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.section-head h2, h2.display {
  font-family: var(--serif); font-weight: 400; color: var(--brick);
  font-size: clamp(28px, 3.8vw, 38px); margin-top: 10px; line-height: 1.15; text-wrap: balance;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.split.rev { direction: rtl; } .split.rev > * { direction: ltr; }
.split h2 { font-family: var(--serif); font-weight: 400; color: var(--brick); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; text-wrap: balance; }
.split p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.split .photo { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(43,35,32,.16); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card .pad { padding: 24px 24px 26px; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--brick); }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.card .link { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--brick); text-decoration: none; }
.card .link:hover { color: var(--brick-deep); }

/* checklist */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 20px; list-style: none; }
.checks li { padding-left: 26px; position: relative; color: var(--ink); font-size: 15px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.checks.one { grid-template-columns: 1fr; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 26px 24px; display: flex; flex-direction: column;
}
.quote .stars { color: var(--gold); font-size: 15px; letter-spacing: 3px; }
.quote blockquote { font-size: 14.8px; color: var(--ink); margin-top: 12px; flex: 1; }
.quote cite { font-style: normal; margin-top: 16px; font-weight: 700; color: var(--brick); font-size: 14px; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { border-radius: 14px; overflow: hidden; position: relative; background: #ddd; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(rgba(24,12,8,.42), rgba(24,12,8,.55));
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff; font-size: 13px; font-weight: 600;
}

/* CTA panel */
.cta-panel { background: linear-gradient(135deg, var(--brick), var(--brick-deep)); color: #fff; text-align: center; }
.cta-panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.4vw, 40px); max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.cta-panel p { color: #f0dfd0; margin-top: 12px; }
.cta-panel .cta-row { justify-content: center; }
.cta-panel .btn.ghost { border-color: rgba(255,255,255,.5); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.person img { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; width: 100%; }
.person .pad { padding: 22px 24px 26px; }
.person h3 { color: var(--brick); font-size: 18px; }
.person .role { color: var(--gold); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.person p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.info-card, .form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; }
.info-card .label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; flex-wrap: wrap; }
.info-row:last-of-type { border-bottom: 0; }
.info-row span { color: var(--muted); }
.info-row a, .info-row b { color: var(--brick); font-weight: 700; text-decoration: none; }
.form-card h3 { font-family: var(--serif); font-weight: 400; color: var(--brick); font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14.5px; background: var(--cream); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* footer */
footer { background: var(--footer); color: #cbbdb2; padding: 56px 24px 30px; }
.foot { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot .logo-box { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.foot .logo-box img { height: 58px; width: auto; }
.foot p { font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.foot ul { list-style: none; }
.foot li { margin: 7px 0; }
.foot a { color: #cbbdb2; text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--gold-soft); }
.foot .lic { color: var(--gold-soft); font-weight: 700; }
.foot-legal {
  max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: #96877c; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* news */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.post img { aspect-ratio: 5 / 2.6; object-fit: cover; width: 100%; }
.post .pad { padding: 24px 26px 26px; }
.post .date { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.post h3 { font-family: var(--serif); font-weight: 400; color: var(--brick); font-size: 22px; margin-top: 6px; }
.post p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* service areas */
.county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.county { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.county img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.county .pad { padding: 22px 24px 26px; }
.county h3 { color: var(--brick); font-size: 18px; }
.county p { color: var(--muted); font-size: 14px; margin-top: 8px; }

@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 24px; gap: 14px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cards, .quotes, .team-grid, .county-grid, .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  section { padding: 60px 20px; }
  .split, .split.rev { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
  .cards, .quotes, .team-grid, .county-grid, .gallery, .posts, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .checks { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery figure:hover img { transform: none; }
}
