:root {
  --primary: #5560cf;
  --primary-dark: #3d47a8;
  --dark: #22263f;
  --text: #3a3f55;
  --muted: #6b7089;
  --bg-alt: #f5fafd;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5a;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(34, 38, 63, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.topbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-whatsapp {
  color: var(--whatsapp);
  text-decoration: none;
  font-weight: 500;
}

.topbar-whatsapp:hover {
  text-decoration: underline;
}

.topbar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.topbar .icon-whatsapp {
  width: 14px;
  height: 14px;
  fill: var(--whatsapp);
}

.topbar-instagram .icon-instagram {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.85);
  transition: fill 0.2s;
}

.topbar-instagram:hover .icon-instagram {
  fill: var(--white);
}

/* ---------- Navigation ---------- */
.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(34, 38, 63, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.logo span {
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: url('../images/hero.jpg') center 30% / cover no-repeat;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(34, 38, 63, 0.55), rgba(61, 71, 168, 0.55));
}

.hero-content {
  position: relative;
  color: var(--white);
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-whatsapp .icon-whatsapp {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-large {
  font-size: 1.2rem;
  padding: 16px 40px;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ---------- About ---------- */
.about-container {
  max-width: 820px;
}

.about-container .section-title {
  margin-bottom: 24px;
}

.about-text {
  text-align: center;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e7ebf3;
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(85, 96, 207, 0.09);
  border-radius: 10px;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.team-info {
  padding: 22px;
  text-align: center;
}

.team-info h3 {
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 600;
}

.team-role {
  color: var(--primary);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--muted);
}

.team-info .btn {
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.team-info .icon-whatsapp {
  width: 18px;
  height: 18px;
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 820px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e7ebf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--dark);
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: 90px 0;
  background: url('../images/recepcao.jpg') center top / cover no-repeat;
  text-align: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 38, 63, 0.72);
}

.contact-content {
  position: relative;
  color: var(--white);
}

.contact .section-title,
.contact .section-subtitle {
  color: var(--white);
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 64px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn-small {
  font-size: 0.9rem;
  padding: 10px 24px;
}

.btn-small .icon-instagram {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* ---------- Map ---------- */
.map iframe {
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transition: transform 0.15s, background 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--whatsapp-dark);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .topbar-inner {
    justify-content: center;
  }

  .topbar-group:first-child .topbar-item:not(:first-child) {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 16px rgba(34, 38, 63, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 20px;
    border-bottom: 1px solid #eef1f7;
  }

  .hero {
    min-height: 70vh;
  }

  .section {
    padding: 56px 0;
  }
}
