@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --black: #0A0A0A;
  --charcoal: #1A1A1A;
  --charcoal-mid: #2A2A2A;
  --cream: #F5F0E8;
  --cream-dark: #EDE5D8;
  --gold: #B8922A;
  --gold-light: #EDD98A;
  --gold-dim: rgba(184,146,42,0.15);
  --grey: #666666;
  --grey-light: #999999;
  --emerald: #0D2B1A;
  --white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'DM Sans', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--black);
  color: var(--cream);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Typography Utility */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* Animation System Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 146, 42, 0.15), transparent);
  animation: shimmerAnim 4s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes shimmerAnim {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Global Keyframe Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for scrolling */
  z-index: 0;
  will-change: transform;
  overflow: hidden;
}

/* Cursor Dot */
#cursor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.3s ease;
  mix-blend-mode: difference;
  will-change: transform;
}

#cursor-dot.visible {
  opacity: 1;
}

#cursor-dot.hovered {
  width: 20px;
  height: 20px;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  padding-right: 50px;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Page Transition Overlay */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--charcoal);
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 1;
}

#page-transition.fade-out {
  opacity: 0;
}

#page-transition.fade-in {
  opacity: 1;
  pointer-events: all;
}

/* Instagram Base Overrides */
.instagram-media {
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 auto !important;
}

/* ---------------------------------
   GLOBAL COMPONENTS: NAVIGATION
   --------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: transparent;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 146, 42, 0.3);
}

.nav-left .logo {
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nav-left .logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-left .logo-fallback {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
}

.nav-center {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.8); /* cream 80% */
  position: relative;
  padding: 10px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(184, 146, 42, 0.3);
  border-top: 2px solid var(--gold);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(245, 240, 232, 0.7);
  padding: 12px 24px;
  position: relative;
}

.nav-dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-dropdown a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown a:hover::before {
  transform: scaleY(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--grey-light);
  cursor: pointer;
}

.lang-toggle span {
  transition: color 0.3s ease;
}

.lang-toggle span.active {
  color: var(--gold);
}

.btn-whatsapp-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-whatsapp-outline:hover {
  background-color: var(--gold);
  color: var(--black);
}

.btn-solid-gold {
  display: inline-block;
  background-color: var(--gold);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: all 0.3s ease;
}

.btn-solid-gold:hover {
  background-color: var(--gold-light);
}

.btn-outline-gold {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 16px 36px;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--black);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger div {
  width: 25px;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease;
}

.mobile-menu-overlay.open {
  right: 0;
}

.mobile-menu-overlay .menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 30px;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-sans);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--gold);
}

.mobile-nav-links .mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  display: none;
}

.mobile-nav-links .mobile-dropdown.open {
  display: flex;
}

.mobile-nav-links .mobile-dropdown a {
  font-size: 24px;
  color: var(--cream);
}

/* ---------------------------------
   GLOBAL COMPONENTS: FOOTER
   --------------------------------- */
footer {
  background-color: var(--black);
  border-top: 2px solid rgba(184, 146, 42, 0.5);
  padding: 70px 5% 40px;
  text-align: center;
}

footer .footer-logo img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

footer .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 40px;
}

footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

footer .footer-nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--grey-light);
  letter-spacing: 2px;
}

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

footer .footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

footer .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gold);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

footer .footer-socials a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

footer .footer-socials a:hover {
  border-color: var(--gold);
  transform: scale(1.1);
}

footer .footer-contact-strip {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

footer .footer-contact-strip span.pipe {
  color: var(--grey-light);
}

footer hr {
  border: none;
  border-top: 1px solid rgba(184, 146, 42, 0.2);
  margin-bottom: 30px;
}

footer .copyright {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 10px;
}

footer .crafted {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--grey-light);
  margin-bottom: 5px;
}

footer .credits {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(102, 102, 102, 0.5); /* grey at 50% */
}

footer .credits a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s;
}

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

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(184, 146, 42, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(184, 146, 42, 0.6);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ---------------------------------------------------- */
@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }
  .nav-center, .nav-right {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  footer .footer-contact-strip {
    flex-direction: column;
    gap: 10px;
  }
  footer .footer-contact-strip span.pipe {
    display: none;
  }
}
