:root {
  /* Paleta preto + dourado */
  --bg: #050505;
  --surface: #121212;
  --text: #d2cec6;  /* grafite claro para textos principais */
  --muted: #9a9185; /* grafite mais suave para textos secundários */
  --border: #33302a;
  --accent: #c09a6b; /* dourado principal */
  --accent-ink: #e6c892; /* tom mais claro para hover */
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Ajustes de tema para classes Bootstrap (dark + dourado) */

.bg-light {
  background-color: #111111 !important;
}

.bg-white {
  background-color: #050505 !important;
}

.border {
  border-color: var(--border) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #050505 !important;
}

.btn-primary:hover {
  background-color: var(--accent-ink) !important;
  border-color: var(--accent-ink) !important;
  color: #050505 !important;
}

.btn-outline-primary {
  color: var(--accent-ink) !important;
  border-color: var(--accent) !important;
}

.btn-outline-primary:hover {
  background-color: var(--accent) !important;
  border-color: var(--accent-ink) !important;
  color: #050505 !important;
}

.navbar,
.navbar.bg-white {
  background-color: #050505 !important;
}

.navbar-brand span,
.navbar-brand small {
  color: var(--text) !important;
}

.navbar-subtitle-script {
  font-family: "Dancing Script", "Playfair Display", cursive;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-link {
  color: var(--muted) !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--accent-ink) !important;
}

.dropdown-menu {
  background-color: #111111 !important;
  border-color: var(--border) !important;
}

.dropdown-item {
  color: var(--text) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #1d1a16 !important;
  color: var(--text) !important;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0; /* mais respiro */
}

.header-inner--brand {
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-logo--mark {
  width: 96px;
  height: 96px;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
}

.brand-text--center {
  justify-items: center;
}

.brand-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 1.05rem;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
}

.nav a:hover {
  background: #eef4ff;
  text-decoration: none;
}

.nav-cta {
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--bg);
}

.nav-cta:hover {
  background: var(--accent-ink);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}

.menu-button:hover { background: var(--surface); }

.menu-icon {
  width: 20px;
  height: 14px;
  display: grid;
  align-content: space-between;
}

.menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(1200px 500px at 10% -10%, #eef4ff 0%, rgba(238, 244, 255, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Hero no estilo referência (preto + dourado) */

.hero-apm {
  background: linear-gradient(180deg, #050505 0%, #111111 100%);
}

.hero-apm-label {
  letter-spacing: 0.35em;
  color: var(--muted);
}

.hero-apm-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.9rem, 2vw + 1rem, 2.5rem);
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: none;
}

.hero-apm-subtitle {
  max-width: 36rem;
}

.hero-apm .list-unstyled li {
  color: var(--muted);
}

.hero-apm-photo-frame {
  border: 1px solid var(--accent);
  padding: 1.5rem 1.75rem 1.5rem 1.5rem;
  display: inline-block;
}

.hero-apm-photo {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: grayscale(100%);
}

/* Mini carrossel em "Casos reais em destaque" */
.mini-carousel {
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: none;
  background: transparent;
}

.mini-carousel .carousel-inner {
  border-bottom: 1px solid var(--border);
}

.mini-indicators {
  position: static;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
}

.mini-indicators button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  opacity: 1;
}

.mini-indicators button.active {
  background: var(--accent);
}

@media (max-width: 900px) {
  .hero-apm {
    text-align: center;
  }

  .hero-apm-label {
    justify-content: center;
  }

  .hero-apm-photo-frame {
    margin-top: 1.5rem;
  }
}

.section {
  padding: 2.5rem 0; /* mais espaço entre seções */
}

.section-header {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.button-ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--border);
}

.button-ghost:hover {
  background: #eef4ff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project {
  grid-column: span 6;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.project img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project figcaption {
  padding: 0.9rem 1rem;
}

.project-title {
  margin: 0;
  font-weight: 600;
}

.project-meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.service p {
  margin: 0;
  color: var(--muted);
}

/* Padronização de fontes menores em cards da seção "O que fazemos" */

#o-que-fazemos .card-body h3.h6 {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

#o-que-fazemos .card-body p {
  font-size: 0.9rem;
}

/* Títulos dos cards de casos reais em destaque */
#destaques .card-body h3.h6 {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.contact-list {
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* Evita estouro de layout com e-mails/links longos */
.contact-row dd,
.contact-row dd a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg);
}

.mini-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.mini-text {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 1rem;
  background: linear-gradient(180deg, #121212 0%, #050505 100%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.to-top {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.to-top:hover {
  background: var(--surface);
  text-decoration: none;
}

/* Nav "Mais" (submenu) */
.nav-more { position: relative; }
.more-button {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}
.more-button:hover { background: var(--surface); }

.more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 220px;
  padding: 0.5rem;
  background: rgba(8,8,8,0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.more-menu.is-open { display: grid; gap: 0.25rem; }
.more-menu a { padding: 0.65rem 0.7rem; border-radius: 8px; }
.more-menu a:hover { background: #1d1a16; text-decoration: none; }

/* Mobile: mostrar tudo dentro do hambúrguer */
@media (max-width: 860px) {
  .nav-more { width: 100%; }
  .more-button { display: none; }
  .more-menu { position: static; display: grid; gap: 0.25rem; box-shadow: none; border: 0; padding: 0; background: transparent; }
}

@media (max-width: 900px) {
  .hero { padding: 3rem 0 2.25rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }

  .services { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }

  .project { grid-column: span 12; }

  .carousel-slide img { height: 300px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;

    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;

    padding: 0.6rem;
    margin: 0.5rem 0 0;

    background: rgba(8, 8, 8, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.85rem 0.9rem;
  }

  .nav-cta {
    text-align: center;
  }

  .header-inner {
    position: relative;
  }

  .header-inner--brand {
    gap: 0.75rem;
  }

  .brand-logo--mark {
    width: 82px;
    height: 82px;
  }

  .brand-tagline {
    max-width: 34ch;
  }

  .nav {
    top: calc(100% + 12px);
  }
}

@media (max-width: 700px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-row dt {
    color: var(--text);
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand { min-width: 0; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-logo--mark {
    width: 70px;
    height: 70px;
  }
  .brand-tagline {
    max-width: 28ch;
  }

  .hero-copy h1 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); }

  .hero-actions .button { width: 100%; }

  .carousel-prev, .carousel-next { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Carrossel */
.carousel { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.carousel-track { position: relative; min-height: 420px; }
.carousel-slide { position: absolute; inset: 0; display: none; }
.carousel-slide.is-active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.carousel-prev, .carousel-next { pointer-events: auto; margin: 0 0.5rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); cursor: pointer; color: var(--text); }
.carousel-prev:hover, .carousel-next:hover { background: #1d1a16; }
.carousel-dots { display: flex; gap: 0.4rem; justify-content: center; padding: 0.75rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; cursor: pointer; }
.dot.is-active { background: var(--accent); }

@media (max-width: 900px) {
  .carousel-track { min-height: 300px; }
}

@media (max-width: 520px) {
  .carousel-prev, .carousel-next { width: 36px; height: 36px; }
}

/* Sobre a profissional */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; align-items: start; }
.about-text { display: grid; gap: 0.6rem; }
.about-text h2 { margin: 0; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; height: auto; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .about-grid { gap: 0.9rem; }
}

/* Rodapé: ações e sociais */
.footer-actions { display: flex; align-items: center; gap: 0.6rem; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: .5rem; background: #111111; }
.social:hover { background: #1d1a16; text-decoration: none; }

@media (max-width: 520px) {
  .footer-actions { width: 100%; justify-content: space-between; }
}
