/*
Theme Name: Black Pearls Agency
Theme URI: https://blackpearls.ch
Author: Black Pearls Agency
Author URI: https://blackpearls.ch
Description: Luxury theme for Black Pearls Agency - BLACK PEARL Design System
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blackpearl
Tags: luxury, agency, models, elegant, haute
*/

/* ============================================
   BLACK PEARL DESIGN SYSTEM
   ============================================ */

:root {
  /* Color Palette - BLACK PEARL Style Guide */
  --primary-gold: #C9A961;
  --dark-charcoal: #1A1A1A;
  --soft-cream: #FAF8F3;
  --accent-rose: #D4A5A5;
  --neutral-gray: #E8E4DC;
  --text-dark: #2C2C2C;
  --text-light: #6B6B6B;

  /* Legacy mappings for compatibility */
  --pearl-white: #FAF8F3;
  --deep-black: #1A1A1A;
  --charcoal: #2C2C2C;
  --gold: #C9A961;
  --accent-dark: #2C2C2C;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 5rem;

  /* Transitions */
  --transition-smooth: 0.3s ease;
  --transition-fast: 0.2s ease;

  /* Effects */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--dark-charcoal);
}

h1 {
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.75rem, 4vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--dark-charcoal);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gold {
  color: var(--primary-gold);
}

.text-dark {
  color: var(--dark-charcoal);
}

.text-light {
  color: var(--text-light);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 500;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-gold);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-charcoal);
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.w-100 {
  width: 100%;
}

/* ============================================
   BUTTONS - BLACK PEARL Style
   ============================================ */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--dark-charcoal);
  color: white;
  border-color: var(--dark-charcoal);
}

.btn-primary:hover {
  background: transparent;
  color: var(--dark-charcoal);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--dark-charcoal);
  border-color: var(--dark-charcoal);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--dark-charcoal);
  color: white;
}

.btn-gold {
  background: var(--primary-gold);
  color: var(--dark-charcoal);
  border-color: var(--primary-gold);
}

.btn-gold:hover {
  background: transparent;
  color: var(--primary-gold);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ============================================
   CARDS - BLACK PEARL Style
   ============================================ */

.card {
  background: white;
  border: 1px solid var(--neutral-gray);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary-gold);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-charcoal);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   GRID SYSTEMS
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SECTIONS - BLACK PEARL Style
   ============================================ */

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-cream {
  background: var(--soft-cream);
}

.section-dark {
  background: var(--dark-charcoal);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark .section-title {
  color: white;
}

.section-dark p,
.section-dark .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.section-dark .section-subtitle {
  color: var(--primary-gold);
}

.section-dark .section-header .section-title::after {
  background: var(--primary-gold);
}

.section-dark .btn-outline {
  color: white;
  border-color: white;
}

.section-dark .btn-outline:hover {
  background: white;
  color: var(--dark-charcoal);
}

.section-charcoal {
  background: var(--soft-cream);
}

.section-gradient {
  background: linear-gradient(180deg, var(--soft-cream) 0%, white 100%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

/* Gold accent line under section headers */
.section-header .section-title {
  position: relative;
  padding-bottom: 1rem;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

/* ============================================
   MODEL CARD STYLES - BLACK PEARL
   ============================================ */

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.model-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  background: var(--soft-cream);
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.model-card-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--neutral-gray);
}

.model-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.model-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.model-card:hover .model-card-image img {
  transform: scale(1.05);
}

.model-placeholder-wrapper {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--neutral-gray) 0%, var(--accent-rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-placeholder-icon {
  font-size: 4rem;
  opacity: 0.3;
}

/* Badges */
.model-badge-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.badge {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
}

.badge-featured {
  background: var(--primary-gold);
  color: var(--dark-charcoal);
}

.badge-status {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-charcoal);
  border-left: 3px solid var(--primary-gold);
}

.badge-travel {
  border-left-color: var(--accent-rose);
}

/* Card Content */
.model-card-content {
  padding: 1.5rem;
}

/* Model Card Overlay (for cards with image overlay text) */
.model-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 26, 1) 0%, rgba(26, 26, 26, 0.85) 60%, transparent 100%);
  z-index: 5;
}

.model-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
}

.model-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.model-card-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.model-card-location svg {
  fill: currentColor;
}

.model-card-rate {
  font-weight: 600;
  color: var(--primary-gold);
}

.model-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.model-card-link:hover {
  color: inherit;
}

/* Ensure overlay text colors override link styles */
.model-card-link .model-card-overlay {
  color: #ffffff;
}

.model-card-link .model-card-name,
.model-card-link .model-card-overlay h3 {
  color: #ffffff !important;
}

.model-card-link .model-card-location,
.model-card-link .model-card-meta {
  color: rgba(255, 255, 255, 0.95) !important;
}

.model-card-link .model-card-rate {
  color: var(--primary-gold) !important;
}

/* Model Card Tour Overlay */
.model-card-tour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.model-card-link:hover .model-card-tour-overlay {
  opacity: 0;
  pointer-events: none;
}

.tour-overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.tour-overlay-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tour-overlay-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.tour-overlay-dates {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ============================================
   WHATSAPP BUTTONS
   ============================================ */

/* WhatsApp Button Style */
.btn-whatsapp {
  background-color: var(--dark-charcoal);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.btn-whatsapp:hover {
  background-color: var(--primary-gold);
  color: var(--dark-charcoal);
  border-color: var(--primary-gold);
}

.btn-whatsapp svg {
  fill: currentColor;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: var(--dark-charcoal);
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.whatsapp-float:hover {
  background-color: var(--primary-gold);
  color: var(--dark-charcoal);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(201, 169, 97, 0.4);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --spacing-3xl: 4rem;
    --spacing-2xl: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-2xl: 2.5rem;
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Widescreen displays (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .container-narrow {
    max-width: 1000px;
  }
}

/* Ultra-wide displays (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
    padding: 0 3rem;
  }

  .container-narrow {
    max-width: 1100px;
  }

  .section {
    padding: 6rem 0;
  }
}

/* ============================================
   WORDPRESS CORE
   ============================================ */

.alignleft {
  float: left;
  margin-right: var(--spacing-md);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--spacing-xs);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
