/* JK Barbearia — Design System */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-bg: #12151a;
  --color-bg-elevated: #1a1f27;
  --color-bg-card: #1e242d;
  --color-surface: #252c36;
  --color-gunmetal: #2a313c;
  --color-text: #e8eaed;
  --color-text-muted: #9aa3b0;
  --color-teal: #00d4c5;
  --color-teal-dark: #00a89c;
  --color-teal-glow: rgba(0, 212, 197, 0.25);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-star: #f5c542;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Archivo', 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: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--color-teal-glow);

  --header-h: 72px;
  --mobile-bar-h: 64px;
  --max-w: 1200px;
  --transition: 0.25s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: #33e0d4; }

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

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

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 21, 26, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.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.6rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--color-text); }

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-teal);
  flex-shrink: 0;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-teal);
  background: rgba(0, 212, 197, 0.08);
}

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity 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);
}

/* Mobile nav — direct body child, NO transformed ancestors */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(100dvh - var(--header-h));
  z-index: 99;
  background: var(--color-bg);
  padding: var(--space-md);
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
}

.mobile-nav a[aria-current="page"] { color: var(--color-teal); }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-teal);
  color: var(--color-bg);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #33e0d4;
  color: var(--color-bg);
  box-shadow: 0 0 40px var(--color-teal-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(0, 212, 197, 0.06);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(520px, 85vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    rgba(18, 21, 26, 0.7) 40%,
    rgba(18, 21, 26, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 var(--space-lg);
  width: 100%;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-star);
  background: rgba(245, 197, 66, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

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

/* ── Trust bar ── */
.trust-bar {
  background: var(--color-bg-elevated);
  border-block: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

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

.trust-item {
  text-align: center;
  padding: var(--space-sm);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-teal);
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

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

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

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

/* Image bands */
.image-band {
  width: 100%;
  height: clamp(200px, 30vw, 360px);
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(0, 212, 197, 0.3);
  box-shadow: var(--shadow-md);
}

.card h3 { color: var(--color-text); }

.card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
  margin: 0.5rem 0;
}

.card p:last-child { margin-bottom: 0; }

/* ── Diferenciais ── */
.diff-list {
  display: grid;
  gap: var(--space-md);
}

.diff-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.diff-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 197, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-teal);
  font-size: 1.25rem;
}

/* ── Testimonials ── */
.rating-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.rating-big {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
}

.rating-stars { color: var(--color-star); font-size: 1.25rem; }

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

.testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.testimonial-stars { color: var(--color-star); 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(--color-text-muted);
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  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); }

/* ── Location ── */
.location-grid {
  display: grid;
  gap: var(--space-lg);
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}

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

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-teal);
  font-weight: 600;
}

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

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-gunmetal) 100%);
  border-block: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  text-align: center;
}

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

.cta-band p {
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-lg);
  padding-bottom: calc(var(--space-lg) + var(--mobile-bar-h));
}

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

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}

.footer-col p,
.footer-col li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-teal); }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Mobile sticky bar ── */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  height: var(--mobile-bar-h);
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 0.5rem;
  gap: 0.5rem;
}

.mobile-bar .btn {
  flex: 1;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  padding: 0.5rem;
}

.mobile-bar .btn-whatsapp { background: #25d366; color: #fff; }
.mobile-bar .btn-whatsapp:hover { background: #2ee070; color: #fff; }
.mobile-bar .btn-call {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
}

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

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-teal); }

/* ── Team ── */
.team-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.team-card {
  text-align: center;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card h3 { padding: var(--space-sm) var(--space-sm) 0; }
.team-card p { padding: 0 var(--space-sm) var(--space-sm); color: var(--color-text-muted); font-size: 0.9rem; }

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

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

.legal-content ul {
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

/* ── Agende page ── */
.agende-options {
  display: grid;
  gap: var(--space-md);
  max-width: 640px;
}

.agende-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.agende-card.featured {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-glow);
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-ctas { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: var(--space-lg); }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .diff-list { grid-template-columns: repeat(2, 1fr); }
}

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

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