/* DERREK Studio — estilos do site */

:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3b3b3b;
  --muted: #6e6c68;
  --line: #dddbd6;
  --dark: #111111;
  --dark-2: #1c1c1c;
  --on-dark: #f3f2ef;
  --on-dark-muted: #a9a7a2;
  --whats: #25d366;
  --radius: 14px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-lead { color: var(--ink-2); max-width: 620px; font-size: 17px; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo b { font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.logo span { display: flex; align-items: center; gap: 6px; font-size: 7px; font-weight: 600; letter-spacing: 0.45em; margin-top: 3px; padding-left: 0.45em; }
.logo span::before, .logo span::after { content: ""; width: 12px; height: 1.5px; background: currentColor; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 14px/1 var(--font); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--whats); flex: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Topo */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark); color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav { display: flex; gap: 30px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #d9d7d2; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-cta { min-height: 40px; padding: 0 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--dark); padding: 8px var(--gutter) 24px;
    border-top: 1px solid #2a2a2a;
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid #242424; font-size: 13px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero-media { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(17,17,17,.6) 30%, rgba(17,17,17,.1) 70%, rgba(17,17,17,0) 100%);
}
.hero .wrap { position: relative; min-height: min(78vh, 680px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; max-width: 640px; }
.hero h1 .eyebrow { color: #d9d7d2; font-size: 12px; margin-bottom: 18px; letter-spacing: 0.3em; }
.hero p { max-width: 470px; margin: 20px 0 32px; color: #e8e6e1; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 700px) {
  .hero-media { width: 100%; }
  .hero-media img { object-position: 50% 30%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.25) 100%); }
  .hero .wrap { justify-content: flex-end; min-height: 82vh; padding-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Faixa de diferenciais */
.strip { background: #e6e4df; border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); }
.strip li { padding: 16px 12px; text-align: center; font-size: 13px; font-weight: 600; border-left: 1px solid #d3d1cb; }
.strip li:first-child { border-left: 0; }
@media (max-width: 700px) {
  .strip ul { grid-template-columns: 1fr 1fr; }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid #d3d1cb; }
}

/* Trabalhos (vitrine do Instagram) */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 13px; }
.feed { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.feed a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #dcdad5; }
.feed img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feed a:hover img { transform: scale(1.04); }
.feed .is-video::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 0; height: 0;
  border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.feed.feed-empty { display: block; }
.feed .feed-fallback {
  aspect-ratio: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px; text-decoration: none;
}
.feed-fallback b { display: block; font-size: 18px; }
.feed-fallback span span { color: var(--muted); }
@media (max-width: 760px) { .feed { grid-template-columns: repeat(3, 1fr); gap: 6px; } .feed a { border-radius: 8px; } }

/* Serviços */
.services-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
}
.service-list h3 { font-size: 16px; font-weight: 700; }
.service-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.service-list p a { color: var(--ink); }
.service-list .time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.services-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.services-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: 96px; }
.services-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } .services-photo { position: static; aspect-ratio: 4 / 3; order: -1; } }

/* Horário exclusivo */
.exclusive { background: var(--dark); color: var(--on-dark); }
.exclusive .eyebrow { color: var(--on-dark-muted); }
.exclusive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.exclusive p { color: #cfcdc8; }
.exclusive-points { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.exclusive-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.exclusive-points b { display: block; color: #fff; }
.exclusive-points span.n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #4a4a4a; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.exclusive-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.exclusive-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .exclusive-grid { grid-template-columns: 1fr; } .exclusive-photo { aspect-ratio: 4 / 3; } }

/* O Studio */
.studio-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; margin-top: 36px; height: clamp(380px, 52vw, 560px); }
.studio-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; }
.studio-gallery figure:first-child { grid-row: span 2; }
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .studio-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; height: auto; }
  .studio-gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}

/* Barbeiro */
.barber { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.barber-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.barber-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.award { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 6px 0 22px; }
.barber .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .barber { grid-template-columns: 1fr; } .barber-photo { aspect-ratio: 1 / 1; } }

/* Visite */
.visit { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.visit-info { padding: clamp(28px, 4vw, 48px); }
.visit-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 18px; }
.visit-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; }
.visit-list .n { width: 26px; height: 26px; border-radius: 50%; background: #ebe9e4; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.visit-list b { display: block; }
.visit-list span { color: var(--ink-2); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.hours td { padding: 4px 0; color: var(--ink-2); vertical-align: top; }
.hours tr + tr td { border-top: 1px solid #efeee9; }
.hours td:last-child { text-align: right; }
.hours tr.closed td:last-child { color: var(--muted); }
.visit-actions { display: grid; gap: 10px; }
.visit-map { min-height: 420px; background: #e6e4df; }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit-map, .visit-map iframe { min-height: 300px; } }

/* História */
.page-hero { background: var(--dark); color: #fff; padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 88px); }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; max-width: 760px; }
.page-hero .eyebrow { color: var(--on-dark-muted); }
.page-hero h1 .eyebrow { margin-bottom: 14px; }
.page-hero p { color: #d9d7d2; max-width: 620px; font-size: 18px; margin-top: 18px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.values div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.values b { display: block; font-size: 15px; }
.values span { font-size: 14px; color: var(--muted); }

/* Linha do tempo (Nossa história) */
.timeline { padding: clamp(56px, 8vw, 96px) 0 0; }
.timeline-lead { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45; max-width: 760px; margin: 0 0 clamp(40px, 6vw, 72px); color: var(--ink-2); }
.timeline-lead b { color: var(--ink); }
.chapter {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 80px); align-items: center;
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.chapter-reverse .chapter-photo { order: -1; }
.chapter-text { grid-template-columns: 1fr; }
.chapter-text .chapter-body { max-width: 760px; }
.chapter-year { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chapter h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 18px; }
.chapter p { color: var(--ink-2); font-size: 17px; }
.chapter blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-size: 20px; font-weight: 600; line-height: 1.45; }
.chapter cite { display: block; font-size: 14px; font-weight: 500; font-style: normal; color: var(--muted); margin-top: 10px; }
.chapter-photo { margin: 0; }
.chapter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.chapter-photo figcaption { font-size: 13px; color: var(--muted); padding: 10px 2px 0; }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter .chapter-photo { order: -1; max-width: 520px; }
}

/* Perguntas frequentes */
.faq-list { display: grid; gap: 10px; margin-top: 24px; max-width: 860px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--ink-2); margin: 0 0 18px; }

/* Chamada final */
.cta-band { position: relative; color: #fff; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band div { position: relative; padding: clamp(40px, 7vw, 80px); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 300; max-width: 640px; }
.cta-band h2 b { font-weight: 800; }
.cta-band .btn { margin-top: 28px; }

/* Rodapé */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 56px 0 96px; font-size: 14px; margin-top: clamp(64px, 9vw, 112px); }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { text-decoration: none; color: #e1dfda; display: inline-block; padding: 7px 0; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #262626; padding-top: 22px; font-size: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* WhatsApp flutuante (celular) */
.whats-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whats); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.whats-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feed img { transition: none; }
}

/* Etapas numeradas (páginas de serviço) */
.steps { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; color: var(--ink-2); font-size: 16px; }
.steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.services-note a { color: var(--ink); }
.values-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .values-2 { grid-template-columns: 1fr; } }

/* Retrato em espelho oval (Nossa história) */
.page-hero-portrait .wrap { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.mirror {
  position: relative; margin: 0;
  width: clamp(220px, 26vw, 320px); aspect-ratio: 3 / 4;
  border-radius: 50%; padding: 10px; margin-right: clamp(0px, 3vw, 40px);
  background: linear-gradient(145deg, #5a5a5a 0%, #1c1c1c 35%, #3d3d3d 60%, #121212 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.18);
}
.mirror img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.mirror::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
@media (max-width: 760px) {
  .page-hero-portrait .wrap { grid-template-columns: 1fr; }
  .page-hero-portrait .mirror { order: -1; width: 190px; margin: 0 auto 4px; justify-self: center; }
}

/* Aviso de cookies (só aparece quando há pixel configurado) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.consent p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1 1 260px; }
.consent a { color: var(--ink); }
.consent-actions { display: flex; gap: 8px; }

/* Texto de páginas legais */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
