/* ==========================================================================
   Components — Barbearia Sr. & Sra. Carvalho
   Botões, cards, hero, navbar, footer, carrossel, formulários, etc.
   ========================================================================== */

/* ==========================================================================
   TIPGRAFIA
   ========================================================================== */

.heading-1 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .heading-1 {
    font-size: var(--fs-4xl);
  }
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .heading-2 {
    font-size: var(--fs-3xl);
  }
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  font-weight: 500;
}

.body-lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.body {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.body-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent);
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ==========================================================================
   BOTÕES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover,
.btn--outline:active {
  background: var(--accent-bg);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
  padding: var(--space-3) var(--space-5);
}

.btn--whatsapp:hover,
.btn--whatsapp:active {
  background: var(--wa-green-hover);
  border-color: var(--wa-green-hover);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-fixed);
  animation: pulse 2s infinite;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  background: var(--wa-green);
  color: #fff;
  border: 2px solid var(--wa-green);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: var(--wa-green-hover);
  border-color: var(--wa-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  color: #fff;
  text-decoration: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5); }
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float__text {
  display: none;
}

@media (min-width: 480px) {
  .whatsapp-float__text {
    display: inline;
  }
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: var(--space-8);
    right: var(--space-8);
    padding: var(--space-4) var(--space-6);
    font-size: var(--fs-base);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-sticky);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo:hover {
  color: var(--accent);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--accent);
}

.header__nav {
  display: none;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--accent);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-normal);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta {
    display: flex;
  }
}

/* Menu mobile */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--surface-hover);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}

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

/* Menu mobile list */
.mobile-menu__list {
  border-color: var(--border);
  background: var(--bg-elevated);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px; /* altura do header fixo */
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 39, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.hero__badge svg {
  width: 18px;
  height: 18px;
}

.hero__title {
  margin-bottom: var(--space-5);
  color: var(--text);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--space-7);
  max-width: 90%;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--fs-xl);
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-9);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

@media (min-width: 768px) {
  .hero__stat-value {
    font-size: var(--fs-3xl);
  }
}

.hero__stat-label {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CARDS DE SERVIÇO
   ========================================================================== */

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--accent);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.service-card__description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  flex: 1;
  margin-bottom: var(--space-4);
}

.service-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */

.diferencial {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.diferencial__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--accent);
}

.diferencial__icon svg {
  width: 32px;
  height: 32px;
}

.diferencial__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.diferencial__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* ==========================================================================
   GALERIA / CARROSSEL
   ========================================================================== */

.gallery {
  position: relative;
  overflow: hidden;
}

.gallery__track {
  display: flex;
  transition: transform var(--transition-slow);
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 var(--space-2);
}

@media (min-width: 640px) {
  .gallery__slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .gallery__slide {
    flex: 0 0 33.333%;
  }
}

.gallery__image {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__slide:hover .gallery__image img {
  transform: scale(1.05);
}

.gallery__badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-normal);
}

.gallery__slide:hover .gallery__badge {
  opacity: 1;
  transform: translateY(0);
}

.gallery__badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.gallery__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.gallery__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  transition: all var(--transition-fast);
}

.gallery__btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.gallery__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery__btn svg {
  width: 20px;
  height: 20px;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border);
  border: none;
  padding: 0;
  transition: all var(--transition-fast);
}

.gallery__dot:hover {
  background: var(--accent);
}

.gallery__dot--active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  pointer-events: none;
}

.testimonial__text {
  position: relative;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.testimonial__name {
  font-weight: 600;
  color: var(--text);
}

.testimonial__meta {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ==========================================================================
   CONTATO / LOCALIZAÇÃO
   ========================================================================== */

.contact {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

@media (min-width: 768px) {
  .contact {
    padding: var(--space-10);
  }
}

.contact__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: var(--space-1);
}

.contact__value {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-normal);
}

.contact__value a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.contact__value a:hover {
  color: var(--accent-hover);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 300px;
  position: relative;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  display: block;
}

.contact__map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
}

.contact__map-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--border-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-4);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--accent);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__nav-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__nav-link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer__disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  max-width: 600px;
  line-height: var(--lh-normal);
}

.footer__disclaimer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__disclaimer a:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   BADGES / TAGS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--accent {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.badge--success {
  background: rgba(46, 125, 50, 0.15);
  color: #66BB6A;
  border: 1px solid #66BB6A;
}

/* ==========================================================================
   UTILITÁRIOS DE ANIMAÇÃO
   ========================================================================== */

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp var(--transition-slow) ease-out forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }
.stagger-6 { animation-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}