/* SB Construction South West. Plain CSS, no framework, no outside fonts. */
:root {
  --bg: #121417;
  --bg-2: #1b1f24;
  --bg-3: #242a31;
  --text: #e9ecef;
  --muted: #aab3bc;
  --accent: #31b5c7;
  --accent-dark: #1f8e9d;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: #6fd3e0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.4em 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; color: #000; padding: 8px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 23, .96); border-bottom: 1px solid #2c333b; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 6px; }
.site-nav a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 4px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-phone { background: var(--accent); color: #0b1c1f; font-weight: 700; }
.site-nav .nav-phone:hover { background: #6fd3e0; color: #0b1c1f; }
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .8em; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--bg-3); border: 1px solid #333b44; border-radius: 6px; padding: 6px 0 !important; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid #2c333b; padding: 10px 20px 20px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .sub { display: block; position: static; background: none; border: 0; padding: 0 0 0 16px !important; }
  .has-sub > a::after { content: ""; }
  .brand span { font-size: .95rem; }
}

/* Hero (service and area pages) */
.hero { background-size: cover; background-position: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 14, .62); }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 90px 20px; text-align: center; }
.hero-inner p:first-child { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: .25em; margin: 0 0 .4em; }
.hero-sub { font-size: 1.05rem; color: #dfe5ea; }

/* Title band */
.title-band { background: var(--bg-2); border-bottom: 3px solid var(--accent); text-align: center; padding: 36px 0 26px; }
.title-band h1 { margin: 0 0 .3em; }
.title-sub { color: var(--accent); font-weight: 600; margin: 0; }

/* Content */
.content { padding-top: 20px; padding-bottom: 50px; }
.content > p, .content > h2, .content > h3, .content > h4, .content > ul, .content > .lead { max-width: 820px; }
.lead { font-size: 1.15rem; color: #d6dde3; }
.row { display: grid; gap: 36px; align-items: center; margin: 48px 0; }
.row.cols-2 { grid-template-columns: 1fr 1fr; }
.row.cols-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
.row.cols-4 { grid-template-columns: repeat(4, 1fr); align-items: start; }
.row .row { margin: 0; }
.col > :first-child { margin-top: 0; }
.col > p:first-child:not(:only-child) { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
figure { margin: 0 0 1em; }
figure img, .col > img:not(.icon) { border-radius: 8px; display: block; width: 100%; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
img.icon { display: block; margin-bottom: 8px; }
.row.cols-3 .col, .row.cols-4 .col { background: var(--bg-2); padding: 22px; border-radius: 8px; }
@media (max-width: 760px) {
  .row.cols-2, .row.cols-3, .row.cols-4 { grid-template-columns: 1fr; gap: 20px; }
}

/* Buttons */
.btn-wrap { margin: 1.2em 0; }
.btn { display: inline-block; background: var(--accent); color: #0b1c1f; font-weight: 700; padding: 12px 26px; border-radius: 4px; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; }
.btn:hover { background: #6fd3e0; border-color: #6fd3e0; color: #0b1c1f; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--accent); }

/* Forms */
.quote-form { background: var(--bg-2); padding: 24px; border-radius: 8px; max-width: 640px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row textarea { width: 100%; padding: 11px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #3a434d; border-radius: 4px; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { font-size: .9rem; color: var(--muted); }
.hidden-field { display: none; }
.home-form { padding-bottom: 60px; }

/* Calls to action and footer */
.cta-band { background: var(--bg-3); text-align: center; padding: 50px 0; border-top: 3px solid var(--accent); }
.cta-band h2 { margin-top: 0; letter-spacing: .1em; text-transform: uppercase; }
.site-footer { background: #0c0e10; color: var(--muted); padding: 40px 0 10px; font-size: .95rem; }
.site-footer h2 { font-size: 1.05rem; color: var(--text); margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-bottom { border-top: 1px solid #222930; margin-top: 30px; padding-top: 12px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.text-page { max-width: 820px; }
table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid #333b44; padding: 6px 8px; }

/* Photo galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 1em 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.row:has(form) { align-items: start; }
