/*
 * The Royal Taste - Core Design System & Stylesheet
 * Created by Senior UI/UX Design System Team
 */

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

/* --- Design Tokens --- */
:root {
  --color-bg-deep: #0a0a0a;
  --color-bg-card: #121212;
  --color-bg-card-hover: #1c1c1c;
  --color-bg-navbar: rgba(10, 10, 10, 0.85);
  --color-bg-glass: rgba(18, 18, 18, 0.6);
  
  /* Gold Color Scheme */
  --color-gold-light: #f3e5ab;
  --color-gold: #c5a880;
  --color-gold-dark: #9a7a35;
  --color-gold-bright: #ffd700;
  --gradient-gold: linear-gradient(135deg, #f5d061 0%, #c5a880 50%, #9a7a35 100%);
  --gradient-gold-dark: linear-gradient(135deg, #c5a880 0%, #9a7a35 100%);
  --gradient-dark: linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
  
  /* Neutral Palette */
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666666;
  --color-white: #ffffff;
  --color-success: #2ecc71;
  --color-success-hover: #27ae60;
  
  /* Borders and Shadows */
  --border-gold-subtle: 1px solid rgba(197, 168, 128, 0.15);
  --border-gold-medium: 1px solid rgba(197, 168, 128, 0.3);
  --border-gold-bright: 1px solid rgba(255, 215, 0, 0.5);
  --shadow-gold-subtle: 0 4px 20px rgba(154, 122, 53, 0.08);
  --shadow-gold-heavy: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 168, 128, 0.15);
  --shadow-neon-gold: 0 0 20px rgba(197, 168, 128, 0.3);
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 20%, #1e1b15 0%, var(--color-bg-deep) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.5px;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Layout Elements --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Glassmorphism Card Style --- */
.glass-card {
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-gold-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-gold-subtle);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(197, 168, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 168, 128, 0); }
}

/* Apply animation classes */
.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.fade-in-up {
  animation-name: fadeInUp;
}

.fade-in {
  animation-name: fadeIn;
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
}

header.scrolled {
  background: var(--color-bg-navbar);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.75rem 0;
  border-bottom: var(--border-gold-subtle);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dynamic Brand SVG Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-svg {
  height: 48px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover .logo-svg {
  transform: scale(1.1) rotate(5deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.85)), url('https://images.unsplash.com/photo-1544025162-d76694265947?q=80&w=1600&auto=format&fit=crop') no-repeat center center/cover;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--color-bg-deep), transparent);
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 0.5rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-white) 30%, #b8b8b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

.cta-btn {
  background: var(--gradient-gold);
  border: none;
  color: var(--color-bg-deep);
  padding: 1rem 2.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(197, 168, 128, 0.5);
  color: #000;
}

/* Secondary Button */
.cta-secondary {
  background: transparent;
  border: var(--border-gold-medium);
  color: var(--color-gold);
  margin-left: 1rem;
}

.cta-secondary:hover {
  background: rgba(197, 168, 128, 0.1);
  border-color: var(--color-gold-bright);
}

/* --- Features Section --- */
.features {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 3rem 2rem;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: var(--shadow-gold-heavy);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: var(--border-gold-medium);
  background: rgba(197, 168, 128, 0.05);
  color: var(--color-gold);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--gradient-gold);
  color: var(--color-bg-deep);
  transform: rotateY(180deg);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: 0.95rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.gold-line {
  width: 80px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 1.5rem auto 0 auto;
}

/* --- Menu Grid & Filter Tabs --- */
.menu-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, #0d0c09 50%, var(--color-bg-deep) 100%);
}

.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.filter-btn {
  background: transparent;
  border: var(--border-gold-subtle);
  color: var(--color-text-secondary);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-gold);
  color: var(--color-bg-deep);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 2rem 0;
}

.menu-item-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-item-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: var(--shadow-gold-heavy);
}

.card-badge {
  align-self: flex-start;
  margin: 1.25rem 1.5rem 0 1.5rem;
  background: rgba(197, 168, 128, 0.1);
  border: var(--border-gold-subtle);
  color: var(--color-gold);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--color-white);
}

.card-price {
  font-family: var(--font-sans);
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.card-desc {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --- Google Reviews Section --- */
.reviews-section {
  padding: 6rem 0;
  background: var(--color-bg-deep);
  position: relative;
}

.reviews-summary {
  max-width: 480px;
  margin: 3rem auto 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.reviews-rating-value {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
}

.review-stars {
  color: var(--color-gold-bright);
  font-size: 1.1rem;
}

.reviews-rating-count {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.gmb-btn {
  color: var(--color-gold);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--color-gold);
  padding-bottom: 0.2rem;
  transition: all 0.3s ease;
}

.gmb-btn:hover {
  color: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  transform: translateY(-2px);
}

/* --- Contact & Map Section --- */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, #100f0d 100%);
  border-top: var(--border-gold-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 4rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-top: 0.25rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
}

.contact-text p {
  font-size: 0.95rem;
}

.map-wrapper {
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  border: var(--border-gold-medium);
  box-shadow: var(--shadow-gold-heavy);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.9) invert(0.9) contrast(1.2);
}

/* --- Footer --- */
footer {
  background: #070707;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  text-align: center;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.copyright {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(197, 168, 128, 0.25);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 215, 0, 0.5);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can implement dynamic toggle */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .whatsapp-float {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
