/* ============================================================
   DRA. BRUNA FERRARI — Landing Page
   elvas * studio · 2026
   Brand fonts (local) · Fibonacci scale · angular · glassmorphism
   ============================================================ */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'MilkyWalky';
  src: url('../../public/fonts/MilkyWalky.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../../public/fonts/Cormorant.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../../public/fonts/Cormorant-Italic.woff2') format('woff2');
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../../public/fonts/Jost.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  /* brand palette */
  --pearl:    #F5EFEA;
  --rose:     #E6C7B6;
  --taupe:    #BDAEA4;
  --charcoal: #766E6B;
  --dark:     #2C2420;
  --white:    #FFFFFF;
  --line:     rgba(189, 174, 164, .30);
  --line-soft:rgba(189, 174, 164, .18);

  /* gradients */
  --g-hero:  linear-gradient(135deg, #F5EFEA 0%, #E6C7B6 50%, #BDAEA4 100%);
  --g-rose:  linear-gradient(160deg, #F5EFEA 0%, #E6C7B6 100%);
  --g-dark:  linear-gradient(135deg, #BDAEA4 0%, #766E6B 55%, #4A4340 100%);

  /* fonts */
  --f-display: 'MilkyWalky', serif;
  --f-serif:   'Cormorant', Georgia, serif;
  --f-sans:    'Jost', 'Helvetica Neue', sans-serif;

  /* fibonacci spacing */
  --s-1: 8px;  --s-2: 13px; --s-3: 21px; --s-4: 34px;
  --s-5: 55px; --s-6: 89px; --s-7: 144px; --s-8: 233px;

  /* fluid type */
  --t-display: clamp(58px, 13vw, 168px);
  --t-h1:      clamp(40px, 7.5vw, 92px);
  --t-h2:      clamp(30px, 4.4vw, 56px);
  --t-h3:      clamp(23px, 2.6vw, 34px);
  --t-body:    clamp(16px, 1.15vw, 19px);
  --t-small:   13px;
  --t-micro:   11px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1320px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--dark);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--rose); color: var(--dark); }

/* ---------- HELPERS ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-3); }
@media (min-width: 768px){ .container { padding: 0 var(--s-5); } }

.eyebrow {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: var(--t-small);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 34px; height: .5px; background: var(--rose); display: inline-block;
}
.eyebrow--center { justify-content: center; }

.section-head { margin-bottom: var(--s-5); }
.section-head h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-top: var(--s-3);
}
.section-head h2 em { font-style: italic; color: var(--charcoal); }

section { position: relative; }
.pad { padding-block: clamp(72px, 11vw, 160px); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s }
.reveal[data-d="2"]{ transition-delay: .16s }
.reveal[data-d="3"]{ transition-delay: .24s }
.reveal[data-d="4"]{ transition-delay: .32s }

/* ---------- BUTTONS ---------- */
.btn {
  --bg: var(--dark); --fg: var(--pearl);
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-sans); font-weight: 500; font-size: var(--t-small);
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--bg); color: var(--fg);
  padding: 17px 30px; border: .5px solid var(--bg);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn:hover .arr { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: var(--dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--dark); color: var(--pearl); border-color: var(--dark); }
.btn--light { --bg: var(--pearl); --fg: var(--dark); }
.btn--light:hover { background: transparent; color: var(--pearl); border-color: var(--pearl); }
.btn--full { width: 100%; justify-content: center; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: .5px solid transparent;
  padding-block: var(--s-3);
}
.nav.scrolled {
  background: rgba(245,239,234,.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--line);
  padding-block: var(--s-2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.nav__logo img { height: 28px; width: auto; transition: opacity .4s; }
@media (min-width:768px){ .nav__logo img { height: 36px; } }
.nav__links { display: none; align-items: center; gap: var(--s-4); }
.nav__links a {
  font-size: var(--t-micro); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--charcoal); position: relative; padding-block: 4px; transition: color .4s;
}
.nav__links a::after {
  content:""; position:absolute; left:0; bottom:0; width:0; height:.5px; background: var(--dark); transition: width .45s var(--ease);
}
.nav__links a:hover { color: var(--dark); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: var(--s-3); }
.nav__cta { display: none; }
@media (min-width:980px){
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}
/* burger */
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; }
.burger span { height: 1.4px; width: 100%; background: var(--dark); transition: transform .45s var(--ease), opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(6.4px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-6.4px) rotate(-45deg); }
@media (min-width:980px){ .burger { display: none; } }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--g-rose);
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-3);
  padding: var(--s-7) var(--s-5) var(--s-5);
  transform: translateY(-100%); transition: transform .7s var(--ease);
}
.menu.open { transform: none; }
.menu a {
  font-family: var(--f-serif); font-size: clamp(34px, 9vw, 60px); font-weight: 400;
  line-height: 1.15; color: var(--dark); opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu.open a { opacity: 1; transform: none; }
.menu.open a:nth-child(1){ transition-delay:.15s } .menu.open a:nth-child(2){ transition-delay:.22s }
.menu.open a:nth-child(3){ transition-delay:.29s } .menu.open a:nth-child(4){ transition-delay:.36s }
.menu.open a:nth-child(5){ transition-delay:.43s }
.menu a em { font-style: italic; color: var(--charcoal); font-size: .55em; }

/* =========================================================
   HERO
   ========================================================= */
.hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 22%; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; }
/* base (mobile/tablet): subject top, text on a legible bottom pearl wash */
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(245,239,234,.34) 0%, rgba(245,239,234,0) 26%, rgba(245,239,234,.62) 60%, rgba(245,239,234,.96) 84%, var(--pearl) 100%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: clamp(56px, 8vh, 90px); padding-top: 120px;
}
.hero__inner { max-width: 760px; text-align: left; }
.hero__title {
  font-family: var(--f-display); font-weight: 400; color: var(--dark);
  font-size: var(--t-display); line-height: .92; letter-spacing: -.01em;
  margin: var(--s-3) 0 var(--s-3);
}
.hero__title span { display: block; }
.hero__title .ln2 { padding-left: .12em; color: var(--charcoal); }
.hero__slogan {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: var(--t-h3); line-height: 1.3; color: var(--dark); max-width: 28ch;
}
.hero__meta {
  margin-top: var(--s-3); font-size: var(--t-small); letter-spacing: .22em;
  text-transform: uppercase; color: var(--charcoal); font-weight: 500;
}
.hero__actions { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-1);
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--charcoal);
}
.scroll-cue .bar { width: .5px; height: 46px; background: var(--charcoal); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--dark); animation: scrolldn 2.2s var(--ease) infinite; }
@keyframes scrolldn { 0%{ transform: translateY(0) } 100%{ transform: translateY(300%) } }
@media (max-width: 760px){
  .hero__media img { object-position: 30% 14%; }
  .hero__content { padding-top: 150px; }
  .scroll-cue { display: none; }
}
/* ≥960: editorial — subject left, pearl wash right, text on the right */
@media (min-width: 960px){
  .hero { align-items: center; }
  .hero__media img { object-position: 22% 24%; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(245,239,234,.28) 0%, rgba(245,239,234,0) 26%, rgba(245,239,234,0) 64%, rgba(44,36,32,.14) 100%),
      linear-gradient(96deg, rgba(245,239,234,0) 30%, rgba(245,239,234,.70) 44%, rgba(245,239,234,.96) 60%, var(--pearl) 100%);
  }
  .hero__content { padding-top: 0; padding-bottom: 0; }
  .hero__inner { margin-left: auto; max-width: 600px; }
}


/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--pearl); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about__media .frame { position: absolute; inset: var(--s-3) calc(-1 * var(--s-3)) calc(-1 * var(--s-3)) var(--s-3); border: .5px solid var(--rose); z-index: -1; }
.about__body p { margin-top: var(--s-3); color: #4a423d; max-width: 52ch; }
.about__body p:first-of-type { margin-top: var(--s-4); }
.quote {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: var(--t-h3); line-height: 1.32; color: var(--dark);
  margin-top: var(--s-4); padding-left: var(--s-3); border-left: .5px solid var(--rose);
}
@media (min-width: 900px){
  .about__grid { grid-template-columns: .82fr 1fr; gap: var(--s-7); }
  .about__media { transform: translateY(0); }
}

/* =========================================================
   PILLARS (glass on dark)
   ========================================================= */
.pillars { background: var(--g-dark); color: var(--pearl); overflow: hidden; }
.pillars .eyebrow { color: rgba(245,239,234,.8); }
.pillars .eyebrow::before { background: rgba(245,239,234,.6); }
.pillars .section-head h2 { color: var(--pearl); }
.pillars .section-head h2 em { color: var(--rose); }
.pillars__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.glass-card {
  background: rgba(245,239,234,.10);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: .5px solid rgba(230,199,182,.28);
  box-shadow: 0 16px 48px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.12);
  padding: var(--s-4) var(--s-4) var(--s-5);
  position: relative; overflow: hidden;
  transition: transform .6s var(--ease), border-color .6s var(--ease), background .6s var(--ease);
}
.glass-card:hover { transform: translateY(-8px); border-color: rgba(230,199,182,.6); background: rgba(245,239,234,.16); }
.pillar__num { font-family: var(--f-serif); font-size: 22px; color: var(--rose); letter-spacing: .1em; }
.pillar__title {
  font-family: var(--f-serif); font-weight: 500; font-size: var(--t-h3); margin: var(--s-4) 0 var(--s-2);
  letter-spacing: .02em;
}
.pillar__text { font-size: 16.5px; line-height: 1.65; color: rgba(245,239,234,.82); }
.pillar__rule { width: 40px; height: .5px; background: var(--rose); margin-top: var(--s-3); }
@media (min-width: 820px){ .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--pearl); }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: .5px solid var(--line); }
.service { padding: var(--s-5) 0; border-bottom: .5px solid var(--line); display: grid; gap: var(--s-3); transition: padding .5s var(--ease); }
.service__top { display: flex; align-items: center; gap: var(--s-3); }
.service__icon { width: 40px; height: 40px; flex: none; color: var(--charcoal); }
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-family: var(--f-serif); font-weight: 500; font-size: var(--t-h3); }
.service p { color: #4a423d; max-width: 60ch; }
@media (min-width: 820px){
  .services__grid { grid-template-columns: 1fr 1fr; gap: 0 var(--s-7); }
  .service:nth-child(1){ border-right: 0; }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--g-rose); overflow: hidden; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.gallery__item { position: relative; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item.tall { grid-row: span 2; }
@media (min-width: 820px){
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: var(--s-2); }
  .g1 { grid-column: span 2; grid-row: span 2; }
  .g2 { grid-column: span 2; }
  .g3 { grid-column: span 1; grid-row: span 1; }
  .g4 { grid-column: span 1; grid-row: span 1; }
}

/* =========================================================
   INSTAGRAM
   ========================================================= */
.insta { background: var(--pearl); }
.insta__head { display: flex; flex-direction: column; gap: var(--s-3); align-items: center; text-align: center; margin-bottom: var(--s-5); }
.insta__handle { font-family: var(--f-serif); font-size: var(--t-h2); }
.insta__handle a { transition: color .4s; }
.insta__handle a:hover { color: var(--charcoal); }
.insta__embed { margin-top: var(--s-2); }
.insta__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-1); }
.insta__item { position: relative; aspect-ratio: 1; overflow: hidden; display: block; }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.insta__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(44,36,32,0); transition: background .5s var(--ease);
}
.insta__ig { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s var(--ease); color: var(--pearl); }
.insta__ig svg { width: 30px; height: 30px; }
.insta__item:hover img { transform: scale(1.06); }
.insta__item:hover::after { background: rgba(44,36,32,.38); }
.insta__item:hover .insta__ig { opacity: 1; }
.insta__foot { text-align: center; margin-top: var(--s-5); }
@media (min-width: 720px){ .insta__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px){ .insta__grid { grid-template-columns: repeat(6, 1fr); } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; color: var(--pearl); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, #8c8079 0%, #766E6B 44%, #342C28 100%); }
.contact .container { position: relative; z-index: 2; }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
.contact__info .eyebrow { color: rgba(245,239,234,.82); }
.contact__info .eyebrow::before { background: var(--rose); }
.contact__info h2 { font-family: var(--f-serif); font-weight: 400; font-size: var(--t-h2); line-height: 1.08; margin: var(--s-3) 0 var(--s-3); color: var(--pearl); }
.contact__info h2 em { font-style: italic; color: var(--rose); }
.contact__info p { color: rgba(245,239,234,.78); max-width: 42ch; }
.contact__detail { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.contact__detail .row { display: flex; gap: var(--s-2); font-size: 15px; align-items: baseline; }
.contact__detail .row span { color: var(--rose); font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase; min-width: 92px; }

.form {
  background: rgba(245,239,234,.10);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: .5px solid rgba(230,199,182,.30);
  box-shadow: 0 16px 48px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.12);
  padding: var(--s-4);
}
@media (min-width:520px){ .form { padding: var(--s-5); } }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase; color: rgba(245,239,234,.7); margin-bottom: var(--s-1); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-sans); font-weight: 300; font-size: 16px; color: var(--pearl);
  background: transparent; border: none; border-bottom: .5px solid rgba(245,239,234,.32);
  padding: 11px 2px; transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,239,234,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rose); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E6C7B6' fill='none' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.field select option { color: var(--dark); }
.form__note { font-size: var(--t-micro); color: rgba(245,239,234,.55); margin-top: var(--s-2); line-height: 1.5; }
.form__success {
  display: none; text-align: center; padding: var(--s-3) 0;
}
.form__success.show { display: block; }
.form__success .ck { font-family: var(--f-serif); font-style: italic; font-size: var(--t-h3); color: var(--rose); margin-bottom: var(--s-1); }
@media (min-width: 940px){ .contact__grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-7); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: var(--pearl); position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); padding-block: clamp(64px,9vw,110px); position: relative; z-index: 2; }
.footer__logo img { height: 30px; width: auto; margin-bottom: var(--s-3); }
.footer__tag { font-family: var(--f-serif); font-style: italic; font-size: 21px; color: var(--taupe); max-width: 30ch; }
.footer__col h4 { font-size: var(--t-micro); letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); margin-bottom: var(--s-3); }
.footer__col p, .footer__col a { font-size: 15px; color: rgba(245,239,234,.74); line-height: 1.8; display: block; }
.footer__col a { transition: color .4s; }
.footer__col a:hover { color: var(--rose); }
.footer__bottom { border-top: .5px solid rgba(245,239,234,.14); padding-block: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.footer__bottom small { font-size: var(--t-micro); letter-spacing: .08em; color: rgba(245,239,234,.5); }
.footer__credit { font-size: var(--t-micro); letter-spacing: .14em; color: rgba(245,239,234,.5); }
.footer__credit b { color: var(--rose); font-weight: 500; }
@media (min-width: 820px){
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
}

/* float schedule pill (mobile) */
.float-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 40; transition: transform .6s var(--ease);
}
.float-cta.show { transform: translateX(-50%) translateY(0); }
@media (min-width: 980px){ .float-cta { display: none; } }
