/* Manx Drain Solutions: site styles.
   Brand taken from the current manxdrainsolutions.com (Elementor kit): navy #16272F, blue #3899CF,
   green #A2C01A, light grey #F7F7F7, Barlow throughout. Body text is a little darker than the old
   site's #7A7A7A so it passes contrast checks. */

:root {
  --navy: #16272F;
  --navy-2: #1E3440;
  --blue: #3899CF;
  --blue-dark: #2B7DAB;
  --green: #A2C01A;
  --green-dark: #7F9713;
  --bg-soft: #F7F7F7;
  --line: #E6E9EB;
  --text: #4B5960;
  --muted: #6B777D;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(22, 39, 47, .08);
  --wrap: 1180px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; font-weight: 500;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
.h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { color: var(--navy); font-weight: 600; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--white); padding: 10px 14px; }

/* Draft banner (remove before going live) */
.draft-banner {
  background: #FFF4CC; color: #5A4500; text-align: center; font-size: .9rem; padding: 6px 12px;
  border-bottom: 1px solid #E9D48A;
}

/* Top bar */
.topbar { background: var(--navy); color: #D5DEE2; font-size: .92rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--green); }
.topbar .area { margin-right: auto; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; fill: currentColor; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.logo img { width: 210px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { margin: 0; position: relative; }
.nav a, .nav button.sub-toggle {
  display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .nav a[aria-current="page"], .nav button.sub-toggle:hover { color: var(--blue-dark); }
.nav .has-sub > button::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.nav .sub {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 290px;
  background: var(--white); box-shadow: var(--shadow); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius);
  display: none;
}
.nav .sub a { padding: 8px 12px; border-radius: 4px; }
.nav .sub a:hover { background: var(--bg-soft); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { display: block; }
.nav .nav-cta a { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 11px 20px; margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--blue-dark); color: var(--white); }
.menu-btn { display: none; margin-left: auto; background: var(--bg-soft); border: 0; border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow); margin: 0; max-height: calc(100vh - 84px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; }
  .nav a, .nav button.sub-toggle { padding: 12px 6px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav .has-sub:hover .sub { display: none; }
  .nav .has-sub.open .sub { display: block; }
  .nav .nav-cta a { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  .topbar .area { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav.open ~ .float-btns { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: var(--white); }
.btn-line { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn-line:hover { background: var(--blue); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Eyebrow label: small uppercase text with the blue underline from the old site */
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 600;
  color: var(--navy); padding-bottom: 6px; border-bottom: 2px solid var(--blue); margin-bottom: 16px;
}
.on-dark .eyebrow, .hero .eyebrow { color: var(--white); }

/* Hero */
.hero { position: relative; color: #E3EAED; background: var(--navy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,39,47,.94) 0%, rgba(22,39,47,.82) 45%, rgba(22,39,47,.55) 100%); }
.hero .wrap { position: relative; padding: 96px 0 104px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero-home h1 { max-width: 20ch; }
.hero .lead { font-size: 1.2rem; max-width: 60ch; color: #E3EAED; }
.hero-home .wrap { padding: 120px 0 130px; }
.page-hero .wrap { padding: 64px 0 70px; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 3.1rem); }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: #C9D4D9; }
.crumbs a { color: #C9D4D9; }
.crumbs a:hover { color: var(--white); }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--white); }
.hero-points .ico { color: var(--green); }

/* Sections */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.soft { background: var(--bg-soft); }
.dark { background: var(--navy) url("../img/bg-dark.jpg") center/cover; color: #D5DEE2; }
.dark h2, .dark h3, .dark strong { color: var(--white); }
.dark a { color: #9DD3F0; }
.center { text-align: center; }
.intro { max-width: 760px; margin: 0 auto 44px; }
.intro.left { margin-left: 0; }

/* Grids and cards */
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.service-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22,39,47,.14); color: var(--text); }
.service-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-card .svg-thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 14px; }
.service-card .svg-thumb svg { width: 100%; height: 100%; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.25rem; }
.service-card .pill { align-self: flex-start; }
.service-card .more { margin-top: auto; color: var(--blue-dark); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: .9fr 1.1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); padding: 10px 2px 0; }

/* "In short" summary box at the top of service pages */
.summary { background: var(--white); border-left: 5px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-top: -48px; position: relative; }
.summary.mt { margin-top: 24px; }
.note.emergency { margin: 0; }
.summary h2 { font-size: 1.3rem; margin-bottom: 12px; }
.summary dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 20px; margin: 0; }
.summary dt { font-weight: 600; color: var(--navy); }
.summary dd { margin: 0; }
@media (max-width: 680px) { .summary dl { grid-template-columns: 1fr; } .summary dd { margin-bottom: 8px; } }

/* Ticks and lists */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.signs { columns: 2; column-gap: 40px; }
@media (max-width: 680px) { .signs { columns: 1; } }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 24px 22px 78px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; background: var(--white); min-width: 620px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); font-weight: 600; }
tbody th { color: var(--navy); font-weight: 600; background: #FBFCFC; }
@media (max-width: 680px) {
  .table-wrap { overflow: visible; box-shadow: none; }
  table { min-width: 0; background: transparent; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
  tbody th { background: var(--navy); color: var(--white); border: 0; }
  td { border-bottom: 1px solid var(--line); }
  td:last-child { border-bottom: 0; }
  td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-weight: 600; color: var(--navy); font-size: .9rem; }
}

/* Diagrams */
.diagram { max-width: 940px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { padding: 12px 4px 2px; }
.key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; margin-top: 10px; color: var(--muted); }
.key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* Notes and callouts */
.note { background: #EEF6FB; border-left: 4px solid var(--blue); padding: 18px 22px; border-radius: var(--radius); margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }
.note.green { background: #F4F8E6; border-left-color: var(--green); }
.note h3 { font-size: 1.1rem; margin-bottom: .4em; }

/* FAQs */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; color: var(--navy); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 12px; font-size: 1.6rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Call to action band */
.cta-band { background: var(--blue); color: var(--white); padding: 56px 0; }
.cta-band .wrap { display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 60ch; color: #EAF5FB; }
.cta-band .btn-white { background: var(--white); color: var(--navy); }
.cta-band .btn-white:hover { background: var(--navy); color: var(--white); }

/* Related links */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 600; }
.related a:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
label, legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .98rem; }
.hint { font-weight: 500; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #CBD3D7; border-radius: var(--radius); background: var(--white); color: var(--navy);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(56,153,207,.35); border-color: var(--blue); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choices label { font-weight: 500; display: flex; gap: 8px; align-items: center; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #F4F8E6; border: 1px solid var(--green); color: #3B4A05; }
.form-msg.err { background: #FDECEC; border: 1px solid #D9534F; color: #7A1F1C; }
.contact-card { background: var(--navy); color: #D5DEE2; border-radius: var(--radius); padding: 30px; }
.contact-card h2, .contact-card h3 { color: var(--white); }
.contact-card a { color: var(--white); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--green); }
.contact-card .note { background: rgba(162,192,26,.12); color: #E6EEC8; }
.contact-card .big { font-size: 1.6rem; display: flex; gap: 12px; align-items: center; }

/* Footer */
.site-footer { background: #0F1D23; color: #AEBBC1; font-size: .98rem; }
.site-footer .wrap { padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D5DEE2; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer .logo img { width: 220px; margin-bottom: 16px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }

@media (max-width: 680px) { .topbar a[href^="mailto"] { display: none; } .topbar .wrap { min-height: 36px; } }

/* Floating call button on phones */
/* Floating WhatsApp (all screens) and Call (phones) buttons */
.float-btns { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 10px; }
.wa-float, .call-float { display: flex; border-radius: 40px; padding: 12px 18px; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); gap: 8px; align-items: center; color: var(--white); }
.wa-float { background: #1FA855; }
.wa-float:hover { background: #178A45; color: var(--white); }
.call-float { display: none; background: var(--blue); }
@media (max-width: 680px) {
  .call-float { display: flex; }
  .call-float:hover { color: var(--white); background: var(--blue-dark); }
  .section { padding: 60px 0; }
  .hero .wrap, .hero-home .wrap { padding: 64px 0 72px; }
}

/* Small helpers */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt { margin-top: 28px; } .mt-lg { margin-top: 48px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.pill { display: inline-block; background: #EEF6FB; color: var(--blue-dark); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 20px; }
.todo { background: #FFF4CC; outline: 1px dashed #C9A100; padding: 0 4px; }

/* Reviews badge, hero WhatsApp line, stat headline, photo upload (30 Sep 2026) */
.rating { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .92; }
.rating span { color: #F5B301; letter-spacing: 1px; }
.rating:hover { opacity: 1; color: var(--white); text-decoration: underline; }
.site-footer .rating { margin-top: 0; }
.hero-wa { margin: 14px 0 0; color: rgba(255,255,255,.88); font-size: .98rem; }
.hero-wa a { color: var(--white); font-weight: 600; }
.hero-wa .ico { color: #25D366; vertical-align: -3px; }
.stat-band { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 34px 32px; }
.stat-band .big { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--green); margin: 0 0 10px; }
.stat-band h2 { color: var(--white); margin: 0 0 10px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.stat-band .kicker { color: var(--green); font-weight: 700; font-size: 1.15rem; margin: 14px 0 0; }
.stat-band .src { font-size: .82rem; opacity: .7; margin: 12px 0 0; }
.field input[type=file] { padding: 10px; border: 1px dashed var(--line); background: var(--bg-soft); width: 100%; border-radius: var(--radius); }

blockquote { margin: 0; } blockquote p { font-style: italic; margin: 0 0 10px; }
figure.card { margin: 0; }
