/* Barbearia JoaquAIm — estética clássica masculina */
:root {
  --bg-dark: #0d0d0d;
  --bg-card: #161616;
  --text: #e8e4df;
  --text-muted: #9a958d;
  --accent: #c9a227;
  --accent-hover: #e0b83d;
  --border: #2a2825;
  --font-head: "Cormorant Garamond", "Georgia", serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  /* Tema madeira / natural */
  --wood-dark: #3d2e1f;
  --wood-mid: #5c4a3a;
  --wood-light: #8b7355;
  --wood-bg: #2a221a;
  --wood-grain: linear-gradient(105deg, transparent 0%, rgba(139, 115, 85, 0.06) 50%, transparent 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav a {
  margin-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--accent); }

/* --- Tema madeira / natural --- */
.section-wood {
  background: var(--wood-bg);
  background-image: var(--wood-grain);
  border-top: 1px solid rgba(139, 115, 85, 0.2);
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Hero com banner */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    var(--bg-dark);
  position: relative;
}

.hero-banner {
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark) url(/images/hero-barbearia.jpg) center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.5) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 6rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32ch;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.hero .cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: var(--bg-dark);
}

/* Banner strip (imagem full-width) */
.banner-section {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wood-bg);
}

.banner-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Loja: mini-hero */
.loja-main { padding-top: 5rem; }

.loja-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

.loja-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark) url(/images/banner-servicos.jpg) center/cover no-repeat;
}

.loja-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.75);
  pointer-events: none;
}

.loja-hero-content {
  position: relative;
  z-index: 1;
}

.loja-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Secções */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
}

/* Serviços (home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Loja */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.section-wood .product-card {
  border-color: rgba(139, 115, 85, 0.35);
}
.section-wood .product-card:hover {
  border-color: var(--accent);
}

.product-card .img-wrap {
  aspect-ratio: 1;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.product-card .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}
.product-card .price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Carrinho flutuante (opcional) */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 90;
}
.cart-bar.visible { display: flex; }
.cart-bar .total { font-weight: 600; color: var(--accent); }

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.success-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.success-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
