/*
Theme Name: Van Cleef & Arpels - Egypt Personalized Experience
Theme URI: https://github.com/novamesh/vancleefarpels
Author: Nova Mesh Solutions
Description: Custom WordPress theme for the Egypt Hosting Website. Highly personalized guest experience with cinematic scroll-driven loading and interactive sand-reveal effects.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vancleefarpels
*/

/* --- DESIGN SYSTEM TOKENS (Section 7C) --- */
:root {
  /* Color Palette */
  --color-sand: #e5d5b7;        /* Primary Background */
  --color-cream: #FAF6EE;       /* Secondary Background / Form Background */
  --color-teal: #1E3B38;        /* Primary Accent (headers/footers/accents) */
  --color-gold: #B8912F;        /* Metallic Accent (buttons/dividers/icons) */
  --color-terracotta: #B5673E;  /* Secondary Accent (highlights/hovers) */
  --color-emerald: #3C5C4A;     /* Tertiary Accent (very rare details) */
  --color-ink: #2B2620;         /* Primary Text */
  --color-off-white: #F5F0E6;   /* Text on Dark Backgrounds */

  /* Typography Fonts */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  
  /* Transition timings */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY SCALE (Desktop -> Mobile responsive) --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}

p {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--color-terracotta);
}

/* --- PERSISTENT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Uppercase buttons and labels */
.nav-link, .btn-action, .small-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-teal);
  color: var(--color-off-white);
  border: 1px solid var(--color-teal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--color-teal);
  color: var(--color-off-white);
}

/* Hidden state utility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* --- GLOBAL HEADER (Section 7A) --- */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1100;
  /* Always-on frosted cream glass effect */
  background-color: rgba(230, 218, 196, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 145, 47, 0.18);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Deeper glass when scrolled — stronger cream + gold shadow */
.global-header.scrolled {
  background-color: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184, 145, 47, 0.25);
  box-shadow: 0 2px 24px rgba(43, 38, 32, 0.07);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.header-left, .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 2;
  text-align: center;
}

/* Brand Logo (centered) */
.brand-logo {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--color-ink);
  text-decoration: none;
  text-transform: uppercase;
}

.header-date {
  color: rgba(43, 38, 32, 0.6);
  font-size: 11px;
  letter-spacing: 2px;
}

/* Hamburger Toggle Button - Sleek Luxury 2-Line Design */
.hamburger-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  color: var(--color-ink);
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: currentColor;
  transition: var(--transition-smooth);
}

.hamburger-btn span:nth-child(2) {
  width: 16px; /* Shorter second bar for premium branding style */
}

/* Hamburger button hover effect */
.hamburger-btn:hover span:nth-child(2) {
  width: 24px;
}

/* --- SLIDING HAMBURGER SIDE NAVIGATION MENU (Refined & Professional) --- */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: -360px;
  width: 360px;
  height: 100%;
  background-color: var(--color-teal);
  color: var(--color-off-white);
  z-index: 10000;
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 90px 45px 45px 45px;
  transition: left 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hamburger-menu::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(184, 145, 47, 0.25);
  pointer-events: none;
}

.hamburger-menu.active {
  left: 0;
}

.close-menu-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-off-white);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 5px;
  z-index: 10;
}

.close-menu-btn:hover {
  color: var(--color-gold);
  transform: rotate(90deg);
}

.menu-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--color-gold);
  margin-bottom: 50px;
  text-transform: uppercase;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-off-white);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}

/* Thin expanding gold line transition */
.menu-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.menu-nav-link:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

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

.menu-footer {
  margin-top: auto;
}

.menu-footer p {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: rgba(245, 240, 230, 0.4);
  margin-bottom: 0;
}

/* Sliding Menu Backdrop Overlay */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 59, 56, 0.35); /* tinted with teal */
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- GLOBAL FOOTER --- */
.global-footer {
  padding: 80px 0 60px 0;
  background-color: var(--color-teal);
  color: var(--color-off-white);
  border-top: 1px solid var(--color-gold);
  text-align: center;
  position: relative;
}

/* Decorative border inset for the footer */
.global-footer::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(184, 145, 47, 0.15);
  pointer-events: none;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.footer-ornament {
  margin-bottom: 20px;
  color: var(--color-gold);
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 1px;
  color: rgba(245, 240, 230, 0.75);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(245, 240, 230, 0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

