:root {
  --black: #0d0c0a;
  --black-soft: #17140f;
  --gold: #caa14d;
  --gold-bright: #e9c883;
  --cream: #f5efe4;
  --text-muted: #b8afa0;
  --border: rgba(245, 239, 228, 0.1);

  --font: "Inter", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --container-width: 1100px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  max-width: 640px;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

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

.btn-ghost {
  border-color: var(--border);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-disabled, .btn-disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.logo svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  padding: 130px 0 100px;
  background:
    radial-gradient(circle at 50% 0%, rgba(202, 161, 77, 0.14), transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  text-align: center;
  overflow: hidden;
}

/* Decorative hero elements */
.hero-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero-decor-left { left: calc(50% - 610px); }
.hero-decor-right { right: calc(50% - 610px); top: 62%; }

@media (max-width: 1300px) {
  .hero-decor { display: none; }
}

.barber-pole {
  position: relative;
  width: 46px;
  height: 210px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--border);
  animation: pole-float 7s ease-in-out infinite;
}

.pole-stripes {
  position: absolute;
  inset: -40px -20px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold) 0 16px,
    var(--cream) 16px 32px,
    var(--black-soft) 32px 48px
  );
  animation: pole-spin 3s linear infinite;
}

.pole-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 16px;
  background: var(--gold);
  border-radius: 999px;
  z-index: 2;
}

.pole-cap-top { top: -6px; }
.pole-cap-bottom { bottom: -6px; }

@keyframes pole-spin {
  from { background-position: 0 0; }
  to { background-position: 0 96px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .pole-stripes { animation: none; }
  .barber-pole { animation: none; }
}

.float-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  background: rgba(245, 239, 228, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  font-size: 0.82rem;
  animation: pole-float 8s ease-in-out infinite;
  animation-delay: -3s;
}

.float-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(202, 161, 77, 0.2);
  flex-shrink: 0;
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

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

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  max-width: 760px;
  margin: 0 auto 22px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Serviços */
.servicos {
  background: var(--black-soft);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  background: rgba(245, 239, 228, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card.featured {
  border-color: var(--gold);
  background: rgba(202, 161, 77, 0.08);
}

.badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.price {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
}

/* Horários */
.horarios-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.hours-list {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.hours-list li span:first-child {
  color: var(--cream);
}

.horarios-note {
  background: rgba(245, 239, 228, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 76px;
}

/* CTA */
.cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(202, 161, 77, 0.16), transparent 60%),
    var(--black);
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.cta .cta-content {
  margin-bottom: 36px;
}

/* Booking form */
.booking-card {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(245, 239, 228, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

.booking-field {
  margin-bottom: 22px;
}

.booking-field > label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.booking-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.booking-field input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cream);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
}

.date-input {
  color-scheme: dark;
  cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.booking-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cream);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option-chip span {
  color: var(--gold);
  font-size: 0.82rem;
}

.option-chip.small {
  flex-direction: row;
  padding: 9px 14px;
  font-size: 0.85rem;
}

.option-chip:hover {
  border-color: var(--gold);
}

.option-chip.active {
  border-color: var(--gold);
  background: rgba(202, 161, 77, 0.12);
}

.option-chip.disabled,
.option-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.option-chip.disabled:hover,
.option-chip:disabled:hover {
  border-color: var(--border);
}

.booking-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.booking-error {
  background: rgba(220, 90, 90, 0.12);
  border: 1px solid rgba(220, 90, 90, 0.4);
  color: #f0a3a3;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.booking-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 14px;
}

.my-bookings {
  max-width: 640px;
  margin: 32px auto 0;
}

.my-bookings h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  text-align: left;
}

.bookings-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: left;
}

.booking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(245, 239, 228, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  text-align: left;
}

.booking-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

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

.booking-cancel {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.booking-cancel:hover {
  border-color: #dc5a5a;
  color: #dc5a5a;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .horarios-grid {
    grid-template-columns: 1fr;
  }
  .horarios-note {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 100px 0 70px; }
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .booking-card { padding: 24px 18px; }
  .booking-grid-2 { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
}
