/* ═════════════════════════════════════════════════════════════════════
   COBRIK — SOCIEDADE UNIPESSOAL, LIMITADA
   Master Stylesheet · Versão 3.0
   Tipografia Montserrat (Bold & Light) + Instrument Serif + DM Mono
   Slideshow 4s · Hero Centralizado · Design 100% Responsivo
   ═════════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  /* Paleta Editorial Warm Paper & Terracotta */
  --paper: #fbfaf7;
  --paper-subtle: #f5f2ea;
  --paper-card: #ffffff;
  --sand-50: #faf8f5;
  --sand-100: #f2ede4;
  --sand-200: #e8e0d3;
  --sand-300: #d8cdbc;

  /* Cores de Texto / Tinta */
  --ink: #171614;
  --ink-secondary: #4a4740;
  --ink-muted: #79746b;
  --ink-faint: #aba59a;

  /* Cor de Marca COBRIK (Tijolo Cerâmico Terracota) */
  --brick: #9e4620;
  --brick-hover: #b85427;
  --brick-dark: #7a3213;
  --brick-subtle: rgba(158, 70, 32, 0.08);
  --brick-border: rgba(158, 70, 32, 0.24);
  --brick-glow: rgba(158, 70, 32, 0.18);

  /* Secções Escuras de Alto Contraste */
  --dark-bg: #141311;
  --dark-surface: #1b1a17;
  --dark-card: #22201c;
  --dark-card-hover: #292723;
  --dark-text: #f7f5f0;
  --dark-secondary: #c9c3b6;
  --dark-muted: #8e887c;
  --dark-border: rgba(255, 255, 255, 0.09);
  --dark-border-hover: rgba(255, 255, 255, 0.22);

  /* Linhas Finas */
  --border-hairline: 1px solid rgba(23, 22, 20, 0.08);
  --border-light: rgba(23, 22, 20, 0.12);

  /* Famílias Tipográficas */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-editorial: 'Instrument Serif', Georgia, serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevações e Sombras */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(23, 22, 20, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(23, 22, 20, 0.12);
  --shadow-xl: 0 24px 60px -12px rgba(0, 0, 0, 0.28);

  /* Raio dos Cantos */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transições Suaves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-base: 0.28s var(--ease-out);
  --transition-smooth: 0.5s var(--ease-out);
}

/* ─── 2. RESET E NORMAS DE BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300; /* Montserrat Light por padrão para elegância editorial */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body.no-scroll {
  overflow: hidden;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

::selection {
  background-color: var(--brick);
  color: #ffffff;
}

/* Skip Link de Acessibilidade */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

/* ─── 3. PRELOADER EDITORIAL ─── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 20px;
}
.preloader-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  animation: pulse-preloader 1.8s ease-in-out infinite;
}
.preloader-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.preloader-bar {
  width: 130px;
  height: 2px;
  background: var(--sand-200);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.preloader-bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: var(--brick);
  animation: preloader-slide 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes preloader-slide {
  0% { left: -40%; width: 30%; }
  50% { width: 60%; }
  100% { left: 100%; width: 30%; }
}
@keyframes pulse-preloader {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}

/* ─── 4. TIPOGRAFIA & DESTAQUES (MONTSERRAT BOLD & EDITORIAL ACCENT) ─── */
.section-title-bold {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-title-bold em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--brick);
  text-transform: none;
  letter-spacing: 0;
}
.section-title-bold.light {
  color: var(--dark-text);
}
.section-title-bold.light em {
  color: #df7a4e;
}

/* Traço de Destaque Atrás/Abaixo do Texto (Como no Print 2) */
.highlight-line-title {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.highlight-line-title::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 10px;
  background-color: rgba(158, 70, 32, 0.2);
  z-index: -1;
  border-radius: 2px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.section-kicker .kicker-num {
  color: var(--brick);
  font-weight: 500;
}
.section-kicker.light {
  color: var(--dark-muted);
}
.section-kicker.light .kicker-num {
  color: #df7a4e;
}

/* ─── 5. BOTÕES & CTAS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--brick);
  color: #ffffff;
  border: 1px solid var(--brick);
  box-shadow: 0 2px 10px var(--brick-glow);
}
.btn-primary:hover {
  background-color: var(--brick-hover);
  border-color: var(--brick-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(158, 70, 32, 0.3);
}
.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background-color: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  transform: translateY(-2px);
}
.btn-arrow {
  display: inline-block;
  font-size: 13px;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ─── 6. HEADER & NAVBAR ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 116px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}
.header--scrolled {
  height: 86px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.header--hidden {
  transform: translateY(-100%);
}
.header-inner {
  max-width: 1340px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── LOGÓTIPO DO CABEÇALHO (Escala de Destaque 3X Estilo METTA) ─── */
.brand {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 280px;
}
.brand-logo {
  /* Logo imponente de grande escala e visibilidade (3x) */
  height: 98px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base), height var(--transition-base);
}
.header--scrolled .brand-logo {
  height: 70px; /* Tamanho quando rolar a página */
}
.brand:hover .brand-logo {
  transform: scale(1.02);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto; /* Centraliza a navegação no computador */
}

/* Os botões de contacto mobile NUNCA devem aparecer no desktop */
.nav-mobile-cta {
  display: none !important;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brick);
  transition: width var(--transition-base);
}
.nav-link:hover,
.nav-link.active {
  color: var(--brick);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 170px; /* Garante simetria perfeita com o logótipo */
}
.header-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-subtle);
  border: 1px solid var(--sand-200);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-secondary);
}
.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  position: relative;
}
.live-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #16a34a;
  opacity: 0.7;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.header-cta {
  padding: 10px 20px;
  font-size: 11.5px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
}
.menu-toggle span {
  width: 20px;
  height: 1.5px;
  background-color: var(--ink);
  transition: all var(--transition-base);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── 7. HERO COM SLIDESHOW A CADA 4S & TEXTO CENTRALIZADO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 136px clamp(16px, 4vw, 48px) 36px;
  background-color: var(--dark-bg);
  color: #ffffff;
  overflow: hidden;
}

/* Slideshow Container */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s var(--ease-in-out), transform 6s ease-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(18, 17, 15, 0.6) 0%,
    rgba(18, 17, 15, 0.45) 40%,
    rgba(18, 17, 15, 0.85) 85%,
    #141311 100%
  );
}

.hero-container {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Conteúdo Totalmente Centralizado (Conforme Print 1) */
.hero-centered-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-badge-wrap {
  margin-bottom: 22px;
}
.badge-mono {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 19, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #f0ece2;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  max-width: 980px;
  margin: 0 auto 20px;
  text-align: center;
}
.hero-title .highlight-line {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.hero-title .highlight-line::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4px;
  height: 12px;
  background-color: rgba(158, 70, 32, 0.55);
  z-index: -1;
  border-radius: 2px;
}
.hero-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: #df7a4e;
  text-transform: none;
}

.hero-lead {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  color: #ded9d0;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* Indicadores de Slide (4 segundos) */
.hero-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.indicator-dot {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0;
}
.indicator-dot.active {
  width: 44px;
  background: var(--brick);
}

/* Faixa de Indicadores Oficiais em DM Mono */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 28px;
}
.hero-stat-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.hero-stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-top: 4px;
}

/* ─── 8. SECTION BASE LAYOUT ─── */
.section {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.section-header-split .header-left {
  max-width: 680px;
}
.section-header-split .header-right {
  max-width: 440px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dark-secondary);
}

/* ─── 9. SECTION 01: QUEM SOMOS & GOVERNAÇÃO ─── */
.about-section {
  background-color: var(--paper);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.about-info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.about-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}
.about-desc {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 28px;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

/* Abas Interativas */
.tabs-component {
  background: var(--paper-subtle);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--sand-200);
  padding-bottom: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
}
.tabs-nav::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.tab-btn.active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}
.tab-pane {
  display: none;
  padding: 10px 12px 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-secondary);
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
}
.legal-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.legal-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.legal-val {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Coluna Visual e Ficha Resumo */
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.about-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: var(--border-hairline);
  background-color: var(--sand-100);
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.about-frame:hover img {
  transform: scale(1.03);
}
.about-frame-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(20, 19, 17, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Fact Cards em Grelha (2x2) */
.fact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.fact-card-item {
  background: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: normal;
  line-height: 1.35;
}
.fact-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 3px;
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── 10. SECTION 02: SERVIÇOS TÉCNICOS ─── */
.services-section {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}
.service-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.service-filter-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dark-border);
  color: var(--dark-muted);
  transition: all var(--transition-fast);
}
.service-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.service-filter-btn.active {
  background: var(--brick);
  border-color: var(--brick);
  color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brick);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.service-card:hover {
  background: var(--dark-card-hover);
  border-color: var(--dark-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #df7a4e;
  font-weight: 500;
}
.service-card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dark-secondary);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--dark-secondary);
  margin-bottom: 18px;
}
.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--dark-border);
}
.service-deliverables li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-deliverables li::before {
  content: '✓';
  color: #df7a4e;
  font-weight: bold;
}
.service-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #df7a4e;
  margin-top: 18px;
  transition: gap var(--transition-fast);
}
.service-card:hover .service-card-action {
  gap: 12px;
}

/* ─── 11. SECTION 03: PROJECTOS & PORTFÓLIO ─── */
.work-section {
  background-color: var(--paper);
}
.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.portfolio-filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--paper-subtle);
  color: var(--ink-secondary);
  transition: all var(--transition-fast);
}
.portfolio-filter-btn:hover {
  background: var(--sand-200);
  color: var(--ink);
}
.portfolio-filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
@media (max-width: 1080px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.project-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-hairline);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.project-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--sand-100);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card-image img {
  transform: scale(1.04);
}
.project-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 19, 17, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.project-card-loc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-card-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
.project-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.project-card-desc {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}
.project-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--sand-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-card-scope {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
.project-card-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 500;
}
.project-card--hidden {
  display: none !important;
}

/* ─── 12. SECTION 04: GALERIA DE ESTALEIRO (RESPONSIVA EM 2 COLUNAS NO MOBILE) ─── */
.gallery-section {
  background-color: var(--dark-surface);
  color: var(--dark-text);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  aspect-ratio: 4 / 3;
  transition: all var(--transition-base);
}
.gallery-card.span-2 {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-card.tall {
  aspect-ratio: 3 / 4;
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--dark-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.gallery-card:hover img {
  transform: scale(1.04);
}
.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 19, 17, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.gallery-card--hidden {
  display: none !important;
}

/* Cartões com Prompt IA (Placeholder Elegante) */
.media-placeholder-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(145deg, #2a2520 0%, #3a3229 50%, #1e1c19 100%);
  color: #fff;
  border: 1px dashed rgba(223, 122, 78, 0.35);
}
.media-placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #df7a4e;
  background: rgba(223, 122, 78, 0.12);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.media-placeholder-prompt {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dark-secondary);
  font-style: italic;
  margin: 10px 0;
}
.media-placeholder-btn {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* ─── 13. SECTION 05: METODOLOGIA TÉCNICA ─── */
.method-section {
  background-color: var(--paper);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.method-card {
  background: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brick-border);
}
.method-step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brick);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--brick-subtle);
}
.method-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}
.method-card p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* ─── 14. SECTION 06: CREDIBILIDADE & PRINCÍPIO ─── */
.credibility-section {
  background-color: var(--sand-50);
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
}
.quote-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote-icon {
  font-family: var(--font-editorial);
  font-size: 70px;
  line-height: 1;
  color: var(--brick);
  opacity: 0.35;
  margin-bottom: -15px;
}
.quote-text {
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 24px;
  font-style: italic;
}
.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.quote-author-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.quote-author-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ─── 15. SECTION 07: CONTACTOS & FORMULÁRIO SEM SAIR DO SITE ─── */
.contact-section {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 68px);
}
.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-lead {
  color: var(--dark-secondary);
  margin-top: 16px;
  max-width: 460px;
  line-height: 1.8;
  font-weight: 300;
  font-size: 14.5px;
}
.contact-office-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-channel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-channel-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.contact-channel-val {
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.6;
}
.contact-channel-val.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dark-muted);
}
.contact-channel-val a:hover {
  color: #df7a4e;
}
.contact-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #df7a4e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Formulário Integrado */
.contact-form-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3.5vw, 36px);
}
.form-header {
  margin-bottom: 24px;
}
.form-header h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.form-header p {
  font-size: 13px;
  font-weight: 300;
  color: var(--dark-secondary);
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: all var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #df7a4e;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(223, 122, 78, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dark-muted);
}
.form-group select option {
  background: var(--dark-bg);
  color: #ffffff;
}

/* Selector Interativo de Especialidade (Substitui Select Comum) */
.service-pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-pill);
  color: var(--dark-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.service-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.service-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dark-muted);
  transition: all var(--transition-fast);
}
.service-pill.active {
  background: var(--brick);
  border-color: var(--brick);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--brick-glow);
}
.service-pill.active .pill-dot {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}
.optional-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--dark-muted);
  text-transform: none;
  letter-spacing: normal;
  margin-left: 4px;
}

.btn-submit-full {
  width: 100%;
  padding: 14px;
  font-size: 13px;
  position: relative;
}
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}
.btn-submit-full.loading .btn-spinner {
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status-alert {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: none;
}
.form-status-alert.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}
.form-status-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.form-status-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ─── 16. BOTÃO FLUTUANTE DE CONTACTO RÁPIDO ─── */
.floating-contact {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brick);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(158, 70, 32, 0.35);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
}
.floating-contact:hover {
  background: var(--brick-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(158, 70, 32, 0.45);
}

/* ─── 17. FOOTER INSTITUCIONAL (COM LOGO OFICIAL) ─── */
.footer {
  background-color: #0e0d0c;
  color: var(--dark-secondary);
  border-top: 1px solid var(--dark-border);
  padding: 64px clamp(16px, 4vw, 48px) 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}
.footer-brand-wrap {
  display: inline-block;
  background: transparent; /* Fundo branco removido conforme solicitado */
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
}
.footer-logo {
  /* Tamanho do logotipo no rodapé (ajustado para 1.5x do original: 72px) */
  height: 72px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-brand-bio {
  max-width: 320px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--dark-muted);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: var(--dark-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: #df7a4e;
}
.footer-motto {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13.5px;
  color: #df7a4e;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dark-muted);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom a:hover {
  color: #ffffff;
}

/* ─── 18. MODAL DE FICHA TÉCNICA ─── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.project-modal.active {
  opacity: 1;
  visibility: visible;
}
.project-modal-dialog {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(12px);
  transition: all 0.3s var(--ease-out);
  color: #ffffff;
  position: relative;
}
.project-modal.active .project-modal-dialog {
  transform: scale(1) translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}
.modal-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 26px;
}
.modal-meta-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #df7a4e;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.modal-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--dark-secondary);
  margin-bottom: 22px;
}
.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--dark-border);
}
.modal-spec-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.modal-spec-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

/* ─── 19. REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.hero-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 20. RESPONSIVIDADE COMPLETA PARA CELULAR & TABLET ─── */
@media (max-width: 1024px) {
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-card.span-2 {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile Breakpoint Estrito (Celulares < 768px) */
@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.menu-open {
    overflow: hidden !important;
  }

  html {
    scroll-padding-top: 98px;
  }

  /* Header base no mobile */
  .header {
    height: 98px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.25s ease, height 0.25s ease;
  }

  /* Quando o menu mobile está aberto */
  .header.menu-open {
    height: 98px !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .header-inner {
    height: 98px;
    min-height: 98px;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: relative;
    z-index: 10000;
  }

  /* Previne que o logo expanda além do espaço e empurre o botão menu (Corrige Print 13) */
  .brand {
    min-width: 0 !important;
    flex: 0 1 auto;
    max-width: calc(100% - 56px);
    display: inline-flex;
    align-items: center;
  }

  .brand-logo {
    /* Logo de grande destaque visual (3x) no celular */
    height: 82px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
  }

  .header-actions {
    min-width: 0 !important;
    width: auto !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .header-badge,
  .header-cta {
    display: none; /* No mobile o CTA vai para dentro do drawer aberto */
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: 8px;
    z-index: 10001;
    position: relative;
  }

  /* Gaveta do Menu Mobile: Desce fixa a partir do topo (98px) até ao fundo do ecrã */
  .nav {
    position: fixed;
    top: 98px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100dvh - 98px);
    height: calc(100vh - 98px);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 20px 48px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    box-sizing: border-box;
    border-top: 1px solid var(--sand-200);

    /* Oculto por defeito no celular com transição suave */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  /* Quando o menu está aberto: Mostra todos os itens a começar por INÍCIO */
  .header.menu-open .nav,
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header.menu-open .nav-link,
  .nav.open .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 1px solid var(--sand-100);
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
  }

  .header.menu-open .nav-link::after,
  .nav.open .nav-link::after {
    display: none; /* Desativa sublinhado horizontal do desktop */
  }

  .header.menu-open .nav-link:hover,
  .header.menu-open .nav-link.active,
  .nav.open .nav-link:hover,
  .nav.open .nav-link.active {
    color: var(--brick);
    background: var(--sand-50);
    padding-left: 18px;
  }

  .header.menu-open .nav-mobile-cta,
  .nav.open .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding-top: 8px;
    width: 100%;
  }

  /* Hero no Celular: Proporção e Escala de Letra Ajustada */
  .hero {
    padding-top: 116px;
    padding-bottom: 24px;
    min-height: 90svh;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero-lead {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-btn {
    width: 100%;
    min-height: 46px;
  }
  .hero-indicators {
    margin-bottom: 28px;
  }

  /* Faixa de Indicadores no Celular em Grelha 2x2 Limpa Sem Blowout */
  .hero-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 18px;
    width: 100%;
    max-width: 100%;
  }
  .hero-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    min-width: 0;
  }
  .hero-stat-val {
    font-size: 16px;
  }
  .hero-stat-label {
    font-size: 9px;
  }

  /* Secções: Padding reduzido para celular e contenção estrita */
  .section {
    padding: 56px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .container {
    max-width: 100%;
    box-sizing: border-box;
  }
  .section-title-bold {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    margin-bottom: 18px;
    overflow-wrap: break-word;
  }
  .section-header-split {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
  }

  /* Grelhas da Secção 01 Sobre Nós (Prevenção Total de Truncamento) */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .about-info,
  .about-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .about-lead,
  .about-desc {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
  }
  .tabs-component {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid var(--sand-200);
    padding-bottom: 10px;
    overflow-x: visible;
    width: 100%;
    max-width: 100%;
  }
  .tab-btn {
    width: 100%;
    text-align: left;
    font-size: 11.5px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-200);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  .tab-btn::after {
    content: '→';
    font-size: 13px;
    opacity: 0.4;
  }
  .tab-btn.active {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
  }
  .tab-btn.active::after {
    content: '✓';
    opacity: 1;
    color: var(--brick);
  }
  .fact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .fact-card-item {
    min-width: 0;
    padding: 12px 10px;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
  }
  .fact-label {
    font-size: 8.5px;
    letter-spacing: 0.06em;
    white-space: normal;
    line-height: 1.3;
  }
  .fact-val {
    font-size: 12.5px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
  }
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .legal-item {
    min-width: 0;
  }
  .legal-val {
    font-size: 12.5px;
    word-break: break-word;
  }

  /* ─── FILTROS DE SERVIÇOS & PORTFÓLIO EM 2 COLUNAS ORGANIZADAS (Corrige Prints 14, 15 e 16) ─── */
  .service-tabs-nav,
  .portfolio-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
  }
  /* O primeiro botão ("Todos os...") ocupa as 2 colunas como cabeçalho limpo */
  .service-tabs-nav .service-filter-btn:first-child,
  .portfolio-filters .portfolio-filter-btn:first-child,
  .service-tabs-nav .service-filter-btn:last-child {
    grid-column: span 2 !important;
  }
  .service-filter-btn,
  .portfolio-filter-btn {
    width: 100% !important;
    min-height: 40px;
    padding: 8px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.25 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  /* Grelhas de Serviços & Projectos no Celular */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }
  .service-card {
    padding: 22px 18px;
    min-height: auto;
  }
  .service-card h3 {
    font-size: 17.5px;
    margin-bottom: 8px;
  }
  .service-card p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .service-deliverables li {
    font-size: 11.5px;
    padding: 4px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
  }
  .project-card-image {
    aspect-ratio: 16 / 9;
  }
  .project-card-body {
    padding: 18px 16px;
  }
  .project-card-title {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .project-card-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .project-card-footer {
    padding-top: 10px;
  }

  /* Galeria no Celular: 2 colunas proporcionais com legendas organizadas (Corrige Print 17) */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .gallery-card {
    aspect-ratio: 1;
    min-width: 0;
  }
  .gallery-card.span-2 {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  /* Legenda das fotos da galeria: organizada verticalmente para não colidir texto (Print 17) */
  .gallery-card figcaption {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    padding: 8px 10px !important;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 13, 11, 0.7) 45%, rgba(14, 13, 11, 0.95) 100%) !important;
    box-sizing: border-box !important;
  }
  .gallery-card figcaption span:first-child {
    font-size: 8.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    width: 100% !important;
  }
  .gallery-card figcaption span:last-child {
    font-size: 7.5px !important;
    color: #df7a4e !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    order: -1 !important; /* Põe o identificador no topo (ex: 02 / LAJES & PILARES) */
    margin-bottom: 1px !important;
    white-space: nowrap !important;
  }
  /* O cartão duplo mantém disposição horizontal ampla */
  .gallery-card.span-2 figcaption {
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 14px !important;
  }
  .gallery-card.span-2 figcaption span:first-child {
    font-size: 9.5px !important;
    -webkit-line-clamp: 1 !important;
    flex: 1 1 auto !important;
  }
  .gallery-card.span-2 figcaption span:last-child {
    order: 1 !important;
    font-size: 8.5px !important;
    flex: 0 0 auto !important;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-office-card {
    padding: 20px;
  }
  .contact-form-box {
    padding: 22px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  /* ─── FOOTER NO CELULAR: 2 COLUNAS DE LINKS (ESTILO GEOCORE / PRINT 10) ─── */
  .footer {
    padding: 44px clamp(16px, 4vw, 24px) 24px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
    padding-bottom: 32px;
  }
  .footer-col-brand,
  .footer-top > div:first-child {
    grid-column: 1 / -1; /* Marca e bio em largura completa no topo */
  }
  .footer-col-nav,
  .footer-top > div:nth-child(2) {
    grid-column: 1; /* Coluna 1: Navegação (Links Rápidos) */
  }
  .footer-col-services,
  .footer-top > div:nth-child(3) {
    grid-column: 2; /* Coluna 2: Especialidades (Serviços) */
  }
  .footer-col-contact,
  .footer-top > div:nth-child(4) {
    grid-column: 1 / -1; /* Contacto e Sede em largura completa na base */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-heading {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }
  .footer-links {
    gap: 8px;
  }
  .footer-links a {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-title {
    font-size: 20px;
  }

  .floating-contact span {
    display: none; /* No celular vira ícone circular limpo */
  }
  .floating-contact {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .fact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .fact-card-item {
    padding: 10px 8px;
  }
  .fact-val {
    font-size: 11.5px;
  }
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .fact-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── 22. MODAL DE ESPECIFICAÇÕES TÉCNICAS (LIGHTBOX) ─── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-modal-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--sand-200);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.active .project-modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sand-200);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--brick);
  color: #ffffff;
  border-color: var(--brick);
  transform: rotate(90deg);
}
.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-visual {
  position: relative;
  min-height: 320px;
  background: var(--sand-100);
}
.modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-badge-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(20, 19, 17, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-info {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.modal-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.modal-loc {
  color: var(--brick);
  font-weight: 600;
}
.modal-status {
  color: var(--ink-muted);
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}
.modal-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
  font-weight: 300;
  margin-bottom: 22px;
}
.modal-specs-table {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.modal-spec-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-spec-val {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.modal-actions {
  margin-top: auto;
}
.modal-actions .btn {
  width: 100%;
}
@media (max-width: 768px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
  }
  .modal-visual {
    min-height: 220px;
    max-height: 260px;
  }
  .modal-info {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
