/* Instituto Bedeschi — estilos baseados no Figma "institutoB" */
:root {
  --navy: #313546;
  --brown: #342f27;
  --gold: #af9153;
  --gold-hover: #c4a566;
  --white: #ffffff;
  --off-white: #f2f0ee;
  --black: #000000;
  --font-main: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-ui: "Inter", system-ui, sans-serif;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 62px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, var(--navy) 39.9%, var(--brown) 100%);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 140px;
  padding: 0 var(--gutter) 8px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: 190px; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.5vw, 64px);
  margin-right: clamp(0px, 5vw, 82px);
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  font: 700 15px/21px var(--font-main);
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
}
.nav-row { display: flex; align-items: center; }
.dd-toggle {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dd-toggle .caret { width: 22px; height: 22px; transition: transform .2s; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 70px;
  max-width: 85%;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transform: translateX(-50%);
}
.nav-link:hover { color: var(--off-white); }

/* Dropdown (Figma: "Menu variavel") */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 200px;
  padding: 17px 10px 18px;
  background: linear-gradient(180deg, var(--navy) 57.5%, var(--brown) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item.open .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 901px) {
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item:hover .caret { transform: rotate(180deg); }
}
.nav-item.open .caret { transform: rotate(180deg); }
.dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px 7px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--white);
  font: 700 20px/27px var(--font-main);
  color: #fdfcfa;
}
.dropdown-title img { width: 20px; height: 20px; }
.dropdown li a {
  display: block;
  padding: 5px 11px;
  font: 400 12px/15px var(--font-ui);
  color: var(--white);
  transition: color .15s, padding-left .15s;
}
.dropdown li a:hover { color: var(--gold); padding-left: 15px; }
.dropdown li a.see-all { font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 526px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px var(--gutter);
  background: #1a1a1a url("../assets/hero.webp") center / cover no-repeat;
}
.hero-eyebrow {
  margin: 0;
  font: 700 clamp(24px, 3.2vw, 40px)/1.35 var(--font-main);
  color: var(--gold);
}
.hero-title {
  margin: 0;
  font: 700 clamp(48px, 9vw, 128px)/1.15 var(--font-main);
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ---------- Turmas (carrossel + texto) ---------- */
.turmas {
  display: grid;
  grid-template-columns: 703fr 737fr;
  min-height: 707px;
  background: linear-gradient(180deg, var(--navy) 67.8%, var(--brown) 100%);
}
.carousel {
  position: relative;
  overflow: hidden;
  background: #111;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .15);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(0, 0, 0, .4); }
.carousel-btn.prev { left: 23px; }
.carousel-btn.next { right: 17px; }
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: var(--gold); }

.turmas-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px clamp(24px, 4vw, 60px) 120px;
}
.turmas-text h2 {
  margin: 0 0 20px;
  font: 600 clamp(32px, 3.4vw, 48px)/1.3 var(--font-mono);
}
.turmas-text p {
  max-width: 586px;
  margin: 0;
  font: 700 clamp(20px, 2.2vw, 32px)/1.37 var(--font-main);
}
.turmas-text p + p { margin-top: 1.37em; }

/* ---------- CTA WhatsApp ---------- */
.cta {
  min-height: 483px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0;
  background: #111 url("../assets/cta-bg.webp") center / cover no-repeat;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 284px;
  height: 40px;
  padding: 0 24px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--white);
  font: 700 20px/27px var(--font-main);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* ---------- Beauty Clinic: serviços ---------- */
.servicos {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)),
    linear-gradient(180deg, var(--navy) 0%, var(--brown) 100%);
  padding: clamp(80px, 9vw, 130px) 0 130px;
}
/* Bloco de título reutilizável (eyebrow + título em dois tons + texto) */
.section-head {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.servicos-head { margin-bottom: clamp(48px, 6vw, 88px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font: 600 clamp(13px, 1.1vw, 16px)/1 var(--font-mono);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: currentColor;
}
.section-head h2 {
  margin: 0;
  font: 700 clamp(36px, 4.6vw, 64px)/1.15 var(--font-main);
  letter-spacing: -0.015em;
  color: var(--white);
}
.section-head h2 span {
  position: relative;
  color: var(--gold);
  white-space: nowrap;
}
.section-head h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: .09em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), rgba(175, 145, 83, 0));
}
.section-head p {
  max-width: 600px;
  margin: 26px auto 0;
  font: 500 clamp(16px, 1.4vw, 20px)/1.6 var(--font-main);
  color: rgba(255, 255, 255, .82);
}
.servicos-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.servico {
  margin: 0;
  position: relative;
  grid-column: span 2;
  aspect-ratio: 480 / 590;
  overflow: hidden;
}
.servico--wide { grid-column: span 3; aspect-ratio: 720 / 590; }
.servico--top img { object-position: center 30%; }
.servico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.servico:hover img { transform: scale(1.04); }
.servicos-cta { margin-top: clamp(80px, 8vw, 130px); }
.section-head .btn, .cta > .btn { margin-top: 34px; height: 48px; border-radius: 24px; }
.servico::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
  pointer-events: none;
}
.servico figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 11%;
  z-index: 1;
  text-align: center;
  font: 500 clamp(22px, 2.2vw, 32px)/1.2 var(--font-main);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* ---------- Contato: formulário SAC ---------- */
.sac {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: none;
  padding: clamp(64px, 8vw, 120px) max(var(--gutter), calc((100% - 1200px) / 2));
  background: linear-gradient(180deg, var(--navy) 67.8%, var(--brown) 100%);
}
.sac-info h2 {
  margin: 0 0 20px;
  font: 600 clamp(32px, 3.4vw, 48px)/1.3 var(--font-mono);
}
.sac-info p {
  margin: 0 0 24px;
  max-width: 440px;
  font: 600 clamp(17px, 1.5vw, 20px)/1.5 var(--font-main);
}
.sac-mail a { color: var(--gold); word-break: break-all; }
.sac-mail a:hover { text-decoration: underline; }
.sac-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font: 600 15px/1.4 var(--font-main);
  color: var(--off-white);
}
.field label span { font-weight: 500; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(0, 0, 0, .25);
  color: var(--white);
  font: 500 16px/1.4 var(--font-main);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer;
  background: rgba(0, 0, 0, .25) url("../assets/caret.svg") right 6px center / 30px no-repeat; padding-right: 40px; }
.field select option { background: var(--navy); color: var(--white); }
.field input::placeholder { color: rgba(255, 255, 255, .4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(175, 145, 83, .3);
}
.sac-form .btn { justify-self: start; border: 0; cursor: pointer; height: 48px; border-radius: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) {
  .sac { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .sac-form .btn { justify-self: stretch; max-width: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 15.4%, var(--brown) 93.3%);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 240px;
  padding: 36px var(--gutter) 40px 60px;
  display: grid;
  grid-template-columns: 190px 1fr 1fr 1.3fr;
  gap: 32px 48px;
  align-items: start;
}
.footer-logo img { width: 190px; height: auto; }
.footer-col h3 {
  margin: 12px 0 2px;
  font: 600 24px/32px var(--font-mono);
  color: var(--gold);
}
.footer-col h3 + h3, .footer-col .redes-title { margin-top: 12px; }
.footer-col p, .footer-col li {
  margin: 0;
  font: 600 15px/21px var(--font-main);
}
.footer-col a:hover { color: var(--gold); }
.footer-col .address { font-size: 13px; line-height: 18px; max-width: 250px; }
.footer-map {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(175, 145, 83, .5);
  background: var(--navy);
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: grayscale(.2);
}
.map-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}
.map-link span {
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--white);
  font: 700 13px/1.3 var(--font-main);
  opacity: .92;
  transition: opacity .2s, transform .2s;
}
.map-link:hover span, .map-link:focus-visible span { opacity: 1; transform: translateY(-2px); }
.footer-col .map-link:hover { color: var(--white); }
.map-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.social { display: flex; gap: 9px; align-items: center; margin-top: 3px; }
.social a { display: block; transition: transform .2s, opacity .2s; }
.social a:hover { transform: translateY(-2px); opacity: .8; }
.social img { width: 30px; height: 30px; }
.social .ig img { width: 34px; height: 34px; }

/* ---------- Botão flutuante WhatsApp ---------- */
.wapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: 28px;
  z-index: 30;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.wapp-float:hover { transform: scale(1.06); }
.wapp-float img { width: 50px; height: 50px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding-left: var(--gutter); }
}

@media (max-width: 900px) {
  .header-inner { min-height: 84px; padding: 12px var(--gutter); }
  .logo img { width: 120px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--navy), var(--brown));
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; }
  .nav-row .nav-link { flex: 1; }
  .dd-toggle { width: 48px; height: 48px; }
  .nav-link.is-active::after { left: 0; transform: none; bottom: 8px; width: 60px; height: 3px; }
  .dropdown {
    position: static;
    width: auto;
    box-shadow: none;
    background: rgba(0, 0, 0, .2);
    max-height: 0;
    padding: 0 10px;
    overflow: hidden;
    transform: none;
    transition: max-height .3s, padding .3s, opacity .3s;
  }
  .nav-item.open .dropdown { max-height: 420px; padding: 12px 10px; }
  .nav-item:focus-within:not(.open) .dropdown { opacity: 0; visibility: hidden; }
  .dropdown-title { display: none; }
  .dropdown li a { font-size: 15px; padding: 8px 11px; }

  .hero { min-height: 360px; }
  .turmas { grid-template-columns: 1fr; }
  .carousel { aspect-ratio: 1 / 1; }
  .turmas-text { padding: 56px var(--gutter); }
  .cta { min-height: 380px; padding: 72px 0; }
  .servicos { padding: 80px 0 100px; }
  .servicos-grid { grid-template-columns: 1fr 1fr; }
  .servico, .servico--wide { grid-column: span 1; aspect-ratio: 480 / 590; }
  .servicos-grid .servico:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .wapp-float { width: 54px; height: 54px; bottom: 16px; }
  .wapp-float img { width: 38px; height: 38px; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .footer-logo img { width: 150px; }
  .footer-col h3 { font-size: 22px; line-height: 30px; }
  .footer-col p, .footer-col li { font-size: 14px; }
  .btn { min-width: 0; width: 100%; max-width: 284px; font-size: 18px; }
  .servicos-grid { grid-template-columns: 1fr; }
  .servicos-grid .servico:last-child { grid-column: auto; aspect-ratio: 480 / 590; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
