/* ==========================================================================
   Le Caravelle · Ristorante Pizzeria - Design System & Global Styles
   ========================================================================== */

:root {
  --background: 40 60% 98%;
  --foreground: 210 38% 16%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 210 38% 16%;
  --primary-foreground: 40 60% 98%;
  --secondary: 39 29% 83%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 14 58% 44%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;

  --color-nautical: #0b1826;
  --color-nautical-dark: #07111c;
  --color-accent-light: #ff9a79;
  --color-accent-solid: #b14526;
  
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dark {
  --background: 210 23% 5%;
  --foreground: 212 28% 90%;
  --card: 0 0% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 14 100% 63%;
  --accent-foreground: 210 23% 5%;
  --border: 0 0% 14.9%;
  --input: 0 0% 14.9%;
  --ring: 0 0% 83.1%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.bg-nautical {
  background-color: var(--color-nautical);
}

.text-nautical {
  color: var(--color-nautical);
}

.bg-accent {
  background-color: hsl(var(--accent));
}

.text-accent {
  color: hsl(var(--accent));
}

.bg-secondary-tint {
  background-color: hsl(var(--secondary) / 0.6);
}

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--accent));
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.75rem;
  }
}

.font-heading {
  font-family: var(--font-heading);
}

/* ==========================================================================
   Header & Fixed Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(11, 24, 38, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  height: 5rem; /* 80px */
  max-width: 80rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.site-logo img {
  height: 2.5rem;
  width: auto;
  border-radius: 4px;
}

.nav-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: hsl(var(--accent));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.lang-switch:hover {
  color: hsl(var(--accent));
}

.theme-switch {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-switch:hover {
  color: hsl(var(--accent));
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-nav-book {
  display: none;
  align-items: center;
  background-color: hsl(var(--accent));
  padding: 0.5rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-nav-book:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .btn-nav-book {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-drawer {
  display: none;
  border-top: 1px solid rgba(177, 69, 38, 0.4);
  background-color: rgba(11, 24, 38, 0.98);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-menu-drawer.open {
  display: block;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-drawer a.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.125rem;
}

.mobile-menu-drawer a.mobile-nav-link:hover {
  color: hsl(var(--accent));
}

.btn-mobile-book {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--accent));
  padding: 0.875rem 1.5rem;
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background-color: var(--color-nautical);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroBreathing 30s ease-in-out infinite;
}

@keyframes heroBreathing {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 24, 38, 0.6) 0%,
    rgba(7, 17, 28, 0.75) 50%,
    rgba(7, 17, 28, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 10rem 1.25rem 6rem;
  width: 100%;
}

.hero-eyebrow {
  color: var(--color-accent-light);
}

.hero-title {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5.25rem;
  }
}

.hero-subtitle {
  margin-top: 2rem;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.btn-hero-cta {
  margin-top: 2.25rem;
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  background-color: hsl(var(--accent));
  padding: 0 1.75rem;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-hero-cta:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.hero-bottom-bar {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(7, 17, 28, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-bottom-grid {
  margin: 0 auto;
  max-width: 80rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.action-link {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.action-link:last-child {
  border-right: none;
}

.action-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-accent-light);
}

@media (min-width: 640px) {
  .action-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-nautical);
  color: #f4efe5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  margin: 0 auto;
  max-width: 80rem;
  padding: 3.5rem 1.25rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.footer-brand img {
  height: 3.5rem;
  width: auto;
  border-radius: 4px;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f4efe5;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--color-accent-light);
}

.btn-footer-book {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--accent));
  padding: 0 1.25rem;
  font-weight: 700;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.btn-footer-book:hover {
  opacity: 0.92;
}

.footer-admin-link {
  margin-top: 1rem;
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.footer-admin-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
