/* Barbearia Sempre Jovem — espresso brown + tan leather + warm ivory */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500;600&family=Zilla+Slab:wght@500;600;700&display=swap');

:root {
  --espresso-900: #1a0f0a;
  --espresso-800: #2c1810;
  --espresso-700: #3d2418;
  --leather-600: #8b5a2b;
  --leather-500: #a67c52;
  --leather-400: #c4a574;
  --ivory-100: #f7f3eb;
  --ivory-200: #ede6d8;
  --ivory-300: #d9cdb8;
  --text: #2c1810;
  --text-muted: #5c4a3a;
  --text-on-dark: var(--ivory-100);
  --bg: var(--ivory-100);
  --bg-cream: var(--ivory-200);
  --bg-dark: var(--espresso-800);
  --accent: var(--leather-600);
  --accent-hover: var(--leather-500);
  --whatsapp: #1f7a4c;
  --whatsapp-hover: #166339;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 12px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 8px 28px rgba(44, 24, 16, 0.12);
  --shadow-lg: 0 16px 48px rgba(44, 24, 16, 0.16);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font-sans: 'Bitter', Georgia, serif;
  --font-display: 'Zilla Slab', Georgia, serif;
  --header-h: 72px;
  --mobile-bar-h: 64px;
  --max-w: 720px;
  --max-w-wide: 1100px;
  --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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100dvh;
  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(--leather-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--leather-500); }
a:focus-visible {
  outline: 2px solid var(--leather-500);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--espresso-800);
  font-weight: 600;
}

h1 { font-size: clamp(1.875rem, 5.5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.125rem; margin-bottom: var(--space-xs); }

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--leather-600);
  color: var(--ivory-100);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10001;
}
.skip-link:focus { top: var(--space-sm); }

/* Header — no transform/filter on ancestors of mobile nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--espresso-800);
  border-bottom: 1px solid rgba(196, 165, 116, 0.2);
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-sm);
  max-width: var(--max-w-wide);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory-100);
  flex-shrink: 0;
}
.logo:hover { color: var(--leather-400); }

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--leather-600);
  color: var(--ivory-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--leather-400);
}

.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo__tag {
  font-size: 0.7rem;
  color: var(--leather-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-desktop { display: none; }

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
  }
  .nav-desktop .nav-link {
    color: var(--ivory-200);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-desktop .nav-link:hover,
  .nav-desktop .nav-link[aria-current="page"] {
    color: var(--leather-400);
    border-bottom-color: var(--leather-500);
  }
}

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

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 12px;
  flex-shrink: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--leather-400);
  outline-offset: 3px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--leather-400);
  border-radius: 1px;
  transition: opacity var(--transition), transform 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: 992px) {
  .nav-toggle { display: none; }
}

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

.site-nav.is-open {
  display: flex;
}

.site-nav > .nav-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--ivory-100);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(196, 165, 116, 0.15);
}
.site-nav > .nav-link:hover,
.site-nav > .nav-link[aria-current="page"] { color: var(--leather-400); }

.site-nav__ctas {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 992px) {
  .site-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.btn:focus-visible {
  outline: 2px solid var(--leather-500);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--espresso-800);
  color: var(--ivory-100);
}
.btn--primary:hover {
  background: var(--espresso-700);
  color: var(--ivory-100);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--espresso-800);
  border: 1.5px solid var(--espresso-800);
}
.btn--outline:hover {
  background: var(--espresso-800);
  color: var(--ivory-100);
}

.site-header .btn--outline {
  color: var(--ivory-100);
  border-color: rgba(196, 165, 116, 0.5);
}
.site-header .btn--outline:hover {
  background: rgba(196, 165, 116, 0.15);
  color: var(--ivory-100);
}

.btn--leather {
  background: var(--leather-600);
  color: var(--ivory-100);
}
.btn--leather:hover {
  background: var(--leather-500);
  color: var(--ivory-100);
}

.btn--sm {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* Hero */
.hero {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero__kicker {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--leather-600);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero__promise {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  max-width: 38ch;
}

.hero__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Trust bar */
.trust-bar {
  background: var(--espresso-800);
  color: var(--ivory-100);
  padding: var(--space-lg) 0;
}

.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-bar__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--leather-400);
  margin-bottom: 0.25rem;
}

.trust-bar__label {
  font-size: 0.8125rem;
  color: var(--ivory-300);
  line-height: 1.4;
}

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

.section--cream { background: var(--bg-cream); }
.section--tight { padding-top: 0; }

.section__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leather-600);
  margin-bottom: var(--space-xs);
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
}

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

.ornament {
  width: 48px;
  height: 2px;
  background: var(--leather-500);
  margin: var(--space-md) 0 var(--space-lg);
}

/* Cards */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ivory-300);
}

.card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.card__price {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--leather-600);
  margin-bottom: 0.25rem;
}

/* Benefits */
.benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.benefit {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--ivory-300);
}
.benefit:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Testimonials */
.rating-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--leather-600);
  background: rgba(139, 90, 43, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--leather-500);
  box-shadow: var(--shadow-sm);
}

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

.testimonial__author {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  color: var(--espresso-800);
}

.testimonial__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

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

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition);
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover img { transform: scale(1.03); }
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(26, 15, 10, 0.85));
  color: var(--ivory-100);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Location */
.location-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .location-block {
    flex-direction: row;
    align-items: flex-start;
  }
  .location-block > div { flex: 1; }
}

.hours-list {
  list-style: none;
  margin-top: var(--space-md);
}

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

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

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

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

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--ivory-300);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 56px;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--espresso-800);
}
.faq-item__question:focus-visible {
  outline: 2px solid var(--leather-500);
  outline-offset: -2px;
}

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

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

.faq-item__answer {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

/* CTA band */
.cta-band {
  background: var(--espresso-800);
  color: var(--ivory-100);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band h2 { color: var(--ivory-100); }
.cta-band p {
  color: var(--ivory-300);
  max-width: 42ch;
  margin: 0 auto var(--space-md);
}

.cta-band .ornament {
  margin: var(--space-md) auto var(--space-lg);
}

/* Page hero */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--bg-cream);
  border-bottom: 1px solid var(--ivory-300);
}

.page-hero__breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table th,
.price-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--ivory-300);
}

.price-table th {
  background: var(--espresso-800);
  color: var(--ivory-100);
  font-family: var(--font-display);
  font-weight: 600;
}

.price-table tr:last-child td { border-bottom: none; }

/* Team */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.team-member__img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
}

.team-member__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-member__role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--leather-600);
  margin-bottom: 0.25rem;
}

/* Agende */
.agende-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.agende-step {
  padding-left: var(--space-md);
  border-left: 3px solid var(--leather-500);
}

.agende-cta {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  text-align: center;
}

/* Legal */
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul {
  margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
}

/* Footer */
.site-footer {
  background: var(--espresso-900);
  color: var(--ivory-300);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a { color: var(--leather-400); }
.site-footer a:hover { color: var(--ivory-100); }

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

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

.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ivory-100);
  margin-bottom: var(--space-sm);
}

.footer__nap { font-size: 0.9375rem; line-height: 1.6; }

.footer__list {
  list-style: none;
  font-size: 0.9375rem;
}

.footer__list li { margin-bottom: 0.5rem; }

.footer__map {
  margin-top: var(--space-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(196, 165, 116, 0.2);
  font-size: 0.8125rem;
  color: var(--ivory-300);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  height: var(--mobile-bar-h);
  background: var(--espresso-800);
  border-top: 1px solid rgba(196, 165, 116, 0.25);
  box-shadow: 0 -4px 20px rgba(26, 15, 10, 0.2);
}

@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-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ivory-100);
  transition: background var(--transition);
}

.mobile-bar__btn--wa {
  background: var(--whatsapp);
}
.mobile-bar__btn--wa:hover { background: var(--whatsapp-hover); color: #fff; }

.mobile-bar__btn--call {
  background: var(--espresso-700);
  border-left: 1px solid rgba(196, 165, 116, 0.2);
}
.mobile-bar__btn--call:hover { background: var(--espresso-800); color: var(--ivory-100); }
