/* M&S Roofing Solutions — light layout, navy primary, orange accent */
:root {
  --primary: #10408a;
  --primary-dk: #0b2f66;
  --accent: #f2730d;
  --accent-dk: #d9620a;
  --dark: #0f172a;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --radius: 4px;
  --max: 1200px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 104px) 0; background: var(--bg); }
.section--char { background: var(--bg-alt); }

.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-weight: 600; font-size: .9rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.lead { font-size: 1.15rem; max-width: 60ch; }

/* Placeholder marker — remove the class once real content is in */
.ph { outline: 1.5px dashed var(--accent); outline-offset: 2px; border-radius: 2px; cursor: help; }
.ph-banner { background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600; text-align: center; padding: 8px 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(242,115,13,.28); }
.btn--accent:hover { background: var(--accent-dk); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dk); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 74px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--head); font-weight: 500; font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 20px; border-bottom: 0; color: #fff; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--dark); }
.hero__bg { position: absolute; inset: 0; background: url("../img/standing-seam.jpg") center / cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.82) 45%, rgba(15,23,42,.25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(72px, 10vw, 136px); }
.hero .wrap > div { max-width: 680px; }
.hero h1 { color: #fff; }
.hero .lead { color: #e2e8f0; margin-bottom: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: .9rem; color: #cbd5e1; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--accent); }

/* Audience strip */
.audience { border-bottom: 1px solid var(--line); background: #fff; }
.audience .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.audience a { display: block; padding: 26px 24px; text-decoration: none; border-left: 1px solid var(--line); border-top: 3px solid transparent; transition: background .2s, border-color .2s; }
.audience a:last-child { border-right: 1px solid var(--line); }
.audience a:hover { background: var(--bg-alt); border-top-color: var(--accent); }
.audience strong { display: block; font-family: var(--head); font-size: 1.25rem; text-transform: uppercase; color: var(--primary); }
.audience span { font-size: .9rem; color: var(--muted); }

/* Section heading */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head > div { max-width: 680px; }
.sec-head p { margin: 0; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-decoration: none; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.section--char .card { background: #fff; }
a.card:hover { box-shadow: 0 16px 40px rgba(15,23,42,.1); transform: translateY(-3px); border-color: #cbd5e1; }
.card__num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px;
  background: rgba(16,64,138,.08); color: var(--primary); border-radius: var(--radius);
  font-family: var(--head); font-weight: 600; font-size: 1.1rem; transition: background .25s, color .25s;
}
a.card:hover .card__num { background: var(--primary); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.card__more { margin-top: auto; font-family: var(--head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--accent); }
.card__more::after { content: " →"; }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.frame { position: relative; }
.frame img { position: relative; z-index: 1; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 20px 50px rgba(15,23,42,.15); }
.frame::before { content: ""; position: absolute; right: -14px; bottom: -14px; width: 110px; height: 110px; border-right: 4px solid var(--accent); border-bottom: 4px solid var(--accent); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks svg { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.checks strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1.2rem; text-transform: uppercase; }
.checks span { color: var(--muted); }

/* Manufacturers */
.mfr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mfr {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 140px; padding: 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.mfr-grid--5 { grid-template-columns: repeat(5, 1fr); }
a.mfr { text-decoration: none; border-top: 3px solid transparent; transition: border-color .2s, background .2s; }
a.mfr:hover { background: #fff; border-top-color: var(--accent); }
.mfr strong { font-family: var(--head); font-size: 1.3rem; line-height: 1.15; color: var(--primary); text-transform: uppercase; margin-bottom: 4px; }
.mfr span { font-size: .85rem; color: var(--muted); }
.mfr-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; scroll-margin-top: 100px; }
.mfr-detail p { color: var(--muted); }
.mfr-detail--cta { display: flex; flex-direction: column; justify-content: center; text-decoration: none; background: var(--primary); border-color: var(--primary); }
.mfr-detail--cta h3 { color: #fff; }
.mfr-detail--cta p { color: #dbe6f7; }
.product__mfr { margin: -6px 0 0; font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.footer-grid small { color: #64748b; font-size: .8rem; }
.mfr-detail .logo-slot {
  height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: var(--bg-alt); border-radius: var(--radius);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-size: .85rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: .8rem; padding: 4px 10px; background: rgba(242,115,13,.1); color: #b4530a; border-radius: 99px; font-weight: 500; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 30px; }
.step b { display: block; font-family: var(--head); font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* Service area */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-alt);
  font-family: var(--head); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
}

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--head); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.8rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--text); }

/* CTA band */
.cta { position: relative; overflow: hidden; text-align: center; background: var(--primary); }
.cta h2 { color: #fff; }
.cta .lead { color: #dbe6f7; margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }

/* Page header */
.page-head { background: var(--primary); border-bottom: 4px solid var(--accent); }
.page-head .wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 56px); }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-head .lead { color: #dbe6f7; margin: 0; }
.page-head .eyebrow { color: #ffb47a; }
.page-head .eyebrow::before { background: #ffb47a; }
.page-head .accent { color: #ffb47a; }

/* Product detail */
.products-list { background: var(--bg-alt); padding: 24px 0 64px; }
.product {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 24px; padding: 36px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 100px;
}
.product__side h2 { font-size: 1.9rem; }
.product__side .btn-row { margin-top: 20px; }
.product__side .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }
.product__side .btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.spec-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.spec-list li small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #cbd5e1; border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-group label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: var(--radius); font-weight: 500; color: var(--ink); cursor: pointer;
}
.checkbox-group input { width: auto; min-height: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.is-ok { display: block; background: #ecfdf3; border: 1px solid #22a06b; color: #14532d; }
.form-status.is-err { display: block; background: #fff4ec; border: 1px solid var(--accent); color: #7c2d12; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.side-card--dark { background: var(--dark); border-color: var(--dark); color: #cbd5e1; }
.side-card h3 { font-size: 1.25rem; color: var(--primary); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.contact-list svg { width: 40px; height: 40px; padding: 10px; border-radius: var(--radius); background: rgba(16,64,138,.08); color: var(--primary); }
.contact-list small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.contact-list a, .contact-list span { color: var(--ink); text-decoration: none; font-weight: 500; }

/* Footer */
.site-footer { background: var(--dark); color: #94a3b8; border-top: 4px solid var(--accent); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid img { height: 96px; width: auto; margin-bottom: 16px; border-radius: 6px; }
.footer-grid h4 { font-size: 1.05rem; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: #94a3b8; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #64748b; }

/* Floating call button */
.call-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px; border-radius: 99px; text-decoration: none;
  background: var(--primary); color: #fff;
  box-shadow: 0 14px 36px rgba(15,23,42,.3); transition: transform .15s, background .2s;
}
.call-fab:hover { transform: translateY(-2px); background: var(--primary-dk); }
.call-fab i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); }
.call-fab i svg { width: 18px; height: 18px; }
.call-fab small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #bcd0ef; line-height: 1.2; }
.call-fab b { display: block; font-size: .95rem; line-height: 1.3; }
.call-fab .ph { outline-color: #ffb47a; }

/* Responsive */
@media (max-width: 980px) {
  .split, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .mfr-grid, .mfr-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .audience .wrap { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .audience a { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 16px; }
  .hero::after { background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(15,23,42,.8)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: 0 16px 30px rgba(15,23,42,.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: 14px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .grid--3, .grid--2, .mfr-grid, .mfr-grid--5, .form-row, .spec-list { grid-template-columns: 1fr; }
  .audience .wrap { grid-template-columns: 1fr; }
  .audience a { border-left: 0; border-right: 0 !important; padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .wrap { height: 76px; }
  .nav { top: 76px; }
  .brand img { height: 62px; }
  .btn-row .btn { flex: 1 1 100%; }
  .product { padding: 24px; }
  .call-fab { right: 14px; bottom: 14px; padding: 8px; }
  .call-fab span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
