/* BarberHouse — Design System Premium v2 */

:root {
  --bg-base: #050505;
  --bg-elevated: #0d0d0d;
  --bg-card: #121212;
  --bg-card-hover: #181818;
  --gold: #c89b3c;
  --gold-light: #e4b85a;
  --gold-glow: rgba(200, 155, 60, 0.35);
  --gold-dim: rgba(200, 155, 60, 0.12);
  --text: #f5f5f5;
  --text-muted: #a8a8a8;
  --text-dim: #6e6e6e;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(200, 155, 60, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px var(--gold-glow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

img, picture, video, canvas {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 155, 60, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(200, 155, 60, 0.04), transparent 40%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 255, 255, 0.02), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  line-height: 1.7;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  white-space: nowrap;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #a67c2e 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 24px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--border-gold);
  background: var(--gold-dim);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn-lg { padding: 1.15rem 2.25rem; font-size: 1.05rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
  min-width: 0;
}

.header__inner .logo {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 52px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 2;
}

.logo span { color: var(--gold); }

.logo--image { font-size: 0; }
.logo__img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.nav__cta.btn-primary { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease) 0.35s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(24px);
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn { margin-top: 2rem; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
  display: flex;
  align-items: flex-start;
  z-index: 1;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 960px) {
  .hero {
    min-height: 100dvh;
    align-items: center;
    padding: calc(var(--header-h) + 3rem) 0 4rem;
  }
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  max-width: 100%;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
}

.hero__stars { color: var(--gold); letter-spacing: 2px; }

.hero__title {
  font-size: clamp(2rem, 8vw, 4.25rem);
  margin-bottom: 1.25rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 100%;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__actions .btn {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 480px) {
  .hero__actions .btn {
    width: auto;
    white-space: nowrap;
  }
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.35rem;
  width: 100%;
  max-width: 100%;
}

.hero__trust-item {
  min-width: 0;
  text-align: center;
}

.hero__trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.75rem);
  color: var(--gold);
  line-height: 1.2;
}

.hero__trust-item span {
  display: block;
  font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  color: var(--text-dim);
  line-height: 1.25;
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: min(70vh, 480px);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

@media (min-width: 960px) {
  .hero__visual {
    border-radius: var(--radius-xl);
    max-height: 620px;
    margin: 0;
  }
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 5, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.4), transparent 40%, transparent 60%, rgba(200, 155, 60, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.hero__visual img,
.hero__visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__glow {
  position: absolute;
  width: min(280px, 80vw);
  height: min(280px, 50vh);
  top: 10%;
  right: 0;
  left: auto;
  transform: translateX(15%);
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@media (min-width: 960px) {
  .hero__glow {
    width: 60%;
    height: 60%;
    top: 20%;
    right: 0;
    transform: none;
    opacity: 1;
  }
}

/* Quick Booking */
.quick-book {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 13, 0.6) 20%, var(--bg-elevated) 100%);
}

.quick-book__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.quick-book__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.quick-book__header p { color: var(--text-muted); font-size: 1.05rem; }

.quick-book__app {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(13, 13, 13, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .quick-book__app {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
  }
}

/* Booking progress */
.book-progress {
  display: flex;
  justify-content: flex-start;
  gap: 0.15rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.book-progress::-webkit-scrollbar {
  display: none;
}

.book-progress__step {
  flex: 1;
  min-width: 72px;
  text-align: center;
  position: relative;
}

.book-progress__step::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.book-progress__step:last-child::after { display: none; }

.book-progress__dot {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: var(--ease) 0.35s;
}

.book-progress__step span {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.book-progress__step.active .book-progress__dot {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.book-progress__step.active span { color: var(--gold); }

.book-progress__step.done .book-progress__dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}

.book-panel:not(.active) { display: none; }
.book-panel.active { display: block; animation: fadeIn 0.4s var(--ease); }
.book-panel[hidden] { display: none !important; }

.book-panel__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.book-panel__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chips & cards booking */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  width: 100%;
}

.chip-card {
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--ease) 0.3s;
  text-align: center;
  font-family: inherit;
  color: inherit;
  width: 100%;
}

.chip-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.chip-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-glow);
}

.chip-card--barber {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.chip-card--barber img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.chip-card--service .chip-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.65rem;
}

.slot-chip {
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--ease) 0.25s;
  font-family: inherit;
}

.slot-chip:hover:not(:disabled) {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.slot-chip.selected {
  border-color: var(--gold);
  background: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.slot-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.date-input-wrap input[type="date"] {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
}

.date-input-wrap input:focus {
  outline: none;
  border-color: var(--gold);
}

.book-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: stretch;
}

.book-nav .btn {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
}

.book-nav .btn-primary.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: normal;
  line-height: 1.3;
  padding: 0.85rem 1.25rem;
}

.book-nav .btn-primary.btn-lg svg {
  flex-shrink: 0;
}

@media (min-width: 520px) {
  .book-nav {
    flex-direction: row;
    align-items: center;
  }
}

.book-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.book-summary dl {
  display: grid;
  gap: 0.75rem;
}

.book-summary dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.book-summary dd { font-weight: 600; font-size: 1.05rem; }

.book-success {
  text-align: center;
  padding: 2rem 0;
}

.book-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  box-shadow: 0 0 40px var(--gold-glow);
}

.book-success__cta {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  text-align: left;
}

.book-success__cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pendente { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.status-confirmado { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.status-cancelado { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.status-concluido { background: rgba(52, 152, 219, 0.15); color: #3498db; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input.error { border-color: #e85d5d; }

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  color: var(--text);
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  transition: background-color 9999s ease-out 0s;
}
.form-error { font-size: 0.8rem; color: #e85d5d; margin-top: 0.35rem; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section-subtitle { margin: 0 auto; }

/* Service cards premium */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card), 0 0 40px rgba(200, 155, 60, 0.08);
}

.service-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__img img { transform: scale(1.06); }

.service-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.service-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service-card__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.6;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-card__duration {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.service-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--ease) 0.35s;
}

.feature-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.feature-card h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.about__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.about__text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

.about__list { margin: 1.5rem 0 2rem; }

.about__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
}

.about__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* Gallery masonry */
.gallery-masonry {
  columns: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-masonry { columns: 3; column-gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .gallery-masonry { columns: 4; }
}

.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-masonry__item img {
  width: 100%;
  display: block;
  transition: transform 0.7s var(--ease);
}

.gallery-masonry__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-masonry__item:hover img { transform: scale(1.08); }
.gallery-masonry__item:hover::after { opacity: 1; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--ease) 0.35s;
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 3px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
}

.testimonial-card__author strong { display: block; }
.testimonial-card__author span { font-size: 0.85rem; color: var(--text-dim); }

/* CTA */
.cta-block {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.08), transparent 50%);
  pointer-events: none;
}

.cta-block h2 { margin-bottom: 0.75rem; position: relative; }
.cta-block p { color: var(--text-muted); margin-bottom: 1.5rem; position: relative; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer a, .footer li { font-size: 0.95rem; color: var(--text-muted); }
.footer a:hover { color: var(--gold); }
.footer__desc { margin-top: 1rem; max-width: 280px; line-height: 1.7; }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* Float CTA */
.float-cta {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  gap: 0.75rem;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}

.float-cta.visible { transform: translateY(0); }

.float-cta.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}

.float-cta .btn-primary {
  flex: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-glow);
}

@media (min-width: 960px) {
  .float-cta {
    display: none;
  }
}

body.has-float-cta {
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 960px) {
  body.has-float-cta { padding-bottom: 0; }
}

/* ——— Correções mobile: sem scroll horizontal ——— */
.section,
.quick-book,
.footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.quick-book__header {
  padding-left: 0;
  padding-right: 0;
}

.quick-book__header h2 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  overflow-wrap: break-word;
}

.gallery-masonry {
  width: 100%;
}

.slot-grid {
  width: 100%;
}

.book-nav {
  flex-wrap: wrap;
}

.book-nav .btn {
  min-width: 0;
}

.section-title,
.section-subtitle {
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 959px) {
  .book-progress__step {
    flex: 0 0 auto;
    min-width: 58px;
  }

  .book-progress__step span {
    font-size: 0.58rem;
  }

  .whatsapp-float {
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
  }

  .float-cta {
    left: 1rem;
    right: 1rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .float-cta .btn-primary {
    white-space: normal;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #agendar {
    scroll-margin-top: calc(var(--header-h) + 0.5rem);
    padding-top: 2.5rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .quick-book .book-panel.active {
    padding-bottom: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .chip-card--barber {
    flex-direction: column;
    text-align: center;
  }

  .chip-card--barber img {
    margin: 0 auto;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 899;
  transition: transform 0.3s var(--ease);
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@media (min-width: 960px) {
  .whatsapp-float { bottom: 1.5rem; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Above-the-fold: não esconder hero/agendamento antes do scroll */
.hero .reveal,
#agendar > .container > .reveal {
  opacity: 1;
  transform: none;
}

img {
  background: var(--bg-card);
}

img[data-fallback-applied] {
  opacity: 1;
}

/* Booking page full */
.booking-page {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.booking-page .quick-book__app { max-width: 720px; }

.hidden { display: none !important; }

.empty-msg {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* =====================================================================
   MOBILE-FIRST REFINEMENTS (90% do tráfego é mobile)
   ===================================================================== */

/* Inputs nunca dão zoom no iOS (precisam de no mín 16px) */
@media (max-width: 767px) {
  .form-group input,
  .form-group textarea,
  .form-group select,
  .date-input-wrap input[type="date"],
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Touch targets confortáveis no mobile */
@media (max-width: 767px) {
  .btn { min-height: 48px; }
  .btn-sm { min-height: 36px; }
  .chip-card { min-height: 64px; }
  .slot-chip { min-height: 56px; }
  .mobile-link { min-height: 48px; display: flex; align-items: center; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Header padding com safe-area */
.header {
  padding-top: env(safe-area-inset-top, 0);
}

/* Footer com safe area embaixo */
.footer {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

/* Mobile-nav (menu hambúrguer da landing) com safe area */
.mobile-nav {
  padding-top: max(2rem, calc(2rem + env(safe-area-inset-top)));
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0));
}

/* Garantir que o conteúdo nunca quebra horizontalmente em telas estreitas */
html, body {
  overflow-x: hidden;
}

/* Imagens sempre responsivas */
img, video {
  max-width: 100%;
  height: auto;
}

/* Containers respeitam safe area (esquerda/direita) em telas com notch */
.container {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

/* Selecionar texto: parecido com bgcolor do tema */
::selection {
  background: rgba(200, 155, 60, 0.35);
  color: var(--text);
}

