/* ============================================
   HOTEL SCHEUBLE - VANILLA CSS
   ============================================ */

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

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --background: hsl(40, 30%, 98%);
  --foreground: hsl(220, 15%, 18%);
  --primary: hsl(359, 43%, 27%);
  --primary-foreground: hsl(40, 30%, 98%);
  --muted: hsl(40, 15%, 92%);
  --muted-foreground: hsl(220, 10%, 45%);
  --border: hsl(40, 20%, 88%);
  
  /* Custom Colors */
  --cream: hsl(40, 30%, 96%);
  --cream-dark: hsl(40, 25%, 92%);
  --terracotta: hsl(18, 55%, 50%);
  --terracotta-light: hsl(18, 45%, 65%);
  --terracotta-dark: hsl(18, 60%, 38%);
  --charcoal: hsl(220, 15%, 18%);
  --charcoal-light: hsl(220, 10%, 35%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsla(220, 15%, 18%, 0.08);
  --shadow-card: 0 8px 30px -8px hsla(220, 15%, 18%, 0.12);
  --shadow-elevated: 0 20px 50px -12px hsla(220, 15%, 18%, 0.18);
  
  /* Spacing */
  --container-max: 1280px;
  --container-padding: 1rem;
  
  /* Typography */
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .section-padding { padding: 8rem 0; }
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-utility {
  display: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 1024px) {
  .header-utility {
    display: block;
  }
}

.header-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.header-utility-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.header-utility-links a:hover {
  color: var(--foreground);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.language-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.language-switcher button:hover,
.language-switcher button.active {
  color: var(--foreground);
  font-weight: 500;
}

.language-switcher span {
  color: var(--muted-foreground);
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-right {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-right .osteria-logo img {
  height: 32px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-right .osteria-logo:hover img {
  opacity: 1;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

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

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.mobile-menu.open {
  display: block;
}

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

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--cream);
  color: var(--primary);
}

.mobile-menu .divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--foreground);
}

.btn-outline:hover {
  background: var(--foreground);
  color: var(--background);
}

.btn-hero {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.btn-hero:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-elevated);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 1rem 2rem;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-lg {
  padding: 1rem 2rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}

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

.hero h1 em {
  font-style: italic;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator-inner {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: bounce 1s ease-in-out infinite;
}

/* ============================================
   SECTIONS
   ============================================ */
.bg-cream {
  background-color: var(--cream);
}

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

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

.text-center {
  text-align: center;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 { font-size: 2.5rem; }
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ============================================
   CARDS & GRID
   ============================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--background);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.5s;
}

.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.card-image {
  overflow: hidden;
}

.card-image img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.card:hover .card-content h3 {
  color: var(--primary);
}

.card-content p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Benefit Cards */
.benefit-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 2px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-soft);
  transition: all 0.5s;
}

.benefit-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary), 0.1);
  background: hsl(359, 43%, 27%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--muted-foreground);
}

/* Room Cards */
.room-card {
  display: block;
}

.room-card .image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.room-card .image-wrapper img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s;
}

.room-card:hover .image-wrapper img {
  transform: scale(1.05);
}

.room-card .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.room-card:hover h3 {
  color: var(--primary);
}

.room-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ============================================
   SPLIT SECTIONS
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.split-section.reverse .split-content {
  order: 2;
}

@media (min-width: 1024px) {
  .split-section.reverse .split-content {
    order: 1;
  }
  .split-section.reverse .split-image {
    order: 2;
  }
}

.split-image {
  overflow: hidden;
  border-radius: 2px;
}

.split-image img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s;
}

.split-section:hover .split-image img {
  transform: scale(1.02);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--cream);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-brand .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-brand .social-link:hover {
  color: var(--terracotta);
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

.footer-section a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--terracotta);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom a {
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 120px;
}

@media (min-width: 1024px) {
  .page-header { margin-top: 120px; }
}

.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.page-header-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 800px;
  padding: 0 1rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 3.5rem; }
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   UTILITIES
   ============================================ */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

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

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* ============================================
   RESPONSIVE SPACING FOR HEADER
   ============================================ */
main {
  padding-top: 80px;
}

@media (min-width: 1024px) {
  main {
    padding-top: 120px;
  }
}

/* Homepage hero doesn't need padding */
.hero + main,
main:has(.hero:first-child) {
  padding-top: 0;
}

body:has(.hero) main {
  padding-top: 0;
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */
.floating-contact {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.floating-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-contact a svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.floating-contact a:hover svg {
  transform: scale(1.1);
}

/* WhatsApp Button */
.floating-contact .btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.floating-contact .btn-whatsapp:hover {
  background: linear-gradient(135deg, #2BE072, #1DA368);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Phone Button */
.floating-contact .btn-phone {
  background: linear-gradient(135deg, var(--primary), var(--terracotta-dark));
  color: white;
}

.floating-contact .btn-phone:hover {
  background: linear-gradient(135deg, var(--terracotta), var(--primary));
  box-shadow: 0 4px 15px rgba(128, 60, 48, 0.4);
}

/* Email Button */
.floating-contact .btn-email {
  background: linear-gradient(135deg, #4A90D9, #357ABD);
  color: white;
}

.floating-contact .btn-email:hover {
  background: linear-gradient(135deg, #5BA3E6, #4A90D9);
  box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

/* Tooltip labels */
.floating-contact a::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--charcoal);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-contact a::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--charcoal);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-contact a:hover::before,
.floating-contact a:hover::after {
  opacity: 1;
  visibility: visible;
}

.floating-contact a:hover::before {
  transform: translateX(-50%) translateY(-12px);
}

.floating-contact a:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .floating-contact {
    bottom: 16px;
    padding: 8px 12px;
    gap: 10px;
  }

  .floating-contact a {
    width: 44px;
    height: 44px;
  }

  .floating-contact a svg {
    width: 22px;
    height: 22px;
  }

  .floating-contact a::before,
  .floating-contact a::after {
    display: none;
  }
}

/* Ensure footer has space for floating buttons */
.footer {
  padding-bottom: 100px;
}

@media (max-width: 480px) {
  .footer {
    padding-bottom: 90px;
  }
}
