/* ============================================
   O3 ROOFING — palette pulled from the logo
   dark charcoal + sky blue + brushed silver
   ============================================ */

:root {
  --bg: #101315;
  --bg-alt: #1a1e21;
  --card: #1c2124;
  --card-alt: #23282c;
  --border: #2c3236;

  --blue: #4CC3F0;
  --blue-dim: #2f8fbf;
  --blue-deep: #1e5f80;

  --silver: #d4d8db;
  --silver-dim: #9aa2a7;
  --white: #f3f5f6;
  --muted: #8b9297;

  --radius: 6px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 19px; }

p { color: var(--muted); margin: 0 0 12px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

img { max-width: 100%; display: block; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.brand img { margin-right: 10px; }

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--silver-dim);
}
.nav-links a { margin-left: 32px; }
.nav-links a:first-child { margin-left: 0; }

.nav-links a { padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); border-color: var(--blue); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #0c1315;
}
.btn-primary:hover { background: #6ccff2; }

.btn-outline {
  border-color: var(--border);
  color: var(--silver);
  background: transparent;
}
.btn-outline:hover { border-color: var(--blue); color: var(--white); }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(16,19,21,0.55) 0%, rgba(16,19,21,0.92) 85%),
    linear-gradient(160deg, #171b1d 0%, #10171a 60%, #0c1315 100%);
  padding: 90px 32px 60px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(120deg, transparent 46%, rgba(76,195,240,0.10) 47%, rgba(76,195,240,0.10) 48%, transparent 49%),
              linear-gradient(60deg, transparent 46%, rgba(76,195,240,0.10) 47%, rgba(76,195,240,0.10) 48%, transparent 49%);
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-inner { max-width: 720px; }
.hero h1 { font-size: 48px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p.lead { font-size: 17px; max-width: 560px; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; margin-bottom: 10px; }
.hero-actions a { margin-right: 14px; }
.hero-actions a:last-child { margin-right: 0; }

/* ---------- ridge-cap divider strip ---------- */
.ridge-strip {
  display: flex;
  height: 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ridge-strip span {
  flex: 1;
  background: var(--card-alt);
  margin: 4px 2px;
  border-radius: 1px;
}

/* ---------- badges row ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.badge { display: flex; gap: 10px; align-items: flex-start; }
.badge .dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--blue-dim);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 14px;
}
.badge strong { display: block; color: var(--white); font-size: 14px; margin-bottom: 2px; }
.badge span.desc { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
section { padding: 64px 32px; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 10px; }

/* ---------- cards / grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
}
.grid-3 .card {
  padding: 32px 28px;
  background: var(--card);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.grid-3 .card:nth-child(3n) { border-right: none; }
.grid-3 .card:nth-child(-n+3) { border-top: none; }

.card .num { color: var(--blue-dim); font-size: 12px; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; }

.cta-link { margin-top: 28px; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.steps .step .roman { color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 14px; }

/* ---------- materials list ---------- */
.materials { max-width: var(--maxw); margin: 0 auto; }
.material-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--white);
}
.material-row span.meta { color: var(--muted); font-size: 13px; font-family: monospace; }

/* ---------- testimonial ---------- */
.testimonial {
  background: var(--card-alt);
  text-align: center;
  padding: 80px 32px;
}
.testimonial blockquote {
  max-width: 680px; margin: 0 auto 24px;
  font-family: Georgia, serif; font-style: italic;
  font-size: 22px; color: var(--white); line-height: 1.5;
}
.testimonial .who { display: flex; gap: 12px; justify-content: center; align-items: center; }
.testimonial .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); }
.testimonial .who strong { color: var(--white); display: block; font-size: 14px; }
.testimonial .who span { color: var(--muted); font-size: 13px; }

/* ---------- closing CTA ---------- */
.closing {
  text-align: center;
  padding: 90px 32px;
}
.closing h2 { max-width: 560px; margin: 0 auto 14px; }
.closing p { max-width: 480px; margin: 0 auto 30px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a { margin-left: 24px; }
.footer-inner nav a:first-child { margin-left: 0; }
.footer-inner a:hover { color: var(--blue); }

/* ---------- generic page hero (about/services/contact) ---------- */
.page-hero { padding: 70px 32px 50px; }
.page-hero .hero-inner { max-width: 640px; }
.page-hero h1 { font-size: 38px; }

/* ---------- about page ---------- */
.stat-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.stat-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-row .num { color: var(--blue); font-size: 20px; font-weight: 700; }
.stat-row .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; align-self: center; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; max-width: var(--maxw); margin: 0 auto; align-items: start; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.people .person { border-top: 1px solid var(--border); padding-top: 16px; }
.people h3 { font-size: 16px; margin-bottom: 4px; }
.people p { font-size: 13px; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: var(--maxw); margin: 0 auto; }
.values-grid .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.values-grid h3 { font-size: 15px; }
.values-grid p { font-size: 13px; }

/* ---------- services page ---------- */
.grid-3.services .card { padding: 30px 26px; }

/* ---------- contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin-bottom: 20px;
}
.info-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.info-row .val { color: var(--white); font-size: 15px; }

.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.area-list li { padding: 6px 0; color: var(--silver); position: relative; padding-left: 14px; }
.area-list li::before { content: "▪"; color: var(--blue); position: absolute; left: 0; font-size: 10px; top: 9px; }

form.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 11px 12px; color: var(--white); font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 90px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px;
  font-size: 12px; color: var(--silver-dim); text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; background: transparent;
}
.chip.active { background: var(--blue); border-color: var(--blue); color: #0c1315; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .badges, .grid-3, .steps, .two-col, .people, .values-grid, .contact-wrap, .form-row, .area-list {
    grid-template-columns: 1fr !important;
  }
  .grid-3 .card { border-right: none !important; border-top: 1px solid var(--border) !important; }
  h1 { font-size: 32px; }
  .hero h1 { font-size: 34px; }
}
