/* ============================================
   Mariotto Management MARIOTTO — Shared Styles
   ============================================ */

/* ── VARIABLES ── */
:root {
  --white:  #F0EFED;
  --off:    #E8E7E4;
  --ink:    #111110;
  --mid:    #8C8A87;
  --light:  #DDDBD8;
  --xlight: #E4E2E0;
}

/* ── LOADING INDICATOR ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}
.page-loader.visible {
  opacity: 1;
  pointer-events: all;
}
.page-loader-ring {
  width: 84px;
  height: 84px;
  border: 3.6px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── BODY ── */
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px) saturate(0.6);
  -webkit-backdrop-filter: blur(6px) saturate(0.6);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 48px;
  height: 64px;
}
header.has-filters {
  grid-template-columns: 1fr auto 1fr;
}
.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo {
  height: 28px;
  width: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.2s;
}
.logo-link:hover .site-logo { opacity: 1; }
.logo-for-dark { display: none !important; }
[data-theme="dark"] .logo-for-light { display: none !important; }
[data-theme="dark"] .logo-for-dark { display: block !important; }
.site-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.60rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* index.html header */
.header-left {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header-left span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
}
.header-right a {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.header-instagram {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

/* model page header */
.back-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mid);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--ink); }
.back-arrow { font-size: 0.8rem; }
.book-btn {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 24px;
  transition: background 0.2s, color 0.2s;
}
.book-btn:hover { background: var(--ink); color: var(--white); }

/* ── FOOTER — base (used on model pages) ── */
footer {
  border-top: 1px solid var(--light);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}
.footer-copy {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--light);
}

/* ── FOOTER — icon row (used on index.html only) ── */
footer.has-icons {
  padding: 0 48px;
  height: 72px;
}
footer.has-icons .footer-brand { flex: 1; }
footer.has-icons .footer-copy  { flex: 1; text-align: center; }
.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.footer-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-right: 16px;
}
.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--light);
  color: var(--mid);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  position: relative;
}
.footer-icon-link:hover { border-color: var(--ink); color: var(--ink); }
.footer-icon-link .icon-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(4px);
}
.footer-icon-link:hover .icon-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.footer-booking {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: none;
  padding: 10px 20px;
  white-space: nowrap;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-booking:hover { color: var(--mid); }

/* ── LIGHTBOX (model pages) ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  overflow: hidden;
}
.lightbox.open { opacity: 1; pointer-events: all; }
body.lightbox-open { overflow: hidden; }
.lightbox-close {
  position: absolute;
  top: 32px; right: 40px;
  z-index: 10;
  color: rgba(255,255,255,0.5);
  transition: color 0.1s;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: #fff; }
.lightbox-close,
.lightbox-nav {
  background: none;
  border: none;
  padding: 0;
}
.lightbox-counter {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  z-index: 10;
}

/* 5 equal panels: [buffer][side][center][side][buffer] */
.lightbox-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  transform: translateX(-33.333vw);
  transition: transform 0.1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.lightbox-slide {
  flex: 0 0 33.333vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.lightbox-slide img,
.lightbox-slide video {
  object-fit: contain;
  display: block;
  transition: max-width 0.35s, max-height 0.35s, filter 0.35s;
}
.lightbox-slide video { outline: none; }

/* Center slide — large image, overlaps into side slots */
.lightbox-slide.slide-center {
  z-index: 5;
}
.lightbox-slide.slide-center img,
.lightbox-slide.slide-center video {
  max-width: 55vw;
  max-height: 85vh;
}

/* Side slides — small, dimmed, clickable */
.lightbox-slide.slide-side img,
.lightbox-slide.slide-side video {
  max-width: 22vw;
  max-height: 65vh;
  filter: brightness(0.6);
  cursor: pointer;
}

/* Buffer slides — offscreen, no special styling needed */
.lightbox-slide.slide-buffer img,
.lightbox-slide.slide-buffer video {
  max-width: 22vw;
  max-height: 65vh;
  filter: brightness(0);
}

/* Nav arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.4);
  padding: 20px;
  transition: color 0.2s;
  user-select: none;
  cursor: pointer;
}
.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Single mode — no side previews */
.lightbox.lightbox-single .slide-side,
.lightbox.lightbox-single .slide-buffer { visibility: hidden; }

/* ── DARK MODE ── */
[data-theme="dark"] {
  --white: #131211;
  --off: #1A1917;
  --xlight: #201E1C;
  --light: #2E2C29;
  --mid: #7A7875;
  --ink: #E6E4E1;
}
[data-theme="dark"] header {
  background: rgba(10,10,10,0.5);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .lightbox {
  background: rgba(0,0,0,0.97);
}
.theme-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.theme-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform 0.5s ease, opacity 0.12s ease;
}
.theme-icon--sun {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}
.theme-icon--moon {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
[data-theme="dark"] .theme-icon--sun {
  transform: translate(-50%, -50%) rotate(-90deg);
  opacity: 0;
}
[data-theme="dark"] .theme-icon--moon {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}

/* ── CONTACT MODAL ── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.contact-modal.open {
  opacity: 1;
  pointer-events: all;
}
.contact-modal-box {
  background: var(--white);
  border: 1px solid var(--light);
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  position: relative;
  animation: modalReveal 0.3s ease forwards;
}
@keyframes modalReveal {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.contact-modal-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.2rem;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
  line-height: 1;
}
.contact-modal-close:hover { color: var(--ink); }
.contact-modal-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 32px;
}
.contact-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 40px;
  line-height: 1;
}
.contact-modal-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 32px;
}
.contact-modal-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: none;
  border-top: 1px solid var(--light);
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
}
.contact-modal-item:hover { color: var(--ink); }
.contact-modal-item:first-child { border-top: none; }
.contact-modal-item svg { flex-shrink: 0; }
.contact-modal-item-label {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact-modal-item-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  margin-top: 2px;
}

/* ── DOWNLOAD MODAL ── */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.download-modal.open {
  opacity: 1;
  pointer-events: all;
}
.download-modal-box {
  background: var(--white);
  padding: 40px 48px 48px;
  max-width: 520px;
  width: 92%;
  position: relative;
  animation: modalReveal 0.3s ease forwards;
}
.download-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}
.download-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
}
.download-modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.download-modal-close:hover { color: var(--ink); }
.download-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--light);
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
}
.download-option:last-child { border-bottom: none; }
.download-option:hover { color: var(--ink); }
.download-option-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.download-option-arrow {
  font-size: 0.8rem;
}

/* ── BUTTONS (model pages) ── */
.btn-primary {
  text-decoration: none;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--white);
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--ink); }
.btn-secondary {
  text-decoration: none;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--light);
  color: var(--mid);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
  cursor: pointer;
  background: none;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
#downloadTrigger {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
#downloadTrigger:hover { color: var(--ink); }

/* ── MODEL PAGES ── */
.hero-split {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 33% 1fr;
  min-height: calc(100vh - 64px);
  align-items: stretch;
}
.hero-name-col {
  display: flex;
  flex-direction: column;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(8px);
}
.hero-name-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}
.hero-photo {
  height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--off);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  animation: photoReveal 1s ease forwards; opacity: 0;
}
.hero-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 8rem; font-weight: 300; font-style: italic; color: var(--light);
}
@keyframes photoReveal {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-info {
  padding: 64px 48px 80px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--light);
}
@keyframes infoReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.model-category { font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--mid); margin-bottom: 20px; }
.model-name { font-family: 'Montserrat', sans-serif; font-size: clamp(3rem, 5vw, 3.8rem); font-weight: 300; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(255,255,255,0.9); flex: 1; display: flex; align-items: center; position: relative; z-index: 2; }
.info-divider { width: 40px; height: 1px; background: var(--light); margin: 32px 0; }
.stats-label { font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mid); margin-bottom: 20px; }
.stats-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; position: relative; z-index: 2; }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-key { font-family: 'Montserrat', sans-serif; font-size: 0.84rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 700; text-align: right; }
.stat-val { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-style: normal; font-weight: 300; color: rgba(255,255,255,0.9); }
.bio-label { font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.bio-text { font-size: 0.82rem; line-height: 1.9; color: var(--mid); margin-bottom: 40px; max-width: 380px; }
.contact-block { padding-top: 40px; border-top: 1px solid var(--light); display: flex; flex-direction: column; gap: 16px; }
.contact-note { font-size: 0.7rem; line-height: 1.7; color: var(--mid); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-section { padding: 80px 48px; }
.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.gallery-tabs {
  display: flex;
  gap: 0;
}
.gallery-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.gallery-tab:hover { color: var(--ink); }
.gallery-tab.active { color: var(--ink); }
.gallery-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.gallery-title { font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--mid); }
.gallery-count { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--light); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-item { aspect-ratio: 2/3; overflow: hidden; background: var(--off); position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-style: italic; color: var(--light); }

/* ── NAV OVERLAY ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease;
}
.nav-overlay-slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.nav-overlay-slides .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.nav-overlay-slides .slide.active { opacity: 1; }
.nav-overlay-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.nav-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 16px;
}
.nav-overlay-content img { height: 70px; width: auto; }
.nav-overlay-content span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.nav-overlay-links {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}
.nav-overlay-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-overlay-links a:hover { color: rgba(255,255,255,1); }
.nav-overlay-link-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}
.nav-overlay-link-btn:hover { color: rgba(255,255,255,1); }
.nav-overlay-close {
  position: absolute;
  top: 32px;
  right: 40px;
  z-index: 3;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.nav-overlay-close:hover { color: rgba(255,255,255,1); }
.nav-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-trigger:hover { color: var(--ink); }

/* ── KEYBOARD FOCUS ── */
:focus-visible {
  outline: 2px solid var(--mid);
  outline-offset: 3px;
}