/* ============================================================
   Instituto IntegraMente — Estilos
   Paleta baseada na logo: azul, dourado, cobre, marinho
   ============================================================ */

:root {
  --blue:        #1a6091;
  --blue-dark:   #12304d;
  --navy:        #0f2942;
  --gold:        #c8912e;
  --gold-light:  #d9a63a;
  --copper:      #c47a5a;
  --cream:       #f7f2ea;
  --cream-2:     #fbf8f2;
  --ink:         #2a2a2a;
  --muted:       #6d6a64;
  --line:        rgba(18, 48, 77, 0.12);
  --white:       #ffffff;

  --shadow-sm: 0 4px 16px rgba(18, 48, 77, 0.06);
  --shadow-md: 0 14px 40px rgba(18, 48, 77, 0.10);
  --radius: 16px;
  --maxw: 1140px;

  --serif: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tagline: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--serif); color: var(--blue-dark); line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; }

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-light); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 40px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; box-shadow: 0 8px 22px rgba(200, 145, 46, 0.32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(200, 145, 46, 0.42); }

.btn-gold { background: linear-gradient(135deg, #e0b34a, var(--gold)); color: #fff; box-shadow: 0 10px 26px rgba(200, 145, 46, 0.4); }

.btn-outline { background: transparent; border-color: var(--blue-dark); color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: #fff; }

.btn-lg { padding: 18px 44px; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-nav { padding: 11px 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.15s;
}
.main-nav a:not(.btn):hover { color: var(--gold); }
.main-nav a.active:not(.btn) { color: var(--gold); }
.main-nav a.btn-nav { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--blue-dark); border-radius: 2px; transition: 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    linear-gradient(90deg, var(--cream-2) 0%, var(--cream-2) 34%, rgba(251,248,242,0.82) 52%, rgba(251,248,242,0.25) 78%, rgba(251,248,242,0.05) 100%),
    url('../assets/img/hero.jpg') right center / cover no-repeat,
    linear-gradient(180deg, var(--cream-2), var(--cream));
  padding: 80px 0 0;
}
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.hero-sub { font-size: 1.25rem; color: var(--muted); margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 70px 0 -70px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.svc-card {
  padding: 42px 34px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.svc-card:last-child { border-right: none; }
.svc-icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  color: var(--gold);
  display: grid; place-items: center;
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   SOBRE
   ============================================================ */
.about { padding: 150px 0 100px; }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-photo { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.about-content h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 22px; }
.about-content p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-list { list-style: none; margin: 26px 0 32px; }
.about-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 400;
}
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--cream);
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { padding: 100px 0; background: var(--cream-2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--line);
}
.service-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-item .svc-icon { margin: 0 0 22px; width: 58px; height: 58px; }
.service-item h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-item p { color: var(--muted); }

/* ============================================================
   EMPRESAS
   ============================================================ */
.empresas {
  padding: 84px 0;
  background:
    linear-gradient(120deg, rgba(15,41,66,0.95) 0%, rgba(15,41,66,0.88) 45%, rgba(18,48,77,0.7) 100%),
    url('../assets/img/empresas.jpg') center / cover no-repeat,
    linear-gradient(120deg, var(--navy), var(--blue-dark));
  color: #fff;
}
.empresas-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.empresas-content h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.empresas-content p { color: rgba(255,255,255,0.82); font-size: 1.08rem; margin-bottom: 22px; }
.empresas-list { list-style: none; }
.empresas-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.empresas-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold-light); font-weight: 700;
}
.empresas-cta { text-align: center; }

/* ============================================================
   EQUIPE
   ============================================================ */
.team { padding: 100px 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 960px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo {
  width: 200px; height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #eadfce, #d9cbb2);
  box-shadow: var(--shadow-sm);
  border: 5px solid #fff;
  position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.no-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 38%, var(--copper) 0 20%, transparent 21%),
              radial-gradient(ellipse at 50% 100%, var(--blue) 0 45%, transparent 46%);
  opacity: 0.55;
}
.team-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.crp { display: block; color: var(--gold); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 10px; }
.team-card p { color: var(--muted); }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials { padding: 100px 0; background: var(--cream-2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}
.testimonial p { font-style: italic; color: var(--ink); margin-bottom: 18px; font-size: 1.05rem; }
.testimonial footer { color: var(--gold); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 100px 0; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--gold); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ============================================================
   CONTATO
   ============================================================ */
.contact { padding: 100px 0; background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.contact-info > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }
.contact-details { list-style: none; }
.contact-details li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 700; color: var(--blue-dark); }
.contact-details svg { color: var(--gold); flex-shrink: 0; }

.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; color: var(--blue-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,145,46,0.15);
  background: #fff;
}
.field textarea { resize: vertical; }
.form-note { margin-top: 16px; text-align: center; font-weight: 700; color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; padding-bottom: 48px; }
.footer-logo-plaque {
  display: inline-block;
  background: #fbf8f2;
  padding: 16px 22px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.footer-logo { height: 54px; width: auto; display: block; }
.footer-brand p { font-family: var(--tagline); font-style: italic; color: var(--gold-light); font-size: 1.1rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,0.75); text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; }
.footer-bottom p { text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-banner {
  padding: 66px 0 54px;
  text-align: center;
  background:
    radial-gradient(1000px 500px at 85% -20%, rgba(200,145,46,0.14), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-banner p { color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 1.08rem; }
.breadcrumb { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--gold); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

.page-section { padding: 84px 0; }
.page-section.alt { background: var(--cream-2); }
.page-section.navy {
  background:
    linear-gradient(120deg, rgba(15,41,66,0.95), rgba(18,48,77,0.88)),
    url('../assets/img/empresas.jpg') center / cover no-repeat,
    linear-gradient(120deg, var(--navy), var(--blue-dark));
  color: #fff;
}
.page-section.navy h2, .page-section.navy h3 { color: #fff; }
.page-section.navy p { color: rgba(255,255,255,0.85); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* bloco de conteúdo com imagem ao lado (reaproveita .about-inner) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.split .media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }

/* detalhe de serviço (lista alternada) */
.svc-detail {
  display: grid; grid-template-columns: 70px 1fr; gap: 24px;
  padding: 32px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.svc-detail .svc-icon { width: 62px; height: 62px; margin: 0; }
.svc-detail h3 { font-size: 1.35rem; margin-bottom: 10px; }
.svc-detail p { color: var(--muted); margin-bottom: 14px; }
.svc-detail ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.svc-detail li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--ink); }
.svc-detail li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* cartões de valores/benefícios */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm); text-align: center;
}
.value-card .svc-icon { margin: 0 auto 18px; width: 54px; height: 54px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.97rem; }

/* faixa de CTA final */
.cta-band { text-align: center; padding: 76px 0; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

.team-card .bio { color: var(--muted); font-size: 0.97rem; margin-top: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .about-inner, .empresas-inner, .contact-inner, .footer-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .services-grid, .testimonials-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cards { grid-template-columns: 1fr; margin-bottom: -40px; }
  .svc-card { border-right: none; border-bottom: 1px solid var(--line); }
  .svc-card:last-child { border-bottom: none; }
  .about { padding-top: 110px; }
  .empresas-cta { text-align: left; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .media { order: -1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 82px; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream-2);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .services-grid, .testimonials-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { max-width: 360px; }
  .hero { padding-top: 56px; }
  .contact-form { padding: 26px; }
  .value-grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; gap: 16px; }
  .svc-detail .svc-icon { margin: 0; }
}
