/* Fraternos Barbearia — Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #152a4a;
  --copper-500: #b87333;
  --copper-400: #c9894d;
  --copper-300: #dba66a;
  --grey-100: #f4f2ef;
  --grey-200: #e8e4df;
  --grey-300: #c9c4bc;
  --grey-400: #9a948a;
  --grey-600: #5c574f;
  --white: #ffffff;
  --text: var(--grey-100);
  --text-muted: var(--grey-300);
  --bg: var(--navy-900);
  --bg-card: var(--navy-800);
  --bg-elevated: var(--navy-700);
  --accent: var(--copper-500);
  --accent-hover: var(--copper-400);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.45);
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font-sans: 'Poppins', 'Montserrat', system-ui, sans-serif;
  --font-display: 'Montserrat', 'Poppins', system-ui, sans-serif;
  --header-h: 72px;
  --mobile-bar-h: 64px;
  --max-w: 1200px;
  --transition: .25s ease;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  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(--copper-300); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-400); }
a:focus-visible { outline: 2px solid var(--copper-400); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; margin-bottom: var(--space-md); }
h3 { font-size: 1.125rem; font-weight: 600; 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);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--copper-500);
  color: var(--navy-900);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
}
.skip-link:focus { top: var(--space-sm); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0a1628;
  border-bottom: 1px solid rgba(184, 115, 51, .2);
  height: var(--header-h);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo:hover { color: var(--copper-300); }
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }

.nav-desktop { display: none; }
@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }
  .nav-desktop a {
    color: var(--grey-200);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-desktop a:hover,
  .nav-desktop a.active {
    color: var(--copper-300);
    border-bottom-color: var(--copper-500);
  }
}

.header-ctas {
  display: none;
  gap: .5rem;
}
@media (min-width: 992px) {
  .header-ctas { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  min-width: 48px;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.3;
}
.btn:focus-visible { outline: 2px solid var(--copper-400); outline-offset: 3px; }

.btn-primary {
  background: var(--copper-500);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--copper-400);
  color: var(--navy-900);
}

.btn-secondary {
  background: transparent;
  color: var(--grey-100);
  border: 1px solid var(--grey-400);
}
.btn-secondary:hover {
  border-color: var(--copper-400);
  color: var(--copper-300);
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }

.btn-sm {
  min-height: 40px;
  padding: .5rem 1rem;
  font-size: .8125rem;
}

.btn-icon { padding: .6rem; }

/* 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: transparent;
  border: 1px solid rgba(184,115,51,.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--copper-400);
  border-radius: 1px;
  transition: opacity var(--transition), transform 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); }

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

/* Mobile menu overlay — fixed at body level, full viewport, opaque */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--navy-900);
  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;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu > a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--grey-100);
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu > a:hover,
.mobile-menu > a.active { color: var(--copper-300); }
.mobile-menu-ctas {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

/* Hero */
.hero {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(184,115,51,.15);
  border: 1px solid rgba(184,115,51,.3);
  color: var(--copper-300);
  padding: .5rem 1rem;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--grey-300);
  margin: var(--space-md) 0;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184,115,51,.2);
}
.hero-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Trust bar */
.trust-bar {
  background: var(--navy-800);
  border-top: 1px solid rgba(184,115,51,.15);
  border-bottom: 1px solid rgba(184,115,51,.15);
  padding: var(--space-md) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  text-align: center;
  padding: var(--space-sm);
}
.trust-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--copper-400);
  font-family: var(--font-display);
  font-weight: 700;
}
.trust-item span {
  font-size: .8125rem;
  color: var(--grey-300);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}
.section-alt { background: var(--navy-800); }
.section-header {
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.section-answer {
  color: var(--grey-300);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}
.section-label {
  display: inline-block;
  color: var(--copper-400);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid rgba(184,115,51,.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(184,115,51,.4);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,115,51,.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}
.card-price {
  color: var(--copper-400);
  font-weight: 600;
  font-size: .9375rem;
  margin: var(--space-xs) 0;
}
.card p { color: var(--grey-300); font-size: .9375rem; }

/* Service card with image */
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(184,115,51,.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(184,115,51,.35);
}
.service-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-card-body { padding: var(--space-md); }

/* Diferenciais */
.diff-list {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .diff-list { grid-template-columns: repeat(2, 1fr); }
}
.diff-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--copper-500);
}
.diff-item strong { color: var(--white); display: block; margin-bottom: .25rem; }
.diff-item p { color: var(--grey-300); font-size: .9375rem; margin: 0; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(184,115,51,.12);
}
.testimonial-stars { color: var(--copper-400); margin-bottom: var(--space-xs); letter-spacing: 2px; }
.testimonial blockquote {
  font-style: italic;
  color: var(--grey-200);
  font-size: .9375rem;
  margin-bottom: var(--space-sm);
}
.testimonial cite {
  font-style: normal;
  font-size: .8125rem;
  color: var(--grey-400);
  font-weight: 600;
}

.rating-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(184,115,51,.25);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.rating-banner .score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--copper-400);
  font-family: var(--font-display);
  line-height: 1;
}
.rating-banner .meta { color: var(--grey-300); font-size: .9375rem; }

/* 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); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(184,115,51,.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Location */
.location-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 768px) { .location-grid { grid-template-columns: 1fr 1fr; } }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(184,115,51,.2);
  aspect-ratio: 4/3;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 280px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}
.hours-table td {
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .9375rem;
}
.hours-table td:first-child { color: var(--grey-300); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--white); }

.info-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(184,115,51,.15);
}
.info-block h3 { margin-bottom: var(--space-sm); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(184,115,51,.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}
.faq-question:focus-visible { outline: 2px solid var(--copper-400); outline-offset: -2px; }
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--copper-400);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  color: var(--grey-300);
  font-size: .9375rem;
}
.faq-item.is-open .faq-answer { display: block; }

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--copper-500), var(--copper-400));
  padding: var(--space-xl) 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy-900); margin-bottom: var(--space-sm); }
.cta-band p { color: var(--navy-800); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.cta-band .btn-primary:hover { background: var(--navy-800); }

/* Footer */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(184,115,51,.2);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo { margin-bottom: var(--space-sm); }
.footer-brand p { color: var(--grey-400); font-size: .875rem; }

.footer-col h4 {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper-400);
  margin-bottom: var(--space-sm);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--grey-300); font-size: .875rem; }
.footer-col a:hover { color: var(--copper-300); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--grey-400);
}

.social-links { display: flex; gap: var(--space-sm); }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  color: var(--grey-200);
  font-size: .75rem;
  font-weight: 600;
}
.social-links a:hover { background: rgba(184,115,51,.2); color: var(--copper-300); }

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  background: var(--navy-800);
  border-top: 1px solid rgba(184,115,51,.3);
  height: var(--mobile-bar-h);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }

.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .875rem;
  min-height: var(--mobile-bar-h);
  color: var(--white);
}
.mobile-bar a:first-child {
  background: #25d366;
  color: #fff;
}
.mobile-bar a:last-child {
  background: var(--navy-700);
  color: var(--grey-100);
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-bottom: 1px solid rgba(184,115,51,.15);
}
.page-hero p { color: var(--grey-300); max-width: 640px; font-size: 1.0625rem; }

.breadcrumb {
  font-size: .8125rem;
  color: var(--grey-400);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--grey-300); }

/* Team */
.team-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(184,115,51,.15);
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.team-card-body { padding: var(--space-md); }
.team-card-body p { color: var(--grey-400); font-size: .875rem; }

/* Agende page */
.agende-steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}
@media (min-width: 768px) { .agende-steps { grid-template-columns: repeat(3, 1fr); } }
.agende-step {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(184,115,51,.15);
  position: relative;
  padding-top: 3rem;
}
.agende-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 36px;
  height: 36px;
  background: var(--copper-500);
  color: var(--navy-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Privacy */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.25rem; margin-top: var(--space-lg); }
.legal-content h3 { font-size: 1.0625rem; margin-top: var(--space-md); color: var(--grey-200); }
.legal-content p, .legal-content li { color: var(--grey-300); font-size: .9375rem; }
.legal-content ul { margin: var(--space-sm) 0 var(--space-sm) 1.25rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .gallery-item:hover img { transform: none; }
}
