/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-black: #000000;
  --color-dark: #111111;
  --color-off-white: #F7F5F0;
  --color-white: #FFFFFF;
  --color-gold: #B08D57;
  --color-gray: #777777;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Layout */
  --container-width: 1440px;
  --header-height: 130px;
}

@media (max-width: 767px) {
  :root {
    --header-height: 90px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
  }
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Photography Protection */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-off-white);
}

.section-dark p {
  color: #aaaaaa;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.btn-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   Video Preloader
   ========================================================================== */
.video-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.video-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-preloader video {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background-color 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.scrolled .logo,
.header.scrolled .nav-link,
.header.scrolled .btn-nav {
  color: var(--color-dark) !important;
}

.header.scrolled .logo img {
  filter: none; /* Keep original vibrant logo colors */
}

.header.scrolled .hamburger span {
  background-color: var(--color-dark) !important;
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-transform: uppercase;
  z-index: 101;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  max-width: min(280px, 45vw);
  height: auto;
  max-height: calc(var(--header-height) - 30px);
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-nav {
  display: none;
}

@media (min-width: 1024px) {
  .btn-nav {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    border: 1px solid currentColor;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
  }
  
  .btn-nav:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
  }
  
  .header.scrolled .btn-nav:hover {
    background-color: var(--color-dark) !important;
    color: var(--color-white) !important;
  }
}

/* Mobile Menu Toggle */
.hamburger {
  display: block;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; width: 80%; right: 0; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.footer-col p {
  color: #aaaaaa;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #aaaaaa;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #777777;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.section-dark .form-label {
  color: var(--color-off-white);
}

.form-control {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid #cccccc;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  transition: border-color 0.3s ease;
}

.section-dark .form-control {
  color: var(--color-white);
  border-color: #444444;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.15);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    height: 60px;
    gap: 10px;
  }
}

/* ==========================================================================
   Page Hero (Non-Home)
   ========================================================================== */

.page-hero {
  height: 52vh;
  min-height: 380px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
  pointer-events: none;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Keep heads, faces, and main subjects in frame */
  opacity: 0.7;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  padding: 0 var(--spacing-md);
}

.page-hero-title {
  margin-bottom: 0;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* ==========================================================================
   Floating Social Icons
   ========================================================================== */
.floating-socials {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-socials .social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.floating-socials .social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-socials .social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.floating-socials .whatsapp {
  background-color: #25D366;
}

.floating-socials .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-socials .youtube {
  background-color: #FF0000;
}

@media (max-width: 767px) {
  .floating-socials {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }
  .floating-socials .social-icon {
    width: 40px;
    height: 40px;
  }
  .floating-socials .social-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Modal Overlays & Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-white);
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* ==========================================================================
   Universal Uncropped Image & Gallery System
   ========================================================================== */

/* Gallery Grid (Uncropped Masonry Waterfall) */
.gallery-grid {
  column-count: 3;
  column-gap: 1.25rem;
  width: 100%;
}

.gallery-grid img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  break-inside: avoid;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.03);
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Portfolio Masonry System */
.masonry-grid {
  column-count: 3;
  column-gap: 1.25rem;
  width: 100%;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  display: block;
  break-inside: avoid;
  width: 100%;
  background-color: #111111;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  text-align: left;
}

.masonry-overlay h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.masonry-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

@media (hover: none) {
  .masonry-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  }
}

/* ==========================================================================
   Universal Lightbox Modal
   ========================================================================== */
.global-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.global-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 92vh;
}

.lightbox-img-view {
  max-width: 94vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  user-select: none;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-lightbox.active .lightbox-img-view {
  transform: scale(1);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 100000;
  backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
  transform: scale(1.1);
}

.lightbox-btn-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-btn-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

.lightbox-btn-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

@media (max-width: 767px) {
  .lightbox-btn-close {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
  .lightbox-btn-prev, .lightbox-btn-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-btn-prev { left: 0.5rem; }
  .lightbox-btn-next { right: 0.5rem; }
}


