/*
Theme Name: Nicolle Ramponi
Theme URI: https://nicolleramponi.com.br
Author: Peu
Author URI: https://nicolleramponi.com.br
Description: Tema block (FSE) sob medida para a Dra. Nicolle Ramponi — Psiquiatra. Identidade em sálvia, creme e terracota, com mármore aquarelado da marca, logo oficial de arcos e tipografia Cormorant Garamond + DM Sans. Landing de página única, editável visualmente.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nicolle-ramponi
Tags: one-column, full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks
*/

:root { --nr-ease: cubic-bezier(0.22, 1, 0.36, 1); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:where(.wp-block-group)[id], :where(.wp-block-cover)[id] { scroll-margin-top: 92px; }

/* ---------- Header ---------- */
.nr-header { backdrop-filter: saturate(140%) blur(6px); }
.nr-header .nr-logo img { display:block; height:44px; width:auto; }

/* ---------- Eyebrow / kicker ---------- */
.nr-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--wp--preset--color--clay);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
  transition: transform .35s var(--nr-ease), box-shadow .35s var(--nr-ease), background-color .35s var(--nr-ease), color .35s var(--nr-ease);
  letter-spacing: 0.04em;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(110, 74, 62, 0.5);
}
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1.5px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--sage) !important;
  color: var(--wp--preset--color--cream-light) !important;
  border-color: var(--wp--preset--color--sage) !important;
}

/* ---------- Glass card (highlights text over marble) ---------- */
.nr-glass {
  background: rgba(248, 243, 234, 0.86);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 40px 90px -50px rgba(67,72,63,0.55);
  border-radius: 10px;
}
.nr-glass-soft {
  background: rgba(248, 243, 234, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
}

/* ---------- Hairline rule ---------- */
.nr-rule { width: 58px; height: 2px; border: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--wp--preset--color--clay), transparent);
  margin-inline: auto; }

/* ---------- Signature: arched portraits (echo the arch logo) ---------- */
.nr-arch { position: relative; display: inline-block; }
.nr-arch img {
  border-radius: 999px 999px 12px 12px;
  display: block; width: 100%; height: auto; object-fit: cover;
  box-shadow: 0 26px 54px -30px rgba(67,72,63,0.5);
}
.nr-arch::after {
  content:""; position:absolute; inset:-10px;
  border:1.5px solid var(--wp--preset--color--sage);
  border-radius: 999px 999px 18px 18px; opacity:.5; pointer-events:none;
}

/* ---------- Specialty cards ---------- */
.nr-card { transition: transform .4s var(--nr-ease), box-shadow .4s var(--nr-ease), border-color .4s var(--nr-ease); height:100%; }
.nr-card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -30px rgba(67,72,63,0.42); border-color: var(--wp--preset--color--sage) !important; }
.nr-card .nr-ico { width:52px; height:52px; margin-bottom:0.3rem; }
.nr-card .nr-ico svg { width:100%; height:100%; fill:none; stroke: var(--wp--preset--color--sage); stroke-width:1.5; }

/* ---------- Contact icon chips ---------- */
.nr-chip { width:58px; height:58px; border-radius:999px; background: var(--wp--preset--color--clay);
  color: var(--wp--preset--color--cream-light); display:flex; align-items:center; justify-content:center; margin-inline:auto;
  transition: transform .35s var(--nr-ease), box-shadow .35s var(--nr-ease); }
a:hover .nr-chip { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(110,74,62,0.55); }
.nr-chip svg { width:24px; height:24px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .nr-reveal { opacity:0; transform: translateY(20px); transition: opacity .8s var(--nr-ease), transform .8s var(--nr-ease); }
  .nr-reveal.nr-in { opacity:1; transform:none; }
}

/* ---------- Accent divider band ---------- */
.nr-band { height: 6px; background: linear-gradient(90deg,
  var(--wp--preset--color--sage) 0%, var(--wp--preset--color--sand) 35%,
  var(--wp--preset--color--mauve) 60%, var(--wp--preset--color--clay) 100%);
  opacity: .8; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  :where(.wp-block-group)[id], :where(.wp-block-cover)[id] { scroll-margin-top: 70px; }
  .nr-arch::after { inset:-7px; }
  .nr-glass, .nr-glass-soft { border-radius: 8px; }
}

/* ---------- Formation list ---------- */
.nr-formacao { padding-left: 0; margin: 0; }
.nr-formacao li {
  list-style: none; position: relative; padding-left: 1.7rem;
  margin-bottom: 0.85rem; line-height: 1.6;
}
.nr-formacao li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border: 1.5px solid var(--wp--preset--color--sage);
  border-radius: 50% 50% 50% 0; transform: rotate(45deg);
}

/* ---------- Especialidades: grid responsivo ---------- */
.nr-especialidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 782px) {
  .nr-especialidades-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) and (min-width: 600px) {
  .nr-especialidades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Garantir altura consistente dos cards */
.nr-card {
  display: flex;
  flex-direction: column;
}

.nr-card h3,
.nr-card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.nr-card p {
  flex-grow: 1;
  margin: 0;
}
