/* DrainCam UK (cctv-drains-uk) — portfolio draft. Colours set for this niche. */
:root {
  --niche-name: "DrainCam UK";
  --tagline: "CCTV drain surveys and unblocking — compare local pros";
  --primary: #1e3a5f;
  --primary-dark: #102438;
  --accent: #1b6b4a;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1a;
  --text-muted: #5c5c56;
  --border: #e2e2dc;
  --trust: #1b6b4a;
  --warning: #8a5a00;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max: 1080px;
  --nav-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--trust);
  background: #e8f5ee;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.hero-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-card input,
.hero-card select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Listings / cards */
.listing-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.listing-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.listing-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.listing-card h3 a:hover {
  color: var(--primary);
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #eef2f6;
  color: var(--primary-dark);
}

.badge-verified {
  background: #e8f5ee;
  color: var(--trust);
}

.listing-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Trust strip */
.trust-strip {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.trust-items li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-items strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

/* Filters (category) */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toolbar .field {
  flex: 1 1 140px;
}

.toolbar label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.toolbar input,
.toolbar select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
}

/* Listing detail */
.listing-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.listing-layout {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 800px) {
  .listing-layout {
    grid-template-columns: 1fr 300px;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.contact-box .btn {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.disclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* Guide / long-form */
.guide-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.guide-body .meta {
  margin-bottom: 1.5rem;
}

.guide-body h2 {
  margin-top: 2rem;
}

.guide-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  color: var(--text-muted);
}

.callout {
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #d8e0e8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #c5d4e3;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #9aadb8;
}

/* Forms (contact) */
.form-stack label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 1rem;
  background: var(--surface);
}

.form-stack textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Utility */
.muted {
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.placeholder-note {
  font-size: 0.8rem;
  color: var(--warning);
  background: #fff8e8;
  border: 1px dashed #d4a84b;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

@media (max-width: 639px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
  }
}
