/* Salão de Beleza CASA MZX — Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --sage: #7d8f6e;
  --sage-dark: #5c6b50;
  --sage-light: #a8b89a;
  --ivory: #f7f4ed;
  --ivory-warm: #efe9dc;
  --brass: #b8956b;
  --brass-light: #d4b896;
  --brass-dark: #8f7048;
  --ink: #2a2a26;
  --ink-muted: #5a5a52;
  --white: #fffcf7;
  --shadow-sm: 0 2px 8px rgba(42, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 42, 38, 0.1);
  --shadow-lg: 0 16px 48px rgba(42, 42, 38, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --header-h: 72px;
  --mobile-bar-h: 64px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@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-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { color: var(--brass-dark); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  background: var(--sage-dark);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  z-index: 9999;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-sm); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--ivory-warm);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
  font-weight: 600;
}

.nav-desktop {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--sage-dark);
}

.header-ctas {
  display: none;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ivory-warm);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass-dark);
}

.btn-brass {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%);
  color: var(--white);
}

.btn-brass:hover {
  background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass) 100%);
  color: var(--white);
}

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

/* Hamburger — NO transform on header ancestors for menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: background var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle span {
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav overlay — fixed, full viewport, opaque */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background: #fffcf7;
  z-index: 999;
  padding: calc(var(--header-h) + var(--space-md)) var(--space-md) var(--space-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.is-open {
  display: flex !important;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--space-sm) 0;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ivory-warm);
}

.mobile-nav a:hover { color: var(--sage-dark); }

.mobile-nav-ctas {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-ctas { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass-dark);
  background: var(--ivory);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--ivory-warm);
}

.hero h1 { margin-bottom: var(--space-sm); }

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: var(--space-md);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero-image-wrap {
    margin-top: -2rem;
    margin-right: -3rem;
  }
  .hero-image-wrap::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 60%;
    height: 60%;
    background: var(--sage-light);
    opacity: 0.3;
    border-radius: var(--radius-lg);
    z-index: -1;
  }
}

/* Trust bar */
.trust-bar {
  background: var(--sage-dark);
  color: var(--white);
  padding: var(--space-md) 0;
}

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

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

.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brass-light);
}

.trust-item span {
  font-size: 0.8rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-alt { background: var(--white); }

.section-header {
  margin-bottom: var(--space-lg);
  max-width: 680px;
}

.section-header p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

@media (min-width: 900px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ivory-warm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card img {
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.price-tag {
  font-weight: 600;
  color: var(--brass-dark);
  font-size: 0.9rem;
}

/* Diferenciais */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

.diff-item {
  padding: var(--space-md);
  border-left: 3px solid var(--brass);
  background: var(--ivory);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.diff-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.testimonial {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--ivory-warm);
}

.testimonial .stars {
  color: var(--brass);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.testimonial cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.rating-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.rating-banner .big {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
}

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

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

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

.gallery-item:nth-child(2) { margin-top: 1.5rem; }
.gallery-item:nth-child(5) { margin-top: -1rem; }

@media (max-width: 767px) {
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(5) { margin-top: 0; }
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 300px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.hours-list {
  list-style: none;
  margin: var(--space-sm) 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ivory-warm);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--ivory-warm);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brass);
  flex-shrink: 0;
  transition: transform var(--transition);
}

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

.faq-answer {
  display: none;
  padding-bottom: var(--space-md);
  color: var(--ink-muted);
}

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

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 50%, var(--brass-dark) 100%);
  color: var(--white);
  padding: var(--space-xl) 0;
  text-align: center;
}

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

.cta-band p {
  max-width: 560px;
  margin: 0 auto var(--space-md);
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--sage-dark);
}

.cta-band .btn-primary:hover {
  background: var(--ivory);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 252, 247, 0.85);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

.site-footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

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

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

.footer-nav {
  list-style: none;
}

.footer-nav li { margin-bottom: 0.5rem; }

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--ivory-warm);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  height: var(--mobile-bar-h);
}

.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 48px;
}

.mobile-bar .bar-wa {
  background: #25D366;
  color: var(--white);
}

.mobile-bar .bar-tel {
  background: var(--sage-dark);
  color: var(--white);
}

@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 1023px) {
  body { padding-bottom: var(--mobile-bar-h); }
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--space-lg) 0;
  background: var(--white);
  border-bottom: 1px solid var(--ivory-warm);
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.page-hero .breadcrumb a {
  text-decoration: none;
  color: var(--sage);
}

/* Service detail */
.service-list {
  list-style: none;
}

.service-list li {
  padding: var(--space-md);
  border-bottom: 1px solid var(--ivory-warm);
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .service-list li {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

.team-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  margin-bottom: var(--space-sm);
}

/* Agende page */
.agende-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .agende-options {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }
}

.agende-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 2px solid var(--ivory-warm);
  text-align: center;
}

.agende-card.featured {
  border-color: var(--sage);
  background: linear-gradient(180deg, var(--white) 0%, var(--ivory) 100%);
}

/* Privacy */
.legal-content {
  max-width: 800px;
}

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

.legal-content h3 {
  margin-top: var(--space-md);
  font-size: 1.2rem;
}

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

/* Utility */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
