@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap");

:root {
  --navy-900: #181F29;
  --navy-700: #3A475A;
  --gold-500: #D1AA6C;
  --gold-600: #BD9358;
  --white: #FFFFFF;
  --cream: #F6F4EF;

  --text-primary: #181F29;
  --text-secondary: #5B6472;
  --text-on-dark: #F3F1EC;
  --text-on-dark-muted: rgba(243, 241, 236, 0.68);

  --line-light: #E3DED3;
  --line-on-dark: rgba(209, 170, 108, 0.28);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius-sm: 2px;
  --transition: 220ms ease;
}

/* ==========================================================
   Reset
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 24px;
  top: 24px;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}
#balanceBeam {
  transform-origin: 210px 70px;
  transition: transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   Buttons & links
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-600); }

.btn-whatsapp-small {
  background: transparent;
  border: 1px solid var(--line-on-dark);
  color: var(--text-on-dark);
  padding: 10px 18px;
  font-size: 0.88rem;
}
.btn-whatsapp-small:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}
.btn-whatsapp-small .icon { width: 16px; height: 16px; fill: currentColor; }

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}
.text-link:hover { border-color: var(--gold-500); color: var(--gold-500); }

.area-icon {
  color: var(--gold-500);
  transition: color var(--transition), transform var(--transition);
}
.area-item:hover .area-icon {
  color: var(--navy-700);
  transform: translateY(-4px) scale(1.06);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: rgba(24, 31, 41, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.03em;
}

.main-nav {
  display: none;
  gap: 32px;
}
.main-nav a {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--gold-500); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-on-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* Linha dourada sob títulos de seção */
.title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms ease;
}
.title-underline.is-inview::after {
  transform: scaleX(1);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  background: var(--navy-900);
  padding: 150px 0 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-byline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-500);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--text-on-dark);
  max-width: 15ch;
  margin-bottom: 24px;
}

.hero-lead {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-actions .text-link { color: var(--text-on-dark-muted); }

.hero-visual { display: none; }

/* ==========================================================
   Sobre
   ========================================================== */
.sobre { padding: 96px 0; background: var(--cream); }

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.sobre-portrait { display: flex; justify-content: center; }

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold-500);
}
.portrait-frame::before {
  top: -1px; left: -1px;
  border-top: 4px solid var(--gold-500);
  border-left: 4px solid var(--gold-500);
}
.portrait-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 4px solid var(--gold-500);
  border-right: 4px solid var(--gold-500);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.sobre-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.sobre-content p {
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 16px;
}
.sobre-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.sobre-meta li {
  font-size: 0.88rem;
  color: var(--navy-700);
  font-weight: 600;
}

/* ==========================================================
   Áreas de atuação
   ========================================================== */
.areas { padding: 96px 0; }

.section-heading { max-width: 60ch; margin-bottom: 56px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.section-lead { color: var(--text-secondary); font-size: 1rem; }

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-light);
}

.area-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-light);
}
.area-icon { margin-bottom: 20px; width: 40px; height: 40px; }
.area-item h3 { font-size: 1.2rem; margin-bottom: 12px; }
.area-item p { color: var(--text-secondary); max-width: 42ch; }

.diferenciais { background: var(--navy-700); padding: 96px 0; }
.diferenciais h2 {
  color: var(--text-on-dark);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 48px;
  max-width: 22ch;
}

.diferenciais-list {
  display: grid;
  grid-template-columns: 1fr;
}

.diferencial-item {
  padding: 28px 0;
  border-top: 1px solid var(--line-on-dark);
  transition: border-color var(--transition);
}
.diferencial-item:hover {
  border-color: var(--gold-500);
}
.diferencial-item:last-child { border-bottom: 1px solid var(--line-on-dark); }
.diferencial-item h3 {
  color: var(--gold-500);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.diferencial-item p {
  color: var(--text-on-dark-muted);
  max-width: 48ch;
  font-size: 0.95rem;
}
.depoimentos { padding: 96px 0; background: var(--cream); }
.depoimentos-carousel { position: relative; }
.depoimentos-track {
  display: flex;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: transform 500ms ease;
}

.depoimentos-carousel { overflow: hidden; }

.depoimento-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 48px 4px 40px;
}

.depoimento-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}
.depoimento-stars svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-500);
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--gold-500);
  margin-bottom: 8px;
}

.depoimento-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 62ch;
  margin-bottom: 28px;
}

.depoimento-autor {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.depoimento-fonte {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

.depoimentos-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.depoimentos-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-light);
  color: var(--navy-700);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.depoimentos-arrow svg { width: 18px; height: 18px; }
.depoimentos-arrow:hover { border-color: var(--gold-500); color: var(--gold-600); }

.depoimentos-dots { display: flex; gap: 10px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition);
}
.dot.is-active { background: var(--gold-500); }

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--gold-500);
  margin-bottom: 8px;
}

.depoimento-quote {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 52ch;
  margin-bottom: 22px;
}

.depoimento-autor {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
}

.depoimento-fonte {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

.contato { background: var(--navy-900); padding: 96px 0; }

.contato-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.contato-text h2 {
  color: var(--text-on-dark);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 16ch;
  margin-bottom: 18px;
}
.contato-text p {
  color: var(--text-on-dark-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.contato-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contato-info h3 {
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.contato-info p { color: var(--text-on-dark-muted); font-size: 0.95rem; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line-on-dark); }

.footer-inner {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold-500); }

.copy {
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ==========================================================
   WhatsApp floating button
   ========================================================== */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-fab svg { width: 24px; height: 24px; }
.whatsapp-fab:hover { background: var(--gold-500); transform: translateY(-2px); }
.whatsapp-fab:hover svg path { stroke: var(--navy-900); fill: var(--navy-900); }

/* ==========================================================
   Responsive — tablet
   ========================================================== */
@media (min-width: 768px) {
  .sobre-inner { grid-template-columns: 260px 1fr; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .area-item {
    padding: 0 32px 32px;
    border-bottom: none;
    border-right: 1px solid var(--line-light);
  }
  .area-item:first-child { padding-left: 0; }
  .area-item:last-child { border-right: none; }
  .diferenciais-list { grid-template-columns: repeat(2, 1fr); }
  .diferencial-item:nth-child(odd) { padding-right: 28px; }
  .diferencial-item:nth-child(even) { padding-left: 28px; }
  .depoimentos-grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--line-light);
  }
  .depoimento-slide { padding: 56px 60px 48px; }
  .contato-inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================
   Responsive — desktop
   ========================================================== */
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }

  .hero-inner { grid-template-columns: 1.2fr 0.8fr; }
  .hero-visual { display: block; }
  .hero-visual svg { width: 100%; height: auto; }

  .diferenciais-list { grid-template-columns: repeat(4, 1fr); }
  .diferencial-item {
    border-top: none;
    border-left: 1px solid var(--line-on-dark);
    padding: 0 28px;
  }
  .area-item {
    padding-top: 32px;
  }
  .diferencial-item:last-child { border-bottom: none; }
  .diferencial-item:first-child { border-left: none; padding-left: 0; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 24px;
  }
}

/* ==========================================================
   Responsive — telas muito pequenas
   ========================================================== */
@media (max-width: 480px) {
  .contato-info { grid-template-columns: 1fr; gap: 20px; }
  .btn-whatsapp-small { display: none; }
}

/* ==========================================================
   Mobile nav panel
   ========================================================== */
@media (max-width: 1023px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-900);
    border-left: 1px solid var(--line-on-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .main-nav[data-open="true"] {
    display: flex;
    transform: translateX(0);
  }
  .main-nav a { font-size: 1.1rem; }
  
}

