*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
      --black:        #080808;
      --off-black:    #0e0e0e;
      --dark:         #141414;
      --border:       rgba(255,255,255,0.07);
      --border-light: rgba(255,255,255,0.12);
      --white:        #ffffff;
      --off-white:    #f0ede8;
      --muted:        rgba(255,255,255,0.45);
      --gold:         #c9a96e;
      --gold-light:   #dfc08a;
      --gold-dim:     rgba(201,169,110,0.15);
      --green:        #25d366;
      --font-serif:   'Playfair Display', Georgia, serif;
      --font-sans:    'Manrope', system-ui, sans-serif;
      --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    }

html { scroll-behavior: auto; font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
      background: var(--black); color: var(--white);
      font-family: var(--font-sans); font-weight: 300; line-height: 1.6;
      overflow-x: hidden; -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
    }

::selection { background: var(--gold); color: var(--black); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }

/* ── CURSOR ── */
    /* cursor hiding is handled by body.has-custom-cursor added by cursor.js */

.cursor-ring {
      position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
      width: 38px; height: 38px;
      border: 1.5px solid rgba(201,169,110,0.65); border-radius: 50%;
      transform: translate(-50%,-50%); opacity: 0;
      transition: width .3s var(--ease-out), height .3s var(--ease-out), opacity .3s, border-color .3s;
      display: none; will-change: left, top;
    }

.cursor-ring.visible  { opacity: 1; }

.cursor-ring.hovered  { width: 58px; height: 58px; border-color: var(--gold); opacity: .8; }

.cursor-ring.clicking { width: 26px; height: 26px; opacity: 1; }

/* ── NOISE ── */
    body::before {
      content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
      opacity: 0.35;
    }

/* ── SCROLLBAR ── */
    ::-webkit-scrollbar { width: 3px; }

::-webkit-scrollbar-track { background: var(--black); }

::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── PAGE LOADER ── */
    .page-loader {
      position: fixed; inset: 0; z-index: 9000; background: var(--black);
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
      transition: opacity .7s var(--ease-out), visibility .7s;
    }

/* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      padding: 0 clamp(20px,5vw,48px);
      display: flex; align-items: center; justify-content: space-between;
      height: 80px;
      transition: background .6s var(--ease-out), backdrop-filter .6s, height .4s var(--ease-out);
    }

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity .3s;
}

.nav-logo img:hover {
  opacity: 0.85;
}

/* ── HERO ── */
    .hero {
      position: relative; height: 100svh; min-height: 650px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }

/* ── TRUST BAR ── */
    .trust-bar {
      position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
      background: rgba(14,14,14,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      gap: 0; flex-wrap: wrap;
      padding: 0;
    }

/* ── HERO STATS ── */
    .hero-stats { position: absolute; bottom: 73px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: clamp(28px,6vw,64px); flex-wrap: wrap; justify-content: center; width: 100%; padding: 0 clamp(24px,5vw,48px); }

/* ── BUTTONS ── */
    .btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--black); padding: clamp(13px,2vw,16px) clamp(24px,3vw,36px); border-radius: 2px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; transition: background .3s, transform .4s var(--ease-out), box-shadow .4s; white-space: nowrap; }

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,169,110,.28); }

.btn-primary svg { flex-shrink: 0; transition: transform .3s var(--ease-out); }

.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px; transition: color .3s, border-color .3s; white-space: nowrap; }

.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* ── SHARED ── */
    section { position: relative; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px,5vw,48px); }

.section-pad { padding: clamp(80px,12vh,140px) 0; }

.section-pad-sm { padding: clamp(60px,10vh,100px) 0; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 20px; }

.label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

h2.display { font-family: var(--font-serif); font-size: clamp(36px,5.5vw,72px); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; }

h2.display em { font-style: italic; color: var(--gold); }

.section-desc { font-size: 1rem; color: var(--muted); max-width: 440px; line-height: 1.75; font-weight: 300; margin-top: 24px; }

/* ── MARQUEE ── */
    .marquee-section { padding: 28px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }

/* ── SERVICES ── */
    .services-grid { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--border); margin-top: 72px; }

/* ── ABOUT ── */
    .split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }

.split-visual img { transition: transform 1.2s var(--ease-out); }

.split-visual:hover img { transform: scale(1.04); }

.split-content .section-desc { max-width: 100%; }

/* ── CREDENTIALS STRIP ── */
    .credentials-strip {
      background: var(--off-black); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
      padding: 32px 0;
    }

/* ═══════════════════════════════════════════ PORTFOLIO ══ */
.portfolio-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; gap: 24px; flex-wrap: wrap; }

/* Filter pill bar */
.portfolio-filter-row { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* Grid */
        /* Gold frame wrapper */
        .portfolio-frame { outline: 2px solid rgba(201,169,110,.5); outline-offset: 7px; position: relative; margin-top: 0; }

/* Grid */
        .portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #000; grid-auto-rows: clamp(90px, 13vh, 150px); }

/* Every item */
        .portfolio-item { position: relative; overflow: hidden; background: var(--dark); cursor: zoom-in; display: block; min-height: 0; }

/* Category badge — always visible corner label, fades on hover */
        .portfolio-badge { position: absolute; bottom: 11px; right: 13px; font-size: .48rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(201,169,110,.6); background: rgba(4,4,4,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(201,169,110,.15); padding: 3px 9px; z-index: 2; transition: opacity .28s ease; pointer-events: none; }

/* Filter buttons show item count via CSS attr() — translation-safe */
        .filter-btn[data-count]::after { content: ' (' attr(data-count) ')'; font-size: .56rem; opacity: .42; font-family: var(--font-sans); }

/* Image pan */
/* Image pan — no dimming filter at rest; hover brings subtle enhancement */
.portfolio-item img { transition: transform 1s var(--ease-out), filter .6s ease; will-change: transform; }

.portfolio-item:hover img { transform: scale(1.07); filter: brightness(1.03) saturate(1.08); }

/* Gold top-edge reveal line */
.portfolio-item::before { content: ''; position: absolute; top: 0; left: 0; right: 100%; height: 2px; background: var(--gold); z-index: 3; transition: right .55s var(--ease-out); }

/* Overlay: 3-stop gradient — stays invisible, fans in from bottom */
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,6,6,.96) 0%, rgba(6,6,6,.55) 38%, rgba(6,6,6,.1) 65%, transparent 100%); opacity: 0; transition: opacity .45s var(--ease-out); display: flex; flex-direction: column; justify-content: flex-end; padding: 0; pointer-events: none; }

/* Tag */
.portfolio-overlay-tag { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; padding: 0 24px 0 24px; }

/* Title */
.portfolio-overlay-title { font-family: var(--font-serif); font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 400; color: var(--white); line-height: 1.2; padding: 0 24px 22px; }

/* Index number — top-left, appears on hover */
.portfolio-item-index { position: absolute; top: 18px; left: 20px; font-family: var(--font-serif); font-size: .72rem; font-weight: 300; color: rgba(201,169,110,.5); font-style: italic; line-height: 1; z-index: 2; opacity: 0; transform: translateY(-4px); transition: opacity .4s ease .1s, transform .4s var(--ease-out) .1s; pointer-events: none; }

/* Zoom/expand icon — bottom-right corner */
.portfolio-item-icon { position: absolute; bottom: 22px; right: 22px; width: 30px; height: 30px; border-radius: 50%; background: rgba(201,169,110,.12); border: 1px solid rgba(201,169,110,.3); display: flex; align-items: center; justify-content: center; color: var(--gold); z-index: 3; opacity: 0; transform: scale(.6) rotate(15deg); transition: opacity .38s ease .08s, transform .4s var(--ease-out) .08s; pointer-events: none; }

/* Bottom CTA bar below the grid */
        .portfolio-cta-bar { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 26px 36px 26px 40px; border: 1px solid var(--border); background: var(--off-black); gap: 24px; flex-wrap: wrap; overflow: hidden; }

/* ══════════════════════════ LIGHTBOX ══ */
        .lightbox { position: fixed; inset: 0; z-index: 8000; background: rgba(4,4,4,.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .38s ease; }

/* Top bar */
        .lb-top-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.4) 70%, transparent); z-index: 10; pointer-events: none; }

/* Arrows */
        .lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(8,8,8,.75); border: 1px solid rgba(201,169,110,.22); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); cursor: pointer; z-index: 11; transition: background .22s, border-color .22s, color .22s, transform .25s var(--ease-out); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Image stage */
        .lb-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: calc(100vw - 140px); max-height: calc(100vh - 130px); z-index: 2; }

.lb-stage img { max-width: calc(100vw - 140px); max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; display: block; border: 1px solid rgba(255,255,255,.08); opacity: 1; transform: scale(1); transition: opacity .3s ease, transform .36s var(--ease-out); }

.lb-stage img.lb-switching { opacity: 0; transform: scale(.96); transition: none; }

/* Bottom bar */
        .lb-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px 24px; background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.4) 70%, transparent); z-index: 10; gap: 16px; pointer-events: none; }

/* Dots */
        .lb-dots { display: flex; gap: 6px; align-items: center; flex-shrink: 0; pointer-events: none; }

/* ── PROCESS ── */
    .process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); margin-top: 72px; border: 1px solid var(--border); }

/* ── RE CTA ── */
    .re-cta { background: var(--off-black); border: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: clamp(36px,5vw,64px) clamp(28px,6vw,72px); margin-top: 72px; position: relative; overflow: hidden; }

/* ── TESTIMONIALS ── */
    .testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 64px; }

/* Google badge */
    .google-rating-banner {
      display: flex; align-items: center; justify-content: center; gap: 20px;
      padding: 28px; background: var(--dark); border: 1px solid var(--border);
      margin-top: 1px; flex-wrap: wrap; gap: 32px;
    }

/* ── FAQ ── */
    .faq-grid { margin-top: 64px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }

/* ── CONTACT ── */
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

/* Response guarantee */
    .response-guarantee {
      margin-top: 20px; padding: 20px 24px;
      border: 1px solid rgba(201,169,110,.2); background: rgba(201,169,110,.04); border-radius: 2px;
      display: flex; align-items: flex-start; gap: 14px;
    }

.response-guarantee svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.response-guarantee-title { font-size: .82rem; font-weight: 500; margin-bottom: 4px; }

.response-guarantee-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ── FORM ── */
    .contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-input, .form-textarea, .form-select { background: var(--off-black); border: 1px solid var(--border); color: var(--white); padding: 14px 18px; border-radius: 2px; font-family: var(--font-sans); font-size: .9rem; font-weight: 300; transition: border-color .3s, background .3s; outline: none; width: 100%; -webkit-appearance: none; appearance: none; }

.whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 14px 40px; border-radius: 2px; width: 100%; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; font-family: var(--font-sans); transition: all .3s; }

.whatsapp-btn:hover { border-color: #25d366; color: #25d366; background: rgba(37,211,102,.05); }

/* ── WHATSAPP FLOAT ── */
    .wa-float {
      position: fixed; bottom: 5px; left: 28px; z-index: 500;
      display: flex; align-items: center; gap: 0;
      filter: drop-shadow(0 8px 24px rgba(37,211,102,.35));
      transition: filter .3s;
    }

/* ── FOOTER ── */
    footer { padding: clamp(48px,7vh,72px) 0 40px; border-top: 1px solid var(--border); background: var(--off-black); }

/* ── REVEAL ── */
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: .1s; }

.reveal-delay-2 { transition-delay: .2s; }

.reveal-delay-3 { transition-delay: .3s; }

.reveal-delay-4 { transition-delay: .4s; }

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

/* ── BACK TO TOP ── */
        .back-top { position: fixed; bottom: 26px; right: 16px; z-index: 50; width: 40px; height: 40px; background: var(--gold); color: var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease-out); transform: translateY(12px); }

/* ── MOBILE MENU ── */
    .mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(8,8,8,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: clamp(88px,12vh,100px) clamp(24px,6vw,40px) 48px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease-out); overflow-y: auto; -webkit-overflow-scrolling: touch; }

.mobile-menu-cta .btn-primary { width: 100%; justify-content: center; padding: 18px 32px; }

/* ── RESPONSIVE ── */
    @media (max-width: 1100px) {
      .services-grid { grid-template-columns: repeat(2,1fr); }
      .process-grid { grid-template-columns: repeat(2,1fr); }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
    }

/* ─── LANGUAGE BUTTON ─── */
.nav-lang-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.3s; cursor: pointer;
  flex-shrink: 0;
}

/* ─── LANGUAGE MODAL ─── */
.lang-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease-out;
}

/* ══════════════════════════════════════════════════════════════
   FLOATING BUTTONS — PERFECTLY ALIGNED & CROSS-DEVICE
══════════════════════════════════════════════════════════════ */
.back-top {
  bottom: 26px !important;
  right: 16px !important;
}

/* Mobile — raise both above browser chrome, perfectly aligned */
@media (max-width: 767px) {
  .back-top { bottom: 77px !important; right: 14px !important; }
  .wa-float  { bottom: 77px !important; left: 14px !important; }
  .wa-float-label { display: none !important; }
}

/* iOS & Android safe-area (notch / home-bar) */
@supports (bottom: env(safe-area-inset-bottom)) {
      .back-top { bottom: calc(26px + env(safe-area-inset-bottom)) !important; }
    .wa-float { bottom: calc(26px + env(safe-area-inset-bottom)) !important; }
  @media (max-width: 767px) {
    .back-top { bottom: calc(77px + env(safe-area-inset-bottom)) !important; }
    .wa-float { bottom: calc(77px + env(safe-area-inset-bottom)) !important; }
  }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .back-top { bottom: 40px !important; right: 12px !important; }
  .wa-float { bottom: 56px !important; left: 12px !important; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE TOUCH & TABLET ENHANCEMENTS
══════════════════════════════════════════════════════════════ */
button, a, .btn, select, input, textarea {
  touch-action: manipulation;
}

/* iOS: prevent font zoom on form focus */
@media (max-width: 767px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Touch target minimums */
@media (max-width: 768px) {
  .nav-lang-btn, .menu-toggle { width: 44px !important; height: 44px !important; }
  .filter-btn { min-height: 40px; padding: 8px 16px; }
}

/* Tablet (iPad portrait & landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container { max-width: 92%; }
  .hero { min-height: 75vh; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   FILE UPLOAD WIDGET
══════════════════════════════════════════════════════════════ */
.upload-zone {
  position: relative; 
  border: 2px dashed rgba(212,175,55,0.35);
  border-radius: 12px;
  padding: clamp(24px,4vw,36px) 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .2s;
  background: rgba(255,255,255,0.02);
  user-select: none;
  -webkit-user-select: none;
}

.label-optional {
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: .05em;
}

.upload-thumb img { width: 80px; height: 60px; object-fit: cover; display: block; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =====================================================================
   CURSOR — correct rules only.
   The ring is shown/hidden by cursor.js via class toggles.
   cursor: none only applies once JS confirms a fine-pointer device.
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1.5px solid rgba(201, 169, 110, 0.75);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(circle at center,
      rgba(201, 169, 110, 0.14),
      rgba(201, 169, 110, 0.04) 55%,
      transparent 70%);
    transition:
      opacity  160ms ease,
      width    180ms var(--ease-out),
      height   180ms var(--ease-out),
      border-color 180ms ease;
    will-change: left, top, opacity, width, height;
  }
  .cursor-ring.visible  { opacity: 1; }
  .cursor-ring.hovered  { width: 50px; height: 50px; border-color: rgba(223, 192, 138, 0.95); }
  .cursor-ring.clicking { width: 22px; height: 22px; }

  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [role="button"],
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor select,
  body.has-custom-cursor label,
  body.has-custom-cursor summary {
    cursor: none !important;
  }
}

/* =====================================================================
   PAGE LOADER — hide once JS marks it .loaded
   ===================================================================== */
.page-loader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =====================================================================
   MOBILE MENU OPEN — hide floating WA + back-to-top buttons
   The mobile menu sits at z-index 99; .wa-float defaults to z-index 200
   so we MUST also drop its z-index AND kill the entrance animation
   (animation: floatSlideIn ... both) which would otherwise re-assert
   transform/opacity over the !important hide.
   ===================================================================== */
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  body.menu-open .wa-float,
  body.menu-open .back-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(14px) scale(0.9) !important;
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease !important;
    /* Defeat the floatSlideIn entrance animation that would otherwise
       fight our !important rules via animation-fill-mode: both */
    animation: none !important;
    /* Make absolutely sure the float can never sit over the menu sheet */
    z-index: 1 !important;
  }
}

/* =====================================================================
   HERO STATS — centered on mobile
   ===================================================================== */
@media (max-width: 900px) {
  .hero-stats {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    padding: 24px clamp(16px, 5vw, 28px) !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-stat { text-align: center !important; }
}


/* =====================================================================
   RTL SUPPORT — Hebrew (dir="rtl" set by lang.js on html element)
   ===================================================================== */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] .label::before { display: none; }
[dir="rtl"] .contact-item, [dir="rtl"] .split-feature { flex-direction: row-reverse; }
/* RTL: only flip left/right — never touch bottom, which must inherit
   from each breakpoint's own rule (77px phone, 40px small phone, 26px desktop) */
[dir="rtl"] .back-top { right: auto !important; left: 16px !important; }
[dir="rtl"] .wa-float { left: auto !important; right: 16px !important; }
@media (max-width: 767px) {
  [dir="rtl"] .back-top { left: 14px !important; right: auto !important; }
  [dir="rtl"] .wa-float { right: 14px !important; left: auto !important; }
}


/* =====================================================================
   ARCHITECTURAL DESIGN DETAILS
   Subtle construction / blueprint-inspired decorative elements that
   reinforce the architecture-studio brand. Pure CSS — no HTML changes.
   ===================================================================== */

/* ── A1. Corner registration marks on the portfolio frame ──
   Four L-shaped brackets offset 10px outside the frame — like
   architectural drawing registration marks. Fade in on hover. */
.portfolio-frame::after {
  content: '';
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 1;
  background:
    /* Top-left L */
    linear-gradient(180deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 0 0 / 1px 20px,
    linear-gradient(90deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 0 0 / 20px 1px,
    /* Top-right L */
    linear-gradient(180deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 100% 0 / 1px 20px,
    linear-gradient(90deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 100% 0 / 20px 1px,
    /* Bottom-left L */
    linear-gradient(180deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 0 100% / 1px 20px,
    linear-gradient(90deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 0 100% / 20px 1px,
    /* Bottom-right L */
    linear-gradient(180deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 100% 100% / 1px 20px,
    linear-gradient(90deg, rgba(201,169,110,0.2), rgba(201,169,110,0.2)) no-repeat 100% 100% / 20px 1px;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1);
}
.portfolio-frame:hover::after { opacity: 1; }
@media (max-width: 600px) {
  .portfolio-frame::after { display: none; }
}

/* ── A2. Blueprint crosshair on hero section ──
   Small + mark in the top-right corner — a blueprint reference point.
   Purely decorative, invisible to screen readers. */
.hero::after {
  content: '+';
  position: absolute;
  top: clamp(20px, 3.5vw, 40px);
  right: clamp(20px, 3.5vw, 48px);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 200;
  color: rgba(201,169,110,0.10);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
[dir="rtl"] .hero::after { right: auto; left: clamp(20px, 3.5vw, 48px); }
@media (max-width: 600px) {
  .hero::after { display: none; }
}

/* ── A3. Construction dimension line on process steps ──
   A subtle vertical gold accent at the left edge of each step,
   revealed on hover — like an architectural dimension annotation. */
.process-step { position: relative; }
.process-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(201,169,110,0.45), rgba(201,169,110,0));
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: top;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
  pointer-events: none;
}
.process-step:hover::after { opacity: 1; transform: scaleY(1); }
[dir="rtl"] .process-step::after { left: auto; right: 0; }
@media (max-width: 700px) {
  .process-step::after { display: none; }
}

/* ── A4. Architectural dot grid on services section ──
   Very subtle repeating dot pattern behind the cards, like
   engineering graph paper. Applied to the .services-grid gap background. */
.services-grid {
  background-image: radial-gradient(
    circle,
    rgba(201,169,110,0.06) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}
@media (max-width: 700px) {
  .services-grid { background-image: none; }
}

/* ── A5. Credential badge construction-line hover accent ──
   Adds a subtle measurement tick on hover. */
.cred-badge::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}
.cred-badge { position: relative; overflow: visible; }
.cred-badge:hover::after { transform: translateX(-50%) scaleX(1); }


/* =====================================================================
   ACCESSIBILITY — FOCUS-VISIBLE & KEYBOARD NAVIGATION
   Clear gold outline for keyboard users. Invisible during mouse/touch.
   ===================================================================== */
:focus-visible {
  outline: 2px solid rgba(201,169,110,0.7);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
.filter-btn:focus-visible,
.form-submit:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid rgba(201,169,110,0.7);
  outline-offset: 3px;
}
/* Don't show focus outlines during mouse interaction */
:focus:not(:focus-visible) { outline: none; }


/* =====================================================================
   TOUCH DEVICE POLISH
   Larger touch targets on coarse-pointer (phone/tablet) devices.
   Apple HIG and Material both require minimum 44×44px.
   ===================================================================== */
@media (pointer: coarse) {
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .filter-btn { min-height: 44px; }
  .faq-question { min-height: 56px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-lang-btn, .menu-toggle { min-width: 44px; min-height: 44px; }
  .lb-arrow { min-width: 48px; min-height: 48px; }
  .lb-action-btn { min-width: 44px; min-height: 44px; }
  /* Prevent iOS double-tap zoom on interactive elements */
  .service-card, .faq-item, .portfolio-item, .testimonial, .cred-badge {
    touch-action: manipulation;
  }
}


/* =====================================================================
   PERFORMANCE — GPU COMPOSITING HINTS
   Isolate paint layers for animated elements so repaints don't cascade
   to neighboring DOM. Reduces jank on low-end phones.
   ===================================================================== */
.services-grid,
.portfolio-grid,
.process-grid,
.testimonials-grid,
.faq-grid { contain: layout style; }

.portfolio-item,
.service-card,
.faq-item { isolation: isolate; }


/* ═══════════════════════════════════════════════════════════════════
   ROUND 5 — SITE-WIDE ARCHITECTURAL DETAILS
   ═══════════════════════════════════════════════════════════════════
   Scroll progress bar + refined section structure.
   Keeps everything subtle — "hidden until you notice."
   ═══════════════════════════════════════════════════════════════════ */


/* ── 1. SCROLL PROGRESS BAR — top of viewport ──────────────────
   2px gold line that fills left-to-right as user scrolls the
   page. Uses a scaleX(var(--scroll-progress, 0)) pattern so a
   single rAF loop can update a CSS custom property — minimal
   cost, no reflow thrash. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9998;            /* below cursor halo (9999), above nav */
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(201,169,110,0.08) 0%,
    rgba(201,169,110,0.12) 100%
  );
}
.scroll-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--gold-light, #dfc08a) 0%,
    var(--gold) 60%,
    var(--gold-light, #dfc08a) 100%
  );
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 120ms linear;
  box-shadow: 0 0 12px rgba(201,169,110,0.4);
  will-change: transform;
}
[dir="rtl"] .scroll-progress::before {
  transform-origin: right center;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress::before {
    transition: none;
  }
}


/* ── 2. SECTION § MARKERS — subtle top-right label per section ─
   A small "§ 01" style marker appears in the top-right corner
   of each major section — like page numbers on a drawing set.
   Only on desktop (mobile stays uncluttered). */
@media (min-width: 900px) {
  #services,
  #about,
  #portfolio,
  #testimonials,
  #faq,
  #contact {
    position: relative;
  }
  #services::before   { content: '§ 01'; }
  #about::before      { content: '§ 02'; }
  #portfolio::before  { content: '§ 03'; }
  #testimonials::before { content: '§ 04'; }
  #faq::before        { content: '§ 05'; }
  #contact::before    { content: '§ 06'; }
  /* process section has no ID — we skip it to avoid reserving it */

  #services::before,
  #about::before,
  #portfolio::before,
  #testimonials::before,
  #faq::before,
  #contact::before {
    position: absolute;
    top: clamp(20px, 3vh, 36px);
    right: clamp(20px, 4vw, 48px);
    font-family: var(--font-serif);
    font-size: 0.68rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(201,169,110,0.32);
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 1;
  }
  [dir="rtl"] #services::before,
  [dir="rtl"] #about::before,
  [dir="rtl"] #portfolio::before,
  [dir="rtl"] #testimonials::before,
  [dir="rtl"] #faq::before,
  [dir="rtl"] #contact::before {
    right: auto;
    left: clamp(20px, 4vw, 48px);
  }
}


/* ── 3. HAIR-RULE — subtle section separator with gold center ─
   Optional utility class for any future section separators. */
.hair-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,169,110,0.22) 50%,
    transparent 100%
  );
  margin: clamp(40px, 8vh, 72px) 0;
}


/* ═══════════════════════════════════════════════════════════════════
   ROUND 6 — BACK-TO-TOP "LEVEL INDICATOR"
   ═══════════════════════════════════════════════════════════════════
   Architectural metaphor: a surveyor's level gauge — the circular
   instrument that shows precise measurement on a graduated ring.

   The existing 40px gold button stays (don't break what works), but
   we upgrade it with:
   • A surrounding 52px ring that shows scroll progress as a gold arc
     (conic-gradient driven by --scroll-progress, set by scroll-details.js)
   • The arrow inside becomes the needle/marker
   • On hover: the whole gauge lifts 2px with gold outer glow

   Works on all devices. Reduced-motion: ring stays but no hover lift.
   ═══════════════════════════════════════════════════════════════════ */


/* Upgrade the button to host the ring visibly — make it slightly
   larger and change its base so the gold ring can wrap around it.
   We KEEP the existing gold fill via !important fallback. */
.back-top {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(180deg,
    var(--gold-light, #dfc08a),
    var(--gold)) !important;
  box-shadow:
    0 4px 14px rgba(201,169,110,0.28),
    0 10px 26px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition:
    opacity 400ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 380ms ease !important;
}

/* Level-indicator RING — sits OUTSIDE the button (via negative inset)
   and displays a gold arc filling based on --scroll-progress */
.back-top-ring {
  position: absolute;
  inset: -6px;                  /* extends ring 6px beyond button edges */
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;                  /* sits behind the button face */
  /* The arc itself — conic gradient from top (270deg start for "12 o'clock")
     The gold region covers (scroll-progress * 360deg) */
  background:
    conic-gradient(
      from -90deg,
      var(--gold) 0deg,
      var(--gold) calc(var(--scroll-progress, 0) * 360deg),
      rgba(255,255,255,0.06) calc(var(--scroll-progress, 0) * 360deg),
      rgba(255,255,255,0.06) 360deg
    );
  /* Cutout the center so only the ring is visible — mask */
  -webkit-mask:
    radial-gradient(circle, transparent 0 59%, #000 60% 100%);
  mask:
    radial-gradient(circle, transparent 0 59%, #000 60% 100%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover — lift whole gauge, ring scales slightly for emphasis */
.back-top:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(201,169,110,0.44),
    0 14px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.back-top:hover .back-top-ring {
  transform: scale(1.03);
}

/* Arrow inside — tiny lift on hover */
.back-top-arrow {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.back-top:hover .back-top-arrow {
  transform: translateY(-2px);
}

/* Reduced motion — kill hover lift, keep ring static */
@media (prefers-reduced-motion: reduce) {
  .back-top,
  .back-top:hover,
  .back-top-ring,
  .back-top-arrow {
    transition: opacity 0.01ms !important;
    transform: none !important;
  }
}

/* RTL — mirror the arrow if it has directional meaning (here it points
   up so no flip needed), just make sure nothing breaks */
[dir="rtl"] .back-top {
  right: auto !important;
  left: 16px !important;
}
@media (max-width: 767px) {
  [dir="rtl"] .back-top {
    left: 14px !important;
    right: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   ROUND 6 — PRINT STYLESHEET
   ═══════════════════════════════════════════════════════════════════
   When the site is printed, it should render as an elegant
   architectural portfolio summary — white background, black text,
   no interactive chrome. Treat the output like a drafting sheet.
   ═══════════════════════════════════════════════════════════════════ */


@media print {
  /* Clean background, dark text */
  html, body {
    background: #fff !important;
    color: #0c0c0c !important;
  }

  /* Hide all non-essential UI chrome */
  nav,
  .mobile-menu,
  .back-top,
  .wa-float,
  .scroll-progress,
  .cursor-halo,
  .cursor-ring,
  .page-loader,
  .lang-modal-overlay,
  .hero-bg,
  .hero-bg-glow,
  .hero-bg-lines,
  .hero-gradient,
  .hero-number,
  .hero-actions,
  .hero-stats,
  .hero-meta,
  .marquee,
  .credentials-strip,
  .portfolio-filter-row,
  .portfolio-cta-bar,
  .testimonials-wall .testimonial-arrow,
  .testimonial-thumbs,
  .google-rating-banner,
  .upload-zone,
  .form-submit,
  .whatsapp-btn,
  .faq-icon,
  iframe {
    display: none !important;
  }

  /* Reset section padding for a dense print */
  section {
    padding: 28px 0 !important;
    page-break-inside: avoid;
  }

  /* Typography — serif for headings, clean sans for body */
  h1, h2, h3, h4, .display {
    color: #0c0c0c !important;
    page-break-after: avoid;
  }
  p, li {
    color: #333 !important;
    orphans: 3;
    widows: 3;
  }
  a {
    color: #6a5324 !important;         /* print-safe gold tone */
    text-decoration: underline;
  }
  /* Print URL next to each link so the reader can find it */
  a[href^="http"]::after,
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  /* Portfolio images render at a sensible print size */
  .portfolio-item img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* Services as a clean list */
  .services-grid,
  .process-grid,
  .portfolio-grid {
    display: block !important;
  }
  .service-card,
  .process-step,
  .portfolio-item {
    page-break-inside: avoid;
    margin-bottom: 16px;
    border: 1px solid #ccc !important;
    background: #fff !important;
    padding: 14px !important;
  }

  /* Testimonials — show ALL reviews in print (override carousel) */
  .testimonial-slide {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-inside: avoid;
    margin-bottom: 16px;
    padding: 12px !important;
    border: 1px solid #ccc !important;
  }
  .testimonial-stage,
  .testimonial-stage::before,
  .testimonial-stage::after,
  .testimonial-stage-marks,
  .testimonial-stage-marks-bottom {
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  /* Page footer — show contact info at bottom on every printed page */
  footer {
    background: transparent !important;
    color: #333 !important;
    border-top: 1px solid #999 !important;
  }
  .footer-grid { display: block !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   ROUND 7 — ACCESSIBILITY SKIP LINK
   ═══════════════════════════════════════════════════════════════════
   Required for WCAG AA compliance. First focusable element on the
   page — allows keyboard/screen-reader users to bypass the nav and
   jump directly to the main content.

   Hidden off-screen by default, appears as a gold pill when
   keyboard-focused (pressing Tab on page load).
   ═══════════════════════════════════════════════════════════════════ */

.skip-to-main {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10000;                  /* above EVERYTHING */
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--gold-light, #dfc08a), var(--gold));
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  box-shadow:
    0 6px 20px rgba(201,169,110,0.4),
    0 0 0 2px rgba(0,0,0,0.2);
  transform: translateY(-120%);    /* off-screen until focused */
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skip-to-main:focus {
  transform: translateY(0);
  outline: none;
}

[dir="rtl"] .skip-to-main {
  left: auto;
  right: 16px;
}
