/* Base */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --accent: #2F5BEA;
  --accent-ink: #FFFFFF;
  --plate-bg: #111827;
  --plate-ink: #FFFFFF;
  --line: #D8DEEB;
  --font: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --r-card: 18px;
  --r-btn: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgb(47 91 234 / 0.3) 4px, transparent 4.5px);
  background-size: 48px 48px;
  min-height: 100%;
}

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 3.6vw + 1rem, 4rem); line-height: 1.08; max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 2.2vw + 0.9rem, 2.5rem); }
h3 { font-size: clamp(1.15rem, 0.5vw + 1.05rem, 1.5rem); }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #1f43c4; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.reading {
  max-width: 68ch;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

/* Header */
.topbar {
  background: var(--surface);
  min-height: 72px;
  display: flex;
  align-items: center;
  padding-block: 12px;
}

.topbar__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.topbar__rule {
  height: 4px;
  width: 100%;
  background: var(--accent);
}

.brandmark {
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brandmark:hover { color: var(--accent); }

.menu__trigger {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font: 600 1rem var(--font);
  color: var(--text);
  cursor: pointer;
}

.menu__trigger-bar,
.menu__trigger-bar::before,
.menu__trigger-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  content: "";
  position: relative;
}

.menu__trigger-bar::before { position: absolute; top: -6px; }
.menu__trigger-bar::after { position: absolute; top: 6px; }

.menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.25s ease, color 0.25s ease;
}

.menu__link:hover { background-size: 100% 100%; color: var(--accent-ink); }

.menu__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulldot 1.6s ease-in-out infinite;
}

@keyframes pulldot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* Hero */
.hero {
  padding-block: clamp(48px, 6vw, 96px) 0;
}

.hero__frame {
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: var(--r-card);
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s ease-out;
}

html.doc--ok .hero__frame img { transform: scale(1); }

.hero__split {
  display: grid;
  gap: 24px;
  align-items: end;
  padding-block: clamp(24px, 4vw, 48px) clamp(64px, 7vw, 96px);
}

.hero__lead .btn { margin-top: 24px; }

.hero__lead h1 { margin-bottom: 0; }

.hero__text { margin: 0; color: var(--muted); max-width: 420px; line-height: 1.6; }

/* Sections */
.band {
  padding-block: clamp(64px, 9vw, 128px);
}

.band--manifest {
  background: var(--surface);
  border-radius: var(--r-card);
  margin: clamp(16px, 3vw, 40px) clamp(8px, 2vw, 24px);
  padding-inline: clamp(24px, 5vw, 80px);
  box-shadow: var(--shadow);
}

.band--manifest .reading {
  max-width: 620px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .band--manifest .reading { columns: 2; column-gap: 48px; max-width: none; }
}

.band--form {
  background: var(--surface);
  border-radius: var(--r-card);
  margin: clamp(16px, 3vw, 40px) clamp(8px, 2vw, 24px);
  box-shadow: var(--shadow);
}

.band__head { margin-bottom: 32px; }

.band__two {
  display: grid;
  gap: 32px;
  align-items: center;
}

.flare {
  display: inline-block;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.75rem);
  line-height: 1.12;
  color: var(--accent);
  font-weight: 700;
}

/* Slab plate */
.slab {
  background: var(--plate-bg);
  color: var(--plate-ink);
  border-radius: var(--r-card);
  padding: clamp(24px, 5vw, 56px);
}

.slab--full {
  margin: clamp(16px, 3vw, 40px) clamp(8px, 2vw, 24px);
}

.slab .reading { color: #D5DAE6; }

.slab a { color: #9DB4FF; }

/* Tiles */
.tile__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile h3 { margin-top: 0; }
.tile p:last-child { margin-bottom: 0; }

.tile--onplate {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.18);
  color: var(--plate-ink);
}

.tile--onplate h3 { color: #FFFFFF; }
.tile--onplate p { color: #D5DAE6; }

.tile__price {
  margin-top: auto;
  font-weight: 700;
  color: #9DB4FF;
}

.tile__photo {
  position: relative;
  margin: 0 0 20px;
}

.tile__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.tile:hover .tile__photo img { transform: scale(1.06); }

.tile__backdrop {
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--accent);
  opacity: 0.35;
  border-radius: var(--r-card);
}

.tile__photo--steps img { aspect-ratio: 3 / 4; max-width: 480px; }

/* Steps */
.steps {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 24px;
}

.steps h3 { margin-bottom: 4px; }
.steps li::marker { color: var(--accent); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background-image: linear-gradient(120deg, var(--accent), #1f43c4 70%, var(--accent));
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--accent-ink);
  font: 600 1rem var(--font);
  text-decoration: none;
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background-position 0.35s ease, transform 0.1s ease;
}

.btn:hover { background-position: 0 0; }

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn:active { transform: translateY(1px); }

.btn--quiet {
  display: inline-block;
  min-height: auto;
  padding: 4px 2px;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 4px;
}

.btn--quiet:hover { color: #1f43c4; background: none; }
.btn--quiet:active { transform: translateY(1px); }

/* Floating call */
.callfab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--accent);
  background-image: linear-gradient(120deg, var(--accent), #1f43c4 70%, var(--accent));
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background-position 0.35s ease, transform 0.1s ease;
}

.callfab:hover { background-position: 0 0; }
.callfab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.callfab:active { transform: translateY(1px); }

/* FAQ */
.qa { display: grid; gap: 16px; max-width: 820px; }

.qa__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 0 clamp(18px, 3vw, 28px);
}

.qa__item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 36px;
}

.qa__item summary::-webkit-details-list-item { display: none; }

.qa__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: rotate 0.25s ease;
}

.qa__item[open] summary::after { rotate: 45deg; }

.qa__item p { margin: 0 0 20px; color: var(--muted); max-width: 65ch; }

/* Form */
.enquiry {
  display: grid;
  gap: 20px;
  max-width: 640px;
}

.enquiry__field { display: grid; gap: 6px; }

.enquiry__label { font-weight: 600; font-size: 1rem; }

.enquiry__input {
  font: 400 1rem var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}

.enquiry__input::placeholder { color: var(--muted); opacity: 1; }

.enquiry__textarea { min-height: 120px; resize: vertical; }

.enquiry__input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.enquiry__field--invalid .enquiry__input { border-color: #B42318; }

.enquiry__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}

.enquiry__consent input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.enquiry__consent label { cursor: pointer; }

.enquiry__note { font-size: 0.9rem; color: var(--muted); }

.enquiry__submit { justify-self: start; }

.enquiry__submit--busy { opacity: 0.7; pointer-events: none; }

/* Prose pages */
.pagehead {
  padding-block: clamp(40px, 6vw, 72px) 0;
}

.reading--narrow { max-width: 760px; }

.prose {
  max-width: 760px;
}

.prose h2 { margin-top: 2em; }
.prose ol, .prose ul { padding-left: 1.4em; color: var(--text); }
.prose li { margin-bottom: 0.6em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.prose th { font-weight: 700; background: var(--surface); }

.keybox {
  background: var(--plate-bg);
  color: var(--plate-ink);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 32px;
}

.keybox h2 { color: #FFFFFF; margin-bottom: 0.4em; }
.keybox p { color: #D5DAE6; margin-bottom: 0; }
.keybox a { color: #9DB4FF; }

/* Contacts */
.contactlist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.contactlist li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 20px;
}

.contactlist span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Thanks & 404 */
.messageband {
  min-height: auto;
  padding-block: clamp(64px, 12vw, 160px);
}

.messageband .flare { display: block; margin-bottom: 16px; }

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

/* Footer */
.sitefoot {
  background: var(--surface);
  border-top: 4px solid var(--accent);
  padding-block: clamp(40px, 6vw, 64px) 24px;
  margin-top: clamp(48px, 8vw, 96px);
}

.sitefoot__grid {
  display: grid;
  gap: 32px;
}

.sitefoot__heading {
  font-weight: 700;
  margin-bottom: 12px;
}

.sitefoot__text { color: var(--muted); max-width: 36ch; }

.sitefoot__col address { font-style: normal; color: var(--muted); font-size: 0.95rem; }
.sitefoot__col address p { margin-bottom: 8px; }

.sitefoot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sitefoot__col ul span { color: var(--muted); margin-right: 4px; }

.sitefoot__links a { color: var(--accent); }

.sitefoot__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sitefoot__copy { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Reveal */
html.doc--ok .fadein {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.doc--ok .fadein--shown {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (max-width: 479px) {
  .callfab { padding: 12px 20px; right: 16px; bottom: 16px; }
  .tile__backdrop { inset: 10px -10px -10px 10px; }
  .tile { padding: 20px; }
  .tile__grid { gap: 16px; }
  .hero__lead h1 { font-size: clamp(2rem, 8vw, 2.4rem); line-height: 1.2; }
  .hero__split { gap: 24px; }
  .band--manifest,
  .band--form,
  .slab--full { margin-inline: 12px; }
  .band--manifest,
  .slab { padding-inline: 24px; }
  .band--manifest .reading { line-height: 1.6; }
}

@media (max-width: 639px) {
  .menu__trigger { display: inline-flex; }
  .menu__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    border-bottom: 4px solid var(--accent);
    box-shadow: var(--shadow);
  }
  .menu { position: relative; }
  .menu--expanded .menu__list { display: flex; }
  .menu__link { display: block; padding: 14px 8px; }
  .menu__link:hover { background-size: 100% 2px; color: var(--accent); }
}

@media (min-width: 640px) {
  .tile__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
  .band__two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sitefoot__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .enquiry { grid-template-columns: 1fr 1fr; }
  .enquiry__field--full,
  .enquiry__consent,
  .enquiry__note,
  .enquiry__submit { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .tile__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .sitefoot__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .hero__split { gap: 56px; }
  .band--manifest,
  .band--form,
  .slab--full { margin-inline: clamp(24px, 4vw, 64px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.doc--ok .fadein { opacity: 1; transform: none; }
  .hero__frame img { transform: scale(1); }
}

/* Card structure balance */
.tile { min-height: 100%; }
.tile__photo { flex: none; }
.tile__photo img { aspect-ratio: 4 / 3; }

@media (min-width: 640px) {
  .tile { height: 100%; }
  .callfab {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.callfab {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}

/* Section rhythm */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band .wrap > h2 { margin-bottom: 12px; }
.band .wrap > .reading { margin-bottom: 8px; }
.band__head { margin-bottom: 24px; }
