/* JMS Decorating Limited - design system v3
   Palette sampled from JMS logo 2: graphite/charcoal background, hot orange,
   safety yellow and metallic white. The restrained light-ray, grain and
   shine treatments follow the RizeStack Design Arsenal's premium-trades
   direction while keeping the real project photography dominant.

   Typography: Bricolage Grotesque for display/headings (distinctive, modern,
   confident - carries the site's identity) paired with Inter for body/UI
   (quiet workhorse so the display face reads as intentional, not noisy). */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #292e33;
  --ink-deep: #171b1f;
  --paper: #f7f5ef;
  --paper-deep: #e8e5dd;
  --clay: #ff5a0a;
  --clay-deep: #cf3f00;
  --clay-glow: rgba(255, 90, 10, 0.42);
  --sage: #ffc400;
  --sage-deep: #9a6b00;
  --sage-glow: rgba(255, 196, 0, 0.26);
  --line: #d9d6ce;
  --text: #292e33;
  --text-muted: #626a70;

  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-deep);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text); }

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--clay);
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.95rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 10px 26px -10px var(--clay-glow), 0 0 30px -6px var(--clay-glow);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--clay-glow), 0 0 42px -4px var(--clay-glow); }

.btn-ghost-light {
  border-color: rgba(250, 247, 242, 0.45);
  color: var(--paper);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(250, 247, 242, 0.1); transform: translateY(-2px); box-shadow: 0 0 30px -6px rgba(255,255,255,0.35); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 0 26px -6px rgba(32,29,26,0.5); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px -20px rgba(20, 18, 15, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-logo-mark {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--clay);
  transition: right 0.25s var(--ease);
}
.site-nav a:not(.btn):hover::after { right: 0; }
.site-nav a:not(.btn):hover { color: var(--clay-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background: var(--ink-deep);
  overflow: hidden;
}

.hero-copy {
  padding: 5.5rem 3rem 5rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow { color: #e3a982; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: #e3a982;
}

.hero-copy p.lede {
  color: #d9d2c4;
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14) translate(1%, -1%);
  /* linear, not var(--ease) - var(--ease) is a steep ease-out (fast start,
     long slow tail), which read as an abrupt initial jump rather than a
     smooth, even zoom. A slow, constant-speed pan/zoom is what actually
     looks like a nice smooth Ken Burns effect. */
  animation: heroKenBurns 13s linear forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.14) translate(1%, -1%); }
  to { transform: scale(1) translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.4s linear; }
  .hero-slide img { animation: none; transform: none; }
}

.hero-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.hero-dots button {
  width: 22px;
  height: 3px;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  transition: background 0.3s ease;
}
.hero-dots button.active { background: #fff; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink-deep) 0%, rgba(20, 18, 15, 0) 20%);
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60rem 30rem at 12% 115%, var(--clay-glow), transparent 60%),
              radial-gradient(40rem 22rem at 100% -10%, var(--sage-glow), transparent 55%);
  z-index: 1;
  opacity: 0.7;
}

/* decorating-themed accent: a soft painted brush-stroke sweeping under the
   hero heading - subtle, single colour-flow, not a literal brush icon */
.brush-underline {
  position: relative;
  display: inline-block;
}
.brush-underline svg {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.12em;
  width: 108%;
  height: 0.4em;
  z-index: -1;
  filter: drop-shadow(0 3px 4px rgba(255, 90, 10, 0.42));
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--ink);
  color: var(--paper-deep);
  padding: 1rem 1.5rem;
  position: relative;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.trust-strip .item { display: flex; align-items: center; gap: 0.5rem; }
.trust-strip .item svg { flex-shrink: 0; color: var(--clay); }

/* ---------- Section dividers (paint-stroke transitions) ---------- */

.divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: -1px;
}
.divider-into-paper { color: var(--paper); }
.divider-into-deep { color: var(--ink-deep); }
.divider-into-paper-deep { color: var(--paper-deep); }

/* ---------- Sections ---------- */

section { padding: 6.5rem 0; position: relative; }

/* See the .page-clip wrapper in the HTML (right after </header>) for why
   this lives there and not on html/body/section. */
.page-clip { overflow-x: hidden; }
.section-tight { padding: 4rem 0; }
.section-head {
  max-width: 40rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}
.section-head.left { margin: 0 0 2.75rem; text-align: left; }

.bg-deep {
  background: var(--ink-deep);
  color: var(--paper-deep);
  position: relative;
  overflow: hidden;
}
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep p { color: #cfc7b8; }
.bg-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50rem 26rem at 85% 0%, rgba(184, 92, 46, 0.16), transparent 60%),
              radial-gradient(38rem 22rem at 5% 100%, rgba(87, 106, 82, 0.22), transparent 55%);
  pointer-events: none;
}

.bg-paper-deep { background: var(--paper-deep); position: relative; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 2.1rem 1.7rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 38px -26px rgba(32, 29, 26, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 54px -24px rgba(32, 29, 26, 0.3);
  border-color: transparent;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(184,92,46,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover::before { opacity: 1; }

.service-card .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 1.1rem;
  display: block;
  position: relative;
}
.service-card h3 { margin-bottom: 0.5rem; position: relative; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; position: relative; }

/* ---------- Before / after showcase ---------- */

.transform-grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.transform-feature {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: 0 46px 90px -34px rgba(32, 29, 26, 0.35);
}

.ba-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after { z-index: 1; }
.ba-before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 50%;
  overflow: hidden;
}
.ba-before-wrap img { width: var(--ba-img-w, 100vw); max-width: none; }
.ba-tag {
  position: absolute;
  top: 1rem;
  z-index: 3;
  background: rgba(20, 18, 15, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}
.ba-tag.before { left: 1rem; }
.ba-tag.after { right: 1rem; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35);
}
.ba-handle-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  pointer-events: none;
}
.ba-caption {
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ba-caption p { margin: 0; color: var(--text-muted); font-size: 0.92rem; max-width: 34rem; }
.ba-hint { font-size: 0.78rem; color: var(--text-muted); display:flex; align-items:center; gap:0.4rem; }

/* ---------- Portfolio teaser / gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.gallery-grid.teaser {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 14rem;
}
.gallery-grid.teaser .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid.teaser .gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  isolation: isolate;
  border: 1.5px solid var(--line);
  box-shadow: 0 20px 40px -26px rgba(32, 29, 26, 0.35);
  transition: box-shadow 0.35s var(--ease);
}
.gallery-item:hover {
  box-shadow: 0 28px 50px -22px rgba(32, 29, 26, 0.4);
}
.gallery-grid.teaser .gallery-item { aspect-ratio: auto; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,18,15,0.55) 0%, rgba(20,18,15,0) 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .tag {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  background: rgba(20, 18, 15, 0.72);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 700;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-item:hover .tag { transform: translateY(0); opacity: 1; }

.gallery-item .zoom-icon {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .zoom-icon { opacity: 1; transform: scale(1); }

/* Portfolio page filter tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.75rem;
}
.filter-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
  background: #fff3ea;
  transform: translateY(-1px);
  box-shadow: 0 0 20px -6px var(--clay-glow);
}

.gallery-category-heading {
  margin: 3.5rem 0 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.gallery-category-heading .count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--paper-deep);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.gallery-category:first-of-type .gallery-category-heading { margin-top: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 14, 12, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxIn 0.35s var(--ease);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox img { animation: none; }
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ---------- About / why-choose ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
/* Grid items default to min-width:auto, which for text content means "at
   least as wide as the content's min-content" - normally that's just the
   longest unbreakable word, but the typewriter heading wraps every single
   character in its own <span> (see site.js), and browsers computed THAT
   whole run's min-content as if it were one unbreakable word rather than
   finding the space-spans as valid break points. The 1fr track then grew to
   fit the heading on one line instead of the ~40% of the grid it should
   have gotten, pushing the image column (and the text) past the screen
   edge. min-width:0 overrides the default and lets the track (and the
   heading inside it) actually shrink to the column's real width again. */
.about-grid > * { min-width: 0; }

.about-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 38px 74px -26px rgba(32,29,26,0.38);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  border-radius: 12px;
}
.about-media-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(250,247,242,0.9);
  backdrop-filter: blur(6px);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-deep);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.3);
}

.why-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.why-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.96rem;
}
.why-list .dot {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff3ea;
  color: var(--clay-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* ---------- Location / Chester ---------- */

.location-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem 2rem;
  box-shadow: 0 30px 60px -26px rgba(32,29,26,0.32);
}
.location-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--clay), var(--clay-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -10px var(--clay-glow);
}

/* ---------- Testimonials (fetched live from RizeStack) ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 30px 60px -28px rgba(32,29,26,0.3);
}
.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--clay);
  display: block;
  margin-bottom: 0.4rem;
}
.testimonial-text { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--sage-deep), var(--ink-deep));
  color: var(--paper);
  text-align: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(34rem 20rem at 80% 20%, rgba(184,92,46,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7d2c4; max-width: 34rem; margin: 0 auto 2rem; }
.cta-band .btn-primary { background: var(--clay); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 30px 60px -28px rgba(32,29,26,0.3);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 0.96rem;
  transition: gap 0.25s ease, color 0.25s ease;
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { color: var(--clay); flex-shrink: 0; }
.contact-row:hover { color: var(--clay-deep); gap: 1.1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: #a89f8e;
  padding: 3.5rem 1.5rem 2.25rem;
  font-size: 0.85rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.footer-brand .name { color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #a89f8e; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Quote page ---------- */

.quote-hero {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 18rem at 50% 0%, var(--clay-glow), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.quote-hero h1 { color: #fff; position: relative; }
.quote-hero p { color: #d9d2c4; max-width: 36rem; margin: 0 auto; position: relative; }

.booking-wrap {
  max-width: 46rem;
  margin: -2.5rem auto 0;
  padding: 0 1.5rem 4rem;
}
.booking-frame-shell {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 34px 84px -26px rgba(20, 18, 15, 0.36);
  border: 1.5px solid var(--line);
  background: #fff;
}
.booking-frame-shell iframe {
  width: 100%;
  height: 1000px;
  border: 0;
  display: block;
}
.quote-note {
  max-width: 46rem;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal-up { transform: translateY(36px) scale(0.96); }
.reveal-scale { transform: scale(0.9); }
.reveal-left,
.reveal-right {
  transition-duration: 1.9s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left { transform: translateX(-70%) scale(0.97); }
.reveal-right { transform: translateX(70%) scale(0.97); }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-up, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Heading typewriter ---------- */

.type-heading span:not(.type-cursor) {
  opacity: 0;
  transition: opacity 0.05s linear;
}
.type-cursor {
  /* display:inline (the default - NOT inline-block) so this merges into the
     surrounding run of letter-spans exactly like they do, with no wrapping
     behaviour of its own - an inline-block here (even a 3px-wide one) was
     enough to make the browser treat it as its own independently-wrappable
     unit, breaking the line right after it mid-word instead of only at real
     spaces. border-right (not width, which inline elements ignore) is what
     gives it visible thickness instead. */
  border-right: 2px solid currentColor;
  margin-right: -2px;
  animation: typeCaretBlink 0.8s step-end infinite;
}
@keyframes typeCaretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .type-cursor { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 19rem; order: -1; }
  .hero-copy { padding: 3rem 1.5rem; }
  .hero::before { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.teaser { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .gallery-grid.teaser .gallery-item, .gallery-grid.teaser .gallery-item:nth-child(1), .gallery-grid.teaser .gallery-item:nth-child(4) { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; }
  .location-card { grid-template-columns: 1fr; }
  .transform-grid { grid-template-columns: 1fr; max-width: 40rem; }
}

@media (max-width: 680px) {
  .site-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); gap: 1rem; display: none; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.teaser { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4rem 0; }
  .footer-bottom { flex-direction: column; }
  .booking-frame-shell iframe { height: 1200px; }
  .ba-caption { flex-direction: column; align-items: flex-start; }
  /* Smaller than the desktop 70% - narrow viewports have far less room either
     side, and body's overflow-x:hidden is only a safety net, not something
     to lean on for a huge offset. Still a genuine side-swoosh, just tuned to
     the screen instead of collapsing to a bottom-only pop-in. */
  .reveal-left { transform: translateX(-30%) scale(0.97); }
  .reveal-right { transform: translateX(30%) scale(0.97); }
}

/* ---------- JMS logo 5 visual direction ---------- */

html, body { margin: 0; padding: 0; }
.with-site-header { padding-top: 90px; }

/* Lightweight adaptation of the Arsenal's Noise Texture treatment. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 98;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: -1px;
  left: 0;
  right: 0;
  height: 91px;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.35rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(110deg, #fffdf8, #f2ede3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255, 90, 10, 0.22);
  box-shadow: 0 12px 30px -18px rgba(255, 90, 10, 0.78);
  isolation: isolate;
  z-index: 100;
}

.site-header .brand { margin-inline: 0; }
.site-header .site-nav { justify-content: flex-end; }
.brand-logo {
  height: 78px;
  filter: drop-shadow(0 7px 10px rgba(255, 90, 10, 0.28));
}
.footer-logo-full { height: 92px; width: auto; display: block; }
.site-nav a:not(.btn) { color: #092244; }
.site-nav a:not(.btn):hover { color: var(--clay-deep); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: #092244; }

.btn-primary {
  background: linear-gradient(115deg, var(--clay-deep), var(--clay) 58%, #ff7a24);
  border-color: rgba(255,255,255,0.08);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.48), transparent);
  transform: rotate(18deg);
  transition: left 0.65s var(--ease);
}
.btn-primary:hover::after { left: 125%; }
.btn:focus-visible, .site-nav a:focus-visible, .filter-btn:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.hero { min-height: min(760px, calc(100vh - 76px)); }
.hero-copy { padding: 6.5rem 3.5rem 5.75rem clamp(1.5rem, 5vw, 5.5rem); }
.hero-copy .eyebrow { color: var(--sage); }
.hero-copy p.lede { color: #cfd3d6; }
.hero::before {
  background: radial-gradient(60rem 30rem at 12% 115%, var(--clay-glow), transparent 60%),
              radial-gradient(40rem 22rem at 100% -10%, var(--sage-glow), transparent 55%),
              linear-gradient(115deg, transparent 45%, rgba(255,255,255,0.025) 45%, transparent 68%);
}
/* Lightweight CSS adaptation of the Arsenal's Light Rays treatment. */
.hero::after {
  content: "";
  position: absolute;
  top: -45%;
  left: 23%;
  width: 24rem;
  height: 150%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,196,0,0.18), rgba(255,90,10,0.035) 52%, transparent 78%);
  filter: blur(30px);
  transform-origin: top center;
  transform: rotate(-17deg);
  mix-blend-mode: screen;
  animation: jmsRaySweep 13s ease-in-out infinite alternate;
}
@keyframes jmsRaySweep {
  from { transform: rotate(-20deg) translateX(-5%); opacity: 0.55; }
  to { transform: rotate(-10deg) translateX(14%); opacity: 0.95; }
}

.trust-strip { background: linear-gradient(100deg, var(--clay-deep), var(--clay) 55%, #ff781f); color: #fff; }
.trust-strip .item { font-weight: 600; }
.trust-strip .item svg { color: var(--sage); }

.service-card {
  background: linear-gradient(155deg, #343a40, #22272b);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 48px -26px rgba(23, 27, 31, 0.72);
}
.service-card:hover { border-color: rgba(255, 196, 0, 0.42); }
.service-card::before {
  background: radial-gradient(circle at 20% 0%, rgba(255,196,0,0.16), transparent 38%), linear-gradient(150deg, rgba(255,90,10,0.12), transparent 65%);
  opacity: 0.45;
}
.service-card .num { color: var(--sage); }
.service-card h3 { color: #fff; }
.service-card p { color: #c3c9cd; }

.bg-paper-deep { background: #22272b; color: #fff; overflow: hidden; }
.bg-paper-deep::before { content:""; position:absolute; inset:0; background:radial-gradient(40rem 24rem at 90% 5%, rgba(255,90,10,0.13), transparent 64%); pointer-events:none; }
.bg-paper-deep h2, .bg-paper-deep h3 { color:#fff; }
.bg-paper-deep .section-head p { color:#c2c8cc; }
.bg-paper-deep .transform-feature { background:#30363b; border-color:rgba(255,255,255,0.1); }
.bg-paper-deep .ba-caption p, .bg-paper-deep .ba-hint { color:#bfc6ca; }

.location-card {
  background: linear-gradient(135deg, #30363b, #24292d);
  border-color: rgba(255,255,255,0.1);
}
.location-card h3 { color:#fff; }
.location-card p { color:#c6ccd0; }

.cta-band { background: linear-gradient(120deg, var(--ink-deep), #292e33 48%, #3a2b11); }
.cta-band::before {
  background: radial-gradient(34rem 20rem at 80% 20%, rgba(255,196,0,0.2), transparent 60%),
              linear-gradient(105deg, transparent 34%, rgba(255,90,10,0.14) 50%, transparent 66%);
}

.contact-card {
  background: linear-gradient(150deg, #343a40, #24292d);
  border-color: rgba(255,255,255,0.1);
}
.contact-card h3 { color:#fff; }
.contact-card p { color:#c7cdd1 !important; }
.contact-card .contact-row { color:#edf0f2; border-color:rgba(255,255,255,0.1); }
.contact-card .contact-row:hover { color:var(--sage); }

.portfolio-intro {
  padding-bottom: 3.5rem;
  background: radial-gradient(36rem 20rem at 90% 0%, rgba(255,90,10,0.2), transparent 62%),
              linear-gradient(130deg, #20252a, #292e33 65%, #33270e);
  color: #fff;
  overflow: hidden;
}
.portfolio-intro .eyebrow { color: var(--sage); }
.portfolio-intro h1 { color: #fff; }
.portfolio-intro p { color: #cbd0d4 !important; }

.site-footer { background: #292e33; }
.quote-hero { background: linear-gradient(135deg, #171b1f, #292e33); }
.quote-hero::before {
  background: radial-gradient(30rem 18rem at 50% 0%, var(--clay-glow), transparent 60%),
              linear-gradient(110deg, transparent 35%, rgba(255,196,0,0.08) 50%, transparent 65%);
}

/* A shared, restrained orange cast gives raised surfaces consistent depth. */
.btn,
.service-card,
.transform-feature,
.gallery-item,
.filter-btn,
.location-card,
.testimonial-card,
.contact-card,
.booking-frame-shell,
.why-list .dot,
.location-icon {
  box-shadow: 0 18px 38px -24px rgba(255, 90, 10, 0.72),
              0 6px 16px -12px rgba(255, 90, 10, 0.48);
}
.service-card:hover,
.gallery-item:hover,
.filter-btn:hover,
.btn:hover {
  box-shadow: 0 25px 46px -22px rgba(255, 90, 10, 0.86),
              0 9px 22px -13px rgba(255, 90, 10, 0.58);
}
.footer-brand {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-0.65rem);
}
.footer-logo-full {
  filter: drop-shadow(0 7px 10px rgba(255, 90, 10, 0.48));
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  .btn-primary::after { display: none; }
}

@media (max-width: 680px) {
  .with-site-header { padding-top: 76px; }
  .site-header {
    display: flex;
    justify-content: space-between;
    top: -1px;
    height: 77px;
    padding: 0.35rem 1rem;
  }
  .site-header .brand { margin: 0; }
  .site-header .nav-toggle { margin-left: auto; }
  .site-nav { top: 75px; background: #fffdf8; border-bottom-color:rgba(255,90,10,0.22); }
  .brand-logo { height: 64px; }
  .hero-copy { padding: 3.5rem 1.5rem; }
  .footer-logo-full { height:76px; }
}
