/* Bathrooms Scotland static site */
:root {
  --ink: #14232e;
  --ink-soft: #4a5b68;
  --line: #e3e8ec;
  --bg: #ffffff;
  --tint: #f3f6f7;
  --brand: #0d5c73;
  --brand-dark: #093f50;
  --accent: #8fd0dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 35, 46, .06), 0 8px 24px rgba(20, 35, 46, .06);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 1.6em 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
.center { text-align: center; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.4em; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--brand); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--brand-dark); }
.btn--small { padding: .55em 1.1em; font-size: .875rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.brand span { color: var(--ink); }
.brand--light, .brand--light span { color: #fff; }
.brand--light svg { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background: var(--tint); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Generic sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.wrap { padding-inline: 0; }
.section--tint { background: var(--tint); }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* Home hero */
.home-hero { position: relative; padding: clamp(72px, 12vw, 150px) 0; background: linear-gradient(90deg, #f6f9fa 38%, rgba(246,249,250,.7) 60%, rgba(246,249,250,0) 100%), var(--hero) center/cover no-repeat, var(--tint); }
.home-hero .wrap > * { max-width: 620px; }
.home-hero__sub { font-size: 1.2rem; color: var(--ink-soft); }
.home-hero__actions, .contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) { .home-hero { background: linear-gradient(180deg, rgba(246,249,250,.95) 55%, rgba(246,249,250,.75) 100%), var(--hero) center/cover no-repeat; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.service__img { aspect-ratio: 16/10; background: var(--img) center/cover no-repeat, var(--tint); }
.service__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.service__body strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.service__body span { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.service__body em { margin-top: auto; font-style: normal; font-weight: 700; color: var(--brand); font-size: .9rem; }
.service__body em::after { content: " \2192"; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--tint); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--blank { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin: .3em 0 .4em; font-size: 1.3rem; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__body h3 a:hover { color: var(--brand); }
.card__body p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.card__cat { display: inline-block; align-self: flex-start; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.card__meta { margin-top: auto !important; font-size: .85rem !important; }

/* Page hero + crumbs */
.page-hero { padding: clamp(40px, 7vw, 88px) 0; background: var(--tint); }
.page-hero.has-img { background: linear-gradient(rgba(9,32,42,.62), rgba(9,32,42,.62)), var(--hero) center/cover no-repeat; color: #fff; }
.page-hero.has-img h1, .page-hero.has-img .crumbs a, .page-hero.has-img .crumbs li { color: #fff; }
.page-hero h1 { margin: 0; }
.page-hero__sub { margin: .6em 0 0; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Page body built from page builder content */
.page-body { padding: clamp(36px, 6vw, 72px) 0; }
.page-body > .el-row, .page-body > .el-cols, .page-body > .logo-strip { margin-bottom: clamp(32px, 5vw, 56px); }
.page-body h2:first-child, .el-col > h2:first-child, .el-col > h3:first-child { margin-top: 0; }
.el-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.el-cols--steps .el-col { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.el-col > :first-child { margin-top: 0; }
.el-col .el-cols { gap: 20px; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 8px; }
.step-num h2, .step-num h3 { all: unset; }
.el-img img { border-radius: var(--radius); width: 100%; }
.el-img { margin: 0 0 16px; }
.el-col .el-img img[src*="logo"] { width: auto; max-height: 72px; border-radius: 0; }
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px 32px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.logo-strip .el-img { margin: 0; }
.logo-strip img { max-height: 48px; width: auto !important; margin: auto; border-radius: 0 !important; filter: grayscale(1); opacity: .75; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.accordion details[open] summary::after { content: "\2212"; }
.accordion details > :not(summary) { margin-top: 0; color: var(--ink-soft); }
.contact-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact-card h3 { color: #fff; margin-top: 0; font-size: 1.8rem; }
.contact-card .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.contact-card .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.contact-line a { font-weight: 700; }
@media (max-width: 860px) { .el-cols { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1020px) { .el-cols { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); } }

/* Articles */
.prose { max-width: 760px; }
.prose-feature { max-width: 960px; }
.post-head { padding-top: clamp(32px, 6vw, 64px); }
.post-head h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .25em 0 .35em; }
.post-meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 28px; }
.post-feature { margin: 0 0 32px; }
.post-feature img { width: 100%; border-radius: var(--radius); max-height: 540px; object-fit: cover; }
.post-body { padding-bottom: 56px; }
.post-body img, .page-body .prose img { border-radius: 10px; margin: 24px 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin: .3em 0; }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.post-body figure { margin: 24px 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th, thead td { background: var(--tint); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.post-tags { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-tags a { background: var(--tint); padding: 4px 12px; border-radius: 999px; font-size: .85rem; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { display: block; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.4; }
.post-nav a span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 4px; }
.post-nav__next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } }

/* Pager */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0b1a22; color: rgba(255,255,255,.75); padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin: 0 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .85rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Step blocks and centred labels */
.eyebrow.center { text-align: center; }
.step { display: flex; gap: 18px; background: var(--tint); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.step .step-num { flex: none; }
.step__body > :first-child { margin-top: 0; }
.step__body > :last-child { margin-bottom: 0; }
.step__body h2, .step__body h3 { font-size: 1.4rem; }
.el-img img[src*="logo"] { width: auto; max-height: 96px; border-radius: 0; }
.el-row > .el-img img[src*="logo"] { margin-inline: auto; }
