/* ===========================================================
   byanamoreno.pt - sistema de design
   Identidade: índigo cobalto, Fraunces display, arcos
   =========================================================== */

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

:root {
  --indigo: #4a5494;
  --indigo-deep: #3a4279;
  --ice: #f1f1f5;
  --ice-pure: #f7f7fa;
  --white: #ffffff;
  --ink: #20243f;
  --muted-on-ice: #5a5f78;
  --muted-on-indigo: #c4c8e0;
  --line-ice: #dcdce6;
  --line-indigo: #5a6499;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ice);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  letter-spacing: -0.018em;
  line-height: 0.98;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 6vw; position: relative; }

::selection { background: var(--indigo); color: var(--ice); }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241,241,245,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-ice);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-size: 1.55rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.025em;
}
.logo .dot { color: var(--indigo); }
.navlinks { display: flex; gap: 1.8rem; align-items: center; }
.navlinks a {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s;
}
.navlinks a:hover { color: var(--indigo); }
.navlinks a.cta {
  background: var(--indigo); color: var(--ice);
  padding: 0.6rem 1.3rem; border-radius: 100px; transition: all 0.25s;
}
.navlinks a.cta:hover { background: var(--indigo-deep); color: var(--white); transform: translateY(-1px); }
.lang { font-size: 13px; color: var(--muted-on-ice); border-left: 1px solid var(--line-ice); padding-left: 1.5rem; }
.lang a { color: var(--muted-on-ice); }
.lang a.active { color: var(--indigo); font-weight: 600; }
@media (max-width: 820px){ .navlinks a:not(.cta):not(.lang-link){ display:none; } .lang{ display:none; } }

/* ARCS */
.arc {
  position: absolute; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0.35; pointer-events: none;
}

/* HERO */
.hero {
  background: var(--indigo); color: var(--ice);
  position: relative; overflow: hidden;
  padding: 11vh 0 10vh;
}
.hero .arc-1 { width: 380px; height: 380px; top: -160px; right: -80px; color: var(--ice); }
.hero .arc-2 { width: 260px; height: 260px; bottom: -150px; left: -60px; color: var(--ice); }
.hero .eyebrow {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted-on-indigo); font-weight: 600; margin-bottom: 2rem;
  opacity: 0; animation: rise .8s .1s forwards;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 16ch; margin-bottom: 1.8rem;
  opacity: 0; animation: rise .9s .25s forwards;
}
.hero .sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 46ch;
  color: #e4e6f2; line-height: 1.5; margin-bottom: 2.6rem;
  opacity: 0; animation: rise .9s .45s forwards;
}
.hero .sub strong { color: var(--white); font-weight: 600; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: rise .9s .6s forwards; }
.btn {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; padding: 0.85rem 1.8rem; border-radius: 100px; transition: all .25s;
}
.btn-primary { background: var(--ice); color: var(--indigo); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--muted-on-indigo); color: var(--ice); }
.btn-ghost:hover { border-color: var(--ice); background: rgba(255,255,255,0.08); }
.btn-on-ice { background: var(--indigo); color: var(--ice); border: 1.5px solid var(--indigo); }
.btn-on-ice:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }

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

/* SECTIONS */
section { padding: 8vh 0; position: relative; }
.sec-ice { background: var(--ice); }
.sec-white { background: var(--ice-pure); }
.sec-indigo { background: var(--indigo); color: var(--ice); overflow: hidden; }
.sec-label {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1.6rem;
}
.sec-ice .sec-label, .sec-white .sec-label { color: var(--indigo); }
.sec-indigo .sec-label { color: var(--muted-on-indigo); }
h2.display { font-size: clamp(1.9rem, 4.5vw, 3.1rem); margin-bottom: 1.6rem; max-width: 19ch; }
p.body { max-width: 62ch; margin-bottom: 1.2rem; }
.sec-ice p.body, .sec-white p.body { color: var(--ink); }
.sec-indigo p.body { color: #e4e6f2; }
p.body strong { font-weight: 600; }

/* STAT (destaque numérico em conteúdo) */
.stat-callout {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid var(--ice);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  max-width: 56ch;
  border-radius: 4px;
}
.sec-ice .stat-callout, .sec-white .stat-callout {
  background: rgba(74,84,148,0.05);
  border-left-color: var(--indigo);
}
.stat-number {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 2.4rem; line-height: 1; color: var(--indigo);
  display: block; margin-bottom: 0.4rem;
}
.sec-indigo .stat-number { color: var(--ice); }
.stat-text { font-size: 15px; color: var(--muted-on-ice); }
.sec-indigo .stat-text { color: var(--muted-on-indigo); }
.stat-source { font-size: 12px; color: var(--muted-on-ice); margin-top: 0.5rem; font-style: italic; }
.sec-indigo .stat-source { color: var(--muted-on-indigo); }

/* GRID DE CARTÕES */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1px; background: var(--line-ice); border: 1px solid var(--line-ice); margin-top: 1.5rem; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px){ .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .grid-5 { grid-template-columns: 1fr; } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.card { background: var(--ice-pure); padding: 2.2rem 1.9rem; transition: background .3s; text-decoration: none; color: var(--ink); display: block; }
.card:hover { background: #fff; }
.card .num { font-size: 12px; color: var(--indigo); font-weight: 700; letter-spacing: .14em; display:block; margin-bottom: .9rem; text-transform: uppercase; }
.card h3 { font-family:'Fraunces',serif; font-weight:600; font-size:1.35rem; margin-bottom:.6rem; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--muted-on-ice); line-height: 1.5; }
.card .more { font-size: 13px; color: var(--indigo); font-weight: 600; margin-top: 1rem; display: inline-block; }

/* CLIENTES (logos) */
.clients-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2.5rem; align-items: center; justify-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 1100px) { .clients-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .clients-row { grid-template-columns: repeat(2, 1fr); } }
.clients-row img {
  max-width: 100%; max-height: 70px; width: auto; height: auto;
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s;
}
.clients-row img:hover { opacity: 1; }

/* SECÇÃO INK (alternativa entre indigo e ice, fundo creme com tinta escura) */
.sec-ink {
  background: #ebebf2;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.sec-ink .sec-label { color: var(--indigo); }
.sec-ink .stat-callout {
  background: rgba(74,84,148,0.06);
  border-left-color: var(--indigo);
}
.sec-ink .stat-number { color: var(--indigo); }
.sec-ink .stat-text, .sec-ink .stat-source { color: var(--muted-on-ice); }

/* TESTEMUNHO (versão antiga, uma só) */
.quote-block { position: relative; }
.quote-text { font-family:'Fraunces',serif; font-weight:500; font-size: clamp(1.4rem,3vw,2rem); font-style: italic; max-width: 28ch; line-height:1.3; margin: 1.5rem 0 1.5rem; }
.quote-author { font-weight:600; font-size:15px; }
.quote-role { font-size:14px; color: var(--muted-on-ice); }

/* TESTEMUNHOS (3 cartões) */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--ice-pure);
  padding: 2rem 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--line-ice);
  display: flex;
  flex-direction: column;
}
.testimonial-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.3rem;
  flex: 1;
}
.testimonial-text::before {
  content: '"';
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  line-height: 0;
  color: var(--indigo);
  display: block;
  margin-bottom: 0.6rem;
  font-style: normal;
  opacity: 0.5;
}
.testimonial-author {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.testimonial-role {
  font-size: 14px;
  color: var(--muted-on-ice);
  margin-top: 0.2rem;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line-ice); padding: 1.6rem 0; max-width: 72ch; }
.faq-item:last-child { border-bottom:none; }
.faq-q { font-family:'Fraunces',serif; font-weight:600; font-size:1.25rem; margin-bottom:.6rem; letter-spacing: -0.01em; }
.faq-a { color: var(--ink); max-width: 64ch; }

/* CTA STRIP */
.cta-strip { text-align:center; }
.cta-strip .arc-c { width: 420px; height:420px; top:50%; left:50%; transform:translate(-50%,-50%); color: var(--ice); opacity:.12; }
.cta-strip h2 { margin: 0 auto 2rem; }

/* FORM */
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display:block; font-size:13px; letter-spacing:.08em;
  text-transform:uppercase; color: var(--muted-on-indigo);
  margin-bottom:.5rem; font-weight: 600;
}
.form-field input, .form-field textarea {
  width:100%; padding:.9rem 1.1rem;
  border:1px solid var(--line-indigo);
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color: var(--ice);
  font-family:inherit; font-size:16px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  border:none; cursor:pointer;
}

/* IMAGEM HERO LADO-A-LADO */
.hero-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-2col img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
}
@media (max-width: 820px){ .hero-2col { grid-template-columns: 1fr; } }

/* SECÇÃO 2 COLUNAS COM FOTO */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.two-col img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
}
@media (max-width: 820px){ .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

/* BREADCRUMB */
.crumb { font-size:13px; color: var(--muted-on-ice); padding: 0; margin-bottom: 2.5rem; }
.crumb a { color: var(--indigo); text-decoration:none; }
.crumb a:hover { text-decoration: underline; }
.crumb span[aria-current] { color: var(--muted-on-ice); }

/* FOOTER */
footer { background: var(--indigo-deep); color: var(--muted-on-indigo); padding: 6vh 0 4vh; }
footer .cols { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media(max-width:820px){ footer .cols{ grid-template-columns:1fr 1fr; gap:2rem; } }
@media(max-width:520px){ footer .cols{ grid-template-columns:1fr; } }
footer .flogo {
  font-family:'Fraunces',serif;
  font-weight: 700;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-size:1.7rem; color:var(--ice);
  margin-bottom:.8rem; letter-spacing: -0.025em;
}
footer .flogo .dot { color: var(--muted-on-indigo); }
footer h4 { color:var(--ice); font-size:13px; letter-spacing:.18em; text-transform:uppercase; margin-bottom:1.1rem; font-weight:600; }
footer a { color: var(--muted-on-indigo); text-decoration:none; display:block; margin-bottom:.6rem; font-size:14.5px; transition:color .2s; }
footer a:hover { color: var(--ice); }
footer .legal { border-top:1px solid var(--line-indigo); padding-top:2rem; font-size:13px; }


/* ===== MENU HAMBÚRGUER MOBILE ===== */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; z-index: 200;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.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); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .navlinks {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--ice);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 6vw 2rem;
    border-bottom: 1px solid var(--line-ice);
    transform: translateY(-150%);
    transition: transform .35s ease;
    box-shadow: 0 12px 24px rgba(32,36,63,0.08);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .navlinks.open { transform: translateY(0); }
  .navlinks a:not(.cta):not(.lang-link) { display: block !important; padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--line-ice); font-size: 1.05rem; }
  .navlinks a.cta { margin-top: 1.2rem; display: inline-block; }
  .lang { display: block !important; border-left: none; padding-left: 0; margin-top: 1.2rem; }
}

/* ===== FAQ ACORDEÃO ===== */
.faq-item { border-bottom: 1px solid var(--line-ice); max-width: 72ch; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family:'Fraunces',serif; font-weight:600; font-size:1.25rem;
  letter-spacing: -0.01em; cursor: pointer;
  padding: 1.6rem 2.5rem 1.6rem 0;
  position: relative; margin: 0;
  list-style: none; user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem; font-family: 'Inter', sans-serif;
  color: var(--indigo); font-weight: 400;
  transition: transform .3s;
}
details[open] .faq-q::after { content: '−'; }
.faq-a {
  color: var(--ink); max-width: 64ch;
  padding-bottom: 1.6rem; margin: 0;
  animation: faqOpen .3s ease;
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RODAPÉ MOBILE COMPACTO ===== */
@media (max-width: 820px) {
  footer { padding: 4vh 0 3vh; }
  footer .cols { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.5rem; margin-bottom: 2rem; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
  footer .flogo { font-size: 1.5rem; }
  footer h4 { margin-bottom: 0.8rem; }
  footer a { margin-bottom: 0.5rem; font-size: 14px; }
}
@media (max-width: 480px) {
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child p { font-size: 13.5px; }
}


/* ===== CHECKBOX CONSENTIMENTO ===== */
.form-consent { margin: 1.2rem 0 1.5rem; }
.form-consent label {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 13.5px; color: var(--muted-on-indigo);
  line-height: 1.45; cursor: pointer; font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.form-consent input[type="checkbox"] {
  margin-top: 0.2rem; width: 18px; height: 18px;
  accent-color: var(--ice); flex-shrink: 0; cursor: pointer;
}


/* ===== DROPDOWN CONSULTORIA (desktop) ===== */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ice-pure); border: 1px solid var(--line-ice);
  border-radius: 12px; padding: 0.6rem; min-width: 240px;
  box-shadow: 0 16px 40px rgba(32,36,63,0.12);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s;
  z-index: 150; display: flex; flex-direction: column; gap: 0.1rem;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.dropdown-menu a {
  display: block !important; padding: 0.7rem 0.9rem !important;
  font-size: 0.95rem !important; color: var(--ink) !important;
  border-radius: 8px; white-space: nowrap; border: none !important;
  transition: background .15s;
}
.dropdown-menu a:hover { background: var(--ice); color: var(--indigo) !important; }
.dropdown-menu a .dd-desc { display: block; font-size: 0.78rem; color: var(--muted-on-ice); margin-top: 1px; }
/* No mobile o dropdown vira lista normal */
@media (max-width: 820px) {
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0 1rem;
    min-width: auto; margin-top: 0;
  }
  .dropdown-menu a { padding: 0.7rem 0 !important; font-size: 0.95rem !important; border-bottom: 1px solid var(--line-ice) !important; }
  .dropdown-menu a .dd-desc { display: none; }
}

/* ===== BOTÃO EMAIL RODAPÉ (sem mostrar o endereço) ===== */
.footer-email-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.3rem;
}
