/* =============================================
   THE ROY – Restaurant Website Styles
   ============================================= */

/* --- CSS Variables --- */
:root {
  --red: #c0162c;
  --red-dark: #96101f;
  --red-light: #e8192e;
  --orange: #e85d04;
  --orange-light: #f48c06;
  --white: #ffffff;
  --off-white: #faf9f7;
  --light-bg: #f5f3f0;
  --dark-bg: #1a0a0d;
  --dark-card: #2a1015;
  --text-dark: #1c1c1c;
  --text-mid: #4a4a4a;
  --text-light: #7a7a7a;
  --text-white: #f5f3f0;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Utility Classes --- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.bg-light { background: var(--light-bg); }
.bg-dark { background: var(--dark-bg); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-label.light { color: var(--orange-light); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-sub { color: var(--text-light); font-size: 1rem; margin-top: 8px; }
.section-header { text-align: center; margin-bottom: 60px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,22,44,0.35);
}
.full-width { width: 100%; text-align: center; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 700;
}
.logo-the {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85em;
  color: var(--text-mid);
  letter-spacing: 4px;
}
.logo-roy {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: color var(--transition);
  padding-bottom: 4px;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--red); }
.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1600&q=80')
    center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,10,13,0.85) 0%,
    rgba(192,22,44,0.55) 50%,
    rgba(232,93,4,0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 700px;
}
.hero-pre {
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Fade-in animation */
.fade-in { animation: fadeInUp 1s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--red);
  color: white;
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.badge-num { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-text { font-size: 0.78rem; opacity: 0.85; white-space: nowrap; }

.about-text { padding-left: 8px; }
.about-desc {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

/* =============================================
   MENU HIGHLIGHTS
   ============================================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.menu-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.menu-card-img img { transition: transform 0.5s ease; }
.menu-card:hover .menu-card-img img { transform: scale(1.08); }
.menu-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.menu-card-body { padding: 20px; }
.menu-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.menu-card-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}
.menu-cuisine {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 20px;
  padding: 3px 10px;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192,22,44,0.15);
}
.why-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(192,22,44,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition);
}
.why-card:hover .why-icon { background: var(--red); }
.why-icon i {
  font-size: 1.6rem;
  color: var(--red);
  transition: color var(--transition);
}
.why-card:hover .why-icon i { color: white; }
.why-card h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}
.why-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; }

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,10,13,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--off-white); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
  min-width: 100%;
  padding: 48px 60px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stars { margin-bottom: 20px; }
.stars i { color: var(--orange); font-size: 1.1rem; }
.testi-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto 30px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center; justify-content: center;
}
.testi-author strong { display: block; font-size: 0.95rem; }
.testi-author span { font-size: 0.8rem; color: var(--text-light); }
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.testi-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.testi-btn:hover {
  background: var(--red);
  color: white;
}
.testi-dots {
  display: flex;
  gap: 8px;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(192,22,44,0.25);
  transition: all var(--transition);
  cursor: pointer;
}
.testi-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* =============================================
   CONTACT / RESERVATION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-desc {
  color: rgba(255,255,255,0.65);
  margin: 16px 0 36px;
  line-height: 1.8;
}
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.contact-details li i {
  color: var(--orange-light);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: var(--text-dark);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,22,44,0.08);
}
.form-note {
  font-size: 0.82rem;
  color: #22a55e;
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #100507;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.7;
}
.footer-addr { margin-top: 6px; font-size: 0.82rem !important; }

.footer-links h4,
.footer-social h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange-light); }

.social-icons { display: flex; gap: 12px; margin-bottom: 24px; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-icons a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,93,4,0.1);
}
.footer-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}
.footer-hours i { color: var(--orange-light); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }

  /* Navbar */
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { max-height: 340px; padding: 16px 0 20px; }
  .nav-links li a { display: block; padding: 12px 28px; font-size: 1rem; }
  .nav-toggle { display: flex; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-badge { bottom: -16px; right: 16px; }

  /* Menu */
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  /* Testimonial */
  .testimonial-card { padding: 36px 28px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { gap: 20px; }
  .hero-title { font-size: 3.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px 22px; }
}