/* ==========================================================
   ACOSET — Clínica de Medicina e Segurança do Trabalho
   ========================================================== */

:root{
  --primary: #00688a;
  --primary-dark: #023d51;
  --primary-darker: #052733;
  --primary-light: #e8f3f6;
  --accent: #00a7c4;
  --ink: #13242c;
  --muted: #52717c;
  --line: #dde8ea;
  --bg: #ffffff;
  --bg-alt: #f4f9fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(4, 42, 56, 0.09);
  --shadow-sm: 0 4px 14px rgba(4, 42, 56, 0.08);
  --container: 1160px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }
body{
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
p{ margin: 0; }
section{ position: relative; }

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

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.section-head{
  max-width: 680px;
  margin-bottom: 44px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--primary-darker); }
.section-head p{ margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,167,196,0.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,167,196,0.42); }
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover{ background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark-outline{
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-dark-outline:hover{ background: var(--primary); color: #fff; }
.btn-sm{ padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand{ display: flex; align-items: center; }
.brand img{ height: 34px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 34px; }
.main-nav a{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.header-phone{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-darker);
}
.header-phone svg{ flex-shrink: 0; color: var(--accent); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(2,35,47,0.95) 20%, rgba(2,61,81,0.86) 55%, rgba(0,104,138,0.55) 100%);
}
.hero .container{
  padding-top: 96px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: minmax(0, 640px);
}
.hero .eyebrow{ background: rgba(255,255,255,0.12); color: #cdeef6; }
.hero .eyebrow::before{ background: #4fd8f0; }
.hero h1{
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  color: #fff;
}
.hero h1 span{ color: #6fe0f5; }
.hero p.lead{
  margin-top: 22px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.86);
  max-width: 560px;
}
.hero-actions{
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats{
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
}
.hero-stats div strong{
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #fff;
}
.hero-stats div span{
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- About ---------- */
.about{ padding: 108px 0; background: var(--bg); }
.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media{ position: relative; }
.about-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-media .badge{
  position: absolute;
  left: -20px;
  bottom: -24px;
  background: var(--primary-darker);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  max-width: 230px;
}
.about-media .badge strong{ display: block; font-size: 1.6rem; color: #6fe0f5; }
.about-media .badge span{ font-size: 0.82rem; color: rgba(255,255,255,0.82); }

.about-copy p{ color: var(--muted); font-size: 1.03rem; }
.about-copy p + p{ margin-top: 16px; }
.about-copy h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--primary-darker); margin-bottom: 20px; }

.mvv-grid{
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mvv-card{
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.mvv-card .icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.mvv-card h3{ font-size: 1.15rem; color: var(--primary-darker); margin-bottom: 10px; }
.mvv-card p{ color: var(--muted); font-size: 0.96rem; }
.mvv-card ul{ margin-top: 4px; }
.mvv-card li{ color: var(--muted); font-size: 0.94rem; padding: 7px 0; border-top: 1px dashed var(--line); }
.mvv-card li:first-child{ border-top: none; }
.mvv-card li strong{ color: var(--ink); }

/* ---------- Services ---------- */
.services{ padding: 108px 0; background: var(--bg-alt); }
.service-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-block + .service-block{ margin-top: 90px; }
.service-block.reverse .service-media{ order: 2; }
.service-block.reverse .service-copy{ order: 1; }
.service-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.service-copy .num{
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.service-copy h3{ font-size: 1.6rem; color: var(--primary-darker); margin-bottom: 18px; }
.tag-list{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tag-list span{
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
}
.service-groups{ display: grid; gap: 18px; }
.service-groups h4{
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
}
.service-groups .tag-list{ margin-bottom: 0; }

/* ---------- Differentiator ---------- */
.diff{ padding: 108px 0; background: var(--bg); }
.diff-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.diff-copy h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--primary-darker); margin-bottom: 20px; }
.diff-copy p{ color: var(--muted); font-size: 1.03rem; }
.diff-copy p + p{ margin-top: 16px; }
.diff-pillbox{
  margin-top: 26px;
  background: var(--primary-darker);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.diff-pillbox svg{ flex-shrink: 0; color: #6fe0f5; }
.diff-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* ---------- Founder / Team ---------- */
.founder{ padding: 108px 0; background: var(--primary-darker); color: #fff; }
.founder-grid{
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.founder-media{
  position: relative;
  display: flex;
  justify-content: center;
}
.founder-media img{ height: 440px; width: auto; object-fit: contain; }
.founder-media::after{
  content: "";
  position: absolute;
  inset: auto 10% 0 10%;
  height: 60%;
  background: radial-gradient(ellipse at bottom, rgba(0,167,196,0.35), transparent 70%);
  z-index: -1;
}
.founder-copy .eyebrow{ background: rgba(255,255,255,0.1); color: #9fe8f5; }
.founder-copy .eyebrow::before{ background: #6fe0f5; }
.founder-copy h2{ font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: #fff; margin-bottom: 6px; }
.founder-copy .role{ color: #9fe8f5; font-weight: 600; margin-bottom: 20px; display: block; }
.founder-copy p{ color: rgba(255,255,255,0.82); font-size: 1.02rem; }
.founder-copy p + p{ margin-top: 14px; }
.founder-creds{
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.founder-creds span{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: #fff;
}

.team-strip{
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.team-strip img{
  border-radius: var(--radius);
  height: 320px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.team-strip h3{ font-size: 1.4rem; color: #fff; margin-bottom: 14px; }
.team-strip p{ color: rgba(255,255,255,0.82); }

/* ---------- Contact ---------- */
.contact{ padding: 108px 0; background: var(--bg-alt); }
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-cards{ display: grid; gap: 18px; align-content: start; }
.contact-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.contact-card .icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h4{ font-size: 1rem; color: var(--primary-darker); margin-bottom: 4px; }
.contact-card p, .contact-card a{ color: var(--muted); font-size: 0.96rem; }
.contact-card a:hover{ color: var(--primary); }
.contact-cta{
  margin-top: 6px;
  background: var(--primary-darker);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-cta p{ font-weight: 700; font-size: 1.05rem; }
.map-wrap{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.map-wrap iframe{ width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--primary-darker); color: rgba(255,255,255,0.7); padding: 50px 0 26px; }
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-top img{ height: 30px; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a{ font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-nav a:hover{ color: #fff; }
.footer-social a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.footer-bottom{
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

/* ---------- Back to top ---------- */
.to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
.to-top.visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .about-grid, .diff-grid, .founder-grid, .contact-grid, .team-strip{
    grid-template-columns: 1fr;
  }
  .service-block, .service-block.reverse{
    grid-template-columns: 1fr;
  }
  .service-block .service-media, .service-block.reverse .service-media{ order: 1; }
  .service-block .service-copy, .service-block.reverse .service-copy{ order: 2; }
  .founder-media{ margin-bottom: 12px; }
  .about-media .badge{ left: 16px; }
  .mvv-grid{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 860px){
  .main-nav{
    position: fixed;
    inset: 82px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.1rem; }
  .nav-toggle{ display: block; }
  .header-phone span{ display: none; }
}

@media (max-width: 640px){
  .hero .container{ padding-top: 60px; padding-bottom: 64px; }
  .hero-stats{ grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .about, .services, .diff, .founder, .contact{ padding: 72px 0; }
  .contact-cta{ flex-direction: column; align-items: flex-start; }
  .footer-top, .footer-bottom{ flex-direction: column; align-items: flex-start; }
}
