@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --gold:          #D4AF37;
  --gold-dark:     #AA861E;
  --gold-light:    #F3E9CE;
  --gold-pale:     #FAF6EC;
  --cream:         #FAF8F5;
  --beige:         #F3ECE3;
  --luxury-dark:   #241C18;
  --luxury-mid:    #5A4D45;
  --luxury-light:  #A89890;
  --white:         #FFFFFF;
  --off-white:     #FAF8F5; /* Aligning with cream */
  --text-dark:     #241C18; /* Aligning with luxury-dark */
  --text-mid:      #5A4D45;  /* Aligning with luxury-mid */
  --text-light:    #A89890; /* Aligning with luxury-light */
  --border:        rgba(212, 175, 55, 0.2); /* Aligning with border-gold */
  --border-gold:   rgba(212, 175, 55, 0.2);
  --shadow:        0 10px 30px rgba(36, 28, 24, 0.08); /* Aligning with shadow-premium */
  --shadow-premium: 0 10px 30px rgba(36, 28, 24, 0.08);
  --shadow-hover:  0 20px 40px rgba(212, 175, 55, 0.15);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --radius-pill:   999px;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--off-white);
}

body {
  background: var(--off-white);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
  -webkit-font-smoothing: antialiased;
  padding-top: 68px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--text-dark);
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dark);
}

p {
  line-height: 1.85;
  color: var(--text-mid);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.content-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

section.hero {
  padding: 0;
}

section.short-banner {
  padding: 96px 0 48px;
}

img {
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

button, input[type="submit"] {
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:disabled, input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-luxury-primary {
  background: var(--gold);
  color: white;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled), .btn-luxury-primary:hover:not(:disabled) {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-primary:active:not(:disabled), .btn-luxury-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-outline, .btn-luxury-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline:hover:not(:disabled), .btn-luxury-outline:hover:not(:disabled) {
  background: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
}

.btn-outline:active:not(:disabled), .btn-luxury-outline:active:not(:disabled) {
  transform: translateY(0);
}

.btn-destructive {
  background: #A3483B;
  color: white;
  border: 1px solid #A3483B;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(163, 72, 59, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-destructive:hover:not(:disabled) {
  background: #8E3A2F;
  border-color: #8E3A2F;
  box-shadow: 0 8px 24px rgba(142, 58, 47, 0.35);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

/* ===== CARD ===== */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,168,76,0.35);
}

/* ===== LABELS ===== */
.label-small {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.error-message {
  color: #A63A2B;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

input:invalid ~ .error-message,
input.invalid ~ .error-message {
  display: block;
}

.underline-accent {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LOGO CLASSES ===== */
.nav-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  object-fit: cover;
  background: white;
  box-shadow: 0 2px 8px rgba(201,168,76,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(201,168,76,0.25);
}

.footer-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  object-fit: cover;
  background: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
}

.auth-logo-img {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  margin: 0 auto 20px;
  display: block;
  background: white;
  box-shadow: 0 4px 16px rgba(201,168,76,0.2);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(201,168,76,0.2); }
  50%       { box-shadow: 0 4px 24px rgba(201,168,76,0.4); }
}

/* ===== SPINNER ===== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
  z-index: 10000;
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.success {
  border-left: 4px solid #4CAF50;
  color: #2C2420;
}

.toast.error {
  border-left: 4px solid #A63A2B;
  color: #A63A2B;
}

@keyframes toastSlideIn {
  from { transform: translateX(400px) scale(0.9); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

/* ===== SCROLL REVEAL (apply via JS intersection observer) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== FADE IN ===== */
.fade-in {
  animation: fadeIn 0.6s ease;
}

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

/* ===== SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, #f0ece8 25%, #e8e2dc 50%, #f0ece8 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-auto {
  display: grid;
  grid-auto-flow: dense;
  gap: 16px;
}

/* ===== PULSE GLOW for special badges ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 2px 24px rgba(201,168,76,0.1); }
  50%       { box-shadow: 0 4px 32px rgba(201,168,76,0.3); }
}


/* ===== STATUS BADGES ===== */
.status-badge {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  display: inline-block;
}

.status-badge.pending {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
}

.status-badge.confirmed {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.status-badge.cancelled, .status-badge.rejected {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* ===== RESPONSIVE ===== */
/* ===== STANDARDIZED HEADER ===== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-bar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--luxury-dark);
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  padding: 2px;
  background: white;
}

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--luxury-mid);
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
}

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

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

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

.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 4px;
}

.hamburger-menu span {
  width: 24px;
  height: 2px;
  background: var(--luxury-dark);
  transition: all 0.3s ease;
  display: block;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== USER AVATAR & DROPDOWN ===== */
.nav-avatar-dropdown {
  position: relative;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.3s ease;
}

.nav-avatar:hover {
  background: var(--gold-dark);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--luxury-mid);
  transition: background 0.25s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.nav-dropdown-item.logout {
  color: #A63A2B;
  border-top: 1px solid var(--border);
}

/* ===== MOBILE OVERLAY ===== */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(36, 28, 24, 0.95);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.nav-mobile-overlay.open {
  display: flex;
}

.close-mobile-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 36px;
  color: var(--gold-light);
  cursor: pointer;
}

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

.nav-mobile-content .nav-link {
  color: var(--gold-light);
  font-size: 18px;
  letter-spacing: 0.15em;
}

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

/* ===== LUXURY FOOTER ===== */
.footer {
  background: var(--luxury-dark);
  color: white;
  padding: 80px 0 28px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: white;
  padding: 2px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
  transition: fill 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.social-links a:hover svg {
  fill: #1a0a00;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
}

.footer-col a, .footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  display: block;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  margin-left: 20px;
  text-decoration: none;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .content-wrapper { padding: 0 18px; }
  section { padding: 48px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  body { font-size: 14px; padding-top: 68px; }
  
  .hamburger-menu {
    display: flex;
  }
  .nav-right {
    display: none;
  }
  .btn-primary, .btn-outline, .btn-destructive {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .nav-title,
  .nav-left span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .footer {
    padding: 44px 0 22px !important;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px !important;
    margin-bottom: 30px !important;
  }
  .footer-col p,
  .footer-col a {
    margin-bottom: 8px;
  }
  .toast { bottom: 16px; right: 16px; left: 16px; }
}

@media (max-width: 480px) {
  .content-wrapper { padding: 0 16px; }
  h1 { font-size: 29px; }
  h2 { font-size: 22px; }
  .card { padding: 20px; }
  .nav-title,
  .nav-left span {
    max-width: 170px;
    font-size: 16px !important;
  }
  .nav-logo-img {
    width: 34px;
    height: 34px;
  }
}
