/* ═══════════════════════════════════════════════════════
   ESTILISTA DE SONHOS — DESIGN SYSTEM
   Haute Couture Aesthetic · SEO-Optimized Structure
   ═══════════════════════════════════════════════════════ */

/* ═══════ VARIABLES ═══════ */
:root {
  --noir: #0a0a0a;
  --noir-light: #1a1a1a;
  --noir-soft: #2a2a2a;
  --charcoal: #3d3d3d;
  --graphite: #6b6b6b;
  --silver: #9a9a9a;
  --pearl: #c8c4bf;
  --champagne: #e8e0d4;
  --ivory: #f5f0ea;
  --cream: #faf8f5;
  --white: #ffffff;
  --gold: #b8956a;
  --gold-light: #d4b896;
  --gold-pale: #e8ddd0;
  --transition-silk: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --tracking-wide: 0.25em;
  --tracking-ultra: 0.4em;
}

/* ═══════ RESET ═══════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--noir);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--white); }
img { max-width: 100%; height: auto; display: block; background: linear-gradient(135deg, var(--ivory), var(--champagne)); }
a { color: inherit; }

/* ═══════ GRAIN OVERLAY ═══════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ═══════ TYPOGRAPHY ═══════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.container-blog { max-width: 760px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }

.overline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.headline {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--noir);
}
.headline em { font-style: italic; font-weight: 300; }
.headline-sm { font-size: clamp(1.8rem, 4vw, 3rem); }

.body-text {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--charcoal);
  max-width: 600px;
}

.divider { width: 60px; height: 1px; background: var(--gold); margin: 40px 0; }
.divider-center { margin: 40px auto; }

/* ═══════ BUTTONS ═══════ */
.btn-couture {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 44px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--noir);
  color: var(--noir);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-silk);
  position: relative;
  overflow: hidden;
}
.btn-couture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noir);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-silk);
  z-index: -1;
}
.btn-couture:hover { color: var(--cream); border-color: var(--noir); }
.btn-couture:hover::before { transform: scaleX(1); }
.btn-couture .arrow { transition: transform var(--transition-silk); font-size: 1rem; }
.btn-couture:hover .arrow { transform: translateX(6px); }

.btn-couture-gold { border-color: var(--gold); color: var(--gold); }
.btn-couture-gold::before { background: var(--gold); }
.btn-couture-gold:hover { color: var(--noir); }

.btn-couture-light { border-color: var(--pearl); color: var(--cream); }
.btn-couture-light::before { background: var(--cream); }
.btn-couture-light:hover { color: var(--noir); }

.btn-couture-filled {
  background: var(--noir);
  color: var(--cream);
  border-color: var(--noir);
}
.btn-couture-filled::before { background: var(--gold); }
.btn-couture-filled:hover { color: var(--noir); border-color: var(--gold); }

/* ═══════ HEADER ═══════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5000;
  padding: 28px 0;
  transition: var(--transition-silk);
}
.header.scrolled {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  max-width: 1440px;
  margin: 0 auto;
}
.logo-mark {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--noir);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: var(--transition-silk);
}
.logo-mark:hover { color: var(--gold); }

.nav-main { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-main a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: var(--transition-silk);
  position: relative;
}
.nav-main a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 0.5px;
  background: var(--gold);
  transition: width var(--transition-silk);
}
.nav-main a:hover { color: var(--noir); }
.nav-main a:hover::after { width: 100%; }
.nav-main a.active { color: var(--gold); }
.nav-main a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 20px;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--noir);
  position: absolute;
  left: 0;
  transition: var(--transition-silk);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-main { display: none; }
  .menu-toggle { display: block; }
}

/* ═══════ MOBILE OVERLAY ═══════ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 4999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-silk);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-overlay a {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--noir);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--transition-silk);
}
.mobile-overlay a:hover { color: var(--gold); }

/* ═══════ FOOTER ═══════ */
.footer { background: var(--noir); padding: 80px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .logo-mark { color: var(--cream); font-size: 1.3rem; display: block; margin-bottom: 20px; }
.footer-brand p {
  font-family: 'EB Garamond', serif;
  color: var(--graphite);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-silk);
}
.footer-social a:hover { border-color: var(--gold); }
.footer-social a svg { width: 16px; height: 16px; fill: var(--silver); transition: var(--transition-silk); }
.footer-social a:hover svg { fill: var(--gold); }

.footer-section h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 14px; }
.footer-section a {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--graphite);
  text-decoration: none;
  transition: var(--transition-silk);
}
.footer-section a:hover { color: var(--cream); }

/* Newsletter in footer */
.footer-newsletter p {
  font-family: 'EB Garamond', serif;
  color: var(--graphite);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.footer-newsletter-form {
  display: flex;
  gap: 0;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--noir-soft);
  border: 1px solid var(--charcoal);
  border-right: none;
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-silk);
}
.footer-newsletter-form input::placeholder { color: var(--graphite); font-style: italic; }
.footer-newsletter-form input:focus { border-color: var(--gold); }
.footer-newsletter-form button {
  padding: 12px 20px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--noir);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-silk);
}
.footer-newsletter-form button:hover { background: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--noir-soft);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ═══════ WHATSAPP FLOAT ═══════ */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 4000;
  width: 56px; height: 56px;
  background: var(--noir);
  border: 1px solid var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-silk);
}
.wa-float svg { width: 22px; height: 22px; fill: var(--gold); transition: var(--transition-silk); }
.wa-float:hover { background: var(--gold); border-color: var(--gold); }
.wa-float:hover svg { fill: var(--noir); }

/* ═══════ REVEAL ANIMATIONS ═══════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ═══════ PAGE HERO (for inner pages) ═══════ */
.page-hero {
  padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--noir);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,149,106,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero .overline { color: var(--gold-light); }
.page-hero .headline { color: var(--cream); }
.page-hero .body-text { color: var(--silver); margin: 0 auto; text-align: center; }

/* ═══════ FORM FIELDS ═══════ */
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 16px 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--noir);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pearl);
  outline: none;
  transition: var(--transition-silk);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--gold); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--silver); font-style: italic; }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field select { cursor: pointer; -webkit-appearance: none; }
