/* =========================================================
   Percy Medeiros — Lookly Hair
   Paleta e tipografia no modelo Studio Raiz:
   creme #f4efe7, tinta #150f0e, dourado #bd8a3d,
   Fraunces nos títulos e Jost no texto.
   ========================================================= */

:root {
  --bg:         #f4efe7;
  --bg-tint:    #eae4d6;
  --card:       #fefdfb;
  --text:       #150f0e;
  --text-soft:  #3a322c;
  --muted:      #6d6154;
  --gold:       #bd8a3d;
  --gold-deep:  #a0722c;
  --line:       #dfd9d2;
  --panel:      rgba(244, 239, 231, 0.95);
  --ink:        #201811;   /* o escuro da abertura e dos números */

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Jost', 'Helvetica Neue', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* zona escura — abertura e a secção de cor */
body.zone-dark {
  --bg:         #201811;
  --bg-tint:    #2b211a;
  --text:       #f4efe7;
  --text-soft:  #e6ded1;
  --muted:      #b5a694;
  --gold:       #d3a55b;
  --gold-deep:  #e0bd85;
  --line:       rgba(244, 239, 231, 0.24);
  --panel:      rgba(32, 24, 17, 0.92);
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1.1s var(--ease);
}

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

/* ---------- ELEMENTOS COMUNS ---------- */
.eyebrow, .section-label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; display: block;
  width: 46px; height: 1px; background: var(--gold);
  margin-bottom: 1.1rem; opacity: 0.85;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}
.block-intro {
  margin-top: 1.1rem; max-width: 52ch;
  font-size: 1rem; line-height: 1.75; color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.btn-solid { background: var(--gold); color: #fff; }
.btn-solid:hover { background: var(--gold-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.4rem;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-brand { text-align: center; }
.loader-name {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400;
  color: #f4efe7;
}
.loader-sub {
  display: block; margin-top: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: #d3a55b;
}
#loader-track { width: min(280px, 60vw); height: 1px; background: rgba(244,239,231,0.25); }
#loader-bar { width: 0%; height: 100%; background: #d3a55b; transition: width 0.25s linear; }
#loader-percent { font-size: 0.7rem; letter-spacing: 0.3em; color: #b5a694; }
#loader-percent::after { content: '%'; margin-left: 0.2em; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.3rem 4vw;
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 62%, rgba(0,0,0,0) 100%);
  pointer-events: none; transition: background 1.1s var(--ease);
}
.site-header nav {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.logo span { font-style: italic; margin-left: 0.3em; color: var(--gold); }
.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-links a { color: #150f0e; font-weight: 500; }
body.zone-dark .nav-links a { color: #f4efe7; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: #150f0e; padding: 0.7rem 1.3rem; border: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
body.zone-dark .nav-cta { color: #f4efe7; }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- ABERTURA ---------- */
.hero-standalone {
  position: fixed; inset: 0; z-index: 20; height: 100vh;
  background: var(--ink);
  display: flex; align-items: center; padding: 0 5vw;
}
.hero-standalone::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(65% 55% at 20% 45%, rgba(211,165,91,0.16), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: auto auto;
  justify-content: center; align-items: center; gap: 2vw;
}
.hero-inner { max-width: 30vw; }
.hero-inner .section-label { color: #d3a55b; }
.hero-heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 8.5vw, 8.5rem);
  line-height: 0.92; letter-spacing: -0.02em;
  margin: 0.6rem 0 1.6rem; color: #f4efe7;
}
.hero-heading .word { display: block; padding-bottom: 0.06em; }  /* sem overflow: hidden, senao corta a perna do y */
.hero-heading .word > span { display: block; }
.hero-heading .word:nth-child(2) { font-style: italic; color: #e0bd85; }
.hero-tagline {
  max-width: 36ch; font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7; color: #b5a694;
}
.hero-actions { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-actions .btn-ghost { border-color: rgba(244,239,231,0.4); color: #f4efe7; }
.hero-actions .btn-ghost:hover { background: #f4efe7; color: #201811; }

.hero-portrait { position: relative; margin: 0; width: min(36vw, 520px); }
.hero-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%;
  display: block; filter: grayscale(0.25) contrast(1.06) brightness(0.95);
  -webkit-mask-image: radial-gradient(ellipse 55% 66% at 54% 45%, #000 40%, rgba(0,0,0,0.5) 68%, transparent 87%);
          mask-image: radial-gradient(ellipse 55% 66% at 54% 45%, #000 40%, rgba(0,0,0,0.5) 68%, transparent 87%);
}
.hero-portrait figcaption { display: none; }
.hero-portrait.is-empty { display: flex; flex-direction: column-reverse; }
.hero-portrait.is-empty img { display: none; }
.hero-portrait.is-empty::after {
  content: 'foto do Percy — site/assets/percy.jpg';
  display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 5;
  border: 1px dashed var(--gold); color: var(--muted);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 2rem;
}

.scroll-indicator {
  position: absolute; bottom: 2.4rem; left: 5vw;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #b5a694; animation: float 2.6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* ---------- CANVAS DO VÍDEO ---------- */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  clip-path: circle(0% at 50% 50%);
  background: var(--bg-tint);
}
#canvas { width: 100%; height: 100%; display: block; }

/* ---------- MARQUEE ---------- */
.marquee-wrap {
  position: fixed; top: 38%; left: 0; width: 100%; z-index: 3;
  pointer-events: none; opacity: 0; overflow: hidden;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 12vw; line-height: 1; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); opacity: 0.08;
}

/* ---------- FASE DO VÍDEO ---------- */
#scroll-container { position: relative; z-index: 5; height: 520vh; }
.scroll-section {
  position: absolute; left: 0; width: 100%;
  transform: translateY(-50%);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.scroll-section.is-active { pointer-events: auto; }

.align-left  { padding-left: 5vw;  padding-right: 68vw; }
.align-right { padding-left: 68vw; padding-right: 5vw; text-align: right; }
.align-left .section-inner,
.align-right .section-inner { max-width: 27vw; }
.align-right .section-inner { margin-left: auto; }

.section-heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.05; margin-bottom: 1.3rem; color: var(--text);
}
.section-body {
  font-size: 1rem; line-height: 1.8; max-width: 34ch;
  font-weight: 400; color: var(--text-soft);
}
.align-right .section-body { margin-left: auto; }

/* ---------- PÁGINA ---------- */
.page { position: relative; z-index: 10; background: #f4efe7; color: #150f0e; }

.block { padding: 7rem 6vw; }
.block-head { margin-bottom: 3.4rem; max-width: 60ch; }

/* como trabalhamos */
.block-how { background: #f4efe7; border-bottom: 1px solid #dfd9d2; }
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 4rem; }
.how-item { border-top: 1px solid #dfd9d2; padding-top: 1.5rem; }
.how-item h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; margin-bottom: 0.6rem; color: #150f0e;
}
.how-item p { font-size: 0.95rem; line-height: 1.75; color: #6d6154; }

/* serviços */
.block-services { background: #eae4d6; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: #fefdfb; border: 1px solid #dfd9d2;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(32,24,17,0.12); }
.card-media { position: relative; overflow: hidden; background: #f1ebe0; }
.card-media img {
  /* quadrado e com a foto inteira dentro: o penteado aparece do alto às pontas */
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block;
  transition: transform 0.9s var(--ease);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-num {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--font-display); font-size: 0.9rem; color: #f4efe7;
  background: rgba(32,24,17,0.7); padding: 0.2rem 0.6rem;
}
.card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.3rem;
  padding: 1.4rem 1.5rem 0.5rem; color: #150f0e;
}
.card p { padding: 0 1.5rem; font-size: 0.93rem; line-height: 1.7; color: #6d6154; flex: 1; }
.card a {
  margin: 1.4rem 1.5rem 1.5rem;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: #a0722c;
  border-top: 1px solid #dfd9d2; padding-top: 1.1rem;
}
.card a:hover { color: #150f0e; }

/* o salão */
.block-about {
  background: #f4efe7;
  display: grid; grid-template-columns: 0.8fr 1fr; gap: 5vw; align-items: center;
}
.about-media { margin: 0; max-width: 360px; justify-self: center; }
.about-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.about-text .block-title { margin-bottom: 1.4rem; }
.about-text p { font-size: 1rem; line-height: 1.8; color: #6d6154; margin-bottom: 1rem; max-width: 46ch; }
.about-list { list-style: none; margin: 1.8rem 0; }
.about-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem;
  font-size: 0.95rem; color: #3a322c;
}
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 1px; background: #bd8a3d;
}

/* galeria */
.block-gallery { background: #eae4d6; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  max-width: 1080px;   /* mantém as fotos pequenas mesmo em três colunas */
}
.gallery-grid figure { margin: 0; overflow: hidden; }
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }

/* números */
.block-stats { background: #201811; color: #f4efe7; padding: 5.5rem 6vw; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw; align-items: end; }
.stat { display: block; }
.stat-number {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 0.9; color: #e0bd85;
}
.stat-suffix { font-family: var(--font-display); font-size: 1.4rem; color: #d3a55b; margin-left: 0.12em; }
.stat-label {
  display: block; margin-top: 1rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #b5a694;
}

/* contacto */
.block-contact { background: #f4efe7; }
.contact-head { max-width: 60ch; }
.cta-row { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.cta-button {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1.6rem; border: 1px solid #bd8a3d;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.cta-button:hover { background: #bd8a3d; transform: translateY(-3px); }
.cta-button:hover .cta-flag, .cta-button:hover .cta-number { color: #fff; }
.cta-flag { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: #a0722c; }
.cta-number { font-size: 1.02rem; color: #150f0e; }

.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid #dfd9d2;
}
.contact-city {
  display: block; font-size: 0.62rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: #a0722c; margin-bottom: 0.6rem;
}
.contact-addr { font-size: 0.9rem; line-height: 1.65; color: #6d6154; }
.contact-addr a { border-bottom: 1px solid #bd8a3d; }
.contact-addr a:hover { color: #a0722c; }

.site-footer {
  background: #201811; color: #b5a694;
  padding: 1.8rem 6vw;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* revelação ao rolar */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* ---------- WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed; right: 2vw; bottom: 2rem; z-index: 110;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #bd8a3d; color: #fff;
  box-shadow: 0 10px 28px rgba(32,24,17,0.28);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.wa-float:hover { transform: scale(1.08); background: #a0722c; }

/* ---------- ECRÃS MÉDIOS ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .block-about { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* ---------- TELEMÓVEL ---------- */
@media (max-width: 768px) {
  #scroll-container { height: 380vh; }

  .site-header { padding: 1rem 5vw; }
  .nav-links { display: none; }
  .logo { font-size: 1.15rem; }
  .nav-cta { padding: 0.6rem 1rem; font-size: 0.58rem; }

  .hero-standalone { padding: 0 6vw; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; align-content: center; }
  .hero-inner { max-width: 100%; }
  .hero-heading { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero-portrait { max-width: 58vw; width: 58vw; }
  .hero-actions .btn { padding: 0.8rem 1.2rem; font-size: 0.66rem; }
  .scroll-indicator { display: none; }

  .align-left, .align-right { padding: 2.4rem 6vw; text-align: left; }
  .align-left .section-inner, .align-right .section-inner {
    max-width: 100%; margin-left: 0;
    background: var(--panel); padding: 1.6rem 1.4rem;
  }
  .align-right .section-body { margin-left: 0; }

  .block { padding: 4.2rem 6vw; }
  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .marquee-text { font-size: 18vw; }
  .site-footer { flex-direction: column; gap: 0.5rem; }
  .wa-float { right: 5vw; bottom: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
