/* ===== VARIÁVEIS ===== */
:root {
  --bordo: #800020;
  --bordo-dark: #4d0013;
  --bordo-light: #a0002a;
  --dourado: #c8973a;
  --cinza: #555;
  --cinza-light: #f5f5f5;
  --cinza-med: #ddd;
  --cream: #f8f7f2;
  --texto: #333;
  /* Aliases for redesigned sections */
  --bg-light: #ffffff;
  --bg-secondary: #f5f5f5;
  --border-color: #ddd;
  --text-primary: #333;
  --text-secondary: #555;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== FORCE FIELD CONTAINER ===== */
.force-field-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.force-field-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Montserrat", sans-serif;
  color: var(--texto);
  background: #fff;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  color: #eee;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  font-size: 13px;
  flex-wrap: wrap;
  border-top: 2px solid var(--bordo);
}
#cookie-banner p {
  margin: 0;
  min-width: 0;
  flex: 1 1 200px;
}
#cookie-banner a {
  color: var(--dourado);
  text-decoration: underline;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie-ok {
  background: var(--bordo);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.btn-cookie-reject {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: var(--bordo);
  z-index: 999;
  display: flex;
  align-items: center;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}
.top-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.top-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-social a {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.top-bar-social a:hover {
  color: #fff;
  background: rgba(128, 0, 32, 0.55);
  transform: translateY(-1px) scale(1.12);
  box-shadow: 0 2px 8px rgba(128, 0, 32, 0.45);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.top-bar-info:hover {
  color: #fff;
}
.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  .top-bar-label,
  .top-bar-social {
    display: none;
  }
  .top-bar-info span {
    display: none;
  }
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 997;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    top 0.35s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#header.header-scrolled {
  background: rgba(10, 3, 5, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}
.logo-sub {
  color: var(--dourado);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.navbar ul li a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 7px 9px;
  border-radius: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.navbar ul li a:hover,
.navbar ul li a.active {
  color: #fff;
}
@media (max-width: 1100px) {
  .navbar {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
}
.navbar.mobile-open {
  display: block !important;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 3, 5, 0.98);
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(128, 0, 32, 0.3);
  z-index: 996;
}
.navbar.mobile-open ul {
  flex-direction: column;
  gap: 0;
}
.navbar.mobile-open ul li a {
  font-size: 13px;
  padding: 13px 8px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.lang-btn:hover,
.lang-btn.active {
  background: rgba(128, 0, 32, 0.5);
  border-color: var(--bordo);
  color: #fff;
}
/* ===== ANIMATIONS ===== */

/* Portal demo floating effect */
@keyframes portalFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
.portal-float {
  animation: portalFloat 5s ease-in-out infinite;
}

/* Disable heavy animations on mobile for performance */
@media (max-width: 768px) {
  .portal-float {
    animation: none;
  }
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0305 url("../img/coimbra-night.jpg") center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 3, 5, 0.7) 40%, rgba(80, 10, 25, 0.5) 100%);
  z-index: 1;
}
.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
}
@media (max-width: 960px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }
  .hero-portal-wrap {
    display: none;
  }
}
.hero-text {
  padding: 60px 0;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title span {
  display: block;
  color: var(--bordo-light);
  font-size: 0.85em;
  font-weight: 700;
}
.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 0;
}
/* Portal demo card */
.hero-portal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.portal-demo {
  background: rgba(30, 10, 15, 0.45);
  border: 1px solid rgba(200, 151, 58, 0.2);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.portal-demo-header {
  background: rgba(200, 151, 58, 0.08);
  border-bottom: 1px solid rgba(200, 151, 58, 0.15);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-demo-header .pd-title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}
.portal-demo-header .pd-title i {
  font-size: 12px;
  color: var(--bordo-light);
}
.pd-badge {
  background: rgba(0, 160, 80, 0.2);
  border: 1px solid rgba(0, 160, 80, 0.4);
  color: #4caf82;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.06em;
}
.pd-client {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pd-avatar {
  width: 34px;
  height: 34px;
  background: var(--bordo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.pd-client-info strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.pd-client-info small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}
.pd-timeline {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pd-timeline-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pd-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.pd-step-dot.done {
  background: var(--bordo);
  color: #fff;
}
.pd-step-dot.active {
  background: rgba(128, 0, 32, 0.3);
  border: 2px solid var(--bordo);
  color: var(--bordo-light);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.pd-step-dot.pending {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(128, 0, 32, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(128, 0, 32, 0);
  }
}
.pd-step-text {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}
.pd-step.active-step .pd-step-text {
  color: #fff;
  font-weight: 600;
}
.pd-progress {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pd-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}
.pd-progress-fill {
  height: 100%;
  background: var(--bordo);
  border-radius: 2px;
  width: 60%;
  transition: width 1s ease;
}
.pd-progress-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  text-align: right;
}
.pd-message {
  padding: 12px 16px;
}
.pd-msg-bubble {
  background: rgba(128, 0, 32, 0.18);
  border-left: 2px solid var(--bordo);
  border-radius: 0 8px 8px 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.pd-msg-bubble strong {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.pd-msg-bubble p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px;
  line-height: 1.5;
  margin: 0;
}
.pd-msg-time {
  color: rgba(255, 255, 255, 0.25);
  font-size: 9px;
  text-align: right;
}
.pd-benefits {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pd-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pd-benefit i {
  font-size: 14px;
  color: var(--dourado);
  opacity: 0.85;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== SECÇÕES — COMUNS ===== */
section {
  padding: 70px 0;
}
.section-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 10px;
  text-align: left;
}
.section-title-line {
  width: 40px;
  height: 3px;
  background: var(--dourado);
  border-radius: 2px;
  margin-bottom: 22px;
  position: relative;
}
.section-title-line::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 0;
  width: 8px;
  height: 3px;
  background: var(--dourado);
  opacity: 0.45;
  border-radius: 2px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--cinza);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 640px;
}

/* ===== ÁREAS ===== */
#areas .section-subtitle {
  max-width: none;
}
#areas {
  background: var(--cinza-light);
}
/* Nacionalidade — card grande */
.nat-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
  border: 1px solid var(--cinza-med);
  position: relative;
  transition: all 0.4s ease;
}
.nat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.75s ease;
  z-index: 1;
  pointer-events: none;
}
.nat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(128, 0, 32, 0.15);
}
.nat-card:hover::before {
  left: 100%;
}
.nat-card-header {
  background: var(--bordo);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nat-card-title-wrap {
  flex: 1;
}
.nat-card-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nat-card-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.nat-card-body {
  padding: 24px 28px;
}
.nat-card-body--split {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.nat-card-photo {
  flex: 0 0 300px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 10px;
}
.nat-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}
.nat-card-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.nat-card-photo:hover img {
  transform: scale(1.04);
}
.nat-card-content {
  flex: 1;
  min-width: 0;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nat-card-desc {
  font-size: 13.5px;
  color: var(--cinza);
  line-height: 1.72;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cinza-med);
}
.nat-footnote {
  font-size: 11px;
  color: #aaa;
  margin: 14px 0 0;
  line-height: 1.5;
}
/* Process steps — horizontal timeline */
.nat-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
  position: relative;
}
.nat-steps::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bordo) 20%, var(--bordo) 80%, transparent);
  opacity: 0.25;
  top: 17px;
  left: 10%;
  right: 10%;
  z-index: 0;
}
.nat-step {
  flex: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 6px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.nat-step-num {
  width: 34px;
  height: 34px;
  background: var(--bordo);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(128, 0, 32, 0.3);
  position: relative;
  z-index: 1;
}
.nat-step-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 5px;
  line-height: 1.25;
}
.nat-step-desc {
  font-size: 11px;
  color: var(--cinza);
  line-height: 1.45;
  text-align: center;
}

/* Outros serviços — cards menores */
/* ===== SOBRE ===== */
#sobre {
  background: var(--cream);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .sobre-grid {
    grid-template-columns: 1fr;
  }
}
.sobre-text p {
  font-size: 14px;
  color: var(--cinza);
  line-height: 1.75;
  margin-bottom: 16px;
  text-align: left;
}
.sobre-text p:last-child {
  margin-bottom: 0;
}
.sobre-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.badge-oa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--bordo);
  border-radius: 6px;
  padding: 7px 13px;
}
.badge-oa-flag {
  font-size: 15px;
}
.badge-oa-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.badge-oa-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--bordo);
}
.badge-oa-label {
  font-size: 9px;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sobre-card {
  background: var(--cinza-light);
  border-radius: 10px;
  padding: 0;
  border: 1px solid var(--cinza-med);
  text-align: center;
  position: sticky;
  top: 90px;
  overflow: hidden;
}
.sobre-card-photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.sobre-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}
.sobre-card-body {
  padding: 20px 24px 24px;
}
.sobre-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 4px;
}
.sobre-card-role {
  font-size: 11.5px;
  color: var(--cinza);
  margin-bottom: 16px;
}
/* ===== TESTEMUNHOS ===== */
#testemunhos {
  background: linear-gradient(135deg, var(--bordo-dark) 0%, var(--bordo) 100%);
}
#testemunhos .section-title {
  color: #fff;
}
#testemunhos .section-title-line {
  background: var(--dourado);
}
#testemunhos .section-title-line::after {
  background: var(--dourado);
}
#testemunhos .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}
/* ===== AGENDAMENTO ===== */
#agendamento {
  background: #fff;
}
.agend-intro {
  font-size: 14px;
  color: var(--cinza);
  margin-bottom: 30px;
  line-height: 1.6;
}
.agend-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .agend-steps {
    grid-template-columns: 1fr;
  }
}
.agend-step {
  background: var(--cinza-light);
  border-radius: 8px;
  padding: 22px 18px;
  border: 1px solid var(--cinza-med);
  text-align: center;
}
.agend-step-num {
  width: 36px;
  height: 36px;
  background: var(--bordo);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.agend-step h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 7px;
}
.agend-step p {
  font-size: 12px;
  color: var(--cinza);
  line-height: 1.55;
  margin: 0;
}
.agend-note {
  font-size: 11.5px;
  color: #aaa;
  margin-top: 12px;
}

/* ===== FAQ ===== */
#faq {
  background: var(--cinza-light);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--cinza-med);
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
}
.faq-btn i {
  color: var(--bordo);
  font-size: 18px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-btn.open i {
  transform: rotate(45deg);
}
.faq-body {
  display: none;
  padding: 0 20px 16px;
}
.faq-body.open {
  display: block;
}
.faq-body p {
  font-size: 13px;
  color: var(--cinza);
  line-height: 1.7;
  margin: 0;
}

/* ===== CONTACTO ===== */
#contacto {
  background: #fff;
}
#contacto .section-subtitle {
  max-width: none;
}
.contacto-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}
.office-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cinza-med);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  background: #fff;
  transition: box-shadow 0.25s;
}
.office-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}
.office-map {
  width: 100%;
  line-height: 0;
}
.office-map iframe {
  display: block;
  width: 100%;
}
.office-info {
  padding: 22px 24px;
}
.office-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cinza-med);
}
.office-title i {
  font-size: 16px;
  flex-shrink: 0;
}
.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
}
.office-detail i {
  font-size: 14px;
  color: var(--bordo);
  margin-top: 2px;
  flex-shrink: 0;
}
.office-detail span {
  font-size: 13px;
  color: var(--cinza);
  line-height: 1.5;
}
.office-detail a {
  color: var(--cinza);
  transition: color 0.2s;
}
.office-detail a:hover {
  color: var(--bordo);
}
/* Contact form */
.contact-form-wrap h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 18px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-control {
  width: 100%;
  border: 1px solid var(--cinza-med);
  border-radius: 5px;
  padding: 10px 13px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: var(--texto);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--bordo);
}
select.form-control {
  cursor: pointer;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.form-check input {
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--bordo);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.form-check label {
  font-size: 11.5px;
  color: var(--cinza);
  line-height: 1.5;
}
.form-check label a {
  color: var(--bordo);
}
.btn-submit {
  width: 100%;
  background: var(--bordo);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 13px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-submit:hover {
  background: var(--bordo-light);
}
/* RGPD accordeon */
.rgpd-wrap {
  margin-top: 40px;
  border: 1px solid var(--cinza-med);
  border-radius: 8px;
  overflow: hidden;
}
.rgpd-btn {
  width: 100%;
  background: var(--cinza-light);
  border: none;
  padding: 14px 20px;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cinza);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rgpd-btn i {
  transition: transform 0.25s;
}
.rgpd-btn.open i {
  transform: rotate(180deg);
}
.rgpd-body {
  display: none;
  padding: 18px 20px;
  font-size: 11.5px;
  color: var(--cinza);
  line-height: 1.7;
}
.rgpd-body.open {
  display: block;
}
.rgpd-body h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--texto);
  margin: 12px 0 5px;
}

/* ===== FECHO / CTA SECTION ===== */
#fecho {
  background: linear-gradient(135deg, var(--bordo-dark) 0%, var(--bordo) 100%);
  padding: 72px 0;
}
.fecho-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.fecho-text {
  flex: 1;
  min-width: 0;
}
.fecho-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 12px;
}
.fecho-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.fecho-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 32px;
}
.fecho-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--bordo-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.fecho-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bordo-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}
.fecho-selos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.fecho-selo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px 18px;
  backdrop-filter: blur(4px);
}
.fecho-selo-flag {
  font-size: 22px;
  flex-shrink: 0;
}
.fecho-selo-info {
  display: flex;
  flex-direction: column;
}
.fecho-selo-code {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.fecho-selo-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}
.fecho-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 2px 0;
}
@media (max-width: 768px) {
  .fecho-inner {
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }
  .fecho-selos {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ===== FOOTER ===== */
#footer {
  background: #0a0305;
  border-top: 2px solid var(--dourado);
  padding: 52px 0 24px;
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.footer-nav-title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-list a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-list a:hover {
  color: var(--dourado);
}
.footer-contact-col {
  display: flex;
  flex-direction: column;
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.footer-contact-list li i {
  color: var(--dourado);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-list a:hover {
  color: var(--dourado);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-logo-text .footer-logo-name {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.footer-logo-text .footer-logo-sub {
  color: var(--dourado);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}
.footer-social a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bordo);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.footer-social a i {
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}
.footer-social a:hover {
  color: #fff;
}
.footer-social a:hover::before {
  opacity: 1;
}
.footer-social a:hover i {
  animation: slideTop 0.5s ease;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}
.footer-copy a {
  color: rgba(255, 255, 255, 0.35);
}
.footer-copy a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== WHATSAPP FLOAT ===== */
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: var(--bordo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 9998;
  box-shadow: 0 4px 16px rgba(128, 0, 32, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.3s;
}
#whatsapp-float:hover {
  transform: scale(1.08);
  background: #9a0028;
  box-shadow: 0 6px 24px rgba(128, 0, 32, 0.5);
}

/* ===== BUTTON GOOGLE REVIEWS ===== */
/* ===== CALENDLY CONTAINER ===== */
.calendly-inline-widget {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

/* ===== PRIVACY POLICY MODAL ===== */
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.privacy-modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.privacy-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}
.privacy-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  z-index: 10001;
  transition: color 0.2s;
}
.privacy-modal-close:hover {
  color: #333;
}
.privacy-modal-body {
  padding: 40px;
  color: #444;
  line-height: 1.6;
  font-size: 14px;
}
.privacy-modal-body h2 {
  color: var(--bordo);
  font-size: 28px;
  margin-bottom: 20px;
  padding-top: 10px;
}
.privacy-modal-body h3 {
  color: var(--bordo);
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.privacy-modal-body p {
  margin-bottom: 14px;
}
.privacy-modal-body ul {
  margin-left: 20px;
  margin-bottom: 14px;
}
.privacy-modal-body li {
  margin-bottom: 8px;
}
.privacy-modal-body a {
  color: var(--bordo);
  text-decoration: none;
  border-bottom: 1px solid var(--dourado);
  transition: color 0.2s;
}
.privacy-modal-body a:hover {
  color: var(--dourado);
}

/* ===== CTA BUTTON STYLES ===== */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bordo);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--bordo);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  animation: ctaSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, box-shadow, background;
}

@keyframes ctaSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) translateY(-10px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(160, 0, 40, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: all 0.6s ease-out;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
  opacity: 1;
}

.cta-button:hover {
  background: #9a0028;
  border-color: #9a0028;
  box-shadow:
    0 8px 30px rgba(128, 0, 32, 0.45),
    0 0 60px rgba(128, 0, 32, 0.15);
  transform: translateY(-2px);
  color: #fff;
}

.cta-text {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.cta-arrow {
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  width: 18px;
  height: 18px;
}

.cta-button:hover .cta-arrow {
  transform: translateX(6px);
}

.cta-underline {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-button:hover .cta-underline {
  width: calc(100% - 56px);
}

.cta-button-header {
  font-size: 13px;
  padding: 10px 20px;
}
@media (max-width: 960px) {
  .cta-button-agendar {
    display: none !important;
  }
}

/* Mouse-move glow effect */
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }
  .section-inner {
    padding: 0 18px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .hero-text {
    padding: 36px 0;
  }
  .sobre-grid {
    grid-template-columns: 1fr;
  }
  .nat-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .sobre-grid {
    gap: 32px;
  }
  .faq-btn {
    padding: 14px 16px;
    font-size: 12.5px;
    gap: 12px;
  }
  .faq-body {
    padding: 0 16px 14px;
  }
  .faq-body p {
    font-size: 12.5px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    align-self: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-nav,
  .footer-contact-col {
    align-items: center;
    text-align: center;
  }
  .footer-nav-list {
    align-items: center;
  }
  .footer-contact-list li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .privacy-modal-body {
    padding: 32px 24px;
    font-size: 13px;
  }
  .privacy-modal-body h2 {
    font-size: 22px;
  }
  .privacy-modal-body h3 {
    font-size: 15px;
  }
}

/* ===== TESTIMONIALS SLIDER (21st.dev style) ===== */
.ts-slider {
  position: relative;
  margin-top: 30px;
}

.ts-slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.ts-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--bordo);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.ts-nav-btn:hover {
  background: var(--bordo);
  color: #fff;
  border-color: var(--bordo);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.2);
  transform: scale(1.1);
}
.ts-nav-btn:active {
  transform: scale(0.95);
}

.ts-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.ts-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.ts-slide {
  flex-shrink: 0;
  width: 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.ts-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 28px 22px 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.ts-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(128, 0, 32, 0.12);
  border-color: var(--bordo);
}

.ts-quote-icon {
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 50px;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--dourado);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.ts-badge {
  margin-bottom: 14px;
}
.ts-badge span {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--bordo);
  background: rgba(128, 0, 32, 0.07);
  padding: 4px 10px;
  border-radius: 4px;
}

.ts-text {
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 auto 0;
  padding-bottom: 18px;
  flex-grow: 1;
}

.ts-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.ts-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--bordo), var(--dourado));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.ts-name {
  font-weight: 600;
  font-size: 13px;
  color: #2c2c2c;
}

.ts-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.ts-stars {
  color: #f4b942;
  font-size: 12px;
  letter-spacing: 1px;
}

.ts-source {
  font-size: 10px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 3px;
}
.ts-source i {
  font-size: 10px;
}

.ts-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ts-dot.active {
  background: var(--bordo);
  width: 24px;
  border-radius: 4px;
}
.ts-dot:hover:not(.active) {
  background: var(--dourado);
  transform: scale(1.2);
}

@media (max-width: 991px) {
  .ts-slide {
    width: 50%;
  }
}
@media (max-width: 575px) {
  .ts-slide {
    width: 100%;
  }
  .ts-slider-nav {
    justify-content: center;
  }
  .ts-card {
    padding: 22px 18px 18px;
    min-height: 220px;
  }
}

/* ===== ÁREAS DE ATUAÇÃO — REDESENHO ===== */

/* Secondary services grouped layout */
.secondary-services {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.service-group {
  border-top: 1px solid var(--cinza-med);
  padding-top: 2rem;
}
.group-header {
  margin-bottom: 1.5rem;
}
.group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--bordo);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}
.group-desc {
  font-size: 13px;
  color: var(--cinza);
  margin: 0;
}
.service-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.service-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Service cards */
.service-card {
  background: #fff;
  border: 1px solid var(--cinza-med);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.service-card:hover {
  border-color: var(--bordo);
  box-shadow: 0 4px 16px rgba(128, 0, 32, 0.1);
}
.sc-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #f8f5f0 0%, #ede8df 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-icon {
  font-size: 36px;
}
.sc-image--icon {
  font-size: 48px;
  color: var(--bordo);
  background: linear-gradient(135deg, #f8f5f0 0%, #ede8df 100%);
}
.sc-image--aima {
  background: none;
  padding: 0;
}
.sc-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-image--photo {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.sc-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .sc-photo-img {
  transform: scale(1.05);
}
.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
}
.service-card.open .sc-header {
  border-bottom: 1px solid var(--cinza-med);
}
.sc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
  margin: 0;
  line-height: 1.3;
}
.sc-toggle {
  color: var(--bordo);
  font-size: 16px;
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 8px;
}
.service-card.open .sc-toggle {
  transform: rotate(180deg);
}
.sc-body {
  display: none;
  padding: 1rem;
}
.service-card.open .sc-body {
  display: block;
}
.sc-body p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--cinza);
  margin-bottom: 0.75rem;
  text-align: justify;
}
.sc-cta {
  display: inline-block;
  color: var(--bordo);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.sc-cta:hover {
  color: var(--bordo-light);
  border-bottom-color: var(--bordo-light);
}

/* Responsive: areas redesign */
@media (max-width: 900px) {
  .service-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .nat-steps {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nat-steps::after {
    display: none;
  }
  .nat-step {
    flex: 0 0 calc(50% - 5px);
    padding: 12px 10px;
    background: #fff;
    border: 1px solid var(--cinza-med);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  .nat-step-title {
    font-size: 13px;
  }
  .nat-step-desc {
    font-size: 11.5px;
  }
}
@media (max-width: 600px) {
  .service-grid-2,
  .service-grid-3 {
    grid-template-columns: 1fr;
  }
  .sc-image {
    height: 120px;
  }
  .sc-icon {
    font-size: 28px;
  }
  .secondary-services {
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  .nat-card-photo {
    flex: 0 0 240px;
  }
}

@media (max-width: 768px) {
  .nat-card-body--split {
    flex-direction: column;
  }
  .nat-card-photo {
    flex: none;
    width: 100%;
    border-radius: 0;
  }
  .nat-card-photo img {
    min-height: 240px;
    height: 240px;
    aspect-ratio: unset;
  }
  .nat-card-content {
    padding: 24px 20px;
  }
}
@media (max-width: 480px) {
  .nat-card-photo img {
    height: 200px;
    min-height: 200px;
  }
}
.nat-card-desc {
  font-size: 13.5px;
  color: var(--cinza);
  line-height: 1.72;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cinza-med);
}
.nat-footnote {
  font-size: 11px;
  color: #aaa;
  margin: 14px 0 0;
  line-height: 1.5;
}
/* Process steps — horizontal timeline */
.nat-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
  position: relative;
}
.nat-steps::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bordo) 20%, var(--bordo) 80%, transparent);
  opacity: 0.25;
  top: 17px;
  left: 10%;
  right: 10%;
  z-index: 0;
}
.nat-step {
  flex: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 6px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.nat-step-num {
  width: 34px;
  height: 34px;
  background: var(--bordo);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(128, 0, 32, 0.3);
  position: relative;
  z-index: 1;
}
.nat-step-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 5px;
  line-height: 1.25;
}
.nat-step-desc {
  font-size: 11px;
  color: var(--cinza);
  line-height: 1.45;
  text-align: center;
}

/* Outros serviços — cards menores */

/* ============================================================
   MOBILE FIXES — correções responsivas finais
   ============================================================ */

/* ── HEADER: evitar logo/botões cortados em ecrãs pequenos ── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .logo img {
    height: 30px;
  }
  .logo-name {
    font-size: 13px;
  }
  .logo-sub {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .header-right {
    gap: 8px;
  }
  /* Botão "MN Legal" compacto no header */
  .cta-button-header {
    padding: 8px 14px;
    font-size: 11.5px;
  }
  .cta-button-header .cta-text i {
    margin-right: 2px;
  }
  .lang-btn {
    padding: 4px 6px;
    font-size: 9.5px;
  }
}

/* Em ecrãs muito pequenos (phones), simplificar ainda mais */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 10px;
    gap: 6px;
  }
  .logo img {
    height: 26px;
  }
  .logo-name {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  /* Subtítulo mantém-se visível, mas muito pequeno */
  .logo-sub {
    display: block;
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .lang-btn {
    padding: 3px 5px;
    font-size: 9px;
  }
  .mobile-nav-toggle {
    font-size: 22px;
    padding: 2px;
  }
}

/* ── HERO: garantir respiração na secção principal ───────── */
@media (max-width: 768px) {
  .hero-content-wrap {
    padding: 90px 18px 40px;
    gap: 24px;
  }
  .hero-text {
    padding: 20px 0 0;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ── SECÇÃO AGENDAMENTO: blocos em coluna + botão largo ─── */
@media (max-width: 768px) {
  .agend-intro {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .agend-steps {
    gap: 14px;
  }
  .agend-step {
    padding: 18px 14px;
  }
  /* O botão "Agendar Consulta Agora" vai a toda a largura */
  #agendamento .cta-button {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
  .agend-note {
    font-size: 11px;
    padding: 0 4px;
    line-height: 1.5;
  }
}

/* ── NAT-CARD (Nacionalidade): passos em coluna legível ─── */
@media (max-width: 600px) {
  .nat-steps {
    flex-direction: column;
    gap: 12px;
  }
  .nat-step {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 14px 14px;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--cinza-med);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  .nat-step-num {
    margin: 0;
    width: 30px;
    height: 30px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .nat-step-title {
    text-align: left;
    margin-bottom: 3px;
    font-size: 13px;
  }
  .nat-step-desc {
    text-align: left;
    font-size: 12px;
  }
  .nat-card-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .nat-card-desc {
    font-size: 13px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
  .nat-card-header {
    padding: 18px 16px;
  }
  .nat-card-label {
    font-size: 10px;
  }
}

/* ── Evitar overflow horizontal em toda a página ─────────── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, iframe, video {
  max-width: 100%;
  height: auto;
}

/* ── TEXTO JUSTIFICADO EM MOBILE (leitura mais limpa) ─────── */
@media (max-width: 768px) {
  .hero-sub,
  .section-subtitle,
  .sobre-text p,
  .nat-card-desc,
  .nat-footnote,
  .sc-body p,
  .agend-intro,
  .agend-step p,
  .faq-body p,
  .office-detail,
  .pd-msg-bubble p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* ============================================================
   CORREÇÕES ADICIONAIS — Contacto e Nat-steps
   ============================================================ */

/* ── CONTACTO: escritórios empilhados em mobile ─────────── */
@media (max-width: 768px) {
  .contacto-offices {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .office-info {
    padding: 18px 18px;
  }
  .office-title {
    font-size: 13.5px;
    flex-wrap: wrap;
  }
  .office-detail {
    gap: 8px;
    margin-bottom: 8px;
  }
  .office-detail span,
  .office-detail a {
    font-size: 13px;
    word-break: break-word;
  }
  /* Emails e telefones NÃO devem ser hifenizados nem justificados */
  .office-detail,
  .office-detail span,
  .office-detail a {
    text-align: left !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }
}

/* ── NAT-STEP: número à esquerda, título+descrição empilhados à direita ── */
@media (max-width: 600px) {
  .nat-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding: 14px 16px;
  }
  .nat-step-num {
    grid-row: span 2;
    align-self: center;
  }
  .nat-step-title {
    grid-column: 2;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
  }
  .nat-step-desc {
    grid-column: 2;
    font-size: 12.5px;
    line-height: 1.45;
  }
}

/* Impedir hifenização em contactos, links e endereços em qualquer tamanho */
.office-detail,
.office-detail *,
a[href^="mailto:"],
a[href^="tel:"] {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ============================================================
   HEADER MOBILE — simplificar para evitar cramming
   ============================================================ */
@media (max-width: 768px) {
  /* Esconder "Agendar Consulta" no header (já está no menu hamburger) */
  .cta-button-header.cta-button-agendar {
    display: none !important;
  }
  /* MN Legal mais compacto */
  .cta-button-header {
    padding: 7px 12px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .header-right {
    gap: 6px;
  }
  .logo {
    gap: 8px;
    min-width: 0;
  }
  .logo img {
    height: 28px;
  }
  .logo-name {
    font-size: 12.5px;
  }
  .logo-sub {
    font-size: 7.5px;
  }
}

@media (max-width: 420px) {
  /* MN Legal fica apenas com ícone de cadeado */
  .cta-button-header .cta-text span,
  .cta-button-header .cta-text {
    font-size: 0 !important;
  }
  .cta-button-header .cta-text i {
    font-size: 13px;
    margin: 0;
  }
  .cta-button-header {
    padding: 7px 9px;
  }
  /* Subtítulo permanece visível (mais pequeno ainda) */
  .logo-sub {
    display: block !important;
    font-size: 6.5px;
    letter-spacing: 0.06em;
  }
  .logo-name {
    font-size: 11.5px;
  }
}

/* ============================================================
   CONTACTO — empilhar cards e limpar visual no mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Forçar cards em coluna única (alta especificidade) */
  #contacto .contacto-offices,
  .contacto-offices {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Mapa menos alto no mobile */
  #contacto .office-map iframe {
    height: 180px !important;
  }
  #contacto .office-info {
    padding: 16px 16px 14px;
  }
  #contacto .office-title {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  #contacto .office-title i {
    font-size: 15px;
  }
  #contacto .office-detail {
    margin-bottom: 8px;
    gap: 10px;
    align-items: flex-start;
  }
  #contacto .office-detail i {
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
  }
  #contacto .office-detail span,
  #contacto .office-detail a {
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}
