/*=============================================
   S7VEN – PREMIUM RESTAURANT WEBSITE
   STYLE.CSS – Deep Navy + Platinum Accent
===============================================*/

/* Google Fonts: Playfair Display + Raleway */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
  
  --bg-primary: #020917;      /* deepest navy */
  --bg-secondary: #060f24;
  --bg-card: #0c1b34;
  --text-primary: #f5f6fa;    /* soft white */
  --text-secondary: #b0c4de;
  --accent: #c0c9e0;          /* cool platinum */
  --accent-hover: #9da7c3;
  --border: #1c2b4a;
  
  --max-width: 1280px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --transition: 0.3s ease;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* ---------- LOADER (only index.html) ---------- */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
  display: inline-block;
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
  backdrop-filter: blur(5px);
}

.navbar.scrolled {
  background: rgba(2,9,23,0.9);
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 0.7rem 1.8rem !important;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

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

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- HERO SECTION + FLOATING PARTICLES ---------- */
.hero {
  height: 100vh;
  min-height: 650px;
  background: linear-gradient(rgba(2,9,23,0.5), rgba(2,9,23,0.8)), 
              url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=80') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

/* Floating particles – pure CSS */
.particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 12s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}

/* Particle sizes, left positions & delays via custom properties */
.particle:nth-child(1)  { width: 6px; height: 6px; left: 10%; animation-delay: 0s; animation-duration: 10s; }
.particle:nth-child(2)  { width: 4px; height: 4px; left: 25%; animation-delay: 1.5s; animation-duration: 14s; }
.particle:nth-child(3)  { width: 8px; height: 8px; left: 40%; animation-delay: 0.5s; animation-duration: 11s; }
.particle:nth-child(4)  { width: 5px; height: 5px; left: 55%; animation-delay: 2s; animation-duration: 13s; }
.particle:nth-child(5)  { width: 7px; height: 7px; left: 70%; animation-delay: 1s; animation-duration: 15s; }
.particle:nth-child(6)  { width: 3px; height: 3px; left: 80%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(7)  { width: 6px; height: 6px; left: 15%; animation-delay: 2.5s; animation-duration: 12s; }
.particle:nth-child(8)  { width: 5px; height: 5px; left: 45%; animation-delay: 0.8s; animation-duration: 10s; }
.particle:nth-child(9)  { width: 4px; height: 4px; left: 65%; animation-delay: 1.2s; animation-duration: 16s; }
.particle:nth-child(10) { width: 7px; height: 7px; left: 85%; animation-delay: 2.2s; animation-duration: 11s; }
.particle:nth-child(11) { width: 5px; height: 5px; left: 32%; animation-delay: 0.3s; animation-duration: 14s; }
.particle:nth-child(12) { width: 6px; height: 6px; left: 52%; animation-delay: 1.8s; animation-duration: 13s; }
.particle:nth-child(13) { width: 3px; height: 3px; left: 75%; animation-delay: 2.8s; animation-duration: 12s; }
.particle:nth-child(14) { width: 8px; height: 8px; left: 90%; animation-delay: 0.7s; animation-duration: 10s; }
.particle:nth-child(15) { width: 4px; height: 4px; left: 20%; animation-delay: 1.4s; animation-duration: 15s; }

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-100px) scale(1.2);
    opacity: 0.8;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-200px) scale(0.8);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 6rem 2rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* About teaser */
.about-teaser .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.about-text .section-label {
  display: block;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

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

.menu-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.menu-card:hover {
  transform: translateY(-8px);
}

.menu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.menu-card-content {
  padding: 1.5rem;
}

.menu-card h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.menu-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Testimonials */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

/* Reservation CTA */
.reservation-cta {
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reservation-cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #01040c;
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  text-align: left;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col p, .footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

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

.social-links a {
  display: inline-block;
  margin: 0 0.6rem;
  font-size: 1.2rem;
}

.footer-bottom {
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom .accent {
  color: var(--accent);
}

/* ---------- INNER PAGES ---------- */
.page-hero {
  height: 50vh;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content h1 {
  color: #fff;
}

.breadcrumb {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* Menu page specific */
.menu-category {
  margin-top: 3rem;
}

.menu-category-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  display: inline-block;
}

/* About page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent);
}

.team-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Reservation page — labeled fields */
.reservation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.reservation-form input,
.reservation-form textarea,
.reservation-form select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 4px;
  transition: border-color var(--transition);
}

.reservation-form input:focus,
.reservation-form textarea:focus,
.reservation-form select:focus {
  border-color: var(--accent);
  outline: none;
}

.reservation-form textarea {
  min-height: 120px;
  resize: vertical;
}

.reservation-form button {
  width: 100%;
  margin-top: 0.5rem;
}

.reservation-info {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  height: fit-content;
}

.reservation-info h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.reservation-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.reservation-info .icon {
  color: var(--accent);
  font-weight: 700;
}

/* Confirmation message */
.confirmation-msg {
  display: none;
  background: var(--bg-card);
  padding: 3rem;
  text-align: center;
  border-radius: 8px;
  border: 2px solid var(--accent);
}

.confirmation-msg .check-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.confirmation-msg h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.confirmation-msg p {
  color: var(--text-secondary);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--accent);
}

.contact-info p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.contact-info .icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .about-grid,
  .reservation-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .particle { display: none; } /* hide particles on mobile for performance */
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  }
