/* ==========================================================================
   Capitão Barbershop — style.css
   Site institucional — Versão de produção
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --gold: #c8a45a;
  --gold-light: #e0c781;
  --white: #f5f0e8;
  --white-dim: #b8b2a6;
  --red: #c0392b;
  --blue: #2a5298;
  --stripe-red: #c0392b;
  --stripe-blue: #1e3a6e;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  --nav-height: 76px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.7s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. SKIP LINK (Acessibilidade)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

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

  @keyframes float {
    0%, 100% { transform: none; }
  }
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--black);
  padding: 16px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--gold);
  padding: 16px 36px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  min-width: 44px;
}

.btn-outline:hover {
  background: rgba(200, 164, 90, 0.1);
}

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

/* --------------------------------------------------------------------------
   6. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  transition: background var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.nav-logo {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.nav-cta) {
  color: var(--white-dim);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-base);
  padding: 4px 0;
}

/* links de texto da nav (evita conflito de especificidade com .nav-cta) */
.nav-links a.nav-cta {
  padding: 14px 36px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 1.5px;
  transition: background var(--transition-base), transform var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: scale(1.04);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200, 164, 90, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(42, 82, 152, 0.05), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-text > p {
  font-size: 1.1rem;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 0 80px rgba(200, 164, 90, 0.15));
  animation: float 6s ease-in-out infinite;
}

.hero-logo picture {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. BARBER POLE DIVIDER
   -------------------------------------------------------------------------- */
.pole-divider {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-red) 0 30px,
    #fff 30px 60px,
    var(--stripe-blue) 60px 90px
  );
}

/* --------------------------------------------------------------------------
   9. ABOUT / QUEM SOMOS
   -------------------------------------------------------------------------- */
.about {
  padding: 100px 0;
  background: var(--dark);
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-description {
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--dark2);
  border: 1px solid rgba(200, 164, 90, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.about-card:hover {
  border-color: rgba(200, 164, 90, 0.25);
  transform: translateY(-6px);
}

.about-card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-card:hover .about-card-img img {
  transform: scale(1.05);
}

.about-card-body {
  padding: 28px 24px;
}

.about-card-body h4 {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.about-card-body p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. SERVICES / SERVIÇOS
   -------------------------------------------------------------------------- */
.services {
  padding: 100px 0;
  background: var(--black);
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header p {
  color: var(--white-dim);
  max-width: 520px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.service-card {
  background: var(--dark2);
  border: 1px solid rgba(200, 164, 90, 0.08);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.service-card:hover {
  border-color: rgba(200, 164, 90, 0.3);
  transform: translateY(-4px);
}

.svc-name {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.svc-detail {
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-top: 4px;
}

.svc-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  white-space: nowrap;
}

.services-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px 32px;
  background: rgba(200, 164, 90, 0.06);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   11. SCHEDULE / HORÁRIOS
   -------------------------------------------------------------------------- */
.schedule {
  padding: 100px 0;
  background: var(--dark);
}

.schedule-text {
  text-align: center;
  margin-bottom: 48px;
}

.schedule-table {
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.schedule-table th,
.schedule-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(200, 164, 90, 0.1);
}

.schedule-table th {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.schedule-table td {
  font-size: 0.95rem;
}

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

.schedule-table tr.closed td {
  color: var(--stripe-red);
}

/* --------------------------------------------------------------------------
   12. DIFERENCIAIS
   -------------------------------------------------------------------------- */
.diferenciais {
  padding: 100px 0;
  background: var(--black);
}

.diferenciais-text {
  text-align: center;
  margin-bottom: 48px;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diferencial-card {
  background: var(--dark2);
  border: 1px solid rgba(200, 164, 90, 0.08);
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.diferencial-card:hover {
  border-color: rgba(200, 164, 90, 0.25);
  transform: translateY(-6px);
}

.diferencial-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.diferencial-card h4 {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.diferencial-card p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. REVIEWS / AVALIAÇÕES
   -------------------------------------------------------------------------- */
.reviews {
  padding: 100px 0;
  background: var(--dark);
}

.reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.review-card {
  background: var(--dark2);
  border: 1px solid rgba(200, 164, 90, 0.08);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: border-color var(--transition-base);
}

.review-card:hover {
  border-color: rgba(200, 164, 90, 0.25);
}

.review-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(200, 164, 90, 0.12);
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.review-card blockquote {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-style: normal;
}

.review-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   14. CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(200, 164, 90, 0.12) 0%, var(--dark) 100%);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-banner > .container > p {
  color: var(--white-dim);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 60px 0 32px;
  background: var(--dark2);
  border-top: 1px solid rgba(200, 164, 90, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.site-footer h5 {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--white-dim);
  font-size: 0.88rem;
  transition: color var(--transition-base);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--white-dim);
}

.footer-contact li + li {
  margin-top: 14px;
}

.footer-contact a {
  color: var(--white-dim);
  transition: color var(--transition-base);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--gold);
}

.footer-map {
  margin-top: 48px;
  margin-bottom: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 90, 0.08);
}

.footer-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(200, 164, 90, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(200, 164, 90, 0.4);
}

/* --------------------------------------------------------------------------
   16. WHATSAPP FLOATING BUTTON
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 4px;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* --------------------------------------------------------------------------
   17. BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 98;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark3);
  border: 1px solid rgba(200, 164, 90, 0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base),
    background var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--black);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE — MOBILE FIRST (base is mobile, scaling up)
   ========================================================================== */

/* --------------------------------------------------------------------------
   max-width: 480px — Small phones
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px 20px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   max-width: 768px — Tablets & large phones
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo {
    order: -1;
  }

  .hero-logo img {
    max-width: 240px;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .diferenciais-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   max-width: 1024px — Small laptops
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .about-cards {
    gap: 20px;
  }

  .about-card-img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   min-width: 1200px — Large desktops
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .container {
    padding: 0 32px;
  }
}
