/* ==========================================================================
   Autentifuturo - Design System & Modern CSS
   Empresa de Remodelações & Restauros (+11 Anos de Experiência)
   ========================================================================== */

/* Fontes alojadas no próprio site (sem Google Fonts) */
@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* --- Design Tokens / Variables --- */
:root {
  --font-heading: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --primary-brand: #AA0C1F;
  --primary-brand-hover: #8B0817;
  --primary-brand-light: rgba(170, 12, 31, 0.08);
  --brand-navy: #153D77;

  --dark-bg: #0F1318;
  --dark-surface: #171D24;
  --dark-card: #202731;

  --light-bg: #F8F9FA;
  --light-surface: #FFFFFF;

  --text-main: #1C232B;
  --text-muted: #5A6573;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --gold-accent: #D4AF37;
  --gold-star: #FFB800;

  --border-color: #E2E8F0;
  --border-dark: #2D3748;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(170, 12, 31, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-brand-light);
  color: var(--primary-brand);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 48px auto;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-brand);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(170, 12, 31, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--dark-surface);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--dark-card);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* --- Top Bar & Header --- */
.top-bar {
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}




header.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--light-bg);
  transition: var(--transition-normal);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}




.navbar {
  gap: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-navy);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-brand);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-brand);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  color: var(--text-white);
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 19, 24, 0.95) 0%, rgba(15, 19, 24, 0.4) 100%);
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 3.75rem;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--primary-brand);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
  font-size: 2.25rem;
  color: var(--text-white);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Hero Card / Feature Box */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  margin-bottom: 24px;
}

.hero-card-header h3 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hero-card-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(170, 12, 31, 0.2);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.feature-text h4 {
  font-size: 1rem;
  color: var(--text-white);
  font-weight: 600;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Trust Badges Strip --- */
.trust-strip {
  background: var(--light-surface);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.trust-card:hover {
  background: var(--light-bg);
}

.trust-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.trust-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Interactive Before & After Section --- */
.before-after-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.ba-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image-after {
  z-index: 1;
}

.ba-image-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba-image-before img {
  width: 100%;
}

.ba-badge {
  position: absolute;
  top: 24px;
  padding: 8px 18px;
  background: rgba(15, 19, 24, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  z-index: 5;
  text-transform: uppercase;
}

.ba-badge-before {
  left: 24px;
}

.ba-badge-after {
  right: 24px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--text-white);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-brand);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Services Section --- */
.services-section {
  padding: 100px 0;
  background: var(--light-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--light-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-brand);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-icon-box img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.service-card:hover .service-icon-box {
  background: var(--primary-brand-light);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-brand);
  font-size: 0.95rem;
}

.service-link:hover {
  gap: 12px;
}

/* --- About & Family Team Section --- */
.about-section {
  padding: 100px 0;
  background: var(--dark-bg);
  color: var(--text-white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  color: var(--text-white);
  font-size: 2.75rem;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.team-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-member-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-md);
}

.team-member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.team-member-card:hover img {
  transform: scale(1.06);
}

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(15, 19, 24, 0.95), transparent);
}

.team-info h4 {
  color: var(--text-white);
  font-size: 1.1rem;
}

.team-info p {
  color: var(--gold-accent);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- Portfolio Gallery Section --- */
.portfolio-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--light-surface);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-brand);
  color: var(--text-white);
  border-color: var(--primary-brand);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-sm);
  background: var(--dark-surface);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.portfolio-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 19, 24, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  color: var(--text-white);
  font-size: 1.25rem;
}

.portfolio-overlay p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 100px 0;
  background: var(--light-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--light-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: var(--gold-star);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Custom Quote Platform Banner / Trigger --- */
.quote-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1A222B 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.quote-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.quote-banner-text h2 {
  color: var(--text-white);
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.quote-banner-text p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* --- Modal for Custom Platform Embed --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 24, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--light-surface);
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-bounce);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
}

/* --- Footer --- */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--primary-brand);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--primary-brand);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
}

/* --- Responsive Media Queries --- */
/* Menu em hambúrguer (tablet vertical e telemóvel) */
@media (max-width: 1260px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--light-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: var(--transition-normal);
  }
  .nav-link {
    padding: 12px 0;
    font-size: 1.05rem;
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .hamburger {
    display: flex;
  }
  .navbar-actions {
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .services-grid, .portfolio-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .navbar-actions .btn {
    display: none;
  }
  .services-grid, .portfolio-grid, .testimonials-grid, .trust-grid {
    grid-template-columns: 1fr;
  }
  .ba-slider {
    height: 350px;
  }
  .quote-banner-box {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Páginas interiores --- */
.page-hero {
  padding: 90px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--brand-navy);
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* --- Processo (linha do tempo) --- */
.process-section {
  padding: 40px 0 100px;
}

.process-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.process-step {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 44px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-number {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-brand);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--light-bg);
}

.process-body h3 {
  font-size: 1.35rem;
  color: var(--brand-navy);
  margin: 10px 0 8px;
}

.process-body p {
  color: var(--text-muted);
}

.process-body .process-time {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-brand);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .page-hero { padding: 60px 0 40px; }
  .page-hero h1 { font-size: 2.2rem; }
  .process-step { gap: 18px; }
  .process-number { flex-basis: 48px; width: 48px; height: 48px; font-size: 1.2rem; }
  .process-timeline::before { left: 23px; }
}

/* --- A Empresa --- */
.about-page-img {
  max-width: 1000px;
  margin: 0 auto 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-page-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.history-text {
  max-width: 780px;
  margin: 0 auto;
}

.history-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.values-section, .team-section {
  padding: 80px 0;
}

.values-section {
  background: var(--light-surface);
}

.values-grid, .team-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-grid-page { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) and (min-width: 769px) { .team-grid-page { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; } }

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-card img {
  height: 64px;
  width: auto;
  margin: 0 auto 20px;
}

.value-card h3 {
  font-size: 1.15rem;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-muted);
}

.team-card-page {
  text-align: center;
}

.team-card-page img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.team-card-page h3 {
  font-size: 1.2rem;
  color: var(--brand-navy);
}

.team-card-page span {
  color: var(--primary-brand);
  font-weight: 600;
  font-size: 0.95rem;
}

.careers-teaser {
  padding: 60px 0 90px;
  text-align: center;
}

.careers-teaser p {
  color: var(--text-muted);
  margin: 8px auto 24px;
  max-width: 560px;
}

/* --- Obras (projetos Antes/Depois) --- */
.projects-section {
  padding: 40px 0 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-card .ba-wrapper {
  max-width: none;
}

.project-card .ba-slider {
  height: 380px;
}

.project-card h3 {
  font-size: 1.2rem;
  color: var(--brand-navy);
  margin: 18px 0 6px;
}

.project-card p {
  color: var(--text-muted);
}

.projects-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* --- Especialidades --- */
.services-intro-section {
  padding: 20px 0 60px;
}

.services-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.services-intro-grid video {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.services-intro-grid p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.services-intro-grid h2 {
  color: var(--brand-navy);
  margin-bottom: 20px;
  font-size: 2rem;
}

.specialty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
}

.specialty:nth-child(even) .specialty-photos {
  order: 2;
}

.specialty-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.specialty-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.specialty h3 {
  font-size: 1.8rem;
  color: var(--brand-navy);
  margin-bottom: 14px;
}

.specialty p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.specialty .service-link {
  color: var(--primary-brand);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .values-grid, .team-grid-page { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .services-intro-grid, .specialty { grid-template-columns: 1fr; gap: 28px; }
  .specialty:nth-child(even) .specialty-photos { order: 0; }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card .ba-slider { height: 300px; }
}

/* --- Testemunhos em vídeo e Perguntas Frequentes --- */
.testimonials-section { padding: 90px 0; }

.testimonial-videos {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.testimonial-video {
  width: 100%;
  max-width: 320px;
}

.testimonial-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.testimonial-video figcaption {
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.faq-section { padding: 90px 0; background: var(--light-surface); }

.faq-list { max-width: 820px; margin: 40px auto 0; }

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--primary-brand);
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: '–'; }

.faq-item p { color: var(--text-muted); margin-top: 12px; }

/* --- Contactos e páginas legais --- */
.contact-page { padding: 20px 0 80px; }
.contact-cards-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; }
.contact-card-new { background: var(--light-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition-normal); }
a.contact-card-new:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-brand); }
.contact-card-new img { height: 56px; width: auto; margin: 0 auto 18px; }
.contact-card-new h3 { color: var(--brand-navy); font-size: 1.25rem; margin-bottom: 8px; }
.contact-card-new p { color: var(--text-muted); overflow-wrap: anywhere; }
.contact-card-new .closed { margin-top: 10px; color: var(--primary-brand); font-weight: 600; }
.contact-area { text-align: center; margin-top: 36px; color: var(--text-muted); }
.legal-page { padding: 20px 0 90px; }
.legal-text { max-width: 780px; margin: 0 auto; }
.legal-text h2 { font-size: 1.3rem; color: var(--brand-navy); margin: 32px 0 10px; }
.legal-text p, .legal-text li { color: var(--text-muted); }
.legal-text ul { list-style: disc; padding-left: 22px; }
.legal-text a { color: var(--primary-brand); text-decoration: underline; }
.legal-date { margin-top: 36px; font-size: 0.9rem; }
@media (max-width: 768px) { .contact-cards-new { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-item h3 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stat-item h3 { font-size: 1.35rem; }
  .stat-item p { font-size: 0.75rem; }
}

/* --- Carreiras e Documentação --- */
.careers-section { padding: 10px 0 90px; }
.docs-section { padding: 30px 0 60px; }
.docs-guide { background: var(--light-surface); padding: 70px 0 90px; }
.docs-h { text-align: center; color: var(--brand-navy); font-size: 2rem; margin-bottom: 28px; }
.docs-note { text-align: center; color: var(--text-muted); max-width: 680px; margin: -10px auto 36px; }
.docs-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc-card { background: var(--light-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.doc-card h3 { color: var(--brand-navy); font-size: 1.1rem; margin-bottom: 8px; }
.doc-card p { color: var(--text-muted); font-size: 0.95rem; }
.guide-list { max-width: 820px; margin: 0 auto; display: grid; gap: 24px; }
.guide-item { display: flex; gap: 20px; }
.guide-n { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--primary-brand); color: #fff; font-family: var(--font-heading); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.guide-item h3 { color: var(--brand-navy); font-size: 1.15rem; margin-bottom: 4px; }
.guide-item p { color: var(--text-muted); }
@media (max-width: 1024px) { .docs-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .docs-cards { grid-template-columns: 1fr; } }

/* --- Botão no menu (mobile) e banner de cookies --- */
.nav-cta-mobile { display: none; }
@media (max-width: 1260px) {
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; align-self: stretch; }
}
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 720px; margin: 0 auto; background: var(--dark-bg); color: var(--text-white); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-lg); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 280px; color: #dbe1ea; }
.cookie-banner a { text-decoration: underline; color: #fff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { min-height: 44px; }
.cookie-no { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.whatsapp-float { bottom: 20px; }

.ba-slider { touch-action: pan-y; }

/* --- Tipografia: Bebas Neue nos títulos e no menu, Inter no texto --- */
h1, h2, h3, h5, h6,
.section-title, .faq-item summary, .process-number, .guide-n, .stat-item h3 {
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}
h1, h2, h3 { line-height: 1.05; }
/* Rótulos pequenos ficam em Inter para se lerem bem */
h4, .team-info h4, .footer-col h4, .feature-text h4, .trust-card h4, .author-info h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-content h1 { font-size: 5rem; letter-spacing: 0.01em; }
.page-hero h1 { font-size: 3.75rem; }
.section-title { font-size: 3.1rem; }
.hero-card-header h3 { font-size: 1.9rem; }
.stat-item h3 { font-size: 2.8rem; }
.service-card h3, .doc-card h3, .guide-item h3, .process-body h3, .project-card h3, .value-card h3, .contact-card-new h3 { font-size: 1.7rem; }
.specialty h3 { font-size: 2.4rem; }
.faq-item summary { font-size: 1.5rem; }
.quote-banner-text h2 { font-size: 2.6rem; }
.legal-text h2 { font-size: 1.9rem; }
.docs-h { font-size: 2.6rem; }
.process-number, .guide-n { font-size: 1.7rem; }
.testimonial-video figcaption { font-family: var(--font-body); }
@media (max-width: 1260px) {
  .nav-link { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 3.4rem; }
  .page-hero h1 { font-size: 2.9rem; }
  .section-title { font-size: 2.5rem; }
  .quote-banner-text h2 { font-size: 2.1rem; }
}

/* --- Hero v2 e acabamento menos "genérico" --- */
:root {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-glow: none;
}
.hero-v2 { min-height: min(88vh, 760px); padding: 100px 0 90px; align-items: center; }
.hero-v2 .hero-bg { opacity: 1; filter: none; }
.hero-v2 .hero-overlay { background: linear-gradient(90deg, rgba(15, 30, 55, 0.88) 0%, rgba(15, 30, 55, 0.62) 42%, rgba(15, 30, 55, 0.05) 78%); }
.hero-v2 .container { position: relative; z-index: 2; }
.hero-v2-content { max-width: 680px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.hero-kicker::before { content: ''; width: 42px; height: 3px; background: var(--primary-brand); }
.hero-v2 h1 { font-size: 6rem; line-height: 0.98; color: #fff; margin-bottom: 22px; letter-spacing: 0.01em; }
.hero-lead { font-size: 1.2rem; color: #eef2f8; max-width: 540px; margin-bottom: 34px; }
.hero-v2 .hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-v2 .btn-outline { border-color: #fff; color: #fff; }
.hero-v2 .btn-outline:hover { background: #fff; color: var(--brand-navy); }
.stats-bar { background: var(--brand-navy); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-item { padding: 26px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.stats-item:first-child { border-left: 0; padding-left: 0; }
.stats-item strong { font-family: var(--font-heading); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: 0.02em; }
.stats-item span { font-size: 0.9rem; color: #cfd8e6; }

/* etiquetas de secção: texto simples com traço, sem pílula */
.section-tag { background: none; padding: 0; border-radius: 0; gap: 12px; font-size: 0.85rem; letter-spacing: 0.16em; margin-bottom: 14px; }
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--primary-brand); }
.text-center .section-tag { justify-content: center; }
/* botões e cartões sem brilhos nem elevação */
.btn { border-radius: var(--radius-sm); }
.btn-primary, .btn-primary:hover { box-shadow: none; transform: none; }
.btn-secondary:hover { transform: none; }
.service-card:hover, .trust-card:hover, a.contact-card-new:hover { transform: none; }
.quote-banner { background: var(--brand-navy); }
.quote-banner-box { border-radius: var(--radius-md); background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); }
.social-icon-btn img { width: 20px; height: 20px; margin: 0 auto; }
@media (max-width: 768px) {
  .hero-v2 { padding: 70px 0 60px; min-height: 0; }
  .hero-v2 h1 { font-size: 3.9rem; }
  .hero-v2 .hero-overlay { background: linear-gradient(180deg, rgba(15, 30, 55, 0.78) 0%, rgba(15, 30, 55, 0.5) 100%); }
  .stats-row { grid-template-columns: 1fr; }
  .stats-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 16px 0; flex-direction: row; align-items: baseline; gap: 14px; }
  .stats-item:first-child { border-top: 0; }
  .stats-item strong { font-size: 2.1rem; min-width: 120px; }
}

/* --- Home: menu e hero com a mesma cor (claro, como o resto da página) --- */
body.home .hero-v2 { background: var(--light-bg); color: var(--text-main); }
body.home .hero-kicker { color: var(--brand-navy); }
body.home .hero-v2 h1 { color: var(--brand-navy); }
body.home .hero-lead { color: var(--text-muted); }
body.home .hero-v2 .btn-outline { border-color: var(--brand-navy); color: var(--brand-navy); }
body.home .hero-v2 .btn-outline:hover { background: var(--brand-navy); color: #fff; }

/* --- Hero com foto: basta acrescentar a classe "hero-com-foto" à <section class="hero hero-v2"> e pôr <img class="hero-bg"> + <div class="hero-overlay"></div> --- */
body.home .hero-v2.hero-com-foto { background: var(--brand-navy); color: #fff; }
body.home .hero-v2.hero-com-foto .hero-kicker, body.home .hero-v2.hero-com-foto h1 { color: #fff; }
body.home .hero-v2.hero-com-foto .hero-lead { color: #eef2f8; }
body.home .hero-v2.hero-com-foto .btn-outline { border-color: #fff; color: #fff; }
body.home .hero-v2.hero-com-foto .btn-outline:hover { background: #fff; color: var(--brand-navy); }

/* --- Hero com a foto inteira (zoom out), encostada à direita --- */
.hero-v2.hero-foto-inteira .hero-bg { left: auto; right: 0; top: 50%; transform: translateY(-50%); width: auto; height: 108%; max-width: none; object-fit: contain; }
.hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(90deg, #0F1E37 0%, #0F1E37 30%, rgba(15, 30, 55, 0.6) 48%, rgba(15, 30, 55, 0.05) 72%); }
@media (max-width: 1100px) {
  .hero-v2.hero-foto-inteira .hero-bg { height: 100%; }
  .hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(90deg, #0F1E37 0%, #0F1E37 22%, rgba(15, 30, 55, 0.7) 50%, rgba(15, 30, 55, 0.15) 85%); }
}
@media (max-width: 768px) {
  .hero-v2.hero-foto-inteira .hero-bg { left: 0; top: 0; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
  .hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(180deg, rgba(15, 30, 55, 0.84) 0%, rgba(15, 30, 55, 0.6) 100%); }
}

/* --- Ajustes tablet/telemóvel: cartões de confiança e botão do WhatsApp --- */
@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
  .trust-card { padding: 12px 8px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float img { width: 30px; height: 30px; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-strip { padding: 24px 0; }
}
/* o botão não tapa o aviso de cookies */
.whatsapp-float { transition: bottom 0.2s; }
body:has(#cookieBanner:not([hidden])) .whatsapp-float { bottom: calc(var(--banner-h, 0px) + 32px); }

/* --- Hero: cabe sempre no ecrã (botões nunca cortados), em PC e portátil --- */
@media (min-width: 769px) {
  .hero-v2 { min-height: clamp(520px, calc(100svh - 200px), 780px); padding: 40px 0; } /* 80px menu + ~120px faixa de números: a faixa aparece logo na primeira vista */
  .hero-v2 h1 { font-size: clamp(3.2rem, 13vh, 18rem); margin-bottom: clamp(12px, 2.4vh, 22px); }
  .hero-kicker { margin-bottom: clamp(12px, 2.4vh, 22px); }
  .hero-lead { font-size: clamp(1rem, 2.7vh, 1.5rem); margin-bottom: clamp(18px, 3.6vh, 34px); }
}

/* --- Hero com foto: a foto funde com o azul pelo seu próprio bordo esquerdo (sem linha visível em ecrãs largos) --- */
.hero-v2.hero-foto-inteira .hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(90deg, rgba(15, 30, 55, 0.5) 0%, rgba(15, 30, 55, 0.35) 40%, rgba(15, 30, 55, 0) 70%); }
@media (max-width: 768px) {
  .hero-v2.hero-foto-inteira .hero-bg { -webkit-mask-image: none; mask-image: none; }
  .hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(180deg, rgba(15, 30, 55, 0.84) 0%, rgba(15, 30, 55, 0.6) 100%); }
}

/* --- Hero final: ocupa o ecrã todo, textos com mais ar, botões em baixo (visíveis ao abrir), números só ao fazer scroll --- */
body.home .hero-v2.hero-com-foto { background: var(--hero-navy, #0F1E37); }
/* ===== AJUSTES DA HERO (muda só estes 3 valores) ===== */
:root {
  --hero-gap-titulo-texto: clamp(0px, 6vh, 50px);   /* espaço entre o título e o parágrafo */
  --hero-gap-kicker-titulo: clamp(0px, 12vh, 25px); /* espaço entre "DESDE 2013…" e o título */
  --hero-botoes-baixo: 20px;                        /* distância dos botões ao fundo da hero (menor = mais para baixo) */
}
.hero-v2 { min-height: clamp(560px, calc(100svh - 80px), 1500px); padding: 72px 0 0; align-items: stretch; }
.hero-v2 > .container { display: flex; align-self: stretch; }
.hero-v2-content { display: flex; flex-direction: column; align-items: flex-start; min-height: 100%; }
.hero-v2 .hero-kicker { margin-bottom: var(--hero-gap-kicker-titulo); }
.hero-v2 h1 { margin-bottom: var(--hero-gap-titulo-texto); }
.hero-v2 .hero-lead { margin-bottom: 0; }
.hero-v2 .hero-buttons { margin-top: auto; padding-top: clamp(28px, 5vh, 56px); }
/* a foto continua a fundir pelo seu bordo; o azul translúcido volta por cima, mais forte à esquerda */
.hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(90deg, rgba(15, 30, 55, 0.9) 0%, rgba(15, 30, 55, 0.65) 40%, rgba(15, 30, 55, 0.2) 75%, rgba(15, 30, 55, 0.05) 100%); }
@media (max-width: 768px) {
  .hero-v2 { padding: 40px 0 36px; }
  .hero-v2 .hero-kicker { margin-bottom: 22px; }
  .hero-v2 h1 { margin-bottom: 22px; }
  .hero-v2 .hero-buttons { padding-top: 32px; flex-direction: column; width: 100%; }
  .hero-v2 .hero-buttons .btn { width: 100%; }
  .hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(180deg, rgba(15, 30, 55, 0.84) 0%, rgba(15, 30, 55, 0.6) 100%); }
}

/* botões da hero alinhados (ao centro) com o botão do WhatsApp */
.hero-v2 .hero-buttons { margin-bottom: var(--hero-botoes-baixo); }
@media (max-width: 1100px) and (min-width: 769px) { :root { --hero-botoes-baixo: 8px; } }
@media (max-width: 768px) { .hero-v2 .hero-buttons { margin-bottom: 0; } }

/* opacidade uniforme na hero: a mesma cobertura de cima a baixo (só varia da esquerda para a direita) */
.hero-v2.hero-foto-inteira .hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.hero-v2.hero-foto-inteira .hero-overlay { background: linear-gradient(90deg, rgba(15, 30, 55, 0.00) 0%, rgba(15, 30, 55, 0.00) 40%, rgba(15, 30, 55, 0.00) 100%); }
@media (max-width: 768px) {
  .hero-v2.hero-foto-inteira .hero-overlay { background: rgba(15, 30, 55, 0.7); }
}


/* --- Ícones da faixa de confiança: preto e branco + animação ao passar o rato --- */
.trust-card img { filter: grayscale(1) brightness(2.4); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s; }
.trust-card:hover img { filter: grayscale(1) brightness(1.6); transform: translateY(-6px) scale(1.18) rotate(-6deg); }
.trust-card h4, .trust-card p { transition: transform 0.3s, color 0.3s; }
.trust-card:hover h4 { transform: translateX(4px); color: #000; }
.trust-card:hover p { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .trust-card img, .trust-card:hover img { transition: none; transform: none; } }
.stats-item strong .count { font-size: inherit; color: inherit; font-family: inherit; font-variant-numeric: tabular-nums; }

/* Slider Antes/Depois do Início: foto inteira (4:3), sem cortar */
.before-after-section .ba-slider { height: auto; aspect-ratio: 4 / 3; }
.before-after-section .ba-wrapper { max-width: 820px; }

/* --- Ícones dos serviços: preto e cinzento + animação ao passar o rato --- */
.service-icon-box img { filter: grayscale(1) brightness(2.4); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s; }
.service-card:hover .service-icon-box img { filter: grayscale(1) brightness(1.6); transform: translateY(-4px) scale(1.15) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .service-icon-box img, .service-card:hover .service-icon-box img { transition: none; transform: none; } }

/* --- Logótipo do rodapé maior --- */
.footer-logo { height: 96px; width: auto; margin-bottom: 24px; }
@media (max-width: 768px) { .footer-logo { height: 80px; } }

/* --- Obra por fases (linha do tempo) --- */
.timeline { width: 100%; }
.tl-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark-surface);
  height: auto;
  transition: width 0.4s ease;
  touch-action: pan-y;
}
.tl-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.45s ease; }
.tl-slide.active { opacity: 1; z-index: 1; }
.tl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-phase {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(15, 19, 24, 0.75); color: var(--text-white);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
}
.tl-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 36px 20px 16px; color: var(--text-white); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(to top, rgba(15, 19, 24, 0.85), transparent);
}
.tl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--brand-navy);
  font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.tl-arrow:hover { background: var(--primary-brand); color: var(--text-white); }
.tl-prev { left: 12px; }
.tl-next { right: 12px; }
.tl-steps { display: flex; gap: 8px; margin-top: 16px; }
.tl-step {
  flex: 1; min-width: 0; padding: 10px 4px; cursor: pointer;
  background: var(--light-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: var(--transition-fast); font-family: inherit;
}
.tl-step:hover { border-color: var(--primary-brand); }
.tl-step.active { background: var(--primary-brand); border-color: var(--primary-brand); color: var(--text-white); }
.tl-num { font-weight: 700; font-size: 1rem; }
.tl-label { font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 768px) {
  .tl-label { display: none; }
  .tl-caption { font-size: 0.95rem; padding: 28px 16px 12px; }
}
.tl-many .tl-steps { gap: 4px; }
.tl-many .tl-step { padding: 8px 0; }
.tl-many .tl-label { display: none; }

.project-card .ba-slider.ba-auto { height: auto; }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card, .timeline { min-width: 0; }
@media (max-width: 768px) { .projects-grid { grid-template-columns: minmax(0, 1fr); } }

/* Obra com várias divisões: passos agrupados */
.tl-grouped { display: flex; gap: 14px; }
.tl-group { flex: 1; min-width: 0; }
.tl-group-name {
  display: block; margin-bottom: 6px; padding-bottom: 4px; text-align: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-navy); border-bottom: 2px solid var(--border-color);
}
.tl-group-btns { display: flex; gap: 6px; }

.services-intro-grid img.services-intro-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.process-body .process-cta { margin-top: 14px; }


.docs-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.docs-private { text-align: center; color: var(--text-muted); max-width: 720px; margin: 28px auto 0; }
.docs-private strong { color: var(--brand-navy); }

.doc-card .doc-num { font-family: var(--font-heading); font-size: 1.35rem; color: var(--primary-brand); letter-spacing: 0.04em; margin-bottom: 2px; }
.doc-card .doc-meta { color: var(--text-muted); font-size: 0.95rem; }
.doc-card .doc-list { margin: 12px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; display: grid; gap: 8px; }

/* Rodapé: direitos reservados à esquerda, Livro de Reclamações à direita */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; }
.footer-bottom p { margin: 0; }
.lr-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}
.lr-button svg { width: 18px; height: 18px; color: var(--primary-brand); }
.lr-button:hover { background: var(--primary-brand); border-color: var(--primary-brand); color: var(--text-white); }
.lr-button:hover svg { color: var(--text-white); }
@media (max-width: 600px) { .footer-bottom { justify-content: center; text-align: center; } }


/* Carreiras: candidatura por email */
.careers-apply { max-width: 680px; margin: 0 auto; background: var(--light-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); text-align: center; }
.careers-apply h2 { color: var(--brand-navy); font-size: 2.2rem; margin-bottom: 8px; }
.careers-apply .apply-mail { font-size: 1.4rem; font-weight: 700; margin: 8px 0 24px; }
.careers-apply .apply-mail a { color: var(--primary-brand); }
.careers-apply .apply-list { text-align: left; max-width: 520px; margin: 0 auto 28px; padding-left: 20px; display: grid; gap: 10px; color: var(--text-muted); }
.careers-apply .apply-list strong { color: var(--text-main); }
.careers-apply .apply-note { margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.careers-apply .apply-note a { color: var(--primary-brand); text-decoration: underline; }
@media (max-width: 600px) { .careers-apply { padding: 24px; } }
.careers-apply .apply-intro { color: var(--text-muted); }

/* Slider antes/depois: as imagens não se arrastam como ficheiros */
.ba-slider img { -webkit-user-drag: none; user-select: none; }

.careers-apply .apply-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.careers-apply .apply-actions .btn { width: 100%; justify-content: center; text-align: center; }
.careers-apply .apply-copied { margin-top: 12px; color: #1a7f4b; font-weight: 600; }
.careers-apply .btn-outline { color: var(--brand-navy); border: 2px solid var(--brand-navy); background: transparent; cursor: pointer; font-family: inherit; }
.careers-apply .btn-outline:hover { background: var(--brand-navy); color: var(--text-white); border-color: var(--brand-navy); }

/* Barra do menu: o logótipo nunca encolhe (o menu de telemóvel começa aos 1260 px) */
.logo { flex-shrink: 0; }
.logo img { max-width: none; }

.footer-legal { flex: 1 1 380px; min-width: 0; }
.footer-legal .footer-ral { margin-top: 6px; font-size: 0.8rem; opacity: 0.8; }
.footer-legal .footer-ral a { color: inherit; text-decoration: underline; }
.footer-legal .footer-ral a:hover { opacity: 1; color: var(--text-white); }
@media (max-width: 600px) { .footer-legal { text-align: center; } }

.legal-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0; border-top: 1px solid var(--border-color); }
.legal-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.legal-list dt { font-weight: 700; color: var(--brand-navy); }
.legal-list dd { margin: 0; color: var(--text-muted); }
.legal-list a { color: var(--primary-brand); text-decoration: underline; }
@media (max-width: 600px) { .legal-list > div { grid-template-columns: 1fr; gap: 4px; } }
