/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--text-body);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--color-link-hover); }
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); }
h2.section__heading { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); text-align: center; }
h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-bg);
  color: var(--text-heading);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll-in reveal ---------- */
/* Hidden state only applies once JS confirms it will reveal these again
   (see main.js) — content stays fully visible without JS or with
   prefers-reduced-motion. Restrained: fade + small rise, no bounce/scale. */
body.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}
body.js-reveal-ready .reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */
.section { padding: clamp(3rem, 6vw, 6rem) 1.5rem; }
.section__inner { max-width: 72rem; margin: 0 auto; }
.section-hero__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.section__intro { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.75em;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn--primary:hover { background: var(--color-accent); color: var(--color-on-primary); }
.btn--secondary {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--text-heading); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__logo img { height: 44px; width: auto; }
.site-header__menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-header__menu a { text-decoration: none; color: var(--text-heading); font-weight: 500; }
.site-header__menu a:hover { color: var(--color-primary); }
.site-header__cta {
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
  padding: 0.5em 1.25em;
  border-radius: 999px;
}
.site-header__nav-toggle { display: none; }

@media (max-width: 47.99rem) {
  .site-header__nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.5em 1em;
    font-family: inherit;
    color: var(--text-heading);
  }
  .site-header__nav { display: none; width: 100%; }
  .site-header__nav.is-open { display: block; }
  .site-header__menu { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 0; }
}

/* ---------- Hero ---------- */
.section-hero { padding-top: clamp(4rem, 8vw, 7rem); }
.section-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}
.section-hero__subhead { color: var(--text-muted); font-size: 1.125rem; }
.section-hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.section-hero__trust-chips {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.section-hero__trust-chips li::before { content: "· "; color: var(--color-accent); }
.section-hero__trust-chips li:first-child::before { content: ""; }
.section-hero__image-wrap { max-width: 64rem; margin: 3rem auto 0; padding: 0 1.5rem; }
.section-hero__image {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Serviços ---------- */
.section-servicos__filters {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-chip {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5em 1.25em;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
}
.filter-chip.is-active,
.filter-chip:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.section-servicos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
}
.service-card__title { font-size: 1.5rem; margin-bottom: 0.4em; }
.service-card__title-btn {
  font: inherit;
  font-size: inherit;
  font-family: 'Cormorant Garamond', serif;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-heading);
  text-decoration: underline;
  text-decoration-color: transparent;
  cursor: pointer;
  text-align: left;
}
.service-card__title-btn:hover { color: var(--color-primary); text-decoration-color: currentColor; }
.service-card__desc { color: var(--text-muted); font-size: 0.95rem; }
.service-card__duration { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; margin: 0; }
.service-card__image { border-radius: 12px; margin-bottom: 1rem; aspect-ratio: 4 / 3; object-fit: cover; }
.section-servicos__empty { text-align: center; color: var(--text-muted); }

/* ---------- Method / Agendamento steps ---------- */
.section-method__steps,
.section-agendamento__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  text-align: center;
}
.section-method__step-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5em;
}
.section-agendamento__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.section-agendamento__widget {
  margin-top: 3rem;
  border: 1px dashed var(--color-border);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
}
.section-agendamento__placeholder { color: var(--text-muted); margin: 0; }
.section-agendamento__alt {
  text-align: center;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.section-agendamento__alt a { font-weight: 600; }

/* ---------- About ---------- */
.section-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}
.section-about__image {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.section-about__bio { max-width: 40rem; margin: 0 auto 1.5rem; }
.section-about__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin: 0 0 2rem;
  font-style: italic;
}
.section-about__credentials {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.section-about__credentials li {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4em 1em;
}

@media (min-width: 60rem) {
  .section-about__grid {
    grid-template-columns: 1fr 1.1fr;
    text-align: left;
  }
  .section-about__bio { margin: 0 0 1.5rem; }
  .section-about__credentials { justify-content: flex-start; }
}

/* ---------- FAQ ---------- */
.section-faq__list { max-width: 44rem; margin: 0 auto; }
.section-faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}
.section-faq__item dt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 0.5em;
}
.section-faq__item dd { margin: 0; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.section-final-cta { text-align: center; background: var(--color-surface); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 32rem; margin: 0 auto; }
.contact-form__field { margin-bottom: 1.25rem; text-align: left; }
.contact-form__field label { display: block; margin-bottom: 0.4em; font-weight: 600; }
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--text-body);
}
.contact-form__honeypot { position: absolute; left: -9999px; }
.form-status { border-radius: 10px; padding: 1em 1.25em; margin-bottom: 1.5rem; text-align: center; }
.form-status--success { background: color-mix(in srgb, var(--color-success) 15%, var(--color-bg)); color: var(--color-success); }
.form-status--error { background: color-mix(in srgb, var(--color-error) 15%, var(--color-bg)); color: var(--color-error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text-heading); color: var(--color-on-dark); text-align: center; padding: 3rem 1.5rem; }
.site-footer__inner { max-width: 32rem; margin: 0 auto; }
.site-footer__logo { margin: 0 auto 1rem; filter: brightness(0) invert(1); }
.site-footer__tagline { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; color: var(--color-on-dark); }
.site-footer__social { display: flex; gap: 1.5rem; justify-content: center; margin: 1rem 0; }
.site-footer__social a { color: var(--color-on-dark); }
.site-footer__legal { font-size: 0.8rem; opacity: 0.8; margin: 1.5rem 0; }
.site-footer__copy { font-size: 0.8rem; opacity: 0.6; margin: 0; }

/* ---------- Single serviço ---------- */
.section-servico-single__categoria {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  text-align: center;
}
.section-servico-single .section__heading { text-align: center; }
.section-servico-single__duration,
.section-servico-single__resumo { text-align: center; color: var(--text-muted); }
.section-servico-single__image { border-radius: 16px; margin: 2rem 0; }
.section-servico-single .entry-content { max-width: 42rem; margin: 0 auto; }

/* ---------- Service detail popup ---------- */
.servico-modal {
  border: none;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 28rem;
  width: calc(100% - 2rem);
  background: var(--color-surface);
  color: var(--text-body);
}
.servico-modal::backdrop {
  background: color-mix(in srgb, var(--text-heading) 45%, transparent);
}
.servico-modal__close-form { text-align: right; margin: -1rem -1rem 0 0; }
.servico-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
}
.servico-modal__close:hover { color: var(--text-heading); }
.servico-modal__categoria {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 0.5em;
}
.servico-modal__titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  margin: 0 0 0.5em;
}
.servico-modal__duracao { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; margin: 0 0 1em; }
.servico-modal__descricao { color: var(--text-muted); margin: 0 0 1.5em; }

/* ---------- Booking widget (Easy Appointments) — reskin to brand ---------- */
/* The plugin ships its own Bootstrap CSS with a generic blue look; this
   overrides the same classes scoped to our widget wrapper only, so nothing
   outside the booking section is affected. Availability/validation logic
   untouched — visual only, per the library's "restyle, don't rebuild"
   rule for third-party plugins. */
.section-agendamento__widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: left;
}
.section-agendamento__widget::after {
  content: "";
  display: table;
  clear: both;
}
.section-agendamento__widget .ea-bootstrap {
  max-width: 100% !important;
  font-family: 'Manrope', sans-serif;
  color: var(--text-body);
}
/* Real bug, found via DevTools: the plugin's template uses Bootstrap 3's
   .col-sm-4/.col-sm-8 (floated) grid classes without the .row wrapper
   Bootstrap 3 requires to contain floats. Without it, every .step and the
   widget wrapper itself collapse to near-zero height, and the floated
   form fields visually escape the collapsed box — which is exactly why
   the wrapper looked like an empty box and why content after it (the
   WhatsApp line) rendered on top of the escaped fields, blocking clicks.
   Standard Bootstrap 3 clearfix, applied to every level that contains
   floated columns, fixes the collapse without touching the plugin. */
.section-agendamento__widget .ea-bootstrap::after,
.section-agendamento__widget form::after,
.section-agendamento__widget .step::after,
.section-agendamento__widget .form-group::after {
  content: "";
  display: table;
  clear: both;
}
.section-agendamento__widget .step { margin-bottom: 1.25rem; overflow: visible; }
/* Only one location exists (Lumina Studio) — hide the picker entirely
   instead of showing a single-option dropdown with nothing to choose.
   The plugin's own JS reads a hidden step's value the same way as a
   visible one (see getNextOptions' `.step:hidden` handling), so this is
   safe: the value still gets picked up, just not shown to the visitor. */
.section-agendamento__widget .step:has([name="location"]) {
  display: none;
}
.section-agendamento__widget .ea-label,
.section-agendamento__widget label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-heading);
  font-weight: 500;
  margin-bottom: 0.4em;
}
.section-agendamento__widget .form-control,
.section-agendamento__widget select,
.section-agendamento__widget input[type="text"],
.section-agendamento__widget input[type="email"],
.section-agendamento__widget input[type="tel"],
.section-agendamento__widget textarea {
  font-family: 'Manrope', sans-serif;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--text-body);
  box-shadow: none;
  padding: 0.6em 0.9em;
  height: auto;
}
.section-agendamento__widget .form-control:focus,
.section-agendamento__widget select:focus,
.section-agendamento__widget input:focus {
  border-color: var(--color-primary);
  box-shadow: none;
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.section-agendamento__widget .btn-primary,
.section-agendamento__widget .ea-submit {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  padding: 0.7em 1.75em;
}
.section-agendamento__widget .btn-primary:hover,
.section-agendamento__widget .ea-submit:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-primary);
}
.section-agendamento__widget .btn-default,
.section-agendamento__widget .ea-cancel {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-heading);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  padding: 0.7em 1.75em;
}
.section-agendamento__widget .btn-default:hover,
.section-agendamento__widget .ea-cancel:hover {
  border-color: var(--text-heading);
}
/* jQuery UI datepicker calendar */
.section-agendamento__widget .ui-datepicker,
.ui-datepicker {
  font-family: 'Manrope', sans-serif;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  padding: 0.75rem;
  box-shadow: none;
}
.ui-datepicker .ui-datepicker-header {
  background: var(--color-bg);
  color: var(--text-heading);
  border-radius: 10px;
  border: none;
}
.ui-datepicker .ui-datepicker-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; }
.ui-datepicker td .ui-state-default {
  background: transparent;
  border: none;
  color: var(--text-body);
  border-radius: 8px;
}
.ui-datepicker td .ui-state-active,
.ui-datepicker td a.ui-state-active {
  background: var(--color-primary) !important;
  color: var(--color-on-primary) !important;
}
.ui-datepicker td .ui-state-hover { background: var(--color-accent); color: var(--color-on-primary); }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { border-radius: 8px; }
/* Time slot buttons */
.section-agendamento__widget .ea-time-slot,
.section-agendamento__widget .time.list-group-item {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--text-body);
  background: var(--color-bg);
}
.section-agendamento__widget .ea-time-slot.selected,
.section-agendamento__widget .time.list-group-item.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
