/* =========================================================
   ILKA SIMONE — STUDIO DE BELEZA
   Design language: "Caderno de tons" — a colorist's swatch
   book translated into an editorial, alternating-tone layout.
   ========================================================= */

:root {
  /* --- palette --- */
  --wine:        #2A1219;
  --wine-deep:   #190A0E;
  --clay:        #B5654A;
  --clay-light:  #D98F6F;
  --gold:        #C9A227;
  --ivory:       #F5EDE4;
  --ivory-dim:   #EAE0D3;
  --charcoal:    #241A1C;
  --rose:        #D8A8A0;

  /* --- type --- */
  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9em;
  display: block;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.max { max-width: 600px; margin-left: auto; margin-right: auto; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--clay);
  display: inline-block;
  margin-bottom: 0.6em;
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--clay);
  color: var(--ivory);
}
.btn.primary:hover { background: var(--clay-light); transform: translateY(-2px); }
.btn.secondary {
  border-color: currentColor;
  background: transparent;
}
.btn.secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 3.5rem);
  background: rgba(245, 237, 228, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,26,28,0.08);
  transition: box-shadow 0.3s ease;
}
.topbar.scrolled { box-shadow: 0 8px 24px rgba(25,10,14,0.08); }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-right: auto; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--wine);
  color: var(--ivory);
  border-radius: 50%;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.brand-mark.small { width: 30px; height: 30px; font-size: 0.75rem; }

.nav { display: flex; gap: 1.9rem; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 0.2em 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--clay);
  transition: right 0.25s ease;
}
.nav a:hover::after { right: 0; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--charcoal);
  padding: 0.55em 1.1em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--charcoal); color: var(--ivory); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0.4em;
}
.menu-btn span { width: 22px; height: 2px; background: var(--charcoal); transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--wine);
  color: var(--ivory);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 3.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-content .eyebrow { color: var(--rose); }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--ivory);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--clay-light); }
.hero-text {
  max-width: 46ch;
  color: rgba(245,237,228,0.82);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* swatch ribbon — signature element */
.swatch-ribbon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0.5rem;
}
.swatch {
  --rot: 0deg;
  width: 78%;
  min-width: 230px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-radius: 3px;
  padding: 0.85rem 1.1rem;
  margin-top: -0.55rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  transform: rotate(var(--rot));
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.18);
}
.swatch:first-child { margin-top: 0; }
.swatch:hover { transform: rotate(0deg) translateX(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.swatch .code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wine-deep);
  min-width: 2.6em;
}
.swatch .name {
  font-size: 0.78rem;
  color: rgba(25,10,14,0.78);
  font-weight: 500;
}
.swatch:nth-last-child(-n+2) .code,
.swatch:nth-last-child(-n+2) .name { color: var(--ivory-dim); }

/* statement strip */
.statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  max-width: 740px;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: 0 1.5rem;
  color: var(--wine);
}

/* =========================================================
   SECTIONS — alternating tone rhythm
   ========================================================= */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: var(--container);
  margin: 0 auto;
}
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse > div:first-child { order: 2; }

.profile-box {
  background: var(--wine);
  color: var(--ivory);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: 4px;
}
.profile-box .tag { color: var(--rose); }
.profile-box ul li {
  padding: 0.65em 0;
  border-top: 1px solid rgba(245,237,228,0.14);
  font-size: 0.96rem;
}
.profile-box ul li:first-of-type { border-top: none; }

/* services — dark alternate */
.services { background: var(--wine); color: var(--ivory); max-width: none; padding-left: 0; padding-right: 0; }
.services > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: clamp(1.25rem, 5vw, 3.5rem); padding-right: clamp(1.25rem, 5vw, 3.5rem); }
.services h2 { color: var(--ivory); }
.services .eyebrow { color: var(--rose); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.card {
  background: rgba(245,237,228,0.05);
  border: 1px solid rgba(245,237,228,0.14);
  border-radius: 4px;
  padding: 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--clay-light); }
.card .tag { color: var(--clay-light); }
.card h3 { color: var(--ivory); margin-bottom: 0.5em; }
.card p { color: rgba(245,237,228,0.72); font-size: 0.93rem; margin-bottom: 0; }
.chip { display: block; width: 100%; height: 64px; border-radius: 3px; margin-bottom: 1.1rem; }
.chip-color { background: linear-gradient(120deg, #4A2418, #B5654A 55%, #E8C39E); }
.chip-hair  { background: linear-gradient(120deg, #3A261D, #6B4A3A 60%, #8A6651); }
.chip-nails { background: linear-gradient(120deg, #B5654A, #D8A8A0 55%, #F0D9D2); }

/* espaço gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gphoto {
  aspect-ratio: 1/1;
  border-radius: 4px;
  display: flex; align-items: flex-end;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.gphoto::before { content: ""; position: absolute; inset: 0; opacity: 0.92; }
.g1 { background: var(--wine); }
.g2 { background: linear-gradient(150deg, var(--clay), #7A3B2A); }
.g3 { background: linear-gradient(150deg, var(--rose), var(--clay)); }
.g4 { background: var(--charcoal); }
.gphoto span { position: relative; z-index: 1; }
.gphoto:nth-child(odd) { margin-top: 1.4rem; }

/* instagram */
.instagram-section { background: var(--wine); color: var(--ivory); max-width: none; padding-left: 0; padding-right: 0; }
.instagram-section > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: clamp(1.25rem, 5vw, 3.5rem); padding-right: clamp(1.25rem, 5vw, 3.5rem); }
.instagram-section h2 { color: var(--ivory); }
.instagram-section .eyebrow { color: var(--rose); }
.instagram-section p.max { color: rgba(245,237,228,0.7); }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}
.insta-grid a {
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, rgba(245,237,228,0.08), rgba(245,237,228,0.02));
  border: 1px solid rgba(245,237,228,0.16);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(245,237,228,0.75);
  transition: background 0.25s ease, transform 0.25s ease;
  padding: 1rem;
}
.insta-grid a:hover { background: rgba(245,237,228,0.12); transform: translateY(-3px); }

/* contato */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-list p { display: flex; align-items: center; gap: 0.8rem; margin: 0; }
.contact-list .tag { margin: 0; min-width: 7.5em; }
.contact-list a { border-bottom: 1px solid var(--clay); padding-bottom: 1px; }
.contact-list a:hover { color: var(--clay); }

.contact-form {
  background: var(--wine);
  color: var(--ivory);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 22px 50px rgba(25,10,14,0.18);
}
.contact-form .tag { color: var(--rose); margin-bottom: 0.6rem; }
.contact-form label { font-size: 0.78rem; color: rgba(245,237,228,0.7); margin-top: 0.5rem; }
.contact-form input, .contact-form textarea {
  background: rgba(245,237,228,0.06);
  border: 1px solid rgba(245,237,228,0.22);
  border-radius: 2px;
  padding: 0.75em 0.9em;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(245,237,228,0.4); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--clay-light); background: rgba(245,237,228,0.1); }
.contact-form .btn { margin-top: 1.2rem; align-self: flex-start; }

/* footer */
footer {
  background: var(--wine-deep);
  color: rgba(245,237,228,0.6);
  padding: 2.2rem clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(245,237,228,0.08);
}

/* whatsapp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 54px; height: 54px;
  background: var(--clay);
  color: var(--ivory);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(181,101,74,0.45);
  z-index: 60;
  transition: transform 0.25s ease, background 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--clay-light); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 1.2rem clamp(1.25rem, 5vw, 3.5rem);
    border-bottom: 1px solid rgba(36,26,28,0.08);
    gap: 1rem;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .swatch-ribbon { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: flex-start; margin-top: 2.4rem; padding-bottom: 0.5rem; }
  .swatch { width: auto; min-width: 168px; margin-top: 0; margin-right: 0.7rem; flex-shrink: 0; flex-direction: column; gap: 0.2rem; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > div:first-child { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .contact-list p { flex-wrap: wrap; }
}
