/* O Barbeiro da Cidade — 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 {
  --color-oxblood: #6B1D2A;
  --color-oxblood-dark: #4A1220;
  --color-oxblood-light: #8B2E3D;
  --color-off-black: #1A1412;
  --color-bone: #F5F0E8;
  --color-bone-dark: #E8E0D4;
  --color-gold: #C9A96E;
  --color-text: #2C2420;
  --color-text-muted: #5C5248;
  --color-white: #FFFFFF;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(26, 20, 18, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 20, 18, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 20, 18, 0.16);
  --header-height: 72px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-oxblood); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-oxblood-light); }

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

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1002;
  background: var(--color-off-black);
  height: var(--header-height);
  border-bottom: 2px solid var(--color-oxblood);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-bone);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--color-gold); }
.logo-icon { width: 40px; height: 40px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}
.logo-text span { display: block; font-size: 0.65rem; font-family: var(--font-body); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-gold); }

.desktop-nav { display: none; }
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}
.desktop-nav a {
  color: var(--color-bone);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-xs);
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--color-gold); }

.header-ctas {
  display: none;
  gap: var(--space-xs);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--color-oxblood);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-oxblood-light);
  color: var(--color-white);
}
.btn-secondary {
  background: transparent;
  color: var(--color-bone);
  border: 1px solid var(--color-bone-dark);
}
.btn-secondary:hover {
  background: var(--color-bone);
  color: var(--color-off-black);
}
.btn-outline {
  background: transparent;
  color: var(--color-oxblood);
  border: 2px solid var(--color-oxblood);
}
.btn-outline:hover {
  background: var(--color-oxblood);
  color: var(--color-white);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
}
.btn-whatsapp:hover {
  background: #1DA851;
  color: var(--color-white);
}
.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hamburger */
.menu-toggle {
  position: relative;
  z-index: 1003;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bone);
  transition: 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:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }

/* Mobile Nav — fixed full-viewport opaque overlay (must be first <nav> on page) */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-off-black);
  z-index: 1001;
  padding: calc(var(--header-height) + var(--space-sm)) var(--space-md) var(--space-sm);
  overflow-y: auto;
  display: none;
  flex-direction: column;
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.mobile-nav a {
  display: block;
  color: var(--color-bone);
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  min-height: 44px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--color-gold); }
.mobile-nav-ctas {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex-shrink: 0;
}
.mobile-nav-ctas .btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
}

/* Hero */
.hero {
  background: var(--color-off-black);
  color: var(--color-bone);
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 169, 110, 0.15);
  color: var(--color-gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.hero h1 { color: var(--color-bone); margin-bottom: var(--space-sm); }
.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-bone-dark);
  margin-bottom: var(--space-lg);
  max-width: 32ch;
}
.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 {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-image-offset {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60%;
  height: 40%;
  background: var(--color-oxblood);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* Trust Bar */
.trust-bar {
  background: var(--color-oxblood);
  color: var(--color-white);
  padding: var(--space-md) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
}
.trust-item span { font-size: 0.8125rem; opacity: 0.9; }

/* Sections */
.section {
  padding: var(--space-xl) 0;
}
.section-dark {
  background: var(--color-off-black);
  color: var(--color-bone);
}
.section-dark h2, .section-dark h3 { color: var(--color-bone); }
.section-header {
  margin-bottom: var(--space-lg);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 55ch;
}
.section-dark .section-header p { color: var(--color-bone-dark); }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-oxblood);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.section-dark .section-label { color: var(--color-gold); }

/* Service Cards */
.services-grid {
  display: grid;
  gap: var(--space-md);
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.service-card-body {
  padding: var(--space-md);
}
.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}
.service-price {
  font-weight: 700;
  color: var(--color-oxblood);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

/* Differentials */
.diff-grid {
  display: grid;
  gap: var(--space-md);
}
.diff-item {
  padding: var(--space-md);
  border-left: 3px solid var(--color-oxblood);
  background: var(--color-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.diff-item h3 { margin-bottom: var(--space-xs); font-size: 1.125rem; }
.diff-item p { color: var(--color-text-muted); font-size: 0.9375rem; margin: 0; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: var(--space-md);
}
.testimonial-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--color-gold); font-size: 1rem; margin-bottom: var(--space-xs); }
.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-oxblood);
}
.rating-banner {
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-oxblood) 0%, var(--color-oxblood-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}
.rating-banner .score {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
}
.rating-banner p { margin: 0; opacity: 0.9; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.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(3) { grid-column: span 2; aspect-ratio: 16/9; }

/* Location */
.location-grid {
  display: grid;
  gap: var(--space-lg);
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 280px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-bone-dark);
}
.hours-table td:last-child { text-align: right; font-weight: 500; }
.address-block {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.address-block h3 { margin-bottom: var(--space-sm); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-off-black);
  min-height: 48px;
}
.faq-question:focus-visible {
  outline: 3px solid var(--color-oxblood);
  outline-offset: -3px;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-oxblood);
  transition: var(--transition);
}
.faq-icon::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.faq-icon::after { width: 2px; height: 14px; top: 5px; left: 11px; }
.faq-item.is-open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.faq-item.is-open .faq-answer { max-height: 500px; }

/* CTA Band */
.cta-band {
  background: var(--color-oxblood);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.cta-band p { opacity: 0.9; margin-bottom: var(--space-lg); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--color-white); color: var(--color-oxblood); }
.cta-band .btn-primary:hover { background: var(--color-bone); }

/* Footer */
.site-footer {
  background: var(--color-off-black);
  color: var(--color-bone-dark);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand .logo-text { font-size: 1.25rem; }
.footer-brand p { font-size: 0.875rem; margin-top: var(--space-sm); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--color-bone-dark); font-size: 0.875rem; }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8125rem;
}

/* Sticky Mobile Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-off-black);
  border-top: 2px solid var(--color-oxblood);
  padding: 0;
}
.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.sticky-bar a:first-child { background: #25D366; }
.sticky-bar a:last-child { background: var(--color-oxblood); }
.sticky-bar a:focus-visible { outline: 3px solid var(--color-gold); outline-offset: -3px; }

body { padding-bottom: 56px; }

/* Page Hero (inner pages) */
.page-hero {
  background: var(--color-off-black);
  color: var(--color-bone);
  padding: var(--space-lg) 0;
}
.page-hero h1 { color: var(--color-bone); margin-bottom: var(--space-xs); }
.page-hero p { color: var(--color-bone-dark); margin: 0; }
.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
}
.breadcrumb a { color: var(--color-bone-dark); }
.breadcrumb a:hover { color: var(--color-gold); }

/* Content blocks */
.content-block { max-width: 70ch; }
.content-block h2 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.content-block h2:first-child { margin-top: 0; }
.content-block ul, .content-block ol { margin: var(--space-sm) 0 var(--space-sm) var(--space-md); }
.content-block li { margin-bottom: 0.5rem; }

/* Team */
.team-grid {
  display: grid;
  gap: var(--space-md);
}
.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.team-card-body { padding: var(--space-md); }
.team-card h3 { margin-bottom: 0.25rem; }
.team-role { color: var(--color-oxblood); font-size: 0.875rem; font-weight: 600; margin-bottom: var(--space-xs); }

/* Booking page */
.booking-options {
  display: grid;
  gap: var(--space-md);
}
.booking-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.booking-card.featured {
  border: 2px solid var(--color-oxblood);
}
.booking-card h3 { margin-bottom: var(--space-sm); }
.booking-card p { color: var(--color-text-muted); margin-bottom: var(--space-md); }

/* Privacy */
.privacy-content h2 { font-size: 1.5rem; margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.privacy-content h2:first-of-type { margin-top: 0; }

/* Magazine layout offset */
.asymmetric-grid {
  display: grid;
  gap: var(--space-lg);
}
.asymmetric-grid .offset-block {
  margin-top: var(--space-lg);
}

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

/* Tablet+ */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .desktop-nav { display: block; }
  .header-ctas { display: flex; }
  .mobile-nav { display: none !important; }
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  .hero-image-wrap { margin-right: -40px; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(3) { grid-column: span 1; aspect-ratio: 1; }
  .gallery-item:nth-child(1) { grid-row: span 2; }

  .location-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-options { grid-template-columns: repeat(2, 1fr); }

  .asymmetric-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .asymmetric-grid.reverse .offset-block { order: -1; margin-top: 0; }
}

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