/* ═══════════════════════════════════════════════════════════
   JML — shared foundation (tokens, fonts, chrome)
   Used by index (portal) + studio. Photography has its own style.css.
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/archivo-black-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/archivo-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300; font-display: swap; src: url("../assets/fonts/fraunces-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }

:root {
  --cream:      #E8DDC7;
  --cream-soft: #EFE6D4;
  --cream-deep: #DACBAD;
  --ink:        #12100D;
  --ink-soft:   #1C1915;
  --ink-40:     rgba(18, 16, 13, .4);
  --bronze:     #A6845A;
  --green:      #2F5D44;
  --wa:         #25D366;

  --font-display: "Archivo Black", "Archivo", sans-serif;
  --font-body:    "Archivo", sans-serif;
  --font-accent:  "Fraunces", serif;

  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1240px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 130px) 0; }
::selection { background: var(--cream); color: var(--ink); }

/* ── Preloader ── */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: transform .9s var(--ease-out);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-logo { width: clamp(110px, 16vw, 170px); animation: logoPulse 2.2s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .75; transform: scale(.97);} }
.preloader-track { width: clamp(160px, 24vw, 260px); height: 2px; background: rgba(227,211,186,.18); border-radius: 2px; overflow: hidden; }
.preloader-fill { height: 100%; width: 0%; background: #E3D3BA; transition: width .25s ease; }
.preloader-count { font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; color: #E3D3BA; }

/* ── Custom cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
  border-radius: 50%; translate: -50% -50%; display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--cream); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(232,221,199,.5); transition: width .25s, height .25s, background-color .25s; }
.cursor-ring.is-hover { width: 58px; height: 58px; background: rgba(232,221,199,.08); }
@media (hover: hover) and (pointer: fine) { .cursor-dot, .cursor-ring { display: block; } }

/* ── Buttons ── */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 13px 28px;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.btn-pill .cta-arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 13px; transition: transform .3s var(--ease-out); }
.btn-pill:hover .cta-arrow { transform: translateX(4px); }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-cream:hover { background: transparent; color: var(--cream); }
.btn-outline-cream { background: transparent; color: var(--cream); }
.btn-outline-cream:hover { background: var(--cream); color: var(--ink); }
.btn-wa { background: var(--wa); color: #05391a; border-color: var(--wa); }
.btn-wa:hover { background: #1fbf5a; border-color: #1fbf5a; }

/* ── Floating WhatsApp button ── */
.wa-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  animation: waPop .5s var(--ease-out) both;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: waRing 2.4s ease-out infinite;
}
@keyframes waRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes waPop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Shared forms ── */
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; }
.field label { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-deep); }
.field input, .field select, .field textarea {
  background: rgba(232,221,199,.07); color: var(--cream);
  border: 1px solid rgba(232,221,199,.22); border-radius: 12px;
  padding: 13px 15px; font-family: var(--font-body); font-size: 15px;
  transition: border-color .3s, background-color .3s;
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); background: rgba(232,221,199,.12); }
.field textarea { resize: vertical; }

/* chip multi-select */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(232,221,199,.28); font-size: 13px; color: var(--cream-deep);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
