/*
Theme Name: STARS & MODELS INT'L
Theme URI: https://starsandmodels.com
Author: STARS & MODELS INT'L Agency
Author URI: https://starsandmodels.com
Description: A luxury, high-fashion model portfolio agency WordPress theme featuring live division filters, model stats, gallery lightboxes, roster scouting, and booking inquiries.
Version: 1.3.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stars-and-models
Tags: portfolio, fashion, model-agency, luxury, dark-theme, custom-post-types, responsive
*/

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --text: #f5f3ef;
  --muted: #a5a5a5;
  --line: #262626;
  --accent: #d8c5a0;
  --accent-dark: #b8a37e;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-height: 84px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography Helpers */
.font-serif-title {
  font-family: var(--font-serif);
}

/* Model Card Styling */
.kws-model-card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kws-model-card:hover {
  border-color: rgba(216, 197, 160, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.kws-model-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #151515;
}

.kws-model-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.6s ease;
}

.kws-model-card:hover .kws-model-card-media img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.kws-model-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 20%, rgba(10, 10, 12, 0.92) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding: 1.5rem 1.25rem;
}

.kws-model-card:hover .kws-model-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.kws-overlay-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
}

.kws-overlay-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kws-overlay-label {
  color: #a1a1aa;
}

.kws-overlay-value {
  color: #ffffff;
  font-weight: 600;
}

.kws-quickview-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 10, 12, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.kws-model-card:hover .kws-quickview-btn {
  opacity: 1;
  transform: translateY(0);
}

.kws-quickview-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Measurements Grid */
.kws-measurements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.kws-measurement {
  background: #121212;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kws-measurement-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.kws-measurement-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

/* Lightbox Modal */
.kws-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.kws-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Animation */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #121212;
  border-left: 1px solid var(--line);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.drawer-panel.is-open {
  transform: translateX(0);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: #141414;
  border: 1px solid #333;
  border-radius: 16px;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Utility Classes */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Mobile Scrollbar Hide & Touch Tag Enhancements */
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
}
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Mobile Menu Tag Pill Active Animation */
.mobile-tag-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-tag-pill:active {
  transform: scale(0.96);
}

/* Full-screen editorial homepage hero */
.sam-header-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 0;
}

.sam-header-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 124px;
  object-fit: contain;
}

.admin-bar.home .sam-site-header {
  top: 32px;
}

.sam-editorial-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 680px;
  overflow: hidden;
  background: #050505;
  color: #fff;
}

.sam-editorial-hero-media,
.sam-editorial-hero-video,
.sam-editorial-hero-youtube {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.sam-editorial-hero-youtube {
  overflow: hidden;
  pointer-events: none;
}

.sam-editorial-hero-youtube iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  border: 0;
  transform: translate(-50%, -50%) scale(1.18);
}

.sam-editorial-hero-video,
.hero-slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-swiper .swiper-slide {
  opacity: 0 !important;
  overflow: hidden;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-swiper .swiper-slide-active {
  opacity: 1 !important;
}

.hero-swiper .swiper-slide-active .hero-slide-bg-img {
  animation: heroEditorialZoom 10s ease-out forwards;
}

@keyframes heroEditorialZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.075); }
}

.sam-editorial-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.sam-editorial-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(92vw, 920px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(72px, 10vh, 112px) 24px 108px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sam-editorial-brand h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.7rem, 6.4vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #fff;
}

.sam-editorial-brand p {
  margin: 22px 0 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.86rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.3em;
  color: #d8c5a0;
}

.sam-editorial-divisions {
  display: flex;
  margin-top: clamp(44px, 7vh, 72px);
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1.4vh, 16px);
}

.sam-hero-division-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  word-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.sam-hero-division-link:hover,
.sam-hero-division-link:focus-visible,
.sam-hero-division-link.is-active {
  color: #d8c5a0;
}

.sam-hero-division-link:hover {
  transform: translateY(-1px);
}

.sam-hero-division-link:focus-visible,
.sam-editorial-scroll-cue:focus-visible {
  outline: 2px solid #d8c5a0;
  outline-offset: 6px;
}

.sam-editorial-scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #d8c5a0;
  transform: translateX(-50%);
  animation: samScrollCue 2.2s ease-in-out infinite;
}

.sam-editorial-scroll-cue svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.25;
}

@keyframes samScrollCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

.sam-editorial-progress {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 80px);
  bottom: 42px;
  width: clamp(150px, 17vw, 235px);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
}

.sam-editorial-progress-track {
  position: relative;
  height: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.sam-editorial-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: #d8c5a0;
  transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
  .sam-header-logo {
    height: 36px;
    max-width: 84px;
  }

  .admin-bar.home .sam-site-header {
    top: 46px;
  }

  .sam-editorial-hero {
    min-height: 640px;
  }

  .sam-editorial-hero-video,
  .hero-slide-bg-img {
    object-position: 68% center;
  }

  .sam-editorial-hero-shade {
    background: rgba(0, 0, 0, 0.27);
  }

  .sam-editorial-hero-content {
    width: 100%;
    padding: 64px 16px 104px;
  }

  .sam-editorial-brand h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.2rem);
    letter-spacing: 0.045em;
  }

  .sam-editorial-brand p {
    margin-top: 15px;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .sam-editorial-divisions {
    margin-top: clamp(42px, 7vh, 58px);
    gap: 13px;
  }

  .sam-hero-division-link {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
  }

  .sam-editorial-scroll-cue {
    bottom: 19px;
    width: 34px;
    height: 34px;
  }

  .sam-editorial-scroll-cue svg {
    width: 26px;
    height: 26px;
  }

  .sam-editorial-progress {
    right: 18px;
    bottom: 24px;
    width: 105px;
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper .swiper-slide-active .hero-slide-bg-img,
  .sam-editorial-scroll-cue {
    animation: none;
  }

  .hero-swiper .swiper-slide,
  .sam-editorial-progress-track span {
    transition-duration: 0.01ms !important;
  }
}
