/* ===== CSS Custom Properties ===== */
:root {
    --background: 220 20% 10%;
    --foreground: 40 20% 92%;
    --card: 220 18% 14%;
    --card-foreground: 40 20% 92%;
    --primary: 40 60% 55%;
    --primary-foreground: 220 20% 8%;
    --secondary: 215 25% 20%;
    --secondary-foreground: 40 20% 92%;
    --muted: 220 15% 18%;
    --muted-foreground: 220 10% 55%;
    --accent: 210 50% 45%;
    --border: 220 15% 22%;
    --ring: 40 60% 55%;
    --gold: 40 60% 55%;
    --gold-light: 40 70% 70%;
    --navy: 220 20% 10%;
    --navy-light: 215 25% 20%;
    --cream: 40 20% 92%;
}

/* ===== Base ===== */
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ===== Utility Classes ===== */
.text-gradient-gold {
    background-image: linear-gradient(135deg, hsl(40 70% 70%), hsl(40 60% 55%), hsl(35 50% 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-dark {
    background: linear-gradient(180deg, hsl(220 20% 10%) 0%, hsl(220 20% 6%) 100%);
}

.bg-gradient-card {
    background: linear-gradient(145deg, hsl(220 18% 16%) 0%, hsl(220 18% 12%) 100%);
}

.shadow-gold {
    box-shadow: 0 4px 30px -10px hsl(40 60% 55% / 0.2);
}

.shadow-elegant {
    box-shadow: 0 20px 60px -15px hsl(0 0% 0% / 0.5);
}

/* ===== Color Helpers ===== */
.bg-background   { background-color: hsl(var(--background)); }
.bg-card         { background-color: hsl(var(--card)); }
.bg-secondary    { background-color: hsl(var(--secondary)); }
.bg-primary      { background-color: hsl(var(--primary)); }
.bg-muted        { background-color: hsl(var(--muted)); }

.text-foreground        { color: hsl(var(--foreground)); }
.text-card-foreground   { color: hsl(var(--card-foreground)); }
.text-primary           { color: hsl(var(--primary)); }
.text-primary-foreground{ color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground  { color: hsl(var(--muted-foreground)); }

.border-border   { border-color: hsl(var(--border)); }
.border-primary  { border-color: hsl(var(--primary)); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--primary) / 0.5);
    color: hsl(var(--primary));
}

.btn-outline:hover {
    background-color: hsl(var(--primary) / 0.1);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    opacity: 0.8;
}

/* ===== Form Inputs ===== */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: hsl(var(--primary));
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

/* ===== Header ===== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsl(var(--background) / 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

/* ===== Nav Dropdown ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    width: 12rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    display: none;
    z-index: 60;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: hsl(var(--primary));
    background-color: hsl(var(--secondary) / 0.5);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    display: none;
    overflow: hidden;
    background-color: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
}

.mobile-menu.open {
    display: block;
}

/* ===== Gallery Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: hsl(var(--background) / 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-height: 85vh;
    max-width: 100%;
    border-radius: 0.75rem;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: hsl(var(--foreground));
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: hsl(var(--secondary) / 0.8);
    border: none;
    color: hsl(var(--foreground));
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.2s;
}

.lightbox-nav:hover {
    background: hsl(var(--secondary));
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===== Cards ===== */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: hsl(var(--primary) / 0.4);
}

.card-hover:hover {
    box-shadow: 0 4px 30px -10px hsl(40 60% 55% / 0.2);
}

/* ===== Toast notification ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--primary) / 0.5);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    z-index: 200;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 24rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.toast-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Miscellaneous ===== */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* AOS overrides for consistent timing */
[data-aos] {
    transition-duration: 600ms !important;
}

/* Smooth image hover zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.group:hover .img-zoom {
    transform: scale(1.05);
}
