/* Dry Fusion Edinburgh — site styles */

:root {
  --red: #d9231d;
  --red-dark: #b01b16;
  --ink: #1c1f26;
  --ink-soft: #3a3f4a;
  --paper: #ffffff;
  --mist: #f5f4f1;
  --line: #e6e4df;
  --gold: #f0a500;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 31, 38, 0.10);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; margin-bottom: 0.35em; }

.kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

section { padding: 72px 0; }
section.tint { background: var(--mist); }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46em; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: #cfd3db;
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { height: 44px; width: auto; }
.logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 800;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--red);
  letter-spacing: -0.01em;
}
.logo-name small {
  font-style: normal;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 4px;
  text-align: center;
  text-indent: 0.24em;
}

nav.main ul { display: flex; gap: 26px; list-style: none; align-items: center; }
nav.main a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--red); text-decoration: none; }

.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; }
nav.main ul.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 230px;
}
.sub li { display: block; }
.sub a { display: block; padding: 9px 14px; border-radius: 7px; }
.sub a:hover { background: var(--mist); }
nav.main .has-sub:hover ul.sub, nav.main .has-sub:focus-within ul.sub { display: block; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--red);
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
a.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--red); }
a.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
a.btn.light:hover { background: var(--mist); border-color: var(--mist); }
span.btn { cursor: default; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 76px 0 84px;
  overflow: hidden;
  background: var(--ink);
}
.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  animation: hero-zoom-out 12s ease-out forwards;
  will-change: transform;
}
@keyframes hero-zoom-out {
  from { transform: scale(1.25); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg, .page-hero .bg { animation: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 17, 22, 0.86) 0%, rgba(15, 17, 22, 0.62) 55%, rgba(15, 17, 22, 0.30) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .kicker { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.hero h1 { max-width: 15em; margin-bottom: 0.4em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.hero .lead { color: #f1f2f4; margin-bottom: 1.6em; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .phone-note { font-size: 0.9rem; color: #cfd3db; margin-top: 14px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #f2f3f5;
}
.badges span { display: flex; align-items: center; gap: 8px; }
.badges .star { color: var(--gold); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 84px 0 72px;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: hero-zoom-out 12s ease-out forwards;
  will-change: transform;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 17, 22, 0.90) 0%, rgba(15, 17, 22, 0.70) 55%, rgba(15, 17, 22, 0.42) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .lead { color: #cfd3db; }
.crumbs { font-size: 0.85rem; color: #9aa0ac; margin-bottom: 14px; }
.crumbs a { color: #cfd3db; }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .pad { padding: 22px; }
.card .pad p { color: var(--ink-soft); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; }

/* Stat strip */
.stats {
  background: var(--red);
  color: #fff;
  padding: 40px 0;
}
.stats .grid { text-align: center; }
.stats b { display: block; font-size: 2rem; line-height: 1.1; }
.stats span { font-size: 0.92rem; }

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 26px 26px 26px 78px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* Before / after comparator */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}
.ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.ba .after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba .after-wrap img { position: absolute; top: 0; left: 0; height: 100%; max-width: none; object-fit: cover; }
.ba .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-50%);
}
.ba .handle::after {
  content: "◀ ▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--ink);
  font-size: 0.65rem;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.ba .tag {
  position: absolute;
  top: 12px;
  background: rgba(15, 17, 22, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 3;
}
.ba .tag.before { right: 12px; }
.ba .tag.after { left: 12px; }
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}
.ba-caption { text-align: center; font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }

/* Reviews */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review p { color: var(--ink-soft); font-size: 0.97rem; }
.review footer { margin-top: 14px; font-weight: 700; font-size: 0.9rem; }
.review footer small { display: block; font-weight: 400; color: var(--ink-soft); }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 40em; margin: 0 auto 26px; opacity: 0.95; }

/* Checklist */
ul.checks { list-style: none; }
ul.checks li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
}

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img, .split video { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img {
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

/* Contact */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card .big { font-size: 1.4rem; font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
footer.site {
  background: var(--ink);
  color: #b9bec8;
  padding: 60px 0 30px;
  font-size: 0.93rem;
}
footer.site h3.ft { color: #fff; margin-bottom: 14px; font-size: 1rem; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #b9bec8; }
footer.site a:hover { color: #fff; }
footer.site .grid { gap: 40px; }
.footer-logo .logo { background: #fff; padding: 9px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-logo .logo img { height: 38px; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}
.socials a:hover { background: var(--red); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8a909c;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Collapse to hamburger before the logo, nav and CTA start to crowd */
@media (max-width: 1000px) {
  .nav-toggle { display: block; position: relative; z-index: 70; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  nav.main {
    position: fixed;
    inset: 0;
    top: 0;
    background: #fff;
    display: none;
    padding: 90px 30px 30px;
    z-index: 40;
    overflow-y: auto;
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  nav.main li { width: 100%; }
  nav.main a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  nav.main .has-sub ul.sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 18px; min-width: 0; }
  .has-sub > a::after { content: ""; }
  body.nav-open { overflow: hidden; }
  header.site { z-index: 60; backdrop-filter: none; background: #fff; }
  header.site .header-cta { display: none; }
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 56px; }
  .hero::after { background: linear-gradient(165deg, rgba(15, 17, 22, 0.82) 0%, rgba(15, 17, 22, 0.6) 60%, rgba(15, 17, 22, 0.5) 100%); }
  .topbar .hide-m { display: none; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(15, 17, 22, 0.22);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 340px; }
.cookie-banner-text strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 11px 26px; }
@media (max-width: 560px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

/* Consent gate for the embedded map */
.map-gate-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  min-height: 300px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.map-gate-msg p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; max-width: 34em; }
