/* ===================== TOKENS ===================== */
:root {
  --bg: #FFFFFF;
  --bg-section: #F7FAFC;
  --primary: #1E3A5F;
  --secondary: #7FAF9A;
  --btn: #2C6FB7;
  --btn-hover: #1F5C99;
  --text: #333333;
  --text-soft: #5C6670;
  --border: #E4EAF0;

  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 14px 34px rgba(30, 58, 95, 0.12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--primary); font-weight: 700; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.05);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo{
    display:flex;
    align-items:center;
}

.nav-logo img{
    display:block;
    height:111px;
    width:auto;
    transition:0.3s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--btn);
  transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--btn); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--btn);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--btn-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 28px 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
}

.hero-organic {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cell-svg { width: 100%; height: 100%; }
.cell-group circle {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 1;
  opacity: 0.35;
}
.cell-group circle:first-child { fill: var(--secondary); opacity: 0.06; stroke-width: 1.2; }
.cell-group line { stroke: var(--primary); stroke-width: 0.7; opacity: 0.18; }
.cell-group--a { animation: drift 22s ease-in-out infinite; }
.cell-group--b { animation: drift 26s ease-in-out infinite reverse; }
.cell-group--c { animation: drift 19s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 10px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero-text { text-align: left; }

.hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-section);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.hero-photo-ring {
  position: absolute;
  top: 22px;
  right: -22px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1.4px solid var(--secondary);
  opacity: 0.5;
  z-index: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--btn);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--btn);
  color: var(--btn);
  transform: translateY(-2px);
}

.btn-saiba-mais {
  margin-top: 8px;
}

/* ===================== SECTIONS ===================== */
.section { padding: 110px 28px; }
.section--alt { background: var(--bg-section); }
.section-inner { max-width: 1180px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
  max-width: 640px;
}
.section-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 54px;
}

/* ===================== CARDS ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--bg-section);
  color: var(--btn);
  margin-bottom: 22px;
}
.card:hover .card-icon {
  background: var(--btn);
  color: #fff;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.card-title {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
.card-text {
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* ===================== SOBRE ===================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.sobre-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.sobre-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.sobre-photo-ring {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1.4px solid var(--secondary);
  opacity: 0.5;
  z-index: 0;
}

.sobre-text {
  color: var(--text-soft);
  font-size: 1.03rem;
  margin-bottom: 26px;
  max-width: 540px;
}

.sobre-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.sobre-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.97rem;
}
.sobre-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.6px solid var(--secondary);
}

/* ===================== MODAL "SAIBA MAIS" ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 58, 95, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-overlay[hidden] { display: flex; } /* overridden by JS toggling hidden attr + is-open */

.modal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-section);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-right: 40px;
}

.modal-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.modal-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.modal-subtitle {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-section-title {
  font-size: 0.98rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-section-text {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.modal-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ===================== CONTATO ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:not(.contact-card--static):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.contact-card--static { cursor: default; }

.contact-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-section);
  color: var(--btn);
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  font-weight: 600;
}
.contact-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 30px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
  opacity: 0.85;
}
.footer-logo { font-family: var(--font-display); font-weight: 600; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: pulse-wa 2.6s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35), 0 10px 26px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 10px 26px rgba(37, 211, 102, 0.4); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-subtitle { margin: 0 auto 34px; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; }
  .hero-photo-frame, .hero-photo-ring { max-width: 300px; }
  .hero-photo-ring { top: 16px; right: -16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 44px; }
  .sobre-visual { order: -1; max-width: 260px; margin: 0 auto; }
  .sobre-photo-frame, .sobre-photo-ring { max-width: 260px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(30, 58, 95, 0.08);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 20px 70px; min-height: auto; }
  .hero-photo-frame, .hero-photo-ring { max-width: 220px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }

  .section { padding: 76px 20px; }
  .section-lead { margin-bottom: 38px; }

  .contact-grid { grid-template-columns: 1fr; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }

  .modal-card { padding: 28px 22px; }
  .modal-header { padding-right: 30px; }
  .modal-footer { justify-content: stretch; }
  .modal-footer .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .logo-text { font-size: 0.92rem; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--btn);
  outline-offset: 3px;
}

.card-icon i,
.contact-icon i,
.btn i,
.whatsapp-float i{
    font-size: 1.45rem;
}


.btn i{
    font-size:1.15rem;
}