:root{
  --ivory: #F7F5F0;
  --navy: #1B2A41;
  --navy-deep: #121E30;
  --ink: #23201B;
  --ink-soft: #665F56;
  --gold: #A9822C;
  --gold-light: #C9A857;
  --tint: #EDE7DA;
  --white: #FFFFFF;

  --display: "Newsreader", serif;
  --body: "Work Sans", sans-serif;

  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
}
a{ color: inherit; text-decoration: none; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* HEADER */
.site-header{
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad);
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(35,32,27,0.08);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled{
  box-shadow: 0 8px 24px -16px rgba(18,30,48,0.35);
}
.logo{
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
}
.logo span{ color: var(--gold); }

.nav{ display: flex; align-items: center; gap: 2rem; }
.nav a{ font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.nav a:hover{ color: var(--navy); }
.nav-cta{
  background: var(--navy);
  color: var(--ivory) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 4px;
}
.nav-cta:hover{ background: var(--navy-deep); }

.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span{ width: 22px; height: 2px; background: var(--navy); transition: 0.25s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero{
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow{
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.3rem;
}
.hero-sub{ color: var(--ink-soft); font-size: 1.02rem; max-width: 48ch; margin-bottom: 2rem; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-weight: 600; font-size: 0.94rem;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}
.btn-primary{ background: var(--navy); color: var(--ivory); box-shadow: 0 1px 2px rgba(18,30,48,0.15); }
.btn-primary:hover{ background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(18,30,48,0.45); }
.btn-primary:active{ transform: translateY(0); box-shadow: 0 4px 10px -4px rgba(18,30,48,0.4); }
.btn-ghost{ border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover{ background: var(--navy); color: var(--ivory); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(18,30,48,0.35); }
.btn-ghost:active{ transform: translateY(0); }

.hero-stats{ display: flex; gap: 2.2rem; border-top: 1px solid rgba(35,32,27,0.12); padding-top: 1.6rem; }
.hero-stats strong{ display: block; font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.hero-stats span{ font-size: 0.82rem; color: var(--ink-soft); }

.hero-visual svg{ width: 100%; height: auto; border-radius: 6px; }

/* SECTIONS */
.section{ max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--pad); }
.section-navy{ max-width: none; background: var(--navy); color: var(--ivory); }
.section-navy > *{ max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-tint{ max-width: none; background: var(--tint); }
.section-tint > *{ max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head{ margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--navy);
}
.section-navy .section-head h2{ color: var(--ivory); }

/* ÁREAS */
.areas-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.area-card{
  background: var(--white);
  border: 1px solid rgba(35,32,27,0.1);
  border-radius: 6px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 1px 2px rgba(35,32,27,0.04);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.area-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -20px rgba(18,30,48,0.28);
  border-color: rgba(169,130,44,0.4);
}
.area-num{
  font-family: var(--display); font-size: 1.3rem; color: var(--gold); display: block; margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}
.area-card:hover .area-num{ transform: translateX(3px); }
.area-card h3{ font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem; }
.area-card p{ font-size: 0.92rem; color: var(--ink-soft); }

/* SOBRE */
.sobre-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.sobre-text h2{ font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0.6rem 0 1.2rem; }
.sobre-text p{ color: rgba(247,245,240,0.8); max-width: 50ch; }
.sobre-quote{ border-left: 3px solid var(--gold); padding-left: 1.4rem; }
.sobre-quote p{ font-family: var(--display); font-style: italic; font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--ivory); }
.sobre-quote span{ font-size: 0.85rem; color: var(--gold-light); }

/* DIFERENCIAIS */
.diff-row{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.diff-item{ border-top: 2px solid var(--gold); padding-top: 1.2rem; transition: border-color 0.3s ease; }
.diff-item:hover{ border-top-color: var(--navy); }
.diff-item h3{ font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.6rem; }
.diff-item p{ color: var(--ink-soft); font-size: 0.92rem; }

/* DEPOIMENTOS */
.testimonial-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.testimonial-card{
  background: var(--white); border-radius: 6px; padding: 1.8rem; border: 1px solid rgba(35,32,27,0.08);
  box-shadow: 0 1px 2px rgba(35,32,27,0.04);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.testimonial-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 32px -20px rgba(18,30,48,0.25); }
.testimonial-card p{ font-family: var(--display); font-style: italic; font-size: 1.05rem; margin-bottom: 1.2rem; color: var(--navy); }
.testimonial-author{ font-size: 0.85rem; font-weight: 600; color: var(--gold); }

/* CONTATO */
.contact-lead{ color: var(--ink-soft); margin-top: -1.4rem; margin-bottom: 2.2rem; }
.contact-form{ max-width: 560px; display: flex; flex-direction: column; gap: 1rem; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea{
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(35,32,27,0.18);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input, .contact-form select, .contact-form textarea{ transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169,130,44,0.15);
}
.contact-form .btn{ align-self: flex-start; margin-top: 0.5rem; padding-left: 2rem; padding-right: 2rem; }

/* SCROLL REVEAL */
.reveal{ opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* FOOTER */
.site-footer{
  max-width: var(--max); margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--ink-soft);
  border-top: 1px solid rgba(35,32,27,0.1);
}
.back-top{ font-weight: 600; color: var(--navy); }
.back-top:hover{ color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 320px; margin: 0 auto; }
  .areas-grid{ grid-template-columns: repeat(2, 1fr); }
  .sobre-grid{ grid-template-columns: 1fr; gap: 2rem; }
  .diff-row{ grid-template-columns: 1fr; gap: 1.8rem; }
  .testimonial-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 700px){
  .nav{
    position: fixed; top: 63px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column; align-items: flex-start;
    padding: 1.5rem var(--pad); gap: 1.2rem;
    border-bottom: 1px solid rgba(35,32,27,0.1);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav.open{ transform: translateY(0); }
  .nav-toggle{ display: flex; }
  .hero-stats{ flex-direction: column; gap: 1rem; }
  .form-row{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .areas-grid{ grid-template-columns: 1fr; }
}
