/* Craigmillar Building Services.
   Conventional trades-site structure: hero, prominent phone, services, process,
   area covered, FAQ, closing call to action.
   Treatment stays editorial: whitespace, hairlines and typographic scale carry
   the structure. No cards, no boxed panels, no vertical accent bars. */

:root {
  --ink: #1c1f21;
  --ink-soft: #555d61;
  --ink-faint: #8b9296;
  --rule: #d8d4cc;
  --paper: #faf8f4;
  --accent: #1d4f5c;
  --measure: 34rem;
  --page: 64rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.6rem; }

/* Masthead with the phone number given prominence, as trades sites do */

.masthead { padding: 1.6rem 0 0; border-bottom: 1px solid var(--rule); }

.masthead-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.32rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; line-height: 1.2;
}

.wordmark span {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 0.4rem;
}

.callnow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); text-align: right; line-height: 1.5;
}

.callnow a {
  display: block;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.42rem; letter-spacing: 0; text-transform: none;
  color: var(--accent); text-decoration: none; font-weight: 700;
}

.callnow a:hover { text-decoration: underline; }

nav {
  margin-top: 1.4rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.86rem; letter-spacing: 0.02em;
}

nav a {
  color: var(--ink-soft); text-decoration: none; margin-right: 1.6rem;
  display: inline-block; padding: 0.3rem 0 0.6rem;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Hero */

.hero-image {
  width: 100%; height: clamp(15rem, 34vw, 25rem);
  object-fit: cover; display: block;
}

.hero { padding: 2.8rem 0 0; }

/* Typography */

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.14; font-weight: 700;
  letter-spacing: -0.015em; margin: 0; max-width: 22ch;
}

.standfirst {
  font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft);
  max-width: var(--measure); margin: 1.1rem 0 0;
}

h2 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.4rem;
}

h3 { font-size: 1.16rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

.lead-out { font-size: 1.3rem; line-height: 1.5; color: var(--accent); max-width: 30ch; margin: 0; }

/* Call to action, a plain underlined link rather than a button block */

.cta {
  display: inline-block; margin-top: 1.6rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 0.2rem;
}

.cta:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Sections divided by hairlines, never by boxes */

section { padding: 3.2rem 0; border-top: 1px solid var(--rule); }
section.hero { border-top: none; }

.cols { display: grid; grid-template-columns: 13rem 1fr; gap: 2.4rem; align-items: start; }
.cols h2 { margin-bottom: 0; padding-top: 0.35rem; }

/* Credibility facts, spaced not boxed */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.8rem 2.4rem; margin: 0;
}

.facts dt {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.35rem;
}

.facts dd { margin: 0; font-size: 1.02rem; }

/* Hairline separated rows */

.rows { margin: 0; padding: 0; list-style: none; }
.rows li { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: none; padding-top: 0; }
.rows li p { margin-bottom: 0; color: var(--ink-soft); }

/* Two column service list on wide screens, still no boxes */

.rows.two-up {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  column-gap: 2.4rem;
}

.rows.two-up li { border-top: 1px solid var(--rule); }
.rows.two-up li:first-child { border-top: 1px solid var(--rule); padding-top: 1.25rem; }

.numbered { counter-reset: term; }
.numbered li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; counter-increment: term;
}
.numbered li::before {
  content: counter(term);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-faint); padding-top: 0.24rem;
}
.numbered li p { max-width: var(--measure); }

/* Process steps */

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: none; padding-top: 0; }
.steps h3::before {
  content: "Step " counter(step);
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.3rem;
}

/* FAQ */

.faq { margin: 0; }
.faq dt { font-weight: 700; margin-top: 1.5rem; }
.faq dt:first-of-type { margin-top: 0; }
.faq dd { margin: 0.35rem 0 0; color: var(--ink-soft); max-width: var(--measure); }

/* Contact details as text, deliberately not a form */

.contact-line { font-size: 1.5rem; line-height: 1.45; margin: 0 0 0.5rem; }
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-line a:hover { border-bottom-color: var(--accent); }

/* Footer */

footer {
  border-top: 1px solid var(--rule); margin-top: 1rem; padding: 2.2rem 0 3rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.84rem; color: var(--ink-soft);
}

footer p { max-width: none; margin-bottom: 0.5rem; }
.disclaimer { color: var(--ink-faint); font-size: 0.78rem; margin-top: 1.2rem; }

@media (max-width: 44rem) {
  body { font-size: 16px; }
  .cols { grid-template-columns: 1fr; gap: 1rem; }
  .cols h2 { padding-top: 0; }
  .contact-line { font-size: 1.2rem; }
  nav a { margin-right: 1.1rem; }
  .masthead-top { gap: 0.8rem; }
  .callnow { text-align: left; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e5df;
    --ink-soft: #a9b0b4;
    --ink-faint: #7c8488;
    --rule: #33383b;
    --paper: #16191b;
    --accent: #7fc6d8;
  }
}
