/* ============================================================
   LANDING PAGE DESIGN SYSTEM
   Ported from Claude Design handoff bundle
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --color-orange:        #FF5520;
  --color-text-dark:     #1C1917;
  --color-dark-gray:     #403D39;
  --color-muted:         #57534E;
  --color-gray-text:     #6B7280;
  --color-success:       #10B981;
  --color-warning:       #F59E0B;
  --color-error:         #EF4444;
  --font-display:        var(--font-barlow), 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:           var(--font-inter), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sa-top:              env(safe-area-inset-top, 0px);
  --sa-bottom:           env(safe-area-inset-bottom, 0px);
  /* Margem lateral e ritmo vertical de todo o site: um só sítio para os mudar. */
  --gut:                 24px;
  --edge:                max(var(--gut), calc((100vw - 1440px) / 2 + var(--gut)));
  --sec:                 clamp(80px, 10vw, 152px);
  --head-gap:            clamp(36px, 4.4vw, 64px);
}
@media (min-width: 768px) { :root { --gut: 48px; } }
@media (min-width: 1200px) { :root { --gut: 64px; } }
@media (max-width: 480px) { :root { --gut: 20px; } }

/* ============================================================
   BASE OVERRIDES FOR LANDING PAGE
   ============================================================ */
.landing-page a { text-decoration: none; }
.landing-page button { cursor: pointer; }
.landing-page ::selection { background: var(--color-orange); color: #fff; }
.landing-page input,
.landing-page textarea,
.landing-page select { font-size: max(16px, 1em); }
:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 3px; border-radius: 6px; }
:is(.hero-section, .final-cta, .mk-hero, .obras-hero, .pj-end, .mk-stack-card:nth-child(3n + 2)) :focus-visible { outline-color: var(--color-text-dark); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.display-italic { font-style: italic; font-weight: 700; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow-on-dark { color: rgba(255,255,255,0.55); }
.eyebrow-accent { color: var(--color-orange); }
.body-lead { font-size: 18px; line-height: 1.55; font-weight: 400; color: var(--color-dark-gray); }
@media (min-width: 768px) { .body-lead { font-size: 20px; } }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-up { opacity: 0; transform: translateY(80px); transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-up.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-72px); transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(72px); transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale.in { opacity: 1; transform: none; }

/* Stagger children */
.stagger > * { transition-delay: 0ms; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* Text mask reveal */
.mask-line { display: block; overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; padding-left: 0.08em; margin-left: -0.08em; }
.mask-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.in .mask-line > span, .mask-line.in > span { transform: translateY(0); }
.mask-line-d1 > span { transition-delay: 80ms; }
.mask-line-d2 > span { transition-delay: 180ms; }
.mask-line-d3 > span { transition-delay: 280ms; }
/* Com "reduzir movimento" o motion não anima: o texto tem de estar visível desde o início. */
@media (prefers-reduced-motion: reduce) {
  .mask-line > span { transform: none !important; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  flex: 0 0 auto;
  animation: marquee-scroll 40s linear infinite;
  gap: 64px;
  padding-right: 64px;
  white-space: nowrap;
}
.marquee-fast .marquee-track { animation-duration: 28s; }
.marquee-slow .marquee-track { animation-duration: 70s; }
.marquee-reverse .marquee-track { animation-direction: reverse; }

/* ============================================================
   BUTTON BASE (landing page specific)
   ============================================================ */
.btn-land {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}
.btn-land:hover { transform: translateY(-2px); }
.btn-land-primary { background: var(--color-orange); color: #fff; }
.btn-land-primary:hover { background: #ff6a3d; box-shadow: 0 12px 30px -10px rgba(255,85,32,0.55); }
.btn-land-ghost { background: transparent; color: var(--color-text-dark); border: 1px solid var(--color-text-dark); }
.btn-land-ghost:hover { background: var(--color-text-dark); color: #fff; }
.btn-land-dark { background: var(--color-text-dark); color: #fff; }
.btn-land-dark:hover { background: #000; box-shadow: 0 14px 30px -12px rgba(28,25,23,0.6); }
.btn-land-onDark { background: #fff; color: var(--color-text-dark); }
.btn-land-onDark:hover { background: var(--color-orange); color: #fff; }
.btn-land-onDarkGhost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-land-onDarkGhost:hover { background: #fff; color: var(--color-text-dark); }
.btn-land-lg { padding: 18px 28px; font-size: 16px; }
.btn-land-sm { padding: 10px 16px; font-size: 13px; }
.btn-land:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Waitlist CTA (nav — matches doors-website .btn.btn-primary hover) */
.btn-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  background: var(--color-orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn-waitlist:hover { transform: translateY(-2px); background: #ff6a3d; box-shadow: 0 12px 30px -10px rgba(255,85,32,0.55); }
.btn-waitlist:active { transform: scale(0.98); }
.btn-waitlist-sm { padding: 10px 18px; font-size: 13px; }
.btn-waitlist-lg { padding: 18px 28px; font-size: 16px; }

/* SwipeLetters button */
.swipe-btn { position: relative; overflow: hidden; }
.swipe-btn-top { display: flex; white-space: nowrap; }
.swipe-btn-bot { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; white-space: nowrap; }
.swipe-btn-bot > span { transform: translateY(110%); }

/* Glow Card — spotlight effect on mouse move */
.glow-card { position: relative; }
.glow-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: var(--go, 0); background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), var(--glow-color, rgba(255,85,32,0.13)), transparent 70%); transition: opacity 0.4s ease; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--color-orange);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.bg-warm   { background: #FAF9F7; }
.bg-cream  { background: #F7F5F2; }
.bg-ldark  { background: #1C1917; color: #fff; }
.bg-ldarker { background: #100E0D; color: #fff; }

/* ============================================================
   PILL BADGE
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,85,32,0.1);
  color: var(--color-orange);
  border: 1px solid rgba(255,85,32,0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pill-onDark { background: rgba(255,85,32,0.16); border-color: rgba(255,85,32,0.4); }
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 0 rgba(255,85,32,0.6);
  animation: l-pulse 2.2s ease-in-out infinite;
}
@keyframes l-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,85,32,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(255,85,32,0); }
}

/* ============================================================
   NAV
   ============================================================ */
.l-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: calc(16px + var(--sa-top)) 0 16px;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
}
.l-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: calc(10px + var(--sa-top)) 0 10px;
}
.l-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.l-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.l-nav-logo-text { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.05em; color: var(--color-text-dark); }
.l-nav-links { display: none; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.l-nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.l-nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.l-nav-link:hover { color: var(--color-orange); }
.l-nav-link:hover::after { transform: scaleX(1); }
.l-nav-cta { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .l-nav-links { display: flex; } }

/* Nav dropdown (Legal) */
.l-nav-dropdown { position: relative; }
.l-nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit;
}
.l-nav-dropdown-trigger::after { display: none; }
.l-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,0.22);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.l-nav-dropdown-panel.open { opacity: 1; visibility: visible; transform: none; }
.l-nav-dropdown-link {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.l-nav-dropdown-link:hover { background: rgba(0,0,0,0.04); color: var(--color-orange); }
.l-nav-dropdown-all {
  margin-top: 4px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  color: var(--color-orange);
}

/* Mobile drawer — grupo Legal */
.l-mobile-drawer-group { margin-top: 12px; padding-top: 8px; }
.l-mobile-drawer-group-title {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-orange);
  margin: 8px 0;
}
.l-mobile-drawer-sublink {
  display: block;
  font-size: 17px; font-weight: 600;
  color: var(--color-text-dark);
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
}

/* Nav CTA — long label default, short on narrow phones */
.l-nav-cta-short { display: none; }

/* Mobile burger */
.l-nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: transparent; border: 0; cursor: pointer; }
.l-nav-burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.l-nav-burger span::before, .l-nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.l-nav-burger span::before { top: -6px; }
.l-nav-burger span::after { top: 6px; }
@media (min-width: 900px) { .l-nav-burger { display: none; } }

/* Mobile drawer */
.l-mobile-drawer {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 80;
  padding: calc(28px + var(--sa-top)) 24px calc(28px + var(--sa-bottom));
  overflow-y: auto;
  transform: translateY(-100%);
  /* Fechada sai também do Tab, só depois de a animação de fecho acabar. */
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
  display: flex; flex-direction: column;
}
.l-mobile-drawer.open {
  transform: none;
  visibility: visible;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.l-mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.l-mobile-drawer-links { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.l-mobile-drawer-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  display: block;
}
.l-mobile-drawer-foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 480px) {
  .l-nav-inner { gap: 16px; }
  .l-mobile-drawer-link { font-size: 36px; }
}
/* Nav: Entrar + Criar conta, sempre visíveis (também no telemóvel, ao lado do burger) */
.l-nav-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 14px; font-weight: 600; color: var(--color-text-dark);
  border-radius: 999px; transition: color 0.2s ease, background 0.2s ease;
}
.l-nav-login:hover { color: var(--color-orange); }
.l-nav-btn { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.l-drawer-btn { width: 100%; justify-content: center; }
.l-drawer-pro {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--color-dark-gray);
  text-decoration: underline !important; text-underline-offset: 4px; text-decoration-color: rgba(28,25,23,0.25);
}
@media (max-width: 480px) {
  .l-nav-cta { gap: 2px; }
  .l-nav-login { padding: 0 10px; font-size: 13.5px; }
  .l-nav-btn { padding: 0 14px; font-size: 13.5px; }
  .l-nav-logo-text { font-size: 18px; }
}
@media (max-width: 360px) {
  .l-nav-logo-text { display: none; }
}

/* Selo oficial da App Store (nunca redesenhado) */
.app-store-badge { display: inline-flex; border-radius: 10px; transition: transform 0.2s ease, opacity 0.2s ease; }
.app-store-badge:hover { transform: translateY(-2px); }
.app-store-badge img { display: block; height: auto; }

.hero-title-accent { color: var(--color-orange); font-style: italic; font-weight: 800; }
.hero-title-accent .mask-line { padding-bottom: 0.12em; margin-bottom: -0.08em; }
/* Obras reais */
.rp-section { padding: clamp(88px, 11vw, 150px) 0; }
.rp-head { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 960px) { .rp-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
.rp-title { font-size: clamp(40px, 5.6vw, 84px); color: var(--color-text-dark); }
.rp-lead { max-width: 30em; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
@media (min-width: 960px) { .rp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
.rp-card { display: flex; flex-direction: column; gap: 6px; color: var(--color-text-dark); }
.rp-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: #EDE7E1; margin-bottom: 10px; }
.rp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.rp-card:hover .rp-card-media img { transform: scale(1.04); }
.rp-card-style {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: var(--color-text-dark); font-size: 12px; font-weight: 600;
}
.rp-card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -0.01em; line-height: 1.15; }
.rp-card:hover .rp-card-title { color: var(--color-orange); }
.rp-card-meta { font-size: 13.5px; color: var(--color-muted); }
.rp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
@media (max-width: 640px) {
  .rp-card-media { border-radius: 14px; }
  .rp-ctas { flex-direction: column; }
  .rp-ctas .btn-land { justify-content: center; }
}

/* /obras (página pública de obras reais) */
.obras-page { background: #FAF9F7; font-family: var(--font-body); }
.obras-page a { text-decoration: none; }
.obras-hero { padding: calc(128px + var(--sa-top)) 0 var(--head-gap); background: var(--color-orange); }
.obras-title { font-size: clamp(52px, 8.6vw, 140px); color: var(--color-text-dark); margin-bottom: 24px; text-wrap: balance; }
.obras-title .hero-title-accent { color: #fff; font-weight: 800; }
.obras-lead { max-width: 36em; color: var(--color-text-dark); font-weight: 500; }
.obras-grid .rp-card-wrap:nth-child(7n + 1) { grid-column: span 2; }
.obras-grid .rp-card-wrap:nth-child(7n + 1) .rp-card-media { aspect-ratio: 8 / 5; }
/* A 3 colunas o destaque vem de 8 em 8: 2 + 3 + 3 fecham sempre a linha. */
@media (min-width: 960px) {
  .obras-grid .rp-card-wrap:nth-child(7n + 1) { grid-column: auto; }
  .obras-grid .rp-card-wrap:nth-child(7n + 1) .rp-card-media { aspect-ratio: 4 / 5; }
  .obras-grid .rp-card-wrap:nth-child(8n + 1) { grid-column: span 2; }
  .obras-grid .rp-card-wrap:nth-child(8n + 1) .rp-card-media { aspect-ratio: 8 / 5; }
}
.obras-filters { position: sticky; z-index: 5; top: calc(61px + var(--sa-top)); display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; margin-bottom: 24px; background: #FAF9F7; scrollbar-width: none; }
.obras-filters::-webkit-scrollbar { display: none; }
.obras-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(28,25,23,0.16); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--color-dark-gray);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.obras-chip:hover { border-color: var(--color-text-dark); color: var(--color-text-dark); }
.obras-chip.on { background: var(--color-text-dark); border-color: var(--color-text-dark); color: #fff; }
.obras-list { padding: 0 0 var(--sec); }
.obras-empty { font-size: 16px; color: var(--color-muted); padding: 48px 0; }
.obras-cta { background: #1C1917; color: #fff; padding-block: var(--sec); }
.obras-cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.obras-cta-title { font-size: clamp(38px, 5.5vw, 80px); color: #fff; }
.obras-cta-lead { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.72); max-width: 32em; }
.obras-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
@media (max-width: 640px) {
  .obras-hero { padding-top: calc(104px + var(--sa-top)); }
  .obras-cta-btns { flex-direction: column; width: 100%; }
  .obras-cta-btns .btn-land { justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.l-footer { background: #FAF9F7; padding-top: 80px; padding-bottom: 24px; overflow: hidden; }
.l-footer-top { display: grid; grid-template-columns: 1.2fr 2.8fr; gap: 64px; margin-bottom: 64px; }
.l-footer-tagline { font-size: 15px; color: var(--color-muted); line-height: 1.5; max-width: 240px; }
.l-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.l-footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-orange); margin-bottom: 16px; }
.l-footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.l-footer-col a { font-size: 14px; color: var(--color-dark-gray); transition: color 0.2s ease; text-decoration: none; }
.l-footer-col a:hover { color: var(--color-orange); }
.l-footer-link-button { font: inherit; font-size: 14px; color: var(--color-dark-gray); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color 0.2s ease; }
.l-footer-link-button:hover { color: var(--color-orange); }
.l-footer-link-button:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; border-radius: 4px; }
.l-footer-wordmark { font-family: var(--font-display); font-weight: 900; font-size: clamp(120px, 22vw, 360px); line-height: 0.85; letter-spacing: -0.05em; color: var(--color-text-dark); text-align: center; margin-bottom: 24px; }
.l-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 13px; color: var(--color-muted); flex-wrap: wrap; gap: 12px; }
@media (max-width: 1000px) {
  .l-footer-top { grid-template-columns: 1fr; }
  .l-footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) { .l-footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }

@media (max-width: 640px) {
  .l-footer { padding-top: 56px; padding-bottom: calc(24px + var(--sa-bottom)); }
  .l-footer-wordmark { padding-inline: 0; }
}
@media (max-width: 480px) {
  .l-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   INDEX NUM
   ============================================================ */
.index-num { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; color: var(--color-orange); }

/* ============================================================
   PÁGINAS DE MARKETING: serviços, zonas, blog, sobre, legal.
   Alinhadas à margem da barra, com o mesmo ritmo da homepage.
   ============================================================ */
.mk-hero { background: var(--color-orange); color: var(--color-text-dark); padding: calc(128px + var(--sa-top)) 0 clamp(48px, 6vw, 88px); }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.mk-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 6vw, 96px); line-height: 0.96; letter-spacing: -0.03em; text-wrap: balance; }
.mk-hero-answer { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; font-weight: 500; padding-bottom: 0.3em; }
@media (max-width: 900px) { .mk-hero-grid { grid-template-columns: 1fr; } .mk-hero { padding-top: calc(104px + var(--sa-top)); } }

.mk-section.mk-section { max-width: 1440px; margin-inline: auto; padding: clamp(56px, 7vw, 104px) var(--gut) 0; }
main > .mk-section:last-child { padding-bottom: var(--sec); }
.mk-section.mk-flush { padding-top: 0; padding-bottom: 0; }
.mk-section :is(h2):not(a h2) { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.025em; }
.mk-section h2.uppercase { text-transform: none; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.02em; color: var(--color-text-dark); }
.mk-section a h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; letter-spacing: -0.02em; }
.mk-section a.rounded-2xl, .mk-section a.rounded-xl { transition: border-color 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.mk-section a.rounded-2xl:hover, .mk-section a.rounded-xl:hover { transform: translateY(-3px); }

/* Sobem ao entrar no ecrã, sem JS. Browsers sem esta função mostram tudo parado. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes mk-rise { from { opacity: 0; transform: translateY(36px); } }
    .mk-section > *, .mk-rise { animation: mk-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 26%; }
  }
}

/* Passos em coluna, alinhados pelo topo */
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px clamp(24px, 3vw, 48px); }
.mk-step { padding-top: 18px; border-top: 3px solid var(--color-text-dark); }
.mk-step-n { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -0.04em; color: var(--color-orange); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.mk-step h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--color-text-dark); text-wrap: balance; }
.mk-step p { font-size: 16px; line-height: 1.55; color: var(--color-dark-gray); }

/* Momento fixo: cada passo tapa o anterior ao subir. */
.mk-stack { list-style: none; margin: 0; padding: 0; }
.mk-stack-card { position: sticky; top: calc(84px + var(--sa-top) + var(--i) * 14px); min-height: min(62vh, 520px); margin-bottom: 20px; padding: clamp(28px, 4vw, 64px); border-radius: 20px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 48px); align-items: start; background: var(--color-text-dark); color: #fff; }
.mk-stack-card:nth-child(3n + 2) { background: var(--color-orange); color: var(--color-text-dark); }
.mk-stack-card:nth-child(3n) { background: #fff; color: var(--color-text-dark); box-shadow: inset 0 0 0 1px rgba(28,25,23,0.12); }
.mk-stack-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 11vw, 176px); line-height: 0.8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.mk-stack-card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.8vw, 76px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 18px; text-wrap: balance; }
.mk-stack-card p { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; max-width: 36em; }
@media (max-width: 640px) { .mk-stack-card { grid-template-columns: 1fr; min-height: 0; } .mk-stack-n { font-size: 64px; } }

/* Sinais de confiança e vantagens, sem cartões */
.mk-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px clamp(24px, 3vw, 48px); }
.mk-rows > div { padding-top: 16px; border-top: 1px solid rgba(28,25,23,0.2); }
.mk-rows h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 8px; color: var(--color-text-dark); }
.mk-rows p { font-size: 16px; line-height: 1.55; color: var(--color-dark-gray); }

/* Lista grande de serviços */
.mk-links { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(28,25,23,0.16); }
.mk-link { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 16px clamp(24px, 4vw, 64px); align-items: start; padding-block: clamp(20px, 2.6vw, 36px); border-top: 1px solid rgba(28,25,23,0.16); color: var(--color-text-dark); text-decoration: none; }
.mk-section .mk-link h2 { font-size: clamp(30px, 3.8vw, 60px); line-height: 1.02; letter-spacing: -0.025em; transition: color 0.2s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.mk-link:hover h2 { color: var(--color-orange); transform: translateX(10px); }
.mk-link p { font-size: 16px; line-height: 1.55; color: var(--color-dark-gray); padding-top: 0.4em; }
.mk-link svg { color: var(--color-orange); margin-top: 0.4em; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.mk-link:hover svg { transform: translate(4px, -4px); }
@media (max-width: 760px) { .mk-link { grid-template-columns: 1fr auto; } .mk-link p { grid-column: 1 / -1; grid-row: 2; padding-top: 0; } }

/* FAQ das páginas */
.mk-faq h2 { margin-bottom: var(--head-gap); }
.mk-faq details { border-top: 1px solid rgba(28,25,23,0.16); }
.mk-faq details:last-child { border-bottom: 1px solid rgba(28,25,23,0.16); }
.mk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; cursor: pointer; list-style: none; color: var(--color-text-dark); }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -0.01em; transition: color 0.2s ease; }
.mk-faq summary:hover h3 { color: var(--color-orange); }
.mk-faq summary svg { flex: none; color: var(--color-orange); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.mk-faq details[open] summary svg { transform: rotate(45deg); }
.mk-faq details p { padding-bottom: 24px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--color-dark-gray); }

/* Bloco final das páginas */
.mk-cta { border-radius: 24px; background: var(--color-text-dark); color: #fff; padding: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.mk-section .mk-cta h2 { font-size: clamp(36px, 5vw, 80px); line-height: 0.98; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.mk-cta p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: rgba(255,255,255,0.78); margin-bottom: 24px; }
.mk-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mk-cta small { display: block; font-size: 14.5px; color: rgba(255,255,255,0.78); line-height: 1.6; }
.mk-cta small a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .mk-cta { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mk-cta-btns { flex-direction: column; } .mk-cta-btns .btn-land { justify-content: center; } }

/* ============================================================
   PÁGINA DE UM PROJETO (/project/[id])
   ============================================================ */
.pj { background: #FAF9F7; color: var(--color-text-dark); font-family: var(--font-body); }
.pj-bar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(18px + var(--sa-top)) var(--edge) 0; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.pj-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.05em; color: inherit; text-decoration: none; }
.pj-logo img { filter: brightness(0) invert(1); }
.pj-enter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(16,14,13,0.5); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background 0.2s ease; }
.pj-enter:hover { background: rgba(16,14,13,0.8); }

.pj-cover { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--color-text-dark); color: #fff; perspective: 1800px; }
.pj-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(16,14,13,0.82) 0%, rgba(16,14,13,0.28) 42%, transparent 66%), linear-gradient(to bottom, rgba(16,14,13,0.45), transparent 18%); }
.pj-leaf { position: absolute; z-index: 3; inset: 0; background: var(--color-orange); transform-origin: left center; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pj-door { 0%, 12% { transform: rotateY(0deg); visibility: visible; } 99% { transform: rotateY(-86deg); visibility: visible; } 100% { transform: rotateY(-86deg); visibility: hidden; } }
  @keyframes pj-in { from { opacity: 0; transform: translateY(28px); } }
  .pj-leaf { animation: pj-door 1.3s cubic-bezier(0.65, 0, 0.2, 1) both; }
  .pj-cover-copy { animation: pj-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }
  @supports (animation-timeline: scroll()) {
    @keyframes pj-drift { to { transform: translateY(14%) scale(1.06); } }
    .pj-cover-img { animation: pj-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
.pj-cover-copy { position: absolute; z-index: 2; left: var(--edge); right: var(--edge); bottom: clamp(28px, 6vh, 64px); }
.pj-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 8vw, 132px); line-height: 0.94; letter-spacing: -0.035em; max-width: 14em; text-wrap: balance; }
.pj-by { margin-top: 16px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; }
.pj-cover-plain { height: auto; min-height: 0; background: var(--color-orange); color: var(--color-text-dark); padding-top: calc(120px + var(--sa-top)); }
.pj-cover-plain::after { display: none; }
.pj-cover-plain .pj-cover-copy { position: static; padding: 0 var(--edge) var(--head-gap); }

.pj-wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.pj-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: var(--sec) var(--head-gap); }
.pj-desc { font-size: clamp(20px, 2vw, 30px); line-height: 1.32; font-weight: 500; white-space: pre-line; letter-spacing: -0.01em; }
.pj-facts { margin: 0; display: grid; gap: 0; }
.pj-facts > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(28,25,23,0.16); font-size: 16px; }
.pj-facts > div:last-child { border-bottom: 1px solid rgba(28,25,23,0.16); }
.pj-facts dt { color: var(--color-muted); }
.pj-facts dd { margin: 0; font-weight: 600; text-align: right; }

.pj-compare { padding-bottom: var(--head-gap); }
.pj-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.2vw, 68px); line-height: 1; letter-spacing: -0.03em; margin-bottom: clamp(20px, 2.6vw, 36px); }
.pj-compare-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; }
@media (max-width: 640px) { .pj-compare-frame { aspect-ratio: 4 / 5; } }

.pj-gallery { padding-bottom: var(--sec); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.pj-shot { position: relative; display: block; padding: 0; border: 0; background: #EDE7E1; border-radius: 14px; overflow: hidden; cursor: zoom-in; grid-column: span 6; aspect-ratio: 4 / 3; }
.pj-shot:nth-child(5n + 1) { grid-column: span 12; aspect-ratio: 21 / 10; }
.pj-shot:nth-child(5n + 2) { grid-column: span 7; }
.pj-shot:nth-child(5n + 3) { grid-column: span 5; aspect-ratio: auto; }
/* A última nunca fica sozinha ao lado de um vazio. */
.pj-shot:nth-child(5n + 2):last-child, .pj-shot:nth-child(5n + 4):last-child { grid-column: 1 / -1; aspect-ratio: 21 / 10; }
.pj-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.pj-shot:hover img { transform: scale(1.03); }
.pj-shot-tag { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(16,14,13,0.78); color: #fff; font-size: 13px; font-weight: 600; }
.pj-group-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: clamp(14px, 1.8vw, 24px); }
.pj-group-title span { font-family: var(--font-sans, inherit); font-weight: 500; font-size: 0.5em; letter-spacing: 0; color: rgba(16,14,13,0.6); font-variant-numeric: tabular-nums; vertical-align: middle; }
@media (max-width: 760px) {
  .pj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-shot, .pj-shot:nth-child(5n + 2), .pj-shot:nth-child(5n + 3) { grid-column: span 1; aspect-ratio: 1; }
  .pj-shot:nth-child(5n + 1) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .pj-shot:nth-child(5n + 2):last-child, .pj-shot:nth-child(5n + 4):last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .pj-about { grid-template-columns: 1fr; }
}

.pj-end { background: var(--color-orange); padding-block: var(--sec); }
.pj-end-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.pj-end-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7.6vw, 124px); line-height: 0.92; letter-spacing: -0.035em; text-wrap: balance; }
.pj-end p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; font-weight: 500; margin-bottom: 24px; }
.pj-end-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.pj-end small { font-size: 15px; font-weight: 500; }
.pj-end small a { font-weight: 700; color: var(--color-text-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pj-end-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pj-end-btns { flex-direction: column; align-items: stretch; } .pj-end-btns .btn-land { justify-content: center; } }

/* Barra legal do rodapé: uma linha no desktop, duas em ecrãs pequenos */
.l-footer-legal > span { white-space: nowrap; }
@media (max-width: 480px) {
  .l-footer-legal > span { display: block; }
  .l-footer-legal > .l-footer-legal-sep { display: none; }
}

