/* ============================================================
   JOFAZ & AC CABEIA ? Design System Profissional
   Azul · Branco · Prata · Confiança Internacional
   ============================================================ */
:root {
  --navy: #07111f;
  --navy-2: #0c1f38;
  --blue: #164a8a;
  --blue-mid: #1e5fad;
  --blue-light: #3a7ec4;
  --blue-soft: #eaf1f9;
  --silver: #c8d0db;
  --silver-2: #9aa8b8;
  --silver-light: #eef2f6;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --text: #152033;
  --text-muted: #5c6b7e;
  --success: #0b6b45;
  --warning: #9a7209;
  --danger: #a31818;
  --gold: #c5a059;
  --gold-light: #d4b87a;
  --gold-dark: #a6853f;
  --radius: 2px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow: 0 2px 16px rgba(7, 17, 31, 0.06);
  --shadow-md: 0 8px 32px rgba(7, 17, 31, 0.1);
  --shadow-lg: 0 20px 56px rgba(7, 17, 31, 0.14);
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --header-h: 88px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --space: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --bg-page: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f5f7fa;
  --bg-header: rgba(249, 249, 249, 0.92);
  --bg-header-solid: rgba(249, 249, 249, 0.97);
  --border-soft: #e4e9ef;
  --input-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.35vw + 15px, 16.5px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.nav-open,
body.dash-open {
  overflow: hidden;
  touch-action: none;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  background: transparent;
}
.container-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  background: transparent;
}
.page-hero .container,
.hero .container,
.cta-banner .container,
.section-dark .container,
.site-footer .container {
  background: transparent;
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 540px;
  font-weight: 400;
  line-height: 1.75;
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--blue-mid);
  transform: translateY(-50%);
}
.section-header.center .section-label {
  padding-left: 0;
}
.section-header.center .section-label::before { display: none; }
.section-header.center .section-label::after {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--blue-mid);
  margin: 10px auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22, 74, 138, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--silver);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-silver {
  background: linear-gradient(165deg, #f2f5f8 0%, #d5dde7 100%);
  color: var(--navy);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-silver:hover {
  background: linear-gradient(165deg, #e8edf3 0%, #c5cfdc 100%);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #1fad57;
  color: #fff;
  border-color: #1fad57;
}
.btn-whatsapp:hover { background: #189648; color: #fff; border-color: #189648; }
.btn-sm { padding: 9px 18px; font-size: 0.84rem; }
.btn-lg { padding: 16px 32px; font-size: 0.98rem; }
.btn-block { width: 100%; }
.btn-danger {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}
.btn-danger:hover {
  background: #912018;
  color: #fff;
  border-color: #912018;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.inline-form { display: inline; margin: 0; }
.table tr.row-active td {
  background: rgba(184, 149, 74, 0.08);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.btn-group-hero .btn-link-soft {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 8px;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.btn-group-hero .btn-link-soft:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-success { background: #e6f5ee; color: var(--success); }
.badge-warning { background: #fbf3dc; color: #7a5a08; }
.badge-info { background: var(--blue-soft); color: var(--blue); }
.badge-danger { background: #fdeaea; color: var(--danger); }
.badge-muted { background: var(--silver-light); color: var(--text-muted); }
.badge-gold { background: #f8f3e6; color: var(--gold); }

/* Alerts */
.alert {
  padding: 15px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border-left: 3px solid;
  font-size: 0.95rem;
}
.alert-success { background: #f0faf5; border-color: var(--success); color: #064e34; }
.alert-error, .alert-danger { background: #fdf4f4; border-color: var(--danger); color: #7f1212; }
.alert-info { background: var(--blue-soft); border-color: var(--blue); color: var(--navy-2); }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #6b4f06; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 7px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #d5dde6;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:hover { border-color: var(--silver-2); }
.form-control:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(30, 95, 173, 0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 31, 68, 0.06);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled,
.site-header.solid {
  background: var(--bg-header-solid);
  box-shadow: 0 8px 32px rgba(10, 31, 68, 0.08);
  border-bottom-color: rgba(10, 31, 68, 0.08);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.15;
}
.logo-img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent !important;
}
.logo-img-sm {
  height: 52px;
  max-width: 150px;
}
.logo-img-lg {
  height: 80px;
  max-width: 240px;
}
.logo-img-hero {
  height: 120px;
  width: auto;
  max-width: min(320px, 80vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.35));
}
.site-header .logo-img {
  height: 72px;
  max-width: 210px;
  /* misturar fundo off-white do PNG com o header claro */
  mix-blend-mode: multiply;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1.5px solid rgba(197, 160, 89, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.logo-tag {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-main a {
  color: rgba(10, 31, 68, 0.72);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--navy);
  background: rgba(10, 31, 68, 0.05);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .btn-outline {
  color: var(--navy);
  border-color: rgba(10, 31, 68, 0.2);
}
.site-header .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(10, 31, 68, 0.18);
  color: var(--navy);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  line-height: 1;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1002;
  transition: background var(--transition), border-color var(--transition);
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: rgba(10, 31, 68, 0.05);
  border-color: rgba(10, 31, 68, 0.28);
}
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-mobile-actions {
  display: none;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}
.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7,17,31,0.97) 0%, rgba(12,31,56,0.88) 42%, rgba(22,74,138,0.55) 100%),
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(58,126,196,0.25) 0%, transparent 55%),
    linear-gradient(180deg, #0c1f38 0%, #07111f 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero-atmosphere {
  position: absolute;
  width: 55%;
  height: 100%;
  right: 0;
  top: 0;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(200,208,219,0.08) 0%, transparent 50%),
    linear-gradient(180deg, transparent 60%, rgba(7,17,31,0.4) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 72px 0 100px;
}
.hero-brand {
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
}
.hero-brand-logo {
  height: 128px;
  width: auto;
  max-width: min(340px, 88vw);
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeUp 0.9s 0.12s ease both;
  letter-spacing: 0.04em;
  font-weight: 600;
  max-width: 16ch;
}
.hero .lead {
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  font-size: 1.15rem;
  animation: fadeUp 0.9s 0.22s ease both;
  max-width: 480px;
}
.hero .btn-group,
.hero .btn-group-hero {
  animation: fadeUp 0.9s 0.32s ease both;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* Trust strip (below hero) */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--silver-light);
  padding: 28px 0;
  position: relative;
  z-index: 4;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  align-items: center;
}
.trust-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item span {
  color: var(--blue);
  font-weight: 700;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}
.section-alt {
  background: var(--off-white);
}
.section-dark {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,95,173,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-header {
  margin-bottom: 52px;
  max-width: 620px;
}
.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--silver-light);
  border: 1px solid var(--silver-light);
  margin-top: -1px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
}
.stat-card {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--blue-soft); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Service cards ? interactive containers */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e4e9ef;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--silver));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
  color: inherit;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  font-weight: 600;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.65;
}
.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--silver-light);
  padding-top: 16px;
  margin-top: auto;
  letter-spacing: 0.02em;
}
.service-price {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(160deg, rgba(7,17,31,0.2) 0%, rgba(7,17,31,0.75) 100%),
    linear-gradient(145deg, var(--navy-2) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 44px;
}
.about-visual.has-image {
  background: #07111f;
}
.about-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-visual.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,17,31,0.15) 0%, rgba(7,17,31,0.72) 100%);
  z-index: 1;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.02) 40px,
      rgba(255,255,255,0.02) 41px
    );
  z-index: 1;
}
.about-visual.has-image::before {
  opacity: 0.35;
}
.about-visual-text {
  position: relative;
  z-index: 2;
  color: white;
}
.about-visual-text h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.about-visual-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 280px;
}
.mvv-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .mvv-grid-3 { grid-template-columns: 1fr; }
}
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}
.mvv-item {
  padding: 20px 22px;
  background: var(--white);
  border-left: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.section-alt .mvv-item { background: var(--white); }
.mvv-item h4 {
  color: var(--blue);
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.mvv-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  padding: 36px 30px;
  border: 1px solid #e4e9ef;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial::before {
  content: '?';
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--blue-soft);
  position: absolute;
  top: 8px;
  left: 18px;
  line-height: 1;
  font-weight: 600;
}
.testimonial-text {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  color: var(--text);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.7;
}
.testimonial-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.testimonial-company {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stars {
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 3px;
  font-size: 0.85rem;
}

/* Provinces */
.provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}
.province-item {
  padding: 16px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--silver);
  font-size: 0.88rem;
  text-align: center;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.province-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(58, 126, 196, 0.5);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid #e4e9ef;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-card-link { text-decoration: none; color: inherit; }
.blog-card-media {
  display: block;
  position: relative;
  height: 188px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--blue) 100%);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}
.blog-card-img,
.blog-card-img-fallback {
  height: 100%;
  min-height: 168px;
  background:
    linear-gradient(135deg, var(--navy-2) 0%, var(--blue) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
}
.blog-card-img::after,
.blog-card-img-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.02) 20px,
    rgba(255,255,255,0.02) 21px
  );
}
.blog-card-body { padding: 26px; }
.blog-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}
.blog-date { font-size: 0.78rem; color: var(--silver-2); letter-spacing: 0.04em; }

.blog-card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.blog-article { max-width: 860px; }
.blog-featured-image {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid #e4e9ef;
}
.blog-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.blog-video {
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  background: #000;
  border: 1px solid #e4e9ef;
  overflow: hidden;
}
.blog-video video {
  width: 100%;
  max-height: 480px;
  display: block;
  background: #000;
}
.blog-video-embed {
  padding-top: 56.25%;
  height: 0;
}
.blog-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.blog-video-link { margin-bottom: 24px; }
.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}
.blog-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.media-preview { display: grid; gap: 10px; }
.media-preview-img {
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid #e4e9ef;
}
.media-preview-video {
  width: 100%;
  max-height: 200px;
  background: #000;
}
@media (max-width: 768px) {
  .blog-related { grid-template-columns: 1fr; }
  .blog-featured-image img,
  .blog-video video { max-height: 260px; }
}

/* CTA */
.cta-banner {
  background: linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 45%, var(--blue) 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: rgba(200, 208, 219, 0.06);
  border-radius: 50%;
}
.cta-banner h2 { color: white; margin-bottom: 14px; position: relative; }
.cta-banner p {
  color: rgba(255,255,255,0.68);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--silver-2);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo { margin-bottom: 4px; }
.footer-brand .logo-name { font-size: 1.35rem; }
.footer-brand p {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 300px;
  color: rgba(200, 208, 219, 0.7);
}
.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(200, 208, 219, 0.7);
  padding: 6px 0;
  font-size: 0.92rem;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.84rem;
  color: rgba(200, 208, 219, 0.5);
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--silver);
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #1fad57;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(31, 173, 87, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.06) translateY(-2px);
  color: white;
  box-shadow: 0 10px 32px rgba(31, 173, 87, 0.45);
}

/* Chat */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 360px;
  max-height: 480px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e9ef;
}
.chat-widget.open { display: flex; animation: fadeUp 0.35s ease; }
.chat-header {
  background: var(--navy);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
}
.chat-close:hover { color: white; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  min-height: 260px;
  max-height: 300px;
  background: var(--off-white);
}
.chat-msg {
  margin-bottom: 12px;
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: white;
  border: 1px solid #e4e9ef;
  border-bottom-left-radius: 2px;
}
.chat-msg.user {
  background: var(--blue);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}
.chat-input-area {
  display: flex;
  border-top: 1px solid var(--silver-light);
  padding: 12px;
  gap: 8px;
  background: white;
}
.chat-input-area input {
  flex: 1;
  border: 1.5px solid #d5dde6;
  border-radius: 24px;
  padding: 10px 16px;
  outline: none;
}
.chat-input-area input:focus { border-color: var(--blue-mid); }
.chat-input-area button {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background var(--transition);
}
.chat-input-area button:hover { background: var(--navy); }
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 96px;
  z-index: 999;
  background: var(--navy);
  color: white;
  border: none;
  padding: 13px 20px;
  border-radius: 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.chat-toggle:hover { background: var(--blue); transform: translateY(-2px); }

/* Page hero */
.page-hero {
  background:
    linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  padding: calc(var(--header-h) + 56px) 0 64px;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.68); max-width: 540px; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 18px;
  color: var(--silver-2);
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--silver); }
.breadcrumb a:hover { color: white; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(7, 17, 31, 0.15);
  border-radius: 4px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  padding: 13px 14px;
  background: var(--off-white);
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--silver-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--silver-light);
  vertical-align: middle;
}
.table tr:hover td { background: rgba(234, 241, 249, 0.45); }

/* Panels */
.panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #e4e9ef;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--silver-light);
}
.panel-header h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Progress */
.progress-bar {
  height: 6px;
  background: var(--silver-light);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  background: var(--silver-light);
}
.timeline-item {
  position: relative;
  padding-bottom: 26px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--blue-soft);
}
.timeline-item h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 700;
}
.timeline-item p { font-size: 0.88rem; color: var(--text-muted); }
.timeline-item time { font-size: 0.76rem; color: var(--silver-2); }

/* Auth */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #f3f5f8;
}
.auth-side {
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(197, 160, 89, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(58, 126, 196, 0.2) 0%, transparent 50%),
    linear-gradient(155deg, #07111f 0%, #0c1f38 48%, #164a8a 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-side-inner { position: relative; z-index: 1; max-width: 440px; }
.auth-brand {
  margin-bottom: 40px;
}
.auth-brand-mark {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(197, 160, 89, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.auth-brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.2;
}
.auth-brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 8px;
  font-weight: 600;
}
.auth-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}
.auth-side h1 {
  color: white;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.auth-side > .auth-side-inner > p,
.auth-lead {
  color: rgba(255,255,255,0.68);
  max-width: 380px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.auth-features {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}
.auth-features .feat-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 1px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
}
.auth-form {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 44px 40px;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(7, 17, 31, 0.08);
  border: 1px solid #e4e9ef;
  position: relative;
}
.auth-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 0 0 2px 2px;
}
.auth-form-top {
  text-align: center;
  margin-bottom: 28px;
}
.auth-form-top .auth-mobile-brand {
  display: none;
  margin-bottom: 20px;
}
.auth-form h2 {
  margin-bottom: 8px;
  font-size: 1.75rem;
  text-align: center;
}
.auth-form .subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
  text-align: center;
}
.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-group label {
  font-size: 0.84rem;
  margin-bottom: 8px;
}
.auth-form .form-control {
  padding: 14px 16px;
  border-radius: 6px;
  background: #fafbfc;
}
.auth-form .form-control:focus {
  background: #fff;
}
.auth-password-wrap {
  position: relative;
}
.auth-password-wrap .form-control {
  padding-right: 48px;
}
.auth-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 8px;
}
.auth-toggle-pass:hover { color: var(--blue); }
.auth-form .btn-block {
  margin-top: 8px;
  padding: 15px 28px;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}
.auth-links {
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--silver-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.auth-links a {
  color: var(--blue);
  font-weight: 600;
}
.auth-links a:hover { color: var(--navy); }
.auth-demo {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--navy-2);
  text-align: center;
  line-height: 1.5;
}
.auth-demo strong { font-weight: 700; }
.auth-back {
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.auth-back:hover { color: var(--navy); }
.auth-admin .auth-form::before {
  background: linear-gradient(90deg, var(--gold), var(--navy));
}
.auth-admin .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
}
.auth-admin .btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form-top .auth-mobile-brand { display: block; }
  .auth-form-wrap { padding: 72px 24px 48px; min-height: 100vh; }
  .auth-form { padding: 36px 28px; }
}

/* Dashboard */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: #f3f5f8;
}
.dash-sidebar {
  width: 252px;
  background: var(--navy);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.dash-sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.dash-sidebar-close {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.dash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dash-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.dash-topbar .sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(10, 31, 68, 0.18);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.dash-topbar .sidebar-toggle .menu-toggle-bar {
  background: var(--navy);
}
.dash-search {
  margin: 0;
  flex: 1;
  max-width: 420px;
}
.dash-search .form-control {
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
}
.dash-topbar-left {
  flex: 1;
  min-width: 0;
  gap: 12px;
}
.dash-user-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-sidebar-brand .logo {
  justify-content: center;
}
.dash-sidebar-brand .logo-img {
  height: 64px;
  max-width: 180px;
  filter: none;
}
.dash-nav { padding: 16px 10px; flex: 1; }
.dash-nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  padding: 18px 14px 8px;
  font-weight: 700;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: rgba(255,255,255,0.65);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all var(--transition);
}
.dash-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.dash-nav a.active {
  background: var(--blue);
  color: white;
}
.dash-nav .nav-icon {
  width: 18px;
  text-align: center;
  opacity: 0.75;
  font-size: 0.85rem;
}
.dash-main {
  flex: 1;
  margin-left: 252px;
  min-height: 100vh;
}
.dash-topbar {
  background: white;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid #e4e9ef;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash-content { padding: 32px; }
.dash-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.dash-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 30px;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid #e4e9ef;
  transition: box-shadow var(--transition), transform var(--transition);
}
.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.metric-value.blue { color: var(--blue); }
.metric-value.green { color: var(--success); }
.metric-trend {
  font-size: 0.78rem;
  margin-top: 10px;
  color: var(--text-muted);
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.empty-state {
  text-align: center;
  padding: 52px 24px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 2.2rem; margin-bottom: 12px; opacity: 0.3; }

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search-bar input { flex: 1; max-width: 400px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-chip {
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  background: white;
  border: 1px solid #d5dde6;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* Calculator */
.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.calc-tab {
  padding: 11px 22px;
  border: 1.5px solid #d5dde6;
  background: white;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.calc-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.calc-result {
  background: var(--navy);
  color: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
}
.calc-result h3 { color: white; margin-bottom: 16px; }
.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.02rem;
}
.calc-result-row.total {
  border: none;
  font-weight: 700;
  font-size: 1.25rem;
  padding-top: 16px;
  color: var(--silver);
}

/* Flash top bar for public pages */
.flash-wrap {
  position: relative;
  z-index: 50;
  padding-top: calc(var(--header-h) + 12px);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card,
.area-card,
.office-card,
.partner-card,
.metric-card,
.stat-card,
.testimonial,
.blog-card,
.org-unit {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .area-card-link:hover,
  .office-card:hover,
  .blog-card:hover,
  .partner-card:hover {
    transform: translateY(-5px);
  }
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Responsive */
@media (max-width: 1200px) {
  .nav-main a { padding: 8px 7px; font-size: 0.78rem; }
  .site-header .logo-img { height: 64px; max-width: 180px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid,
  .grid-2-1 { grid-template-columns: 1fr; }
  .testimonials-grid,
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .hero h1 { max-width: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-content { padding: 24px 18px; }
  .dash-topbar { padding: 0 16px; gap: 12px; }
  .flex-between {
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-actions { display: none; }
  .nav-main {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #fafbfc;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 12px) 18px calc(24px + var(--safe-bottom));
    gap: 4px;
    border-left: 1px solid rgba(10, 31, 68, 0.08);
    box-shadow: -16px 0 48px rgba(7, 17, 31, 0.14);
    transform: translateX(104%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-main.open { transform: translateX(0); }
  .nav-main a {
    padding: 14px 16px;
    width: 100%;
    font-size: 1rem;
    color: var(--navy);
    border-radius: var(--radius-md);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-mobile-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(10, 31, 68, 0.08);
  }
  .logo-tag { display: none; }
  .site-header .logo-img { height: 52px; max-width: 150px; }
  .header-inner { gap: 12px; }

  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    width: min(280px, 86vw);
    z-index: 110;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .dash-topbar .sidebar-toggle { display: inline-flex; }
  .dash-sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .hero-brand-logo { height: 88px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonials-grid,
  .blog-grid,
  .grid-2,
  .grid-3,
  .form-row,
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .dash-content { padding: 18px 14px calc(24px + var(--safe-bottom)); }
  .chat-widget {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: calc(76px + var(--safe-bottom));
    max-height: min(70vh, 520px);
  }
  .chat-toggle {
    right: 76px;
    bottom: calc(22px + var(--safe-bottom));
    padding: 11px 14px;
    font-size: 0.78rem;
  }
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: calc(22px + var(--safe-bottom));
    right: 16px;
  }
  .hero .btn-group-hero { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; min-height: 48px; }
  .hero-content { padding: clamp(36px, 8vw, 56px) 0 72px; }
  .hero { min-height: auto; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .section { padding: var(--section-y) 0; }
  .trust-strip-inner {
    gap: 10px 20px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .trust-item { flex: 0 0 auto; white-space: nowrap; }
  .page-hero { padding: calc(var(--header-h) + 36px) 0 40px; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filter-chip { flex: 0 0 auto; }
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar .btn { width: 100%; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1 1 auto; }
  .table { font-size: 0.88rem; }
  .table th, .table td { padding: 10px 12px; white-space: nowrap; }
  .table-actions { flex-wrap: nowrap; }
  .panel { padding: 18px 14px; }
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .org-units-5,
  .org-units-3,
  .org-units-2,
  .offices-grid,
  .areas-grid,
  .partners-grid,
  .team-structure-grid { grid-template-columns: 1fr; }
  .dash-search { display: none; }
  .dash-title { font-size: 1.4rem; }
  .metric-card { min-width: 0; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .nav-main { width: min(100vw, 100%); }
  .dash-user-name { max-width: 110px; }
  .badge { font-size: 0.68rem; }
  .site-header .logo-img { height: 46px; max-width: 130px; }
}

@media (max-width: 1024px) {
  .org-units-5 { grid-template-columns: repeat(2, 1fr); }
  .org-units-3 { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: 1fr 1fr; }
  .team-structure-grid,
  .partners-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .org-units-2,
  .org-units-3,
  .org-units-5,
  .areas-grid,
  .offices-grid,
  .team-structure-grid,
  .partners-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ?? Organograma ?? */
.org-chart {
  max-width: 980px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-level {
  width: 100%;
  text-align: center;
}
.org-level-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.org-units {
  display: grid;
  gap: 16px;
  justify-content: center;
}
.org-units-2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.org-units-3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.org-units-5 { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.org-unit {
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-top: 3px solid var(--navy);
  padding: 22px 18px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.org-unit-top {
  border-top-color: var(--gold);
  background: linear-gradient(180deg, #f8f6f1 0%, #fff 100%);
}
.org-unit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(7, 17, 31, 0.08);
}
.org-unit h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.25;
}
.org-unit p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.org-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold), var(--navy));
  margin: 8px auto;
  opacity: 0.55;
}

/* ?? Áreas de serviço ?? */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.area-card {
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  padding: 26px 22px;
  border-left: 3px solid var(--gold);
}
.section-alt .area-card { background: #fff; }
.area-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 10px;
}
.area-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
a.area-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.area-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(7, 17, 31, 0.1);
}

/* ?? Escritórios ?? */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.offices-grid-home { margin-top: 24px; }
.office-card {
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  padding: 28px 24px;
}
.office-card-featured {
  border-color: rgba(184, 149, 74, 0.45);
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
}
.office-card-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.office-card-dark h3 { color: #fff; }
.office-card-dark p { color: rgba(255, 255, 255, 0.65); }
.office-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.office-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.office-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.office-meta {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(7, 17, 31, 0.08);
  padding-top: 16px;
}
.office-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.office-meta strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.office-meta span,
.office-meta a {
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
}

/* ?? Equipa / Parceiros ?? */
.team-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.team-structure-card {
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  padding: 26px 22px;
}
.team-structure-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 14px;
}
.team-structure-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-structure-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(7, 17, 31, 0.06);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.team-structure-card li:last-child { border-bottom: 0; }
.team-card .service-icon {
  font-family: var(--font-display);
  font-weight: 700;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.partner-card {
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  padding: 28px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  transition: border-color 0.2s ease;
}
.partner-card a {
  color: inherit;
  text-decoration: none;
}
.partner-card:hover {
  border-color: rgba(184, 149, 74, 0.5);
}

@media (max-width: 1024px) {
  .org-units-5 { grid-template-columns: repeat(2, 1fr); }
  .org-units-3 { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: 1fr 1fr; }
  .team-structure-grid,
  .partners-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .org-units-2,
  .org-units-3,
  .org-units-5,
  .areas-grid,
  .offices-grid,
  .team-structure-grid,
  .partners-grid { grid-template-columns: 1fr; }
}

/* ========== Theme toggle + dark mode ========== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 31, 68, 0.16);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.2s ease;
}
.theme-toggle:hover {
  background: rgba(10, 31, 68, 0.05);
  border-color: rgba(10, 31, 68, 0.28);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle-icon { font-size: 1.05rem; line-height: 1; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle {
  color: var(--text);
  border-color: rgba(232, 238, 246, 0.18);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 238, 246, 0.28);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0a101a;
  --bg-elevated: #121a28;
  --bg-muted: #0e1522;
  --bg-header: rgba(10, 16, 26, 0.94);
  --bg-header-solid: rgba(10, 16, 26, 0.98);
  --text: #e7eef7;
  --text-muted: #9aabbd;
  --border-soft: rgba(232, 238, 246, 0.12);
  --input-bg: #161f30;
  --off-white: #0e1522;
  --silver-light: #1a2435;
  --blue-soft: #1a2740;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body { background: var(--bg-page); color: var(--text); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--text); }
[data-theme="dark"] a { color: var(--blue-light); }
[data-theme="dark"] a:hover { color: var(--gold-light); }

[data-theme="dark"] .site-header {
  border-bottom-color: var(--border-soft);
}
[data-theme="dark"] .site-header.scrolled,
[data-theme="dark"] .site-header.solid {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom-color: var(--border-soft);
}
[data-theme="dark"] .nav-main a,
[data-theme="dark"] .logo-name { color: var(--text); }
[data-theme="dark"] .nav-main a:hover,
[data-theme="dark"] .nav-main a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .menu-toggle {
  border-color: rgba(232, 238, 246, 0.2);
  color: var(--text);
}
[data-theme="dark"] .menu-toggle-bar { background: var(--text); }
[data-theme="dark"] .site-header .logo-img {
  mix-blend-mode: normal;
  filter: brightness(1.2) contrast(1.05);
}
[data-theme="dark"] .site-header .btn-outline {
  color: var(--text);
  border-color: rgba(232, 238, 246, 0.25);
}
[data-theme="dark"] .nav-main {
  background: #101826;
  border-left-color: var(--border-soft);
}
[data-theme="dark"] .nav-mobile-actions {
  border-top-color: var(--border-soft);
}

[data-theme="dark"] .section-alt { background: var(--bg-muted); }
[data-theme="dark"] .panel,
[data-theme="dark"] .service-card,
[data-theme="dark"] .area-card,
[data-theme="dark"] .office-card,
[data-theme="dark"] .partner-card,
[data-theme="dark"] .team-structure-card,
[data-theme="dark"] .org-unit,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .mvv-item,
[data-theme="dark"] .auth-form {
  background: var(--bg-elevated);
  border-color: var(--border-soft);
  color: var(--text);
}
[data-theme="dark"] .section-alt .area-card,
[data-theme="dark"] .section-alt .mvv-item { background: var(--bg-elevated); }
[data-theme="dark"] .service-card p,
[data-theme="dark"] .area-card p,
[data-theme="dark"] .office-card > p,
[data-theme="dark"] .org-unit p,
[data-theme="dark"] .blog-card p,
[data-theme="dark"] .lead,
[data-theme="dark"] .text-muted { color: var(--text-muted); }

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--input-bg);
  border-color: var(--border-soft);
  color: var(--text);
}
[data-theme="dark"] .form-control::placeholder { color: rgba(154, 171, 189, 0.7); }
[data-theme="dark"] .table { color: var(--text); }
[data-theme="dark"] .table th {
  background: var(--bg-muted);
  color: var(--text-muted);
  border-color: var(--border-soft);
}
[data-theme="dark"] .table td { border-color: var(--border-soft); }
[data-theme="dark"] .table tr.row-active td { background: rgba(197, 160, 89, 0.12); }
[data-theme="dark"] .btn-outline-dark {
  color: var(--text);
  border-color: rgba(232, 238, 246, 0.28);
}
[data-theme="dark"] .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(232, 238, 246, 0.4);
}
[data-theme="dark"] .filter-chip {
  background: var(--bg-elevated);
  border-color: var(--border-soft);
  color: var(--text-muted);
}
[data-theme="dark"] .filter-chip.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
[data-theme="dark"] .dash-layout { background: var(--bg-page); }
[data-theme="dark"] .dash-topbar {
  background: var(--bg-elevated);
  border-bottom-color: var(--border-soft);
}
[data-theme="dark"] .dash-title { color: var(--text); }
[data-theme="dark"] .trust-strip { background: var(--bg-muted); border-color: var(--border-soft); }
[data-theme="dark"] .blog-card-media,
[data-theme="dark"] .blog-featured-image,
[data-theme="dark"] .blog-video { border-color: var(--border-soft); }
[data-theme="dark"] .chat-widget {
  background: var(--bg-elevated);
  border-color: var(--border-soft);
}
[data-theme="dark"] .alert-success { background: #0f2a1f; border-color: #1d6b48; color: #b7f0d4; }
[data-theme="dark"] .alert-error,
[data-theme="dark"] .alert-danger { background: #2a1212; border-color: #8a2a2a; color: #f5c2c2; }
[data-theme="dark"] .alert-info { background: #132338; border-color: #2a5f9a; color: #c5dbf5; }
[data-theme="dark"] .page-hero h1 { color: #fff; }
[data-theme="dark"] .hero h1 { color: #fff; }
[data-theme="dark"] .office-card-dark { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .auth-page { background: var(--bg-page); }
[data-theme="dark"] .auth-form-wrap { background: var(--bg-page); }

.theme-toggle-label {
  margin-left: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-mobile-actions .theme-toggle {
  width: 100%;
  height: auto;
  min-height: 48px;
  justify-content: flex-start;
  padding: 12px 16px;
  gap: 4px;
}
.theme-toggle-float {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

/* ?? Directório de contactos ?? */
.contacts-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.contacts-directory-email {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-dir-item {
  padding: 20px 18px 18px;
  border: 1px solid #d5dde8;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(7, 17, 31, 0.04);
  min-height: 110px;
}
.contact-dir-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c6b7e;
  margin-bottom: 8px;
}
.contact-dir-value {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: #07111f !important;
  text-decoration: none;
  word-break: break-word;
  line-height: 1.35;
}
.contact-dir-value:hover {
  color: #164a8a !important;
  text-decoration: underline;
}
.contact-dir-note {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #5c6b7e;
  line-height: 1.4;
}
.section-alt .contact-dir-item {
  background: #fff;
}
@media (max-width: 900px) {
  .contacts-directory,
  .contacts-directory-email { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .contacts-directory,
  .contacts-directory-email { grid-template-columns: 1fr; }
}
[data-theme="dark"] .contact-dir-item {
  background: var(--bg-elevated, #121a26);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
[data-theme="dark"] .contact-dir-label,
[data-theme="dark"] .contact-dir-note { color: #9aa8b8; }
[data-theme="dark"] .contact-dir-value { color: #f0f4f8 !important; }
[data-theme="dark"] .contact-dir-value:hover { color: #8eb6e8 !important; }

/* ?? Atendimento / tickets ?? */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.ticket-msg {
  padding: 12px 14px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #e4e9ef);
}
.ticket-msg-staff {
  background: var(--blue-soft, #e8f0fa);
  border-color: transparent;
}
.ticket-msg-client {
  background: var(--bg-elevated, #f7f8fa);
}
.ticket-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #6b7785);
  margin-bottom: 6px;
}
.ticket-msg-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text, #1a2332);
  word-break: break-word;
}
@media (max-width: 900px) {
  .metrics-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .metrics-row { grid-template-columns: 1fr; }
}
[data-theme="dark"] .ticket-msg-staff {
  background: rgba(60, 110, 180, 0.2);
}
[data-theme="dark"] .ticket-msg-client {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .ticket-msg-body { color: #e8eef6; }

/* —— Caixa alterar palavra-passe —— */
.password-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d5dde8;
  border-radius: 6px;
  background: var(--bg-elevated, #f7f8fa);
}
.password-box-title {
  font-size: 0.95rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.password-box .auth-password-wrap .form-control {
  background: #fff;
}
[data-theme="dark"] .password-box {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .password-box .auth-password-wrap .form-control {
  background: var(--bg-elevated, #121a26);
}
