/* Roofing & Cladding Dorset — placeholder site
   Palette: charcoal ink, slate, Purbeck stone, roof-tile terracotta */

:root {
  --ink: #1E2328;
  --slate: #3D4A5C;
  --slate-dark: #2B3440;
  --stone: #EFE9DC;
  --stone-dark: #E2DACB;
  --tile: #A6462F;
  --tile-dark: #8A3823;
  --white: #FFFFFF;
  --line: rgba(30, 35, 40, 0.12);
  --radius: 3px;
  --font-head: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--tile);
  outline-offset: 2px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.logo span { color: var(--tile); }

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--slate-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { border-bottom-color: var(--tile); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--slate-dark);
  white-space: nowrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--tile);
  color: var(--white);
}
.btn-primary:hover { background: var(--tile-dark); }

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

.nav-toggle { display: none; }

/* Hero */
.hero {
  background: var(--slate-dark);
  color: var(--stone);
  padding: 64px 0 76px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}

.hero-eyebrow {
  color: var(--tile);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); }

.hero-lede {
  font-size: 1.15rem;
  color: var(--stone);
  max-width: 46ch;
}

.hero-usps {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-usps li {
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  color: var(--stone);
}

.hero-usps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tile);
  border-radius: 50%;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Callback card */
.callback-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.callback-card h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.callback-card .callback-sub {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--slate-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--stone);
}

.field textarea { resize: vertical; min-height: 90px; }

.form-note {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 10px;
}

.honeypot { position: absolute; left: -9999px; }

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: var(--stone); }

.section-head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.section-head p { color: var(--slate); }

/* Service grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
}

.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--slate); font-size: 0.96rem; margin-bottom: 0; }

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  border-top: 3px solid var(--tile);
  padding-top: 14px;
}

.process-step .step-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--tile);
  display: block;
  margin-bottom: 6px;
}

/* Areas */
.area-list {
  columns: 3;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.area-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

/* Callout band */
.callout {
  background: var(--tile);
  color: var(--white);
  padding: 46px 0;
  text-align: left;
}

.callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.callout h2 { color: var(--white); margin-bottom: 4px; }
.callout p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

.callout .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.callout .btn-outline:hover { background: var(--white); color: var(--tile); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { color: var(--slate); margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); }
.footer-brand p { color: rgba(239,233,220,0.75); font-size: 0.92rem; margin-top: 12px; }

.site-footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(239,233,220,0.6);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  text-decoration: none;
  color: rgba(239,233,220,0.85);
  font-size: 0.94rem;
}
.site-footer a:hover { color: var(--white); }

.footer-form .field input,
.footer-form .field textarea {
  background: rgba(239,233,220,0.08);
  border-color: rgba(239,233,220,0.2);
  color: var(--white);
}
.footer-form .field label { color: rgba(239,233,220,0.75); }

.footer-bottom {
  border-top: 1px solid rgba(239,233,220,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(239,233,220,0.6);
}

.footer-bottom a { color: rgba(239,233,220,0.75); text-decoration: underline; }

/* Simple pages (privacy/terms/404) */
.simple-page { padding: 64px 0 90px; max-width: 76ch; margin: 0 auto; }
.simple-page h2 { margin-top: 1.6em; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-list { columns: 2; }
}

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; }
  .grid-3 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
  .callout-inner { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
