/* ============================================================
   PURE ZONE — Layout & Components
   ============================================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,14,15,0);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: 1.4rem;
}
.site-header.scrolled {
  background: rgba(14,14,15,0.92);
  backdrop-filter: blur(12px);
  padding-block: 0.9rem;
  border-bottom-color: var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; color: var(--text-inv); }
.brand .mark { font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0.02em; line-height: 1; }
.brand .mark b { color: var(--gold); font-weight: 500; }
.brand .tag { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-inv-mute); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--text-inv); font-size: var(--step--1); letter-spacing: 0.04em;
  position: relative; padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.lang-toggle { display: flex; gap: 0.4rem; align-items: center; font-size: var(--step--1); color: var(--text-inv-mute); }
.lang-toggle a { color: var(--text-inv-mute); padding: 0.2rem 0.4rem; border-radius: 2px; }
.lang-toggle a.active { color: var(--gold); font-weight: 600; }
.lang-toggle span { opacity: 0.4; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.burger span { width: 26px; height: 2px; background: var(--text-inv); transition: 0.4s var(--ease); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--text-inv); overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,15,0.55) 0%, rgba(14,14,15,0.2) 40%, rgba(14,14,15,0.85) 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(4rem, 9vh, 8rem); padding-top: 8rem; }
.hero h1 { max-width: 16ch; margin: 1.5rem 0; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { max-width: 46ch; color: var(--text-inv-mute); font-size: var(--step-1); line-height: 1.5; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-inv-mute);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll .line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scrollpulse { 0%,100%{ transform: scaleY(0.3); opacity:0.4;} 50%{transform: scaleY(1); opacity:1;} }

/* trust strip */
.trust { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--ink); color: var(--text-inv); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-block: 2.4rem; }
.trust-item { display: flex; flex-direction: column; gap: 0.2rem; }
.trust-item .num { font-family: var(--serif); font-size: var(--step-2); color: var(--gold); line-height: 1; }
.trust-item .lbl { font-size: var(--step--1); color: var(--text-inv-mute); letter-spacing: 0.04em; }

/* ---------- SERVICES GRID ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
  background: var(--paper); padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 260px;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease); position: relative;
}
.svc-card:hover { background: var(--ink); color: var(--text-inv); }
.svc-card .idx { font-size: var(--step--1); color: var(--gold-deep); letter-spacing: 0.1em; font-weight: 600; }
.svc-card h3 { font-size: var(--step-1); margin-top: auto; }
.svc-card p { font-size: var(--step--1); color: var(--text-mute); }
.svc-card:hover p { color: var(--text-inv-mute); }
.svc-card .go { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; gap: 0.5em; opacity: 0; transform: translateX(-6px); transition: 0.5s var(--ease); }
.svc-card:hover .go { opacity: 1; transform: none; color: var(--gold); }

/* ---------- BEFORE / AFTER ---------- */
.ba-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); cursor: ew-resize; user-select: none; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4); }
.ba-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); z-index: 3; pointer-events: none; }
.ba-handle::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--gold); color: var(--ink); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; letter-spacing: -2px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.ba-label { position: absolute; bottom: 1rem; z-index: 4; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(14,14,15,0.7); color: var(--text-inv); padding: 0.4rem 0.9rem; border-radius: 2px; }
.ba-label.before { left: 1rem; } .ba-label.after { right: 1rem; }

/* ---------- GALLERY ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; transition: transform 0.9s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 0.9rem; font-size: var(--step--1); color: var(--text-inv); background: linear-gradient(transparent, rgba(14,14,15,0.8)); opacity: 0; transition: opacity 0.5s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; }

/* ---------- SPLIT / CONTENT ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.rev { grid-template-columns: 1fr 1.1fr; }
.split-media { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 1.4rem; }
.split p + p { margin-top: 1rem; }
.feature-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: var(--step-0); }
.feature-list li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55em; background: var(--gold); flex: 0 0 auto; transform: rotate(45deg); }

/* ---------- CTA BANNER ---------- */
.cta-banner { background: var(--ink); color: var(--text-inv); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, var(--gold-soft), transparent 60%); }
.cta-banner .wrap { position: relative; }
.cta-banner h2 { max-width: 20ch; margin: 0 auto 1.4rem; }
.cta-banner h2 em { font-style: italic; color: var(--gold); }
.cta-banner p { max-width: 50ch; margin: 0 auto 2.4rem; color: var(--text-inv-mute); font-size: var(--step-1); }

/* ---------- CONTACT FORM ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); }
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.5rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 1rem 1.1rem; font-family: var(--sans); font-size: var(--step-0);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.contact-aside { background: var(--ink); color: var(--text-inv); padding: clamp(2rem,4vw,3rem); border-radius: var(--radius); }
.contact-aside h3 { color: var(--text-inv); margin-bottom: 1.6rem; }
.contact-row { display: flex; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line-dark); }
.contact-row:last-child { border: 0; }
.contact-row .k { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); min-width: 90px; }
.contact-row .v { color: var(--text-inv); }
.form-note { font-size: var(--step--1); color: var(--text-mute); margin-top: 0.8rem; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-mute); padding-top: clamp(3.5rem,7vw,6rem); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .mark { font-family: var(--serif); font-size: 2rem; color: var(--text-inv); }
.footer-brand .mark b { color: var(--gold); font-weight: 500; }
.footer-brand p { margin-top: 1rem; font-size: var(--step--1); max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-inv); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: var(--step--1); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 2rem; font-size: var(--step--1); }

/* ---------- BREADCRUMB / PAGE HERO ---------- */
.page-hero { background: var(--ink); color: var(--text-inv); padding-top: clamp(8rem,14vh,11rem); padding-bottom: clamp(3rem,6vw,5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, var(--gold-soft), transparent 55%); }
.page-hero .wrap { position: relative; }
.breadcrumb { font-size: var(--step--1); color: var(--text-inv-mute); margin-bottom: 1.2rem; display: flex; gap: 0.5rem; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 54ch; color: var(--text-inv-mute); font-size: var(--step-1); margin-top: 1.4rem; line-height: 1.5; }

/* ---------- ARTICLE (blog / area body) ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: var(--step-2); margin: 2.6rem 0 1rem; }
.article h3 { font-size: var(--step-1); margin: 2rem 0 0.8rem; }
.article p { margin-bottom: 1.2rem; color: var(--text); }
.article ul, .article ol { margin: 0 0 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article img { border-radius: var(--radius); margin: 2rem 0; }
.article .lede { font-size: var(--step-1); color: var(--text-mute); font-family: var(--serif); font-style: italic; line-height: 1.5; margin-bottom: 2rem; }
.toc { background: var(--paper-2); border-left: 3px solid var(--gold); padding: 1.4rem 1.6rem; margin: 2rem 0; border-radius: var(--radius); }
.toc h4 { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.8rem; }
.toc ul { list-style: none; margin: 0; gap: 0.5rem; }
.toc a { color: var(--text); font-size: var(--step-0); }
.toc a:hover { color: var(--gold-deep); }

/* ---------- CHATBOT ---------- */
.chat-fab { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 200; width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--ink); border: 0; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(168,134,63,0.7); display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--ease); }
.chat-fab:hover { transform: scale(1.08) translateY(-2px); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel { position: fixed; bottom: 6.4rem; right: 1.6rem; z-index: 200; width: min(370px, calc(100vw - 2rem)); height: 520px; max-height: calc(100vh - 8rem); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(0.96); pointer-events: none; transition: 0.4s var(--ease); }
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { background: var(--ink); color: var(--text-inv); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 0.8rem; }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #5ac47f; box-shadow: 0 0 0 3px rgba(90,196,127,0.25); }
.chat-head .t { font-family: var(--serif); font-size: 1.2rem; }
.chat-head .s { font-size: 0.65rem; color: var(--text-inv-mute); letter-spacing: 0.05em; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; background: var(--paper-2); }
.chat-msg { max-width: 82%; padding: 0.75rem 1rem; border-radius: 12px; font-size: var(--step--1); line-height: 1.5; }
.chat-msg.bot { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-msg.user { background: var(--ink); color: var(--text-inv); align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1.2rem; background: var(--paper-2); border-top: 1px solid var(--line); }
.chat-quick button { font-size: 0.72rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; cursor: pointer; transition: 0.3s; }
.chat-quick button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chat-input { display: flex; gap: 0.5rem; padding: 0.9rem 1.2rem; border-top: 1px solid var(--line); background: var(--paper); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 0.6rem 1rem; font-family: var(--sans); font-size: var(--step--1); }
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-input button { background: var(--gold); border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: var(--ink); flex: 0 0 auto; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .split, .split.rev, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; padding: 3rem; gap: 1.6rem; transform: translateX(100%); transition: transform 0.5s var(--ease); }
  .nav-links.open { transform: none; }
  .burger { display: flex; z-index: 101; }
  .gallery { columns: 2 180px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ============================================================
   HERO SLIDESHOW — ambient crossfade (charcoal/gold)
   Added: fade slideshow for .hero-media and .page-hero
   ============================================================ */

/* Homepage full-bleed hero slideshow */
.hero-media[data-slideshow] { position: absolute; inset: 0; z-index: 0; }
.hero-media[data-slideshow] .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  will-change: opacity;
}
.hero-media[data-slideshow] .slide.active { opacity: 1; }
.hero-media[data-slideshow] .slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 9s ease-out forwards;
}
.hero-media[data-slideshow] .slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}
/* keep the original single <img> as first slide fallback until JS builds layers */
.hero-media[data-slideshow] > img { width:100%; height:100%; object-fit:cover; }
.hero-media[data-slideshow].ready > img { display:none; }

/* Page-hero (subpage) ambient background slideshow */
.page-hero { isolation: isolate; }
.page-hero .ph-slideshow {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.page-hero .ph-slideshow .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s var(--ease); will-change: opacity;
}
.page-hero .ph-slideshow .slide.active { opacity: 1; }
.page-hero .ph-slideshow .slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 12s ease-out forwards;
}
/* dark scrim so white text stays readable over any image */
.page-hero .ph-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,14,15,0.72) 0%, rgba(14,14,15,0.78) 55%, rgba(14,14,15,0.92) 100%);
}
/* keep the gold radial glow above the scrim, below text */
.page-hero.has-slideshow::before { z-index: -1; }

@media (prefers-reduced-motion: reduce) {
  .hero-media[data-slideshow] .slide img,
  .page-hero .ph-slideshow .slide img { animation: none !important; transform: none !important; }
  .hero-media[data-slideshow] .slide,
  .page-hero .ph-slideshow .slide { transition: opacity 0.01ms !important; }
}

/* ============================================================
   BRAND LOGO in header (gold PZ on dark)
   ============================================================ */
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-header .brand { display: inline-flex; align-items: center; gap: 0.5rem; }
/* logo is gold-on-black; header may be light -> give it a subtle dark chip so it always reads */
.site-header .brand-logo {
  background: var(--ink, #0e0e0f);
  border-radius: 6px;
  padding: 4px 8px;
}
@media (max-width: 640px){ .brand-logo { height: 36px; } }

/* ============================================================
   BEFORE/AFTER gallery grid (3 pairs)
   ============================================================ */
.ba-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.ba-gallery .ba-wrap { margin: 0; }
