/* ===========================================================
   A. Senno Odontologia — estilos
   =========================================================== */

:root {
  --teal-900: oklch(28% 0.05 200);
  --teal-800: oklch(34% 0.058 200);
  --teal-700: oklch(42% 0.07 198);
  --teal-500: oklch(58% 0.08 195);

  --coral-500: oklch(72% 0.13 35);
  --coral-600: oklch(63% 0.15 32);
  --coral-100: oklch(94% 0.03 40);

  --bg: oklch(98% 0.006 210);
  --bg-alt: oklch(94.5% 0.014 205);
  --surface: oklch(99.2% 0.004 210);

  --ink: oklch(24% 0.02 210);
  --ink-muted: oklch(46% 0.018 205);
  --line: oklch(89% 0.014 205);

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1140px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px oklch(28% 0.03 200 / 0.08), 0 1px 1px oklch(28% 0.03 200 / 0.05);
  --shadow-md: 0 16px 32px -16px oklch(28% 0.05 200 / 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-900);
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 em, h2 em, h3 em { font-family: var(--font-body); font-style: normal; font-weight: 700; color: var(--coral-600); }

h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.7rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-muted); }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-900); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: var(--radius);
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin: 0 0 .6em;
}
.eyebrow-invert { color: var(--coral-100); }
.eyebrow.center, .eyebrow-invert.center { text-align: center; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-lede {
  max-width: 600px;
  font-size: 1.05rem;
}

.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal-900);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-800); color: #fff; }

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

.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(98% 0.006 210 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -18px oklch(28% 0.05 200 / 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--teal-900);
}
.brand:hover { color: var(--teal-900); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--coral-100);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.brand-text em { font-family: var(--font-body); font-style: normal; font-weight: 700; color: var(--coral-600); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  position: relative;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s ease, background-color .25s ease;
}
.main-nav a:hover { color: var(--teal-900); }
.main-nav a.is-active {
  color: var(--teal-900);
  background: var(--coral-100);
}

.header-actions { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .brand-text { font-size: 1.05rem; white-space: nowrap; }
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 340px; }
  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .main-nav a.is-active { background: var(--bg-alt); }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  background:
    radial-gradient(620px 380px at 90% -8%, var(--coral-100) 0%, transparent 62%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--teal-800);
  margin: 0 0 22px;
  box-shadow: var(--shadow-sm);
}

.hero-lede { font-size: 1.14rem; max-width: 46ch; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 6px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.visual-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-caption {
  margin: 0;
  font-size: .85rem;
  color: var(--ink-muted);
  font-style: italic;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
}

/* ---------- Sobre ---------- */
.sobre-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: center;
}

.tag-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list li {
  background: var(--coral-100);
  color: var(--teal-900);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.media-frame {
  aspect-ratio: 5 / 6;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-media { max-width: 320px; margin: 0 auto; }
}

/* ---------- Services grid ---------- */
.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--coral-100);
  margin-bottom: 16px;
}

.service-card h3 { margin-bottom: .3em; }
.service-card p { margin: 0; font-size: .93rem; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Banner (imagem pronta) ---------- */
.banner-section {
  line-height: 0;
}
.banner-section img {
  width: 100%;
  height: auto;
  display: block;
}
.banner-section-inline {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Equipe ---------- */
.equipe-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .equipe-inner { grid-template-columns: 1fr; }
  .equipe-media { max-width: 400px; margin: 0 auto; }
}

/* ---------- Propósito band ---------- */
.proposito {
  background: var(--teal-900);
  padding: 88px 0;
  text-align: center;
}
.proposito-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  color: oklch(96% 0.01 210);
  max-width: 20ch;
  margin: 0 auto;
  line-height: 1.3;
}
.proposito-quote em { font-family: var(--font-body); color: var(--coral-500); font-style: normal; font-weight: 700; }

/* ---------- Contato ---------- */
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.info-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
}
.info-list dt {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--coral-600);
  margin-bottom: 2px;
}
.info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.contato-map {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contato-map iframe { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .contato-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: oklch(85% 0.015 210);
  border-top: 1px solid oklch(97% 0.01 210 / 0.1);
}
.footer-inner {
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 32px;
}
.brand-footer { color: #fff; }
.brand-footer .brand-mark { background: #fff; color: var(--teal-900); }
.footer-tagline { margin: 12px 0 0; font-size: .9rem; color: oklch(80% 0.015 210 / 0.75); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: oklch(88% 0.015 210 / 0.85); font-size: .92rem; }
.footer-nav a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-contact a { color: oklch(88% 0.015 210 / 0.85); }
.footer-contact a:hover { color: #fff; }
.footer-contact span { color: oklch(80% 0.015 210 / 0.75); }

.footer-bottom {
  padding: 20px 24px 28px;
  border-top: 1px solid oklch(97% 0.01 210 / 0.1);
}
.footer-bottom p { margin: 0; font-size: .82rem; color: oklch(75% 0.015 210 / 0.7); }
.footer-bottom .footer-credit { margin-top: 6px; }
.footer-bottom .footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom .footer-credit a:hover { color: #fff; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Contact float ---------- */
.contact-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral-500);
  color: var(--teal-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px oklch(63% 0.15 32 / 0.55);
  z-index: 60;
  transition: transform .15s ease;
}
.contact-float:hover { transform: scale(1.06); color: var(--teal-900); }
.contact-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--coral-500);
  animation: contact-pulse 2.6s ease-out infinite;
  z-index: -1;
}

@keyframes contact-pulse {
  0% { opacity: .5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.services-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(4) { transition-delay: .18s; }
.services-grid .reveal:nth-child(5) { transition-delay: .24s; }
.services-grid .reveal:nth-child(6) { transition-delay: .3s; }

.gallery-grid .reveal:nth-child(2) { transition-delay: .08s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: .16s; }

.tag-list .reveal:nth-child(2) { transition-delay: .06s; }
.tag-list .reveal:nth-child(3) { transition-delay: .12s; }
.tag-list .reveal:nth-child(4) { transition-delay: .18s; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral-600);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .contact-float::before { animation: none; display: none; }
  .btn, .main-nav a, .site-header { transition: none; }
}

/* ---------- Tilt 3D + luz nos cards ---------- */
.tiltCard {
  position: relative;
  will-change: transform;
  transition: transform .12s ease-out, box-shadow .25s ease-out;
  transform-style: preserve-3d;
  isolation: isolate;
}
.tiltCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), oklch(100% 0 0 / 0.35), transparent 55%);
  opacity: var(--glow, 0);
  transition: opacity .25s ease-out;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
.tiltCard:hover {
  box-shadow: 0 25px 45px -10px oklch(28% 0.05 200 / 0.35);
}
.tiltCard > * {
  position: relative;
  z-index: 0;
}
