/* Teesside Drainage — Static Site CSS
   Design: Fluid Clarity — Deep Aqua primary, clean white, alert red CTA
   Font: Inter (Google Fonts)
*/

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

:root {
  --primary: #0057a8;
  --primary-dark: #003d7a;
  --accent: #c0392b;
  --accent-hover: #a93226;
  --text: #1a1a2e;
  --text-muted: #555;
  --bg: #fff;
  --bg-light: #f4f7fb;
  --bg-dark: #0f1923;
  --border: #dde3ec;
  --radius: 8px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── TOP BAR ── */
.top-bar { background: var(--primary); color: #fff; font-size: 0.8rem; padding: 0.4rem 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar span { display: flex; align-items: center; gap: 0.35rem; }

/* ── HEADER ── */
header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }

nav { display: flex; align-items: center; gap: 1.75rem; }
nav a { font-size: 0.9rem; font-weight: 500; color: #444; text-decoration: none; transition: color 0.2s; }
nav a:hover { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > button { background: none; border: none; font-size: 0.9rem; font-weight: 500; color: #444; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 0.25rem; font-family: inherit; }
.dropdown > button:hover { color: var(--primary); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.1); min-width: 200px; padding: 0.5rem 0; z-index: 200; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.55rem 1rem; font-size: 0.875rem; color: #333; text-decoration: none; }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }

.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: var(--radius); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background 0.2s, transform 0.1s; cursor: pointer; border: none; font-family: inherit; line-height: 1.4; vertical-align: middle; }
button.btn { appearance: none; -webkit-appearance: none; background-clip: padding-box; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ── HERO ── */
.hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,25,35,0.95) 40%, rgba(15,25,35,0.5)); }
.hero-content { position: relative; z-index: 1; padding: 5rem 0 4rem; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(0,87,168,0.25); border: 1px solid rgba(0,87,168,0.4); color: #a8d4ff; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero-badge .dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: #7ec8ff; }
.hero p { font-size: 1.1rem; color: #c5d5e8; margin-bottom: 2rem; max-width: 560px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-trust span { font-size: 0.85rem; color: #a0b4c8; display: flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { color: #4ade80; }

/* ── SECTIONS ── */
section { padding: 4rem 0; }
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 1rem; line-height: 1.25; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 600px; }
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-primary { background: var(--primary); color: #fff; }

/* ── CARDS GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 0.3rem; }
.card-link:hover { text-decoration: none; color: var(--primary-dark); }

/* ── SERVICE ICON CARDS ── */
.service-icon-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.service-icon-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.service-icon { width: 56px; height: 56px; background: var(--bg-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.service-icon svg { width: 28px; height: 28px; color: var(--primary); }
.service-icon-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.service-icon-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── WHY CHOOSE ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.why-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; }
.why-list li svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.why-list li strong { display: block; font-weight: 700; }
.why-img { border-radius: 12px; overflow: hidden; }
.why-img img { width: 100%; height: 380px; object-fit: cover; }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--accent); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { font-size: 1rem; opacity: 0.9; margin-bottom: 1.75rem; }
.btn-white { background: #fff; color: var(--accent); font-weight: 700; }
.btn-white:hover { background: #f5f5f5; text-decoration: none; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 800px; margin: 0 auto; }
details { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
details summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform 0.2s; }
details[open] summary::after { content: '−'; }
details .faq-answer { padding: 0 1.25rem 1rem; font-size: 0.95rem; color: var(--text-muted); }

/* ── LOCATION GRID ── */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.location-pill { display: block; padding: 0.75rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; color: var(--primary); text-align: center; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.location-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--primary); color: #fff; padding: 3.5rem 0 3rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; }
.breadcrumb { font-size: 0.8rem; opacity: 0.75; margin-bottom: 0.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ── PROSE (legal pages) ── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.5rem; color: var(--text); }
.prose p, .prose li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose address { font-style: normal; }

/* ── FOOTER ── */
footer { background: var(--bg-dark); color: #aab4c0; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
footer h4, .footer-nav-title { color: #fff; font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
footer ul li a { color: #aab4c0; font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; text-align: center; font-size: 0.8rem; }
.footer-bottom p { margin-bottom: 0.25rem; }
.footer-bottom a { color: #aab4c0; }
.footer-bottom a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-img { display: none; }
}
@media (max-width: 768px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; gap: 0.75rem; z-index: 99; }
  nav.open .dropdown-menu { display: block; position: static; box-shadow: none; border: none; padding: 0.25rem 0 0.25rem 1rem; }
  .menu-toggle { display: block; }
  .hero-content { padding: 3rem 0 2.5rem; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .location-grid { grid-template-columns: 1fr; }
}
