/* =========================================================
   Metalia Plastering — main stylesheet (v3)
   Warm, plain look: floating pill nav, solid accent colour,
   tabbed explorer, before/after slider, photo-backed process.
   ========================================================= */

:root {
  --bg: #f8f6f2;
  --bg-soft: #efe9df;
  --surface: #ffffff;
  --ink: #221d19;
  --text-soft: #6b6259;
  --line: #e5ddd0;

  --accent: #c2703a;
  --accent-2: #3d4a5c;
  --accent-3: #9c5a2e;
  --grad: linear-gradient(135deg, #d98a4a 0%, #c2703a 55%, #9c5a2e 100%);
  --grad-soft: linear-gradient(135deg, rgba(217,138,74,0.16), rgba(194,112,58,0.12) 55%, rgba(61,74,92,0.10));

  --dark: #1a1512;
  --dark-soft: #241e19;

  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.9);
  --shadow-sm: 0 6px 20px rgba(26,21,18,0.08);
  --shadow-lg: 0 24px 60px rgba(26,21,18,0.20);

  --font-head: 'Unbounded', 'Arial Narrow', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { color: var(--text-soft); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #c7c5d4; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #9997ab; }

/* Highlighted words in headings — plain accent colour (was gradient-clipped text) */
.grad-text { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow svg { color: var(--accent); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.02rem; margin-top: 14px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.05s; }
.reveal-delay-2.is-visible { transition-delay: 0.1s; }
.reveal-delay-3.is-visible { transition-delay: 0.15s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn--grad { background: var(--accent); color: #fff; }
.btn--grad:hover { background: var(--accent-3); }
/* The header keeps its original gradient button */
.floating-nav .btn--grad { background: var(--grad); box-shadow: 0 10px 26px rgba(194,112,58,0.35); }

.btn--glass {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--glass:hover { border-color: var(--ink); }

.btn--ghost-dark { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.16); }

.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 20px; font-size: 0.82rem; }

/* ---------- Floating glass nav ---------- */
.nav-wrap { position: sticky; top: 16px; z-index: 200; padding: 0 16px; }
.floating-nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.floating-nav.is-scrolled { box-shadow: var(--shadow-lg); background: rgba(255,255,255,0.86); }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo-text { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); line-height: 1.1; }
.nav-logo-text .nav-logo-line2 { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(20,15,40,0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(20,15,40,0.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.nav-burger span::before, .nav-burger span::after { content:''; position:absolute; left:0; width:16px; height:2px; background:var(--ink); transition: transform 0.2s ease; }
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn--grad.nav-cta-desktop { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Mobile drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(14,13,20,0.5);
  backdrop-filter: blur(2px);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 84vw);
  background: #fff;
  z-index: 250;
  padding: 28px 26px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -14px 0 40px rgba(20,15,40,0.14);
}
.drawer.is-open { transform: translateX(0); }
.drawer-close { align-self: flex-end; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; margin-bottom: 12px; }
.drawer a { font-family: var(--font-head); font-size: 1.3rem; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer a[aria-current="page"] { color: var(--accent); }
.drawer .btn { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 96px; overflow: hidden; background: var(--dark); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-bg::before {
  /* trowelled-plaster texture — always present, sits over an uploaded photo too */
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 3px, rgba(0,0,0,0.05) 3px 7px, rgba(255,255,255,0.02) 7px 15px, rgba(0,0,0,0.06) 15px 23px);
  mix-blend-mode: overlay;
}
.hero-bg::after {
  /* legibility scrim + brand-colour wash */
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26,21,18,0.94) 0%, rgba(26,21,18,0.82) 42%, rgba(26,21,18,0.55) 100%),
    radial-gradient(120% 140% at 85% 110%, rgba(194,112,58,0.28), transparent 60%);
}
.hero-bg--photo::before { mix-blend-mode: multiply; opacity: 0.5; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.1rem; max-width: 50ch; margin: 20px 0 30px; color: #cfc7ba; }
.hero .eyebrow { background: rgba(255,255,255,0.1); color: #f0d9c2; }
.hero .eyebrow svg { color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-avatars { display: flex; align-items: center; gap: 12px; }
.hero-avatars small { font-size: 0.82rem; color: #b6ab9c; font-weight: 600; }

.hero-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hero-card p.sub { font-size: 0.85rem; margin-bottom: 18px; }
.hero-card .field { margin-bottom: 14px; }
.hero-card .field label { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 6px; }
.hero-card .field input, .hero-card .field select {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
}
.hero-card .field input:focus, .hero-card .field select:focus { outline: none; border-color: var(--accent); }
.hero-card .badge {
  position: absolute; top: -14px; right: 22px;
  background: var(--grad); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(194,112,58,0.4);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { transform: none; } }

/* ---------- Trust strip (static — was a scrolling marquee) ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee-track { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; }
.marquee-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.marquee-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Tabbed services explorer ---------- */
.tabs-explorer { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.tabs-nav { display: flex; flex-direction: column; gap: 6px; }
.tab-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tab-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; transition: background 0.15s ease; }
.tab-btn:hover { background: var(--bg-soft); }
.tab-btn.is-active { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-btn.is-active .dot { background: var(--accent); }

.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: 1fr 260px; gap: 30px; align-items: center; animation: panelIn 0.35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-panel-text .eyebrow { margin-bottom: 12px; }
.tab-panel-text ul { margin-top: 18px; display: grid; gap: 10px; }
.tab-panel-text ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.tab-panel-text ul li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.tab-panel-media {
  position: relative; overflow: hidden;
  aspect-ratio: 1/1; border-radius: 22px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.tab-panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .tabs-explorer { grid-template-columns: 1fr; }
  .tabs-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab-btn { white-space: nowrap; }
  .tab-panel.is-active { grid-template-columns: 1fr; }
  .tab-panel-media { order: -1; aspect-ratio: 16/9; }
}

/* ---------- Counter stats ---------- */
.counter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter-item strong { display: block; font-family: var(--font-head); font-size: 2.4rem; }
.counter-item span { font-size: 0.82rem; color: #9997ab; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 780px) { .counter-row { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* ---------- Before / after slider ---------- */
.before-after {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  --pos: 50%;
}
.ba-media { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.ba-after { background: repeating-linear-gradient(135deg, #f0ebe1 0 18px, #e3dac9 18px 36px); background-size: cover; background-position: center; }
.ba-before { background: repeating-linear-gradient(135deg, #d9cfc0 0 18px, #c9bda9 18px 36px); background-size: cover; background-position: center; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tag { margin: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.85); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.ba-after .ba-tag { margin-left: auto; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.ba-handle span {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }

/* ---------- Tilt cards (portfolio / values) ---------- */
.tilt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.tilt-card:hover { border-color: #cfc3b1; }
.tilt-media {
  position: relative;
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, var(--bg-soft) 0 16px, #e3d9c8 16px 32px);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: var(--accent-2);
  overflow: hidden;
}
.tilt-media span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.55; }
.tilt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tilt-body { padding: 18px 20px; }
.tilt-body h4 { margin-bottom: 4px; }
.tilt-body p { font-size: 0.85rem; margin: 0; }
.tilt-tag { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--accent-2); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Filter pills ---------- */
.pill-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.pill-filter button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: 0.86rem; color: var(--text-soft);
  cursor: pointer; transition: 0.15s ease;
}
.pill-filter button:hover { border-color: var(--accent); color: var(--ink); }
.pill-filter button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.tilt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tilt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tilt-grid { grid-template-columns: 1fr; } }

/* ---------- Process (photo background, set in admin as HOME_PROCESS_BG) ---------- */
.section--process { background: var(--dark); overflow: hidden; isolation: isolate; }
.process-bg { position: absolute; inset: 0; z-index: -1; }
.process-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.process-bg::after {
  /* dark scrim so white text stays readable on any uploaded photo */
  content: ''; position: absolute; inset: 0;
  background: rgba(26,21,18,0.78);
}
.section--process .section-head h2,
.section--process .process-step h4 { color: #fff; }
.section--process .section-head p,
.section--process .process-step p { color: #d6cec3; }
.section--process .eyebrow { background: rgba(255,255,255,0.12); color: #f0d9c2; }

.process-rail { position: relative; max-width: 760px; margin: 0 auto; }
.process-rail::before {
  content: ''; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px;
  background: rgba(255,255,255,0.22);
}
.process-step { position: relative; display: flex; gap: 24px; padding-bottom: 46px; }
.process-step:last-child { padding-bottom: 0; }
.process-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.1rem;
  flex-shrink: 0; z-index: 1;
}
.process-step h4 { margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; max-width: 50ch; }

/* ---------- Glass value cards (about) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.value-card .icon { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.value-card h4 { margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; }

/* ---------- Credential strip ---------- */
.credential-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 780px) { .credential-row { grid-template-columns: repeat(2, 1fr); } }
.credential-item { text-align: center; padding: 28px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.credential-item h3 { font-size: 1.9rem; margin-bottom: 4px; }
.credential-item p { font-size: 0.84rem; margin: 0; }

/* ---------- Split about ---------- */
.split-copy { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .split-copy { grid-template-columns: 1fr; } }
.about-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 5/4; border-radius: 24px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  color: var(--accent-2);
}
.about-photo span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Longer story text from the admin — keep its paragraph breaks, no italics */
.story-p3 { white-space: pre-line; }
.story-p3 em { font-style: normal; }

/* ---------- Testimonial cards ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card p.quote { color: var(--ink); font-size: 0.96rem; margin-bottom: 16px; }
.quote-card .who { font-weight: 700; font-size: 0.88rem; }
.quote-card .where { font-size: 0.78rem; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 4px 20px; font-size: 0.94rem; max-width: 68ch; }

/* ---------- Docs-style services sidebar layout ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.docs-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.docs-sidebar a {
  padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 0.88rem; color: var(--text-soft);
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover { color: var(--ink); background: var(--bg-soft); }
.docs-sidebar a.is-active { color: var(--accent-2); border-left-color: var(--accent); background: var(--grad-soft); }
.docs-content { display: flex; flex-direction: column; gap: 90px; }
.docs-section { scroll-margin-top: 110px; display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: center; }
.docs-section-num { font-family: var(--font-head); color: var(--accent); font-size: 0.95rem; margin-bottom: 10px; display: block; }
.docs-section ul { margin-top: 18px; display: grid; gap: 10px; }
.docs-section ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink); }
.docs-section ul li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.docs-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; border-radius: 22px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: var(--accent-2);
}
.docs-media span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.55; text-align: center; padding: 0 10px; }
.docs-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: sticky; top: 76px; flex-direction: row; overflow-x: auto; background: var(--bg); z-index: 5; padding: 10px 0; margin: 0 -24px; padding-left: 24px; }
  .docs-sidebar a { white-space: nowrap; }
  .docs-section { grid-template-columns: 1fr; }
  .docs-media { order: -1; aspect-ratio: 16/9; }
}

/* ---------- CTA glow panel ---------- */
.cta-glow {
  position: relative;
  border-radius: 32px;
  background: var(--dark);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-glow h2 { color: #fff; margin-bottom: 12px; }
.cta-glow p { color: #a29fb2; margin-bottom: 30px; }
.cta-glow .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-glow h2, .cta-glow > p { position: relative; z-index: 1; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 8px 28px; }
.contact-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-row p, .contact-row a { font-size: 0.9rem; }
.contact-row a:hover { color: var(--accent); }
.map-placeholder { margin-top: 24px; border: 1px dashed var(--line); border-radius: 18px; background: var(--bg-soft); padding: 30px; text-align: center; color: var(--text-soft); font-size: 0.85rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-soft);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 14px; }
.form-success { display: none; background: var(--grad-soft); color: var(--accent-2); border-radius: 14px; padding: 16px 18px; font-size: 0.9rem; margin-top: 18px; font-weight: 600; }
.form-success.is-visible { display: block; }

/* ---------- Page header ---------- */
.page-header { padding: 52px 0 30px; text-align: center; }
.breadcrumb { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.page-header p { max-width: 60ch; margin: 14px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #8f8da0; padding: 70px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand-text { color: #8f8da0; font-size: 0.88rem; max-width: 32ch; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a, .footer-col span { color: #8f8da0; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; color: #c7c5d4; }
.footer-social a:hover { background: var(--accent); border-color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 0.8rem; color: #6b6980; }

/* ---------- Floating action buttons ---------- */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer; border: none;
}
.fab-whatsapp { background: #25d366; color: #fff; position: relative; }
.fab-top { background: #fff; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-tooltip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.fab-whatsapp:hover .fab-tooltip { opacity: 1; }

/* ---------- Area chips ---------- */
.area-chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-chip { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* ---------- Admin-editable photo slots ---------- */
/* Containers that show a dashed/gradient placeholder until a real photo is
   uploaded in the admin panel; .has-image hides the placeholder graphic. */
.photo-slot.has-image svg,
.photo-slot.has-image .placeholder-label,
.nav-logo-mark.has-image .logo-initials {
  display: none;
}
.map-placeholder.has-image { padding: 0; border-style: solid; overflow: hidden; position: relative; min-height: 220px; }
.map-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Portfolio social feed (TikTok / Instagram embeds) ---------- */
.social-feed-embeds--tiktok { display: flex; justify-content: center; }
.social-feed-embeds--tiktok .tiktok-embed { margin: 0 auto; }
.social-feed-embeds--instagram { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-items: start; }
/* Instagram positions its iframe absolutely until the post loads — keep it
   contained so it can't push the page wider than the screen */
.social-feed-embeds--instagram .ig-item { min-width: 0; position: relative; overflow: hidden; }
.social-feed-embeds--instagram .instagram-media,
.social-feed-embeds--instagram iframe { min-width: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
@media (max-width: 400px) { .social-feed-embeds--instagram { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
/* Items hidden by the content loader must stay hidden even if their own
   rule sets display: flex/grid */
[hidden] { display: none !important; }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* Honeypot spam-trap field — visually hidden (not display:none, which bots
   detect and skip) but removed from tab order and screen-reader flow. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
