/* ==========================================================================
   New Style Barbearia — design tokens
   Paleta: carvão escuro + madeira + latão dourado (barbearia clássica/moderna)
   Tipografia: Oswald (títulos, rótulos, botões) + Inter (texto corrido)
   ========================================================================== */
:root {
  --bg: #121110;
  --bg-alt: #1a1815;
  --panel: #1e1c19;
  --panel-raised: #262320;
  --wood: #6b4a2f;
  --wood-dark: #33220f;
  --brass: #c9a24b;
  --brass-soft: #e9d29c;
  --brass-deep: #8a6a2f;
  --cream: #f3ead9;
  --text: #efe7d8;
  --text-dim: #b3aa9a;
  --text-faint: #7d7568;
  --line: #38332c;
  --line-soft: rgba(201, 162, 75, 0.16);
  --radius: 3px;
  --radius-lg: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-soft: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Two-family type system: Oswald carries display/UI weight, Inter carries
   reading weight. No third family — keeps every screen consistent. */
h1, h2, h3 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.eyebrow, .label, .brand, .btn, .nav-links a, .info-item h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--brass); color: #17130a; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
header.is-scrolled {
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1160px;
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 12.5px;
  font-weight: 500;
}
.nav-links a { position: relative; color: var(--text-dim); transition: color .25s var(--ease-out); padding: 4px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--brass-soft); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brass);
  color: #1a1511;
  font-weight: 600;
  font-size: 11.5px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.nav-cta:hover { background: var(--brass-soft); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(201,162,75,0.55); }
.nav-cta:active { transform: translateY(0); }
.menu-toggle {
  display: none;
  position: relative;
  width: 34px; height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-out);
}
.menu-toggle span { top: 16px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
  background:
    linear-gradient(100deg, var(--bg) 0%, var(--bg) 26%, rgba(18,17,16,0.78) 48%, rgba(18,17,16,0.32) 72%, rgba(18,17,16,0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18,17,16,0) 22%, rgba(18,17,16,0) 82%, var(--bg) 100%),
    url('ambiente.jpg') center 42% / cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero-content { max-width: 560px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.02;
  margin-bottom: 22px;
  color: var(--cream);
}
.hero h1 .accent { color: var(--brass-soft); }
.hero p.lede {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  font-size: 18px;
  max-width: 460px;
  margin-bottom: 36px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 12.5px;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), color .25s var(--ease-out);
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brass); color: #1a1511; }
.btn-primary:hover { background: var(--brass-soft); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(201,162,75,0.6); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { border: 1px solid rgba(239,233,223,0.28); color: var(--text); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass-soft); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

.hero-badge {
  position: absolute;
  right: 28px;
  bottom: -34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(30, 27, 23, 0.85);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
  max-width: 300px;
}
.hero-badge .num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--brass-soft);
  line-height: 1;
}
.hero-badge .cap { font-size: 12px; color: var(--text-dim); line-height: 1.35; font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; }
@media (max-width: 700px) {
  .hero-badge { display: none; }
}

.scroll-cue {
  position: absolute;
  left: 28px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 11px;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--brass), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--brass-soft);
  animation: cueDrip 2.4s var(--ease-in-out) infinite;
}
@keyframes cueDrip { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- Section generic ---------- */
section { padding: 128px 0; }
.section-head { margin-bottom: 56px; max-width: 580px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; color: var(--cream); }
.section-head p { color: var(--text-dim); font-size: 16.5px; }
#servicos { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2px;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out);
}
.service-card:hover { border-color: var(--line-soft); transform: translateY(-6px); }
.service-card-inner {
  position: relative;
  height: 100%;
  padding: 34px 28px 30px;
  border-radius: calc(var(--radius-lg) - 1px);
  border-top: 1px solid rgba(201,162,75,0.22);
  background: linear-gradient(180deg, rgba(201,162,75,0.05), transparent 40%);
}
.service-index {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.service-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass);
  margin-bottom: 24px;
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.service-card:hover .service-icon { background: var(--brass); color: #1a1511; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--cream); }
.service-card p { color: var(--text-dim); font-size: 14.5px; }
.note-chem {
  margin-top: 36px;
  color: var(--text-faint);
  font-size: 13.5px;
  border-left: 2px solid var(--brass);
  padding-left: 16px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .frame-tag {
  position: absolute;
  left: -20px;
  bottom: -20px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  max-width: 220px;
}
.about-media .frame-tag p { font-size: 13px; color: var(--text-dim); text-align: left; margin: 0; }
.about-media .frame-tag .eyebrow { margin-bottom: 6px; }
@media (max-width: 700px) { .about-media .frame-tag { display: none; } }

.about-text .eyebrow { margin-bottom: 16px; }
.about-text h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; color: var(--cream); }
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; }
.about-text p:last-of-type { margin-bottom: 30px; }

.about-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-point {
  background: var(--bg-alt);
  padding: 22px 18px;
}
.about-point .info-icon { margin-bottom: 14px; }
.about-point h4 { font-size: 13.5px; margin-bottom: 6px; color: var(--cream); font-family: 'Oswald', sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.about-point p { color: var(--text-dim); font-size: 13px; margin: 0; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 340px; margin: 0 auto 24px; }
  .about-points { grid-template-columns: 1fr; }
}

/* ---------- Barber ---------- */
#profissional { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.barber-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 60px;
  align-items: center;
}
.barber-photo { position: relative; }
.barber-photo .plate {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.barber-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.barber-text .eyebrow { margin-bottom: 16px; }
.barber-text h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; color: var(--cream); }
.barber-text p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 22px; }
.barber-text p strong { color: var(--brass-soft); font-weight: 600; }
.barber-text .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brass);
  font-size: 14.5px;
  font-weight: 600;
  transition: gap .25s var(--ease-out), color .25s var(--ease-out);
}
.barber-text .link:hover { gap: 12px; color: var(--brass-soft); }
@media (max-width: 860px) {
  .barber-grid { grid-template-columns: 1fr; text-align: center; }
  .barber-text .eyebrow { justify-content: center; }
  .barber-photo .plate { display: none; }
  .barber-photo img { max-width: 280px; }
}

/* ---------- Location / contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-list { margin-top: 8px; }
.info-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201,162,75,0.1);
  border: 1px solid var(--line-soft);
  color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-item h4 { font-size: 13px; color: var(--text-dim); margin-bottom: 5px; }
.info-item p, .info-item a { font-size: 16px; }
.info-item a.link { color: var(--brass); transition: color .2s var(--ease-out); }
.info-item a.link:hover { color: var(--brass-soft); }
.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 380px;
}
.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px 6px rgba(18,17,16,0.5);
  pointer-events: none;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.35) contrast(1.08) brightness(0.9); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--wood-dark), var(--wood) 60%, var(--wood-dark));
  text-align: center;
  padding: 88px 28px;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(233,210,156,0.18), transparent 60%);
}
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; color: var(--cream); }
.cta-band p { color: rgba(239,233,223,0.82); margin-bottom: 34px; font-size: 16.5px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { border-color: rgba(239,233,223,0.45); }

/* ---------- Footer ---------- */
footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); }
.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.social-row a:hover { border-color: var(--brass); color: var(--brass-soft); transform: translateY(-2px); }
.footer-note { color: var(--text-faint); font-size: 12.5px; text-align: center; margin-top: 32px; letter-spacing: 0.02em; }

/* ---------- WhatsApp floating button ---------- */
.whats-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.55);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.whats-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px -6px rgba(0,0,0,0.6); }
.whats-float:active { transform: scale(1.02); }

/* ---------- Scroll reveal ----------
   [data-reveal] elements are visible by default (opacity: 1). Only once
   script.js confirms IntersectionObserver is available does it arm the
   ".js-reveal" class on <html> and switch them to a hidden start state —
   so content can never get stuck invisible if JS fails or is disabled. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 88px 0; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .nav-cta.open { display: inline-flex; margin: 0 28px 24px; justify-content: center; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 42px; }
}
