/* Salão Jô Black Power — terracotta editorial design system */
:root {
  --terracotta: #C4654A;
  --terracotta-dark: #A04E38;
  --terracotta-light: #D4846E;
  --cream: #FAF4ED;
  --cream-warm: #F5EBE0;
  --clay: #8B6355;
  --clay-muted: #A68B7E;
  --ink: #2C211C;
  --ink-muted: #5C4A42;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --shadow-sm: 0 2px 10px rgba(44, 33, 28, 0.07);
  --shadow-md: 0 8px 28px rgba(44, 33, 28, 0.11);
  --shadow-lg: 0 18px 48px rgba(44, 33, 28, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --mobile-bar-h: 64px;
  --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--clay); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin-bottom: var(--space-sm); }

p { margin-bottom: var(--space-sm); }

.mb-0 { margin-bottom: 0 !important; }
.mb-xl { margin-bottom: var(--space-xl); }
.text-center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.container--wide {
  width: min(1280px, 94vw);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--cream {
  background: var(--cream-warm);
}

.section__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-sm);
}

.section__lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* Header — no transform on ancestors of .site-nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--cream);
  border-bottom: 1px solid rgba(139, 99, 85, 0.18);
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: 100%;
  width: min(1280px, 94vw);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  min-height: 48px;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.logo__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-cta { display: flex; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--terracotta);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 310;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--terracotta-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* Mobile nav — full-height opaque overlay */
.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(100dvh - var(--header-h));
  z-index: 250;
  background: var(--cream);
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav.is-open,
body.nav-open .site-nav {
  display: block;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  min-height: 48px;
  border-bottom: 1px solid rgba(139, 99, 85, 0.15);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  background: var(--cream-warm);
  color: var(--terracotta-dark);
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex: 1;
  }

  .site-nav__list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.125rem;
  }

  .site-nav__link {
    padding: 0.5rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    border-bottom: none;
  }
}

body.nav-open { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: var(--white);
}

.btn--terracotta {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

.btn--terracotta:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--cream);
}

.btn--outline {
  background: transparent;
  color: var(--terracotta-dark);
  border-color: var(--terracotta);
}

.btn--outline:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero editorial */
.hero-editorial {
  background: var(--cream);
}

.hero-editorial__content {
  width: min(1280px, 94vw);
  margin-inline: auto;
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero__kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: var(--space-sm);
}

.hero__promise {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.hero-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 520px;
}

.hero-band img {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
}

.hero-band__accent {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(44, 33, 28, 0.72);
  color: var(--cream);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero--inner {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
  padding-block: var(--space-xl);
  border-bottom: 1px solid rgba(139, 99, 85, 0.12);
}

/* Trust bar */
.trust-bar {
  background: var(--terracotta);
  color: var(--cream);
  padding-block: var(--space-lg);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-bar__grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.trust-item__label {
  font-size: 0.85rem;
  opacity: 0.92;
}

/* Image bands */
.image-band {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.image-band img {
  width: 100%;
  height: clamp(180px, 28vw, 380px);
  object-fit: cover;
}

.image-band--tall img {
  height: clamp(220px, 34vw, 480px);
}

/* Service cards */
.service-grid {
  display: grid;
  gap: var(--space-lg);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card__body {
  padding: var(--space-md);
}

.service-card__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.service-detail {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.service-detail__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 0.35rem;
}

/* Benefits */
.benefits-strip {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .benefits-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-strip { grid-template-columns: repeat(3, 1fr); }
}

.benefit {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.benefit__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta-light);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.rating-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--cream-warm);
  border: 2px solid rgba(196, 101, 74, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.rating-banner__score {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--terracotta);
  line-height: 1;
}

.testimonials-grid {
  display: grid;
  gap: var(--space-md);
}

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

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.testimonial__stars {
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.testimonial__text {
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.testimonial__author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clay);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--terracotta);
}

/* Gallery */
.gallery-preview,
.gallery-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-preview {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery-preview .gallery-item--wide {
    grid-row: span 2;
  }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(44, 33, 28, 0.78));
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Location */
.location-block {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 900px) {
  .location-block { grid-template-columns: 1fr 1.1fr; }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.hours-table th,
.hours-table td {
  padding: 0.55rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(139, 99, 85, 0.15);
}

.hours-table th {
  font-weight: 600;
  padding-right: var(--space-md);
  color: var(--ink);
}

.map-embed,
.footer__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-embed iframe,
.footer__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem 1.15rem;
  min-height: 48px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-item__icon {
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer {
  display: none;
  padding: 0 1.15rem 1rem;
  color: var(--ink-muted);
}

.faq-item.is-open .faq-item__answer { display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--terracotta-dark) 0%, var(--terracotta) 55%, var(--clay) 100%);
  color: var(--cream);
  text-align: center;
  padding-block: var(--space-xl);
}

.cta-band h2 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.cta-band p {
  max-width: 48ch;
  margin-inline: auto var(--space-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

/* About page */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 1fr; }
}

.split__img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.brand-ribbon {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 0.5rem 1rem;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

.timeline__item {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.team-grid {
  display: grid;
  gap: var(--space-lg);
}

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

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-card__img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card__body { padding: var(--space-md); }

.team-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

/* Agende */
.agende-options {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .agende-options { grid-template-columns: repeat(3, 1fr); }
}

.agende-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.agende-card--featured {
  border: 2px solid var(--terracotta);
  background: var(--cream-warm);
}

.agende-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

/* Legal */
.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  margin-top: var(--space-lg);
  font-size: 1.35rem;
}

.legal-content ul {
  margin: var(--space-sm) 0 var(--space-md) 1.25rem;
}

.legal-content li { margin-bottom: 0.35rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 244, 237, 0.88);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a {
  color: var(--cream-warm);
  text-decoration: none;
}

.site-footer a:hover { color: var(--terracotta-light); }

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.footer__nap p { margin-bottom: 0.35rem; font-size: 0.92rem; }

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__list a { font-size: 0.92rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(250, 244, 237, 0.15);
  font-size: 0.85rem;
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 280;
  display: flex;
  height: var(--mobile-bar-h);
  box-shadow: 0 -4px 20px rgba(44, 33, 28, 0.15);
}

@media (min-width: 768px) {
  .mobile-bar { display: none; }
}

.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-bar__btn--wa {
  background: var(--whatsapp);
  color: var(--white);
}

.mobile-bar__btn--tel {
  background: var(--terracotta-dark);
  color: var(--cream);
}
