/* ==========================================================================
   MNS Construction LLC - styles
   Brand palette: black/charcoal, white, red sampled from logo (#DA1B22).
   Change --accent to re-theme all buttons, icons, and highlights.
   ========================================================================== */
:root {
  --accent: #DA1B22;          /* sampled from logo roof: rgb(218,27,34) */
  --accent-dark: #B3151B;
  --accent-soft: rgba(218, 27, 34, 0.09);
  --ink: #16171a;             /* near-black */
  --charcoal: #1f2124;
  --charcoal-2: #2a2d31;
  --text: #2b2d31;
  --muted: #5d6168;
  --line: #e3e4e7;
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --container: 1160px;
  --header-h: 84px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .7em; }

/* Buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 6px; padding: .8em 1.4em; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, color .15s, border-color .15s, transform .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 66px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(22,23,26,.97) 0%, rgba(31,33,36,.93) 55%, rgba(42,45,49,.9) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
    var(--charcoal);
}
/* roof-line motif echoing the logo */
.hero-roof { position: absolute; right: 4%; top: 110px; width: 400px; height: 400px; pointer-events: none; }
.hero-roof::before { content: ""; position: absolute; inset: 0; border-top: 34px solid var(--accent); border-left: 34px solid var(--accent); transform: rotate(45deg); }
.hero-window { position: absolute; left: 50%; top: 22%; width: 56px; height: 56px; transform: translateX(-50%);
  background:
    linear-gradient(#fff,#fff) 0 0/24px 24px no-repeat, linear-gradient(#fff,#fff) 100% 0/24px 24px no-repeat,
    linear-gradient(#fff,#fff) 0 100%/24px 24px no-repeat, linear-gradient(#fff,#fff) 100% 100%/24px 24px no-repeat; opacity: .92; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); }
.hero-inner { position: relative; z-index: 1; padding: 104px 22px 110px; max-width: var(--container); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 56ch; }
.hero .eyebrow { color: #ff8d91; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.hero-tags li { font-size: .85rem; padding: 5px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); }

/* Sections */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--charcoal); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #ff8d91; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:last-child { color: rgba(255,255,255,.7); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon { width: 52px; height: 52px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 60px; height: 60px; }
.icon-lg svg { width: 32px; height: 32px; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; border-top: 3px solid transparent; }
.service-card:hover { transform: translateY(-3px); border-top-color: var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.service-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card-cta { background: var(--charcoal); border-color: var(--charcoal); text-decoration: none; display: flex; flex-direction: column; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.75); margin-bottom: 16px; }
.card-cta-link { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent); align-self: flex-start; padding-bottom: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split-card { padding: 38px 36px; }
.split-card > p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DA1B22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { padding: 30px 28px; background: var(--charcoal-2); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.07); }
.why-item .icon { background: rgba(218,27,34,.16); }
.why-item .icon svg { stroke: #ff5a60; }
.why-item p { margin: 0; font-size: .97rem; }

.area-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.area-inner p { color: var(--muted); font-size: 1.06rem; margin-bottom: 1.6em; }
.area-graphic { position: relative; max-width: 340px; margin: 0 auto; width: 100%; }
.area-graphic svg { width: 100%; height: auto; }
.ring { fill: none; stroke: var(--accent); }
.ring.r1 { fill: var(--accent-soft); stroke-opacity: .5; }
.ring.r2 { stroke-opacity: .3; stroke-dasharray: 4 5; }
.ring.r3 { stroke-opacity: .18; stroke-dasharray: 2 6; }
.pin { fill: var(--accent); }
.pin-dot { fill: #fff; }
.area-label { display: block; text-align: center; font-weight: 700; color: var(--ink); margin-top: 8px; letter-spacing: .02em; }

/* Quote */
.quote-inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.quote-intro > p { color: var(--muted); font-size: 1.06rem; }
.quote-email { margin-top: 28px; font-size: .98rem !important; }
.quote-form { padding: 34px 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: 6px; padding: 0; }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid #cfd1d5; border-radius: 6px; padding: .72em .85em; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6168' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; border: 1px solid #cfd1d5; border-radius: 6px; padding: .6em 1em; cursor: pointer; margin: 0 !important; flex: 1; min-width: 140px; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 0; font-size: .95rem; border-top: 6px solid var(--accent); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; word-break: break-all; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; padding-bottom: 26px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* Thanks page */
.thanks-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 60px 22px; background: var(--bg-alt); }
.thanks-card { max-width: 560px; text-align: center; padding: 48px 38px; }
.thanks-card .icon { margin: 0 auto 20px; width: 64px; height: 64px; }
.thanks-card p { color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-roof { width: 320px; height: 320px; right: -60px; opacity: .6; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 50px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 14px; border-bottom: 0; padding: .8em 1em; }
  .split, .area-inner, .quote-inner { grid-template-columns: 1fr; }
  .area-inner { gap: 36px; }
  .quote-inner { gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 22px 72px; }
  .hero-roof { width: 220px; height: 220px; right: -120px; top: 30px; opacity: .35; }
  .hero-roof::before { border-width: 22px; }
  .hero-window { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 26px 20px; }
  .split-card { padding: 30px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .area-graphic { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* specificity fixes */
.field .radio { padding: .7em 1em; font-size: 1rem; margin: 0; color: var(--text); }
.area-inner .eyebrow, .quote-intro .eyebrow { color: var(--accent); font-size: .8rem; margin-bottom: .7em; }

.site-footer a.footer-cta { color: #fff; text-decoration: none; margin: 4px 0; }
.site-footer a.footer-cta:hover { color: #fff; text-decoration: none; background: var(--accent-dark); }
