/* ==========================================================================
   desproj — Engenharia Geotécnica & Mapeamento via Drone
   Sistema de Design Moderno (Paleta Geotécnica / Topográfica)
   ========================================================================== */

:root {
  /* Cores de Marca */
  --brand-primary: #b8520e;
  --brand-primary-dark: #943f08;
  --brand-primary-light: #f6e7dc;
  --brand-gold: #d99b26;

  /* Neutros Terrosos */
  --earth-950: #1a130e;
  --earth-900: #261c15;
  --earth-800: #3a2b20;
  --earth-700: #574335;
  --earth-600: #6e5a4b;
  --earth-400: #9b8a7c;
  --earth-200: #e5ddd5;
  --earth-100: #f3eee8;
  --bg-page: #faf8f5;
  --bg-white: #ffffff;

  /* Texto */
  --text-main: #231a14;
  --text-muted: #5c4f45;
  --text-inverse: #ffffff;

  /* Tipografia */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout & Raios */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(35, 26, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(35, 26, 20, 0.10);
  --shadow-lg: 0 20px 50px rgba(35, 26, 20, 0.16);
  --transition: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--earth-950);
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background-color: var(--bg-white);
  border-top: 1px solid var(--earth-200);
  border-bottom: 1px solid var(--earth-200);
}

.section--dark {
  background-color: var(--earth-900);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-inverse);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3.25rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background-color: var(--brand-primary);
  display: inline-block;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 82, 14, 0.28);
}

.btn--outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background-color: #ffffff;
  color: var(--earth-950);
  border-color: #ffffff;
}

.btn--outline {
  background-color: transparent;
  color: var(--earth-900);
  border-color: var(--earth-200);
}

.btn--outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(26, 19, 14, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  flex-shrink: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand__tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--brand-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch button.active {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section (Home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4.5rem;
  color: #ffffff;
  background-color: var(--earth-950);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(26, 19, 14, 0.90) 0%,
    rgba(26, 19, 14, 0.74) 52%,
    rgba(26, 19, 14, 0.42) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(184, 82, 14, 0.28);
  border: 1px solid rgba(217, 155, 38, 0.45);
  color: #f9d79b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Credibility Strip */
.credibility-bar {
  background-color: var(--earth-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 1.75rem 0;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cred-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 2px solid var(--brand-primary);
  padding-left: 1rem;
}

.cred-item__num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.cred-item__label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   Page Header (Inner Pages)
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: var(--earth-900);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero .eyebrow {
  color: var(--brand-gold);
}

.page-hero .eyebrow::before {
  background-color: var(--brand-gold);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

/* ==========================================================================
   Services Grid & Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--earth-900);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(26, 19, 14, 0.82);
  backdrop-filter: blur(4px);
  color: #f9d79b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.service-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.service-card__body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.check-list li {
  display: block;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--earth-800);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: 800;
}

.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.service-card__link:hover {
  gap: 0.7rem;
  color: var(--brand-primary-dark);
}

/* Detailed Service Block (servicos.html) */
.service-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--earth-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail--reverse .service-detail__visual {
  order: -1;
}

.service-detail__content h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  margin-bottom: 1rem;
}

.service-detail__content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* YouTube Lite Embed */
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--earth-950);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.video-facade:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(184, 82, 14, 0.92);
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), background-color var(--transition);
}

.video-facade:hover .video-facade__play {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--brand-primary-dark);
}

.video-facade__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(to top, rgba(26, 19, 14, 0.9), transparent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Projects / Portfolio
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--earth-900);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.04);
}

.project-card__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  background-color: rgba(26, 19, 14, 0.82);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.badge--accent {
  background-color: var(--brand-primary);
}

.project-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.project-card__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--earth-100);
  margin-top: auto;
  font-size: 0.85rem;
}

.project-specs dt {
  color: var(--earth-400);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-specs dd {
  font-weight: 600;
  color: var(--earth-900);
}

/* Filter Bar (projetos.html) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--earth-200);
  background-color: var(--bg-white);
  color: var(--earth-800);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

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

/* Project Gallery Strip */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.gallery-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--earth-900);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover {
  border-color: var(--brand-primary);
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

/* Interactive 360 Panorama Viewer */
.pano-viewer {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  background-color: var(--earth-950);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 50% 50%;
  margin-top: 1rem;
}

.pano-viewer:active {
  cursor: grabbing;
}

.pano-viewer__hint {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(26, 19, 14, 0.82);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   About & Profile
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background-color: rgba(26, 19, 14, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-gold);
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.about-badge span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.partner-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.partner-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--earth-900);
  margin-bottom: 0.35rem;
}

.partner-card span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Metodologia inSID Components
   ========================================================================== */
.insid-highlight {
  background: linear-gradient(135deg, #241912 0%, #3a2415 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.insid-highlight h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-bottom: 1rem;
}

.insid-highlight p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 1.4rem;
}

.insid-pillars {
  display: grid;
  gap: 0.9rem;
}

.insid-pillar {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

.insid-pillar strong {
  display: block;
  color: #f9d79b;
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.insid-pillar span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform var(--transition), border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.step-card h3 {
  font-size: 1.12rem;
}

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

.step-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--earth-200);
  background-color: #ffffff;
  margin-top: auto;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.step-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.step-card__media--contain img {
  object-fit: contain;
  padding: 0.35rem;
}

.step-card__media:hover img {
  transform: scale(1.04);
}

.step-card__zoom {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(26, 19, 14, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
}

.insid-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.result-figure {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.result-figure__btn {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: none;
  background-color: #ffffff;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.result-figure__btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.result-figure__btn--cover img {
  object-fit: cover;
}

.result-figure__btn:hover img {
  transform: scale(1.03);
}

.result-figure figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--earth-100);
}

.result-figure figcaption strong {
  color: var(--earth-900);
  display: block;
  margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
  .insid-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Figuras Didáticas em Alta Legibilidade (inSID) */
.figure-showcase {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.figure-showcase__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background-color: #ffffff;
  cursor: zoom-in;
  position: relative;
}

.figure-showcase__btn img {
  width: 100%;
  height: auto;
  display: block;
}

.figure-showcase figcaption {
  padding: 1.25rem 1.75rem;
  background-color: var(--earth-100);
  border-top: 1px solid var(--earth-200);
  font-size: 0.94rem;
  color: var(--text-muted);
}

.figure-showcase figcaption strong {
  color: var(--earth-950);
}

.insid-flow-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.75rem;
  align-items: start;
}

.didactic-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.didactic-item {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
}

.didactic-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--earth-950);
  margin-bottom: 0.25rem;
}

.didactic-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 980px) {
  .insid-flow-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Artigos / Blog Técnico & Leitor Editorial
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--earth-900);
  cursor: pointer;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.04);
}

.article-card__body {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.article-card__meta span.muted {
  color: var(--earth-400);
  text-transform: none;
  font-weight: 500;
}

.article-card__body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  cursor: pointer;
}

.article-card__body h3:hover {
  color: var(--brand-primary);
}

.article-card__body p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.article-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--earth-100);
}

/* Modal Leitor de Artigo */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background-color: rgba(20, 14, 10, 0.84);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  overflow-y: auto;
}

.article-modal.open {
  display: flex;
}

.article-modal__panel {
  background-color: var(--bg-white);
  width: 100%;
  max-width: min(860px, calc(100vw - 2rem));
  box-sizing: border-box;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin: auto 0;
}

.article-modal__close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(26, 19, 14, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-modal__close:hover {
  background-color: var(--brand-primary);
}

.article-modal__hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  background-color: var(--earth-900);
}

.article-modal__content {
  padding: 2.25rem 2.75rem 2.75rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

.article-modal__content h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  margin: 0.5rem 0 1.25rem;
}

.article-modal__content h3 {
  font-size: 1.25rem;
  margin: 1.85rem 0 0.7rem;
  color: var(--earth-900);
}

.article-modal__content p {
  color: var(--earth-800);
  margin-bottom: 1.05rem;
  font-size: 1rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.article-modal__content ul {
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.article-modal__content li {
  display: block;
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--earth-800);
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-modal__content li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: 800;
}

.article-modal__figure {
  margin: 1.75rem 0;
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ffffff;
}

.article-modal__figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.article-modal__figure figcaption {
  padding: 0.85rem 1.15rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  background-color: var(--earth-100);
  border-top: 1px solid var(--earth-200);
}

/* Lista de Publicações Científicas */
.pubs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-item {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pub-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--earth-950);
  margin-bottom: 0.25rem;
}

.pub-item__meta {
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-modal__content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Artigos Profundos: Introdução + Expansão em Detalhe + Grelha Modo de Falha
   ========================================================================== */
.article-modal__header {
  background: linear-gradient(135deg, var(--earth-950) 0%, #382214 100%);
  color: #ffffff;
  padding: 2.5rem 4.5rem 2rem 2.75rem;
  border-bottom: 3px solid var(--brand-primary);
  box-sizing: border-box;
}

.article-modal__header h2 {
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  margin: 0.5rem 0 0;
  line-height: 1.25;
}

.article-modal__header .article-card__meta {
  color: var(--brand-gold);
  margin-bottom: 0.35rem;
}

.article-modal__header .article-card__meta span.muted {
  color: rgba(255, 255, 255, 0.72);
}

.article-intro-lead {
  background-color: var(--earth-100);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.article-intro-lead p:last-child {
  margin-bottom: 0;
}

.article-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  background-color: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}

.article-expand-toggle:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.article-deep-dive {
  display: none;
  animation: fadeInArt 0.3s ease;
}

.article-deep-dive.expanded {
  display: block;
}

@keyframes fadeInArt {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fm-section {
  background-color: var(--bg-page);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  margin: 1.65rem 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.fm-section h3 {
  margin-top: 0 !important;
  color: var(--earth-950);
  display: block;
  line-height: 1.35;
}

.fm-figures-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
  max-width: 100%;
}

.fm-figures-grid .article-modal__figure {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.fm-figures-grid .article-modal__figure img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background-color: #ffffff;
  padding: 0.35rem;
  box-sizing: border-box;
}

.fm-figures-grid .article-modal__figure img.cover-fit {
  object-fit: cover;
  padding: 0;
}

.fm-figures-grid .article-modal__figure figcaption {
  margin-top: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.alert-signals {
  background-color: #ffffff;
  border: 1px dashed var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.alert-signals strong {
  display: block;
  color: var(--brand-primary-dark);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

#articleModalRefs {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--earth-950);
  border: 1px solid var(--earth-200);
  margin: 1rem 0;
}

.article-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .article-modal {
    padding: 1rem 0.65rem;
  }
  .article-modal__panel {
    max-width: calc(100vw - 1.3rem);
  }
  .fm-figures-grid {
    grid-template-columns: 1fr;
  }
  .fm-section {
    padding: 1.15rem;
  }
  .article-intro-lead {
    padding: 1.15rem 1.25rem;
  }
  .article-modal__header {
    padding: 1.75rem 3.75rem 1.5rem 1.5rem;
  }
}

/* Mapa-Múndi de Atuação */
.world-map-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.world-map-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.world-map-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  background-color: var(--earth-100);
  border-top: 1px solid var(--earth-200);
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  border: 1px solid rgba(35, 26, 20, 0.15);
}

.legend-swatch--focus {
  background-color: #b8520e;
}

.legend-swatch--region {
  background-color: #e8b87d;
}

.legend-swatch--global {
  background-color: #dfd7ce;
}

.legend-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--earth-950);
}

.legend-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .world-map-legend {
    grid-template-columns: 1fr;
  }
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.tech-tag {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  color: var(--earth-900);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.quote-box {
  background-color: var(--earth-100);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.quote-box blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--earth-950);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.quote-box cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .insid-highlight,
  .steps-grid,
  .icp-grid {
    grid-template-columns: 1fr;
  }
  .insid-highlight {
    padding: 2.25rem;
  }
}

/* ICP / Para Quem Trabalhamos */
.icp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.icp-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.icp-card h3 {
  font-size: 1.08rem;
}

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

.icp-card__meta {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
}

@media (max-width: 980px) {
  .icp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .icp-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, var(--earth-900) 0%, #3d2412 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
}

.cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.info-card,
.form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--earth-900);
}

.contact-item span,
.contact-item a {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--brand-primary);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  color: var(--earth-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background-color: #ffffff;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.show {
  display: block;
}

.form-feedback--success {
  background-color: #edf7ed;
  color: #1e4620;
  border: 1px solid #c3e6cb;
}

.calendly-wrap {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--earth-200);
  height: 360px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--earth-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-btn:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 11, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox__close:hover {
  background-color: var(--brand-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .credibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .projects-grid,
  .service-detail,
  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-detail--reverse .service-detail__visual {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--earth-950);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  .partners-grid,
  .footer-grid,
  .credibility-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.75rem 0;
  }
}

@media (max-width: 480px) {
  .brand__tagline {
    display: none;
  }
}

/* Menu móvel/tablet: evita que o botão «Agendar Reunião» saia do ecrã entre 769px e 1100px */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--earth-950);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/* Respiro de navegação em portáteis (1101px–1260px) — CNV: Proxémia e Contenção */
@media (min-width: 1101px) and (max-width: 1260px) {
  .nav-links {
    gap: 0.1rem;
  }
  .nav-links a {
    padding: 0.45rem 0.55rem;
    font-size: 0.86rem;
  }
}

/* Bloco de Perguntas de Diagnóstico (Comunicação Não Autoritária) */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.diagnostic-card {
  background-color: var(--bg-white);
  border: 1px solid var(--earth-200);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.diagnostic-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.diagnostic-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
  color: var(--earth-950);
}

.diagnostic-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Caixa Técnica de Enquadramento Normativo, Pressupostos e Limites (04_Padroes_Tecnicos) */
.tech-limits-box {
  background-color: var(--bg-white);
  border: 1px dashed var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
}

.tech-limits-box__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary-dark);
  margin-bottom: 0.85rem;
}

.tech-limits-box ul {
  display: grid;
  gap: 0.6rem;
}

.tech-limits-box li {
  font-size: 0.94rem;
  color: var(--earth-800);
  padding-left: 1.15rem;
  position: relative;
}

.tech-limits-box li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 700;
}

/* Nota de acolhimento no agendamento (CNV: Contexto e Acolhimento) */
.booking-note {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 1.15rem 1.5rem;
  background-color: var(--earth-100);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
  color: var(--earth-800);
}

@media (max-width: 900px) {
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
}
