/*
Theme Name: Silvera
Theme URI: https://silvera.pt
Author: Silvera Invest, Lda.
Description: Custom block theme for Silvera — reabilitação de edifícios. Migrated from the original static HTML/CSS/JS design (SILVERA_V20.html).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: silvera
*/

/* ==========================================================================
   Fonts (self-hosted, same files as the original static site)
   ========================================================================== */
@font-face {
  font-family: 'Neue Machina';
  src: url('assets/fonts/NeueMachina-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('assets/fonts/NeueMachina-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('assets/fonts/NeueMachina-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope-Variable.woff2') format('woff2-variations'), url('assets/fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/Archivo-Variable.woff2') format('woff2-variations'), url('assets/fonts/Archivo-Variable.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design tokens (mirrors theme.json — kept here too so plain CSS selectors
   below can use them without depending on WP's generated custom properties)
   ========================================================================== */
:root {
  --ink: #1a1f27;
  --ink-soft: #2c333e;
  --surface: #ffffff;
  --surface-rgb: 255,255,255;
  --surface-alt: #f4f2ee;
  --border: #e5e1da;
  --text: #232a33;
  --text-muted: #5c6470;
  --heading: #1a1f27;
  --accent: #C09552;
  --accent-dark: #9c7a41;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-machina: 'Neue Machina', 'Archivo', sans-serif;
  --radius: 14px;
  --shadow: 0 20px 40px -20px rgba(26, 31, 39, 0.25);
  --container: 1180px;
  color-scheme: light;
}
:root[data-color-mode="night"] {
  --ink: #000000;
  --ink-soft: #000000;
  --surface: #000000;
  --surface-rgb: 0,0,0;
  --surface-alt: #000000;
  --border: #333333;
  --text: #FFFFFF;
  --text-muted: rgba(255,255,255,0.7);
  --heading: #FFFFFF;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.15; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a1f27; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(192,149,82,0.55); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  transition: background-color 0.25s ease;
  padding-top: env(safe-area-inset-top);
}
.site-header.on-light { background: #FFFFFF; }
:root[data-color-mode="night"] .site-header.on-light { background: var(--surface-alt); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 36px; width: auto; }
.logo-ink { fill: #FFFFFF; transition: fill 0.25s ease; }
.site-header.on-light .logo-ink { fill: #000000; }
:root[data-color-mode="night"] .site-header.on-light .logo-ink { fill: #FFFFFF; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.92rem; transition: color 0.15s ease; }
.nav a:hover { color: var(--accent); }
.site-header.on-light .nav a { color: rgba(17,17,17,0.85); }
:root[data-color-mode="night"] .site-header.on-light .nav a { color: rgba(255,255,255,0.85); }
.lang-toggle { display: flex; align-items: center; color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 2px; gap: 2px; }
.site-header.on-light .lang-toggle { color: rgba(17,17,17,0.85); border-color: rgba(17,17,17,0.35); }
:root[data-color-mode="night"] .site-header.on-light .lang-toggle { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.5); }
.lang-btn {
  background: none; border: none; color: inherit;
  font-family: var(--font-machina); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 999px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--accent); color: var(--ink); }
.theme-toggle {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: transparent; color: var(--accent);
  cursor: pointer; padding: 0; transition: border-color 0.15s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-color-mode="night"] .theme-toggle .icon-sun { display: none; }
:root[data-color-mode="night"] .theme-toggle .icon-moon { display: block; }
.site-header.on-light .theme-toggle { border-color: rgba(17,17,17,0.35); }
:root[data-color-mode="night"] .site-header.on-light .theme-toggle { border-color: rgba(255,255,255,0.5); }
.header-controls { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #000000; color: #fff; min-height: 92vh; min-height: 92dvh; display: flex; align-items: center; padding: 140px 0 90px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.hero-video.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.85) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-family: var(--font-machina); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.5px; text-transform: uppercase; color: #fff; margin-bottom: 48px; }
.typewriter-cursor { display: inline-block; margin-left: 4px; color: var(--accent); font-weight: 400; animation: blink-cursor 0.9s steps(1) infinite; transition: opacity 0.5s ease; }
.typewriter-cursor.done { animation: none; opacity: 0; }
@keyframes blink-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typewriter-cursor { animation: none; opacity: 1; } }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 36px; opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero-stats.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .hero-stats { opacity: 1; transform: none; transition: none; } }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-machina); font-weight: 800; font-size: 1.9rem; color: var(--accent); }
.hero-stats span { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-tag { font-family: var(--font-machina); color: var(--accent-dark); font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; max-width: 700px; }
.section-lead { color: var(--text-muted); max-width: 620px; font-size: 1.05rem; margin-bottom: 48px; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Service cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 54px; height: 54px; border-radius: 12px; background: rgba(192,149,82,0.12); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { position: relative; padding-top: 8px; border-top: 3px solid var(--accent); }
.process-num { display: block; font-family: var(--font-machina); font-weight: 800; font-size: 2rem; color: rgba(35,42,51,0.18); margin-bottom: 8px; }
:root[data-color-mode="night"] .process-num { color: rgba(192,149,82,0.35); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Projects (Query Loop) ---------- */
.projects-grid .project-card,
a.project-card {
  display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease; touch-action: manipulation; cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb { height: 300px; position: relative; overflow: hidden; background: var(--ink-soft); margin: 0; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-info { padding: 22px; }
.project-tag, .wp-block-post-terms {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent-dark); background: rgba(192,149,82,0.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.project-info h3, .project-info .wp-block-post-title { font-size: 1.05rem; margin-bottom: 8px; }
.project-info p, .project-info .wp-block-post-excerpt__excerpt { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; margin: 0; }
.about-visual img, .about-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 24px; margin-bottom: 0; padding: 0; display: grid; gap: 12px; }
.about-list li { padding-left: 28px; position: relative; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.about-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent-dark); font-weight: 900; }

/* ---------- Partners ---------- */
.section-glow { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 15%, rgba(192,149,82,0.16), transparent 55%), radial-gradient(circle at 85% 85%, rgba(192,149,82,0.10), transparent 50%), var(--surface); }
.section-glow .section-tag::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.partners-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(var(--surface-rgb), 0.6); backdrop-filter: blur(4px); }
.partner-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 40px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-top: 3px solid transparent; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.partner-item:hover { background: var(--surface-alt); border-top-color: var(--accent); transform: translateY(-2px); }
.partner-name { font-family: var(--font-machina); font-weight: 400; font-size: 1.05rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--heading); transition: color 0.2s ease; }
.partner-item:hover .partner-name { color: var(--accent-dark); }
.partner-cat { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-detail { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-detail strong { font-size: 0.82rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.4px; }
.contact-detail span { font-weight: 600; }
.contact-form-wrap { background: var(--surface-alt); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.contact-form-wrap .wpcf7-form { display: grid; gap: 18px; }
.contact-form-wrap .wpcf7-form p { margin: 0; display: grid; gap: 6px; }
.contact-form-wrap label { font-size: 0.85rem; font-weight: 700; color: var(--text); display: grid; gap: 6px; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="email"],
.contact-form-wrap select,
.contact-form-wrap textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-family: var(--font-body);
  font-size: 16px; background: var(--surface); color: var(--text); resize: vertical; width: 100%;
}
.contact-form-wrap input:focus, .contact-form-wrap select:focus, .contact-form-wrap textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,149,82,0.18);
}
.contact-form-wrap .wpcf7-submit { background: var(--accent); color: #1a1f27; border: 2px solid transparent; border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 0.95rem; width: 100%; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.contact-form-wrap .wpcf7-submit:hover { background: var(--accent-dark); transform: translateY(-2px); }
.contact-form-wrap .consent-row { display: flex; }
.contact-form-wrap .consent-row label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
.contact-form-wrap .consent-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.contact-form-wrap .consent-row a { color: var(--accent-dark); text-decoration: underline; }
.contact-form-wrap .wpcf7-not-valid-tip { color: #b3261e; font-size: 0.8rem; font-weight: 600; }
.contact-form-wrap .wpcf7-response-output { border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin: 0 !important; padding: 10px 14px !important; }
.contact-form-wrap form.sent .wpcf7-response-output { border-color: var(--accent) !important; color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #000000; color: rgba(255,255,255,0.7); padding: 48px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 28px; margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75); transition: color 0.15s ease, border-color 0.15s ease; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { font-size: 0.8rem; text-align: center; }

/* ---------- Project single (before/after, gallery, facts) ---------- */
.project-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 180px 0 80px; }
.project-hero-bg { position: absolute; inset: 0; z-index: 0; }
.project-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: grayscale(100%); }
.project-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.9) 100%); }
.project-hero-inner { position: relative; z-index: 1; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600; margin-bottom: 28px; transition: color 0.15s ease; }
.back-link:hover { color: var(--accent); }
.project-hero-tag { display: inline-block; font-family: var(--font-machina); font-size: 0.78rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); background: rgba(192,149,82,0.14); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.project-hero h1 { font-family: var(--font-machina); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; margin-bottom: 14px; max-width: 800px; }
.project-hero-location { color: rgba(255,255,255,0.65); font-size: 1.05rem; }

.ba-section { padding: 0 0 96px; background: var(--surface); }
.ba-section .container { margin-top: -64px; position: relative; z-index: 2; }
.ba-slider { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: ew-resize; user-select: none; touch-action: none; background: var(--ink); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { --pos: 50%; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(var(--pos) - 5%), transparent calc(var(--pos) + 5%), transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 calc(var(--pos) - 5%), transparent calc(var(--pos) + 5%), transparent 100%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); transform: translateX(-50%); width: 2px; background: rgba(255,255,255,0.85); pointer-events: none; }
.ba-handle-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.ba-handle-btn svg { width: 20px; height: 20px; }
.ba-label { position: absolute; bottom: 20px; font-family: var(--font-machina); font-size: 0.72rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; background: rgba(10,10,10,0.55); padding: 7px 14px; border-radius: 999px; pointer-events: none; }
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }
.ba-hint { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 18px; }

.project-info-section { padding: 0 0 96px; }
.project-info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.project-desc p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 18px; }
.project-desc h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.facts-card { background: var(--surface-alt); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; height: fit-content; }
.facts-card h3 { font-family: var(--font-machina); font-weight: 400; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 20px; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); font-size: 0.88rem; }
.fact-value { font-weight: 700; font-size: 0.92rem; text-align: right; }

.gallery-section { padding: 0 0 96px; }
.mini-slideshow { position: relative; width: 100%; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.mini-slideshow-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.mini-slide { flex: 0 0 100%; height: 100%; }
.mini-slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(10,10,10,0.55); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease; z-index: 2; }
.slideshow-arrow:hover { background: var(--accent-dark); }
.slideshow-arrow svg { width: 20px; height: 20px; }
.slideshow-prev { left: 16px; }
.slideshow-next { right: 16px; }
.slideshow-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slideshow-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease; }
.slideshow-dot.active { background: var(--accent); transform: scale(1.3); }

.project-cta { background: var(--ink); color: #fff; padding: 64px 0; text-align: center; }
.project-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 12px; }
.project-cta p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }

/* ---------- Legal page ---------- */
.legal-hero { background: var(--ink); color: #fff; padding: 160px 0 56px; }
.legal-hero .back-link { margin-bottom: 24px; }
.legal-hero .project-hero-tag { margin-bottom: 16px; }
.legal-hero h1 { font-family: var(--font-machina); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: #fff; }
.legal-content { padding: 64px 0 96px; }
.legal-container { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.legal-toc a { padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); transition: background 0.15s ease, color 0.15s ease; display: block; }
.legal-toc a:hover { background: var(--surface-alt); color: var(--heading); }
.legal-body section { margin-bottom: 48px; scroll-margin-top: 96px; }
.legal-body section:last-child { margin-bottom: 0; }
.legal-body h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.legal-body p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 14px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-controls { gap: 10px; }
  .hero { min-height: 78vh; min-height: 78dvh; padding: 60px 0 50px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .project-hero { padding: 140px 0 60px; }
  .project-info-grid { grid-template-columns: 1fr; gap: 32px; }
  .ba-section .container { margin-top: -40px; }
  .ba-slider { aspect-ratio: 4 / 5; }
  .mini-slideshow { aspect-ratio: 4 / 5; }
  .legal-hero { padding: 140px 0 40px; }
  .legal-container { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .logo { gap: 10px; }
  .header-inner { height: 68px; }
  .hero h1 { letter-spacing: 0; }
  .hero-stats { gap: 10px; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-stats span { font-size: 0.7rem; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }
  .container { padding: 0 18px; }
}

/* Block editor niceties */
.editor-styles-wrapper .wp-site-blocks { background: var(--surface); }
