/* TS Hair Science v1.1: mobile-first */
:root {
  --bg: #fcf8f6;
  --rose: #f6ebe7;
  --blush: #ecd9d2;
  --gold: #b08d57;        /* decorativo (linhas, ícones) */
  --gold-text: #7a5c31;   /* texto dourado com contraste AA */
  --ink: #2d2727;
  --muted: #5f5655;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -18px rgba(45, 39, 39, .35);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
h1, h2 { text-wrap: balance; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: #e6d7c3; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

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

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-top: 2rem; }
.muted { color: var(--muted); font-weight: 500; font-size: .8em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 10px; }

/* Wordmark / logo tipográfico */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mono { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; padding-left: .06em; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #463d3c; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn-outline:hover { background: var(--rose); }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; color: var(--gold-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 248, 246, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--blush); box-shadow: 0 6px 20px -16px rgba(45, 39, 39, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.header-inner .brand-mono { width: 34px; height: 34px; font-size: .95rem; }
.header-inner .brand-name { font-size: 1.2rem; }
.nav { display: none; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -1.5px var(--gold); }

/* Nav mobile: segunda linha do header (sem hambúrguer) */
@media (max-width: 899.98px) {
  :root { --header-h: 102px; }
  .header-inner { flex-wrap: wrap; height: auto; column-gap: 12px; row-gap: 0; padding-top: 10px; }
  .nav {
    display: flex;
    order: 3;
    flex: 0 0 calc(100% + 40px);
    margin: 10px -20px 0;
    padding: 0 12px;
    justify-content: space-around;
    border-top: 1px solid var(--blush);
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 8px;
    font-size: .88rem;
  }
}
@media (min-width: 640px) and (max-width: 899.98px) {
  .nav { flex-basis: calc(100% + 64px); margin: 10px -32px 0; }
}

/* Hero */
.hero { padding: 28px 0 56px; background: linear-gradient(180deg, var(--bg) 0%, var(--rose) 100%); }
.hero-inner { display: grid; gap: 28px; }
.eyebrow { margin: 0 0 .7rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.hero h1 { font-size: clamp(2.3rem, 9.5vw, 4.2rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.hero-sub { margin: 1rem 0 1.6rem; color: var(--muted); font-size: 1.02rem; max-width: 34em; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; }
.hero-hours { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); display: flex; gap: .45em; align-items: center; }
.hero-hours .icon { color: var(--gold); }
.hero-media { margin: 0; justify-self: center; width: 100%; max-width: 460px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 30%; border-radius: 240px 240px var(--radius) var(--radius); box-shadow: var(--shadow); }

/* Seções */
.section { padding: 64px 0; }
.section-tint { background: var(--rose); }
.section-head { text-align: center; margin: 0 auto 2.2rem; max-width: 640px; }
.section-head h2 { font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 500; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 1.5px; background: var(--gold); margin: 1rem auto 0; }
.section-head-sub { margin-top: 3rem; margin-bottom: 1.4rem; }
.section-head-sub h3 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 500; }
.section-head-sub h3::after { content: ""; display: block; width: 36px; height: 1.5px; background: var(--gold); margin: .75rem auto 0; }
.section-lead { margin: 1rem 0 0; color: var(--muted); }

/* Cards em destaque */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; background: var(--rose); }
/* Recortes provisórios até fotos reais de corte/tratamento */
.card img[src*="cabelo-longo"] { object-position: 50% 80%; }
.card img[src*="penteado-tranca"] { object-position: 50% 88%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 10px 0; font-weight: 600; font-size: .93rem; color: var(--gold-text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:focus-within { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
.card-link:hover { color: var(--ink); }
.card-link .icon { transition: transform .2s; }
@media (hover: hover) {
  .card-link:hover .icon { transform: translateX(3px); }
}

/* Cards horizontais no celular */
@media (max-width: 639.98px) {
  .cards { gap: 14px; }
  .card { flex-direction: row; }
  .card img { width: 38%; flex: none; aspect-ratio: 1 / 1; height: auto; }
  .card-body { justify-content: center; padding: 16px 16px 16px 18px; gap: 6px; }
  .card h3 { font-size: 1.3rem; }
  .card-link { display: inline; font-size: .9rem; }
  .card-link .icon { display: none; }
}

/* Outros serviços (sub-bloco) */
.outros-block { margin-top: .5rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 0; border: 1px solid var(--gold); border-radius: 999px; background: var(--bg); font-size: .95rem; font-weight: 500; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15em; text-decoration: none; color: inherit; border-radius: inherit; }
.chips a:hover { background: var(--rose); }
.chips + .center { margin-top: 1.6rem; }

/* Sobre */
.prose { max-width: 34em; margin-inline: auto; font-size: 1.08rem; color: var(--ink); text-align: center; }
.prose p:last-child { margin-bottom: 0; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery li { border-radius: 12px; overflow: hidden; background: var(--blush); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery .g-tall img { object-position: 70% 50%; }
/* Sem zoom de hover: imagens não são clicáveis */
.gallery-compact { max-width: 720px; margin-inline: auto; }
@media (min-width: 640px) {
  .gallery-compact { grid-template-columns: repeat(2, 1fr); }
}

/* Horários e localização */
.visit { display: grid; gap: 28px; }
.visit-info { display: grid; gap: 22px; }
.info-block h3 { display: flex; align-items: center; gap: .45em; font-size: 1.4rem; margin-bottom: .5rem; }
.info-block h3 .icon { color: var(--gold); width: 1.1rem; height: 1.1rem; }
.info-block p { margin: 0; }
.hours { margin: 0; display: grid; gap: 6px; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--blush); padding-bottom: 6px; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); }
.visit-ctas { display: flex; flex-direction: column; gap: 12px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--rose); min-height: 300px; }
.map::before { content: "Carregando mapa…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.map iframe { position: relative; display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* Rodapé */
.site-footer { background: var(--ink); color: #eee6e3; padding: 48px 0 96px; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.brand-light { color: #fff; }
.brand-light .brand-mono { border-color: var(--gold); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 0; color: #e6d7c3; }
.footer-list { display: grid; gap: 4px; font-size: .95rem; }
.footer-list li { display: flex; gap: .55em; align-items: flex-start; }
.footer-list .icon { color: var(--gold); margin-top: .25em; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.copy { margin: 10px 0 0; font-size: .85rem; color: #c9bdb9; }

/* Botão flutuante WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .2s, opacity .2s, visibility .2s; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); pointer-events: none; }
@media (hover: hover) {
  .wa-float:hover { transform: scale(1.06); }
}

/* >= 640px */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero-ctas, .visit-ctas { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* Card órfão centralizado no tablet */
@media (min-width: 640px) and (max-width: 899.98px) {
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); }
}

/* >= 768px: hero em duas colunas no tablet */
@media (min-width: 768px) and (max-width: 899.98px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
}

/* >= 900px */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
  .hero { padding: 64px 0 88px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .hero-media { max-width: 500px; justify-self: end; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .visit { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
  .map, .map iframe { min-height: 440px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; column-gap: 48px; }
  .footer-inner .footer-list { grid-column: 2; grid-row: 1 / span 3; }
  .site-footer { padding-bottom: 48px; }
  .gallery-compact { max-width: 900px; }
}
