/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-spring);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Hero stagger ---------- */
.hero-stagger {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.hero-stagger .eyebrow,
.hero-stagger h1,
.hero-stagger .hero-sub,
.hero-stagger .hero-cta,
.hero-stagger .hero-meta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.75s var(--ease-spring);
}
.hero-stagger.is-in .eyebrow  { opacity: 1; transform: none; transition-delay: 0.05s; }
.hero-stagger.is-in h1        { opacity: 1; transform: none; transition-delay: 0.18s; }
.hero-stagger.is-in .hero-sub { opacity: 1; transform: none; transition-delay: 0.32s; }
.hero-stagger.is-in .hero-cta { opacity: 1; transform: none; transition-delay: 0.46s; }
.hero-stagger.is-in .hero-meta{ opacity: 1; transform: none; transition-delay: 0.60s; }

/* ---------- Section em underline ---------- */
.display em {
  position: relative;
  display: inline;
}
.display em::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold-2);
  transition: width 0.7s var(--ease-out);
  border-radius: 2px;
}
.is-in .display em::after,
.s-head .display em::after { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card { position: relative; top: 0; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 150px; }
  .g-1,.g-2,.g-3,.g-4,.g-5,.g-6,.g-7,.g-8,.g-9,.g-10 { grid-column: span 6; grid-row: span 1; }
  .g-1, .g-5, .g-8 { grid-column: span 12; grid-row: span 2; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta, .nav-login { display: none; }
  .nav-burger { display: flex !important; }
  .svc-grid, .foot-grid, .process-track { grid-template-columns: 1fr; }

  .hero { height: auto; min-height: 100svh; padding-bottom: 0; }
  .hero-grid {
    padding: clamp(5rem, 10vh, 6rem) 1.25rem clamp(3rem, 6vh, 4rem);
    min-height: 100svh;
  }
  .hero-left h1 { font-size: clamp(2rem, 8.5vw, 3.2rem); }
  .hero-sub { font-size: 0.88rem; max-width: 100%; }
  .hero-cta { gap: 0.6rem; }
  .btn { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-top: 1.4rem; }
  .hero-meta .m-num { font-size: 1.55rem; }
  .scroll-cue { bottom: 2rem; }
  .marquee-item { font-size: 1.25rem; }
  section.section { padding: 4.5rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; }

  .review-card { width: 280px; }
}

/* ============================================================
   HERO VIDEO
   ============================================================ */
.hero > video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  pointer-events: none;
}
.hero > video.is-ready { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10,15,22,0.84) 0%,
    rgba(10,15,22,0.52) 45%,
    rgba(10,15,22,0.22) 100%
  );
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  pointer-events: none;
}
.hero.video-ready::after { opacity: 1; }

.hero.no-video > video,
.hero.no-video .hero-vc { display: none !important; }

/* Video controls */
.hero-vc {
  position: absolute;
  bottom: 4.75rem;
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  pointer-events: auto;
}
.hvc-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(13,17,23,0.55);
    -webkit-  border: 1px solid rgba(220,216,210,0.14);
  color: var(--ice);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, transform 0.2s var(--ease-out), opacity 0.3s;
  opacity: 0;
}
.hvc-btn.is-visible { opacity: 1; }
.hvc-btn:hover {
  background: rgba(148,50,38,0.2);
  border-color: rgba(148,50,38,0.4);
  transform: scale(1.08);
}
.hvc-btn:active { transform: scale(0.96); }
.hvc-btn svg { width: 14px; height: 14px; display: block; }

@media (max-width: 768px) {
  .hero > video { display: block !important; object-position: center center; }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(10,15,22,0.86) 0%,
      rgba(10,15,22,0.44) 60%,
      rgba(10,15,22,0.72) 100%
    );
    opacity: 1;
  }
  .hero-left { max-width: 100%; }
}
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-vc { display: none !important; }
  .hero::after { opacity: 1; }
}

/* ---------- WhatsApp ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 8%; left: 2.25rem; right: auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  z-index: 50;
  transition: transform 0.3s var(--ease-out), box-shadow 0.25s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(37,211,102,0.48);
}
.whatsapp-btn svg { width: 27px; height: 27px; }
.whatsapp-tooltip {
  position: absolute;
  left: 110%; top: 50%;
  transform: translateY(-50%);
  background: var(--navy-0);
  color: var(--ice);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }
@media (max-width: 720px) {
  .whatsapp-btn { bottom: 5%; left: 1.25rem; right: auto; }
  .whatsapp-tooltip { display: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------- Mobile burger ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: rgba(25,32,48,0.7);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nav-burger:hover { background: rgba(148,50,38,0.15); border-color: rgba(148,50,38,0.3); }
.nav-burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ice);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s, width 0.2s;
  transform-origin: center;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile nav overlay ---------- */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(6,10,18,0.7);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--navy-1);
  border-left: 1px solid var(--line-2);
  z-index: 80;
  flex-direction: column;
  padding: 1.5rem 1.75rem 2rem;
  transform: translateX(110%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav-drawer.is-open { transform: translateX(0); }

.mobile-nav-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-3);
  border: 1px solid var(--line-2);
  color: var(--ice);
  font-size: 1.35rem;
  display: grid; place-items: center;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.mobile-nav-close:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mobile-nav-links li { border-bottom: 1px solid var(--line); }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--ice);
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}
.mobile-nav-links a:hover { color: var(--gold-2); padding-left: 0.5rem; }

.mobile-nav-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  align-self: flex-start;
}
.mobile-nav-lang button { padding: 0.45rem 0.75rem; color: var(--steel-2); }
.mobile-nav-lang button.is-active { background: var(--ice); color: var(--navy-1); }

@media (max-width: 720px) {
  .mobile-nav-overlay { display: flex; }
  .mobile-nav-drawer  { display: flex; }
}

/* ---------- Active nav state ---------- */
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { opacity: 1; }

/* ---------- Back-to-top ---------- */
.back-top {
  position: fixed;
  bottom: 6rem; right: 2.25rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 50;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.back-top:hover { background: var(--gold-2); transform: translateY(-2px) scale(1.05); }
.back-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-top svg { width: 20px; height: 20px; stroke-width: 2.5; }

/* ---------- Focus-visible ---------- */
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Anchors with fixed header offset ---------- */
:target { scroll-margin-top: 90px; }

/* ---------- Promo popup ---------- */
.promo-overlay {
  position: fixed; inset: 0;
  z-index: 900;
  display: none;
  place-items: center;
  padding: 1rem;
}
.promo-overlay.is-open {
  display: grid;
  background: rgba(6,10,18,0.6);
    -webkit-  animation: promo-bg-in 0.35s var(--ease-out) forwards;
}
@keyframes promo-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.promo-card {
  background: var(--navy-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 2.5rem 2.75rem 2rem;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.promo-overlay.is-open .promo-card {
  animation: promo-card-in 0.4s var(--ease-out) forwards;
}
@keyframes promo-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.promo-close {
  position: absolute; top: 1rem; right: 1.1rem;
  background: none; border: none;
  color: var(--steel); font-size: 1.1rem;
  cursor: pointer; padding: 0.3rem 0.5rem;
  line-height: 1; border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.promo-close:hover { color: var(--ice); background: var(--navy-3); }
.promo-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}
.promo-heading {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 400; line-height: 1.2;
  color: var(--ice); margin-bottom: 1rem;
}
.promo-heading em { color: var(--gold-2); font-style: italic; }
.promo-body {
  font-size: 0.93rem; color: var(--steel-2);
  line-height: 1.7; margin-bottom: 1.75rem;
}
.promo-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.85rem 1.5rem;
  background: var(--gold); color: #fff;
  font-family: var(--f-body); font-weight: 600; font-size: 0.92rem;
  border: none; border-radius: 7px; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.promo-cta:hover { background: var(--gold-2); transform: translateY(-1px); }
.promo-note {
  margin-top: 0.75rem;
  font-size: 0.74rem; color: var(--steel);
  text-align: center; letter-spacing: 0.02em;
}
#services, #promise, #process, #projects, #reviews, #contact { scroll-margin-top: 90px; }

/* ---------- Select arrow ---------- */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788090' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* ---------- Cookie bar ---------- */
.compliance-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1001;
  background: var(--navy-0);
  border-top: 1px solid var(--line-2);
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 60;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out);
}
.compliance-bar.is-hidden { transform: translateY(110%); }
.compliance-bar p {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--steel-2);
  flex: 1;
  min-width: 200px;
}
.compliance-bar button {
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s;
}
.compliance-bar button:hover { background: var(--gold-2); }

/* ---------- Mobile calendar / slots adjustments ---------- */
@media (max-width: 480px) {
  .calendar { padding: 0.9rem; }
  .cal-cell { min-height: 40px; font-size: 0.82rem; }
  .slots { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .slot { min-height: 44px; font-size: 0.7rem; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Text selection ---------- */
::selection {
  background: rgba(148,50,38,0.28);
  color: var(--ice);
}

