/* ============================================================
   SOLVE & PROMOTE — Portfolio · Light Theme
   ============================================================ */

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

:root {
  --bg:           #FFFBFC;
  --surface:      #FFF4F8;
  --surface-2:    #F8F0FF;
  --border:       #F2D6E8;
  --border-hover: #E8B8D4;
  --text:         #18061A;
  --text-muted:   #6A2860;
  --text-dim:     #A875A0;
  --accent:       #FF5500;
  --gradient:     linear-gradient(135deg, #FF5500 0%, #FF2878 50%, #8B2FE0 100%);

  /* MacBook aluminium (stays dark — looks great on light bg) */
  --mb-outer:     #2c2c2e;
  --mb-inner:     #1c1c1e;
  --mb-screen:    #080808;
  --mb-safari:    #252527;

  --radius-card:  16px;
  --shadow-card:  0 1px 4px rgba(139,47,224,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-hover: 0 12px 48px rgba(139,47,224,0.18), 0 8px 20px rgba(0,0,0,0.08);
  --font:         'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* must be on html AND body — body-only breaks position:fixed on iOS Safari */
}

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


/* ──────────────────────────────────────────
   HEADER
   ────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,251,252,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateZ(0); /* iOS: prevents fixed header flicker during scroll */
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
}
.logo-img--footer {
  height: 130px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
.btn-contact {
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(255,40,120,.35);
}
.btn-contact:hover { opacity: .88; transform: translateY(-1px); }

/* ──────────────────────────────────────────
   TOUCH / TAP OPTIMIZATIONS
   Applies globally to all interactive elements.
   ────────────────────────────────────────── */
.card,
.btn-contact,
.btn-cta,
.lang-btn,
.category-pill,
.modal-btn,
.modal-close {
  touch-action: manipulation;       /* remove 300ms tap delay on iOS/Android */
  -webkit-tap-highlight-color: transparent; /* remove grey flash on tap */
}
.card {
  user-select: none;
  -webkit-user-select: none;        /* prevent text selection on swipe/tap */
}

/* ──────────────────────────────────────────
   HERO
   ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 40px 80px;
  position: relative;
  background: var(--surface);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(124,58,237,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(236,72,153,.04) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 0 0 1px rgba(124,58,237,.3);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 22px;
}
.hero-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 48px;
  font-weight: 400;
}
.hero-stats {
  display: flex; align-items: center;
  justify-content: center; gap: 48px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-number {
  font-size: 34px; font-weight: 800;
  color: var(--text); letter-spacing: -1.5px; line-height: 1;
}
.stat-suffix {
  font-size: 22px; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--text-dim); font-size: 10px;
  font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ──────────────────────────────────────────
   SECTION HEADER TITLE
   ────────────────────────────────────────── */
.section-header {
  padding: 196px 40px 0;
  max-width: 1200px; margin: 0 auto;
  text-align: center;
}
.section-hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 0;
}
.section-hero-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──────────────────────────────────────────
   SECTION LABEL
   ────────────────────────────────────────── */
.section-label {
  padding: 40px 40px 40px;
  max-width: 1200px; margin: 0 auto;
}
.section-label-inner {
  display: flex; align-items: center; gap: 18px;
  color: var(--text); font-size: 10.5px;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.label-line { flex: 1; height: 1px; background: var(--border); }

/* ──────────────────────────────────────────
   DISCLAIMER
   ────────────────────────────────────────── */
.disclaimer {
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 12px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.disclaimer-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 1px;
}
.disclaimer p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

/* ──────────────────────────────────────────
   PORTFOLIO GRID — 3 equal columns
   ────────────────────────────────────────── */
.bento-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card sozinho na última linha → fica centrado na coluna do meio.
   Com 2 cards na última linha esta regra deixa de aplicar e voltam
   ao fluxo normal (esquerda + meio). */
.bento-grid > .card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

/* ──────────────────────────────────────────
   CARD
   ────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: visible; /* allow shadow to show */
  cursor: pointer;
  display: flex;
  flex-direction: column;

  /* Entrance — starts hidden */
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .55s ease,
    transform .55s cubic-bezier(.22,1,.36,1),
    box-shadow .35s;
  box-shadow: var(--shadow-card);
}
.card > * { border-radius: var(--radius-card); } /* inner clip */

.card.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hover lift only on devices with a real pointer (not touch) */
@media (hover: hover) {
  .card.visible:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-hover);
  }
}

/* ──────────────────────────────────────────
   CARD FRAME — MacBook aspect ratio container
   ────────────────────────────────────────── */
.card-frame {
  /*
    aspect-ratio 16:10 = MacBook screen proportions.
    The macbook mockup fills this area completely.
  */
  aspect-ratio: 16 / 10;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: #e8e8ea;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   MACBOOK SHELL
   The mockup fills the card-frame completely.
   Top padding gives "space above screen" feel.
   ────────────────────────────────────────── */
.macbook {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(180,180,195,.6) 0%, transparent 55%),
    linear-gradient(165deg, #e0e0e3 0%, #d4d4d7 50%, #cacaca 100%);
}

/* ── LID ── */
.macbook-lid {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;

  background: linear-gradient(175deg, #3e3e40 0%, #2c2c2e 45%, #1e1e20 100%);
  border-radius: 8px 8px 3px 3px;
  border: 1.5px solid rgba(255,255,255,0.11);
  border-bottom-color: rgba(0,0,0,0.6);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.1),
    0 12px 40px rgba(0,0,0,.28),
    0 4px 12px rgba(0,0,0,.18);
}

/* ── TOP BEZEL ── */
.macbook-top-bezel {
  height: 20px;
  flex-shrink: 0;
  background: #1e1e20;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,.5);
}
.macbook-cam {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.macbook-cam-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #1a2e22;
}

/* ── SCREEN WRAP ── */
.macbook-screen-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--mb-screen);
  overflow: hidden;
}

/* ── SAFARI BAR ── */
.safari-bar {
  height: 26px;
  flex-shrink: 0;
  background: var(--mb-safari);
  display: flex; align-items: center; gap: 7px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(0,0,0,.55);
}
.safari-controls { display: flex; gap: 4px; flex-shrink: 0; }
.s-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.s-dot--red    { background: #ff5f57; }
.s-dot--yellow { background: #febc2e; }
.s-dot--green  { background: #28c840; }
.safari-url-bar {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px; height: 16px;
  display: flex; align-items: center; gap: 3px;
  padding: 0 6px; margin: 0 4px;
  overflow: hidden;
}
.safari-lock { color: rgba(255,255,255,.3); flex-shrink: 0; }
.safari-url-text {
  font-size: 8px; color: rgba(255,255,255,.4);
  font-family: var(--font);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.safari-gap { width: 36px; flex-shrink: 0; }

/* ── SCREEN CONTENT (iframe lives here) ── */
.screen-content {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #000;
  /* Allow vertical page scroll over cards; horizontal pan and zoom blocked.
     The ::after overlay keeps touch events from ever reaching the iframe. */
  touch-action: pan-y;
}
/*
  Shield overlay — sits above the iframe and blocks touch events.
  Requires pointer-events: auto explicitly (some iOS versions ignore pseudo-elements
  with no painted content for hit-testing).
  background: rgba(0,0,0,0.001) gives the element a non-null paint record so iOS
  Safari's touch hit-tester recognises it as a real surface to capture events.
*/
.screen-content::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.001);
}

/* ── CHIN ── */
.macbook-chin {
  height: 12px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #282829, #1a1a1c);
  border-top: 1px solid rgba(0,0,0,.6);
}

/* ── HINGE + BASE ── */
.macbook-base {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.macbook-hinge {
  width: 100%; height: 6px;
  background: linear-gradient(to bottom,
    #080809 0%,
    #18181a 55%,
    #222224 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.macbook-foot {
  width: 100%; height: 36px;
  background: linear-gradient(175deg,
    #d2d2d5 0%,
    #c4c4c7 30%,
    #b8b8bb 60%,
    #ababae 100%);
  border-radius: 0 0 6px 6px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 6px 18px rgba(0,0,0,.22);
}
/* shine line near top of base */
.macbook-foot::before {
  content: '';
  position: absolute;
  top: 5px; left: 10%; right: 10%;
  height: 1px;
  background: rgba(255,255,255,.28);
  border-radius: 1px;
}
/* logo metálico em relevo — estilo Apple MacBook */
.macbook-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 26px;
  width: auto;
  pointer-events: none;
  filter:
    brightness(0)
    invert(1)
    opacity(0.62)
    drop-shadow(0 2px 1.5px rgba(0,0,0,0.9))
    drop-shadow(0 -1px 0.5px rgba(255,255,255,0.8))
    drop-shadow(1.5px 0 1px rgba(0,0,0,0.35))
    drop-shadow(-1px 0 0.5px rgba(255,255,255,0.5));
}

/* tapered bottom shadow edge */
.macbook-foot::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12%; right: 12%;
  height: 4px;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.04),
    rgba(0,0,0,.2));
  border-radius: 0 0 6px 6px;
}

/* ──────────────────────────────────────────
   IFRAME
   ────────────────────────────────────────── */
.card-iframe-wrap {
  position: absolute;
  inset: 0;
  /* overflow visible so translateY shows content above */
  overflow: visible;
}

.card-iframe {
  position: absolute;
  top: 0; left: 0;
  border: none;
  background: #fff;
  pointer-events: none;
  transform-origin: top left;
  /* width / height / transform set by JS */
}

/* Loading shimmer */
.card-iframe-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  opacity: 1; transition: opacity .6s;
  border-radius: 0;
}
.card-iframe-wrap.loaded::before {
  opacity: 0; pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Captura estática usada como preview (em vez de iframe) */
.card-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}


/* ──────────────────────────────────────────
   CARD INFO
   ────────────────────────────────────────── */
.card-info {
  padding: 14px 18px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.card-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.card-tag {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .6px; text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 0 0 1px rgba(255,40,120,.25);
  border-radius: 100px;
  padding: 2px 8px;
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: -.3px;
}
.card-cta {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
/* Hover reveal on pointer devices */
@media (hover: hover) {
  .card:hover .card-cta { opacity: 1; transform: translateX(0); }
}
/* Always visible on touch — user can't hover */
@media (hover: none) {
  .card-cta { opacity: 1; transform: translateX(0); }
}

/* ──────────────────────────────────────────
   CTA SECTION
   ────────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  padding: 100px 40px;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(139,47,224,.07), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 620px; margin: 0 auto;
  text-align: center; position: relative;
}
.cta-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 10.5px; font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 0 0 1px rgba(255,40,120,.3);
  letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 22px;
}
.cta-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 16px; color: var(--text);
}
.cta-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-text { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 32px;
  background: var(--gradient); color: #fff;
  font-size: 14px; font-weight: 700;
  border-radius: 100px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(255,40,120,.38);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,40,120,.52); }

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; }
.footer-copy  { font-size: 11.5px; color: var(--text-dim); }

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
/* ──────────────────────────────────────────
   LANGUAGE SWITCHER
   ────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: .8px;
  transition: color .2s;
}
.lang-btn.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 40, 120, .28);
}
.lang-btn:not(.active):hover { color: var(--text); }

/* ──────────────────────────────────────────
   CONTACT MODAL
   ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(24, 6, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow:
    0 32px 80px rgba(139,47,224,0.22),
    0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(20px) scale(0.96);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
  overscroll-behavior: contain; /* prevent page scroll bleed-through on iOS */
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.modal-close:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text);
}
.modal-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 10.5px; font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 0 0 1px rgba(255,40,120,.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.modal-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 10px;
}
.modal-title-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .2s, box-shadow .2s;
}
.modal-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139,47,224,0.12);
}
.modal-btn-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.modal-btn--call  .modal-btn-icon { background: linear-gradient(135deg, #FF5500 0%, #FF2878 100%); }
.modal-btn--email .modal-btn-icon { background: linear-gradient(135deg, #FF2878 0%, #8B2FE0 100%); }
.modal-btn--whatsapp .modal-btn-icon { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.modal-btn-text {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.modal-btn-label {
  font-size: 14px; font-weight: 700;
  color: var(--text); line-height: 1;
}
.modal-btn-sub {
  font-size: 11.5px; color: var(--text-dim);
  font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-btn-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}
.modal-btn:hover .modal-btn-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ──────────────────────────────────────────
   CATEGORY NAV
   ────────────────────────────────────────── */
.category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 28px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.category-pill--active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255,40,120,.38);
  pointer-events: none;
}
.category-pill:not(.category-pill--active):hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,47,224,.1);
}

/* ── 960px — tablet landscape: 2 colunas ── */
@media (max-width: 960px) {
  .bento-grid     { grid-template-columns: repeat(2, 1fr); padding: 0 24px 80px; gap: 20px; }
  .bento-grid > .card:last-child:nth-child(3n + 1) { grid-column: auto; } /* centragem só no layout de 3 colunas */
  .section-header { padding: 185px 32px 0; } /* 185px > header height (~172px) at this breakpoint */
  .section-label  { padding: 32px 32px; }
  .category-nav   { padding: 24px 32px 0; }
}

/* ── 768px — tablet portrait: modal bottom sheet ── */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    border-radius: 24px 24px 0 0;
    max-width: 100%;
    padding: 32px 28px calc(36px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .modal-overlay.is-open .modal {
    transform: translateY(0);
  }
}

/* ── 640px — mobile: 1 card por linha ── */
@media (max-width: 640px) {
  /* Category nav */
  .category-nav  { padding: 24px 16px 0; gap: 6px; }
  .category-pill { font-size: 12px; padding: 8px 18px; }

  /* Header */
  .header-inner { padding: 6px 16px; }
  .logo-img      { height: 100px; }

  /* Título da secção */
  .section-header      { padding: 130px 16px 0; }
  .section-hero-title  { letter-spacing: -1.2px; }
  .section-label       { padding: 24px 16px; }

  /* Grid — 1 card por linha */
  .bento-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 60px;
    gap: 20px;
  }

  /* Cards */
  .card-title { font-size: 15px; }

  /* Disclaimer */
  .disclaimer { margin: 0 16px 20px; }

  /* CTA */
  .cta-section { padding: 60px 20px; }
  .cta-title   { letter-spacing: -1px; }
  .btn-cta     { width: 100%; justify-content: center; padding: 16px 32px; }

  /* Footer */
  .footer { padding: 20px 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .logo-img--footer { height: 100px; }

  /* Modal */
  .modal          { padding: 28px 20px calc(32px + env(safe-area-inset-bottom)); }
  .modal-title    { font-size: 34px; letter-spacing: -1.5px; }
  .modal-subtitle { font-size: 13px; margin-bottom: 22px; }
  .modal-close    { width: 44px; height: 44px; }  /* 44px min touch target */
  .modal-btn-sub  { font-size: 10.5px; }
  .modal-btn      { padding: 14px 16px; }          /* larger touch target */

  /* Language switcher — bigger tap area */
  .lang-btn { padding: 8px 14px; }
}

/* ── 400px — telemóveis pequenos ── */
@media (max-width: 400px) {
  .logo-img            { height: 80px; }
  .section-header      { padding: 115px 16px 0; }
  .section-hero-title  { letter-spacing: -0.8px; }
  .modal-btn-icon      { width: 36px; height: 36px; border-radius: 10px; }
  .modal-btn-icon svg  { width: 16px; height: 16px; }
  .modal-btn-label     { font-size: 13px; }
}

/* ── Reduced motion — respeita preferências do utilizador ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
