/* ==========================================================================
   Vision Decorators — design tokens & shared components
   Navy + gold sampled from the brand logo; Libre Caslon Display (heritage
   British trade-signage serif) + Public Sans (plain, civic-workhorse sans).
   ========================================================================== */

:root {
  --ink: #0e1d30;
  --wetcoat: #16283f;
  --wetcoat-2: #1e3450;
  --gold: #c9a257;
  --gold-deep: #a9803e;
  --gold-pale: #e2c88f;
  --canvas: #faf6ed;
  --plaster: #e4decf;
  --plaster-2: #d9d0ba;
  --stone: #6e6455;

  --shadow-ink: 14, 29, 48;
  --shadow-gold: 169, 128, 62;

  --font-display: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

/* ---------- focus states (accessibility) ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- typography ---------- */

.font-display { font-family: var(--font-display); }

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.h1 { font-size: clamp(2.6rem, 3.2vw + 1.4rem, 5rem); }
.h2 { font-size: clamp(2.1rem, 2vw + 1.2rem, 3.4rem); }
.h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); }
.h4 { font-size: clamp(1.15rem, 0.5vw + 1rem, 1.4rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-dark .eyebrow { color: var(--gold); }

p { margin: 0 0 1em; }
.lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.65;
  color: var(--stone);
}
.on-dark .lede { color: #c7cddc; }

.text-stone { color: var(--stone); }
.text-gold { color: var(--gold); }

/* ---------- dark section context ---------- */

.on-dark { color: var(--canvas); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--canvas); }

.bg-ink { background: var(--ink); }
.bg-wetcoat { background: var(--wetcoat); }
.bg-canvas { background: var(--canvas); }
.bg-plaster { background: var(--plaster); }

/* subtle grain for depth on flat colour sections */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 24px -10px rgba(var(--shadow-gold), 0.55);
}
.btn-gold:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 16px 30px -10px rgba(var(--shadow-gold), 0.65);
}

.btn-outline {
  background: transparent;
  border-color: rgba(250, 246, 237, 0.4);
  color: var(--canvas);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-ink {
  background: transparent;
  border-color: rgba(14, 29, 48, 0.25);
  color: var(--ink);
}
.btn-outline-ink:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.btn-ghost-icon {
  padding: 0.7em 1.2em;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 29, 48, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 87, 0.18);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark svg { width: 34px; height: 24px; flex-shrink: 0; }
.brand-mark .wordmark {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  color: var(--canvas);
  line-height: 1;
}
.brand-mark .wordmark b { display: block; font-size: 0.62em; font-weight: 400; color: var(--gold); letter-spacing: 0.24em; margin-top: 2px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(250, 246, 237, 0.82);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--canvas); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.3s var(--ease-spring);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--canvas);
  border: 1px solid rgba(201, 162, 87, 0.5);
  border-radius: 3px;
  padding: 0.6em 1em;
  transition: border-color 0.25s, background-color 0.25s;
}
.nav-phone:hover { border-color: var(--gold); background: rgba(201, 162, 87, 0.08); }
.nav-phone svg { width: 16px; height: 16px; stroke: var(--gold); }
@media (min-width: 640px) {
  .nav-phone { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 0;
  color: var(--canvas);
  padding: 8px;
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
}
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--wetcoat);
  border-bottom: 1px solid rgba(201, 162, 87, 0.18);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 16px 24px;
  font-size: 1rem;
  color: var(--canvas);
  border-top: 1px solid rgba(250, 246, 237, 0.08);
}
.mobile-menu a[aria-current="page"] { color: var(--gold); }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--canvas); }
.site-footer a { transition: color 0.25s var(--ease-out); }
.site-footer .col-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 237, 0.1);
}

/* ---------- cards & elevation ---------- */

.card {
  background: var(--canvas);
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(var(--shadow-ink), 0.06),
    0 12px 28px -16px rgba(var(--shadow-ink), 0.28);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(var(--shadow-ink), 0.08),
    0 26px 46px -18px rgba(var(--shadow-ink), 0.38),
    0 10px 22px -14px rgba(var(--shadow-gold), 0.28);
}

.card-floating {
  box-shadow:
    0 2px 4px rgba(var(--shadow-ink), 0.08),
    0 30px 60px -20px rgba(var(--shadow-ink), 0.4);
}

/* ---------- service card image treatment ---------- */

.media-frame { position: relative; overflow: hidden; border-radius: 4px; }
.media-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease-out);
}
.card:hover .media-frame img,
.media-frame:hover img { transform: scale(1.045); filter: saturate(1.1) contrast(1.03); }
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,29,48,0.62) 0%, rgba(14,29,48,0.06) 42%, rgba(14,29,48,0) 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-frame.no-overlay::after { display: none; }

/* ---------- arch mark (logo motif) ---------- */

.arch-mark path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }

/* ---------- stroke-draw underline ---------- */

.stroke-underline { display: inline-block; position: relative; }
.stroke-underline svg {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: 2px;
  overflow: visible;
}
.stroke-underline path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.stroke-underline.is-visible path { stroke-dashoffset: 0; }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- brushstroke reveal (signature interaction) ---------- */

.brush-reveal {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  --reveal: 0%;
}
.brush-reveal-bleed { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.brush-reveal img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.brush-reveal .layer-mono {
  filter: grayscale(0.85) brightness(0.92) contrast(1.05);
}
.brush-reveal .layer-colour {
  position: absolute; inset: 0;
  clip-path: polygon(
    calc(var(--reveal) - 7%) -10%,
    calc(var(--reveal) + 3%) -2%,
    calc(var(--reveal) - 4%) 9%,
    calc(var(--reveal) + 6%) 19%,
    calc(var(--reveal) - 2%) 30%,
    calc(var(--reveal) + 5%) 41%,
    calc(var(--reveal) - 6%) 52%,
    calc(var(--reveal) + 4%) 63%,
    calc(var(--reveal) - 3%) 74%,
    calc(var(--reveal) + 6%) 85%,
    calc(var(--reveal) - 5%) 96%,
    calc(var(--reveal) + 2%) 110%,
    -20% 110%,
    -20% -10%
  );
}
.brush-reveal .sweep-edge {
  position: absolute; inset: 0;
  pointer-events: none;
  clip-path: polygon(
    calc(var(--reveal) - 7%) -10%,
    calc(var(--reveal) + 3%) -2%,
    calc(var(--reveal) - 4%) 9%,
    calc(var(--reveal) + 6%) 19%,
    calc(var(--reveal) - 2%) 30%,
    calc(var(--reveal) + 5%) 41%,
    calc(var(--reveal) - 6%) 52%,
    calc(var(--reveal) + 4%) 63%,
    calc(var(--reveal) - 3%) 74%,
    calc(var(--reveal) + 6%) 85%,
    calc(var(--reveal) - 5%) 96%,
    calc(var(--reveal) + 2%) 110%,
    calc(var(--reveal) + 10%) 110%,
    calc(var(--reveal) + 1%) -10%
  );
  background: linear-gradient(90deg, transparent, rgba(201,162,87,0.85) 60%, transparent);
  mix-blend-mode: screen;
  opacity: 0.9;
}
.brush-reveal .reveal-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--canvas);
  background: rgba(14, 29, 48, 0.66);
  padding: 0.5em 0.85em;
  border-radius: 2px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- stats strip ---------- */

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3vw + 1.2rem, 4.2rem);
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.72);
  margin-top: 10px;
}
.stat-value-sm { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.6rem); }

.hero-scrim {
  background: linear-gradient(100deg,
    rgba(14, 29, 48, 0.94) 0%,
    rgba(14, 29, 48, 0.8) 34%,
    rgba(14, 29, 48, 0.42) 62%,
    rgba(14, 29, 48, 0.7) 100%);
}

/* ---------- testimonials ---------- */

.quote-mark { width: 34px; height: 26px; }
.quote-mark path { stroke: var(--gold); stroke-width: 5; fill: none; stroke-linecap: round; }

/* ---------- gallery filter ---------- */

.filter-btn {
  padding: 0.55em 1.1em;
  border: 1px solid rgba(14,29,48,0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone);
  transition: all 0.3s var(--ease-out);
}
.filter-btn:hover { border-color: var(--gold-deep); color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}

/* ---------- forms ---------- */

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--plaster-2);
  border-radius: 3px;
  padding: 0.85em 1em;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(201, 162, 87, 0.16);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- misc ---------- */

.ring-frame {
  border: 1px solid rgba(201, 162, 87, 0.35);
  outline: 1px solid rgba(250, 246, 237, 0.08);
  outline-offset: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 162, 87, 0.12);
  border: 1px solid rgba(201, 162, 87, 0.3);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}
.on-dark .pill { color: var(--gold); background: rgba(201,162,87,0.1); border-color: rgba(201,162,87,0.35); }

.divider-gold {
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
