/* ============================================
   El Loro – Seafood Restaurant & Beach Bar
   Menu Landing Page – Secure Static Version
   ============================================ */

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

/* --- Design Tokens --- */
:root {
  --color-brand: #0E6B5E;
  --color-brand-dark: #094D43;
  --color-brand-light: #1A9E8B;
  --color-gold: #C9A96E;
  --color-gold-light: #E0C78E;
  --color-sand: #F5EDE0;
  --color-white: #FFFFFF;
  --color-white-90: rgba(255, 255, 255, 0.90);
  --color-white-70: rgba(255, 255, 255, 0.70);
  --color-white-40: rgba(255, 255, 255, 0.40);
  --color-white-15: rgba(255, 255, 255, 0.15);
  --color-footer: #b3cfbf;
  --color-text: #1a2e28;
  --color-text-light: #4a6b62;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-glass: 0 8px 32px rgba(14, 107, 94, 0.15);
  --shadow-button: 0 4px 20px rgba(14, 107, 94, 0.25);
  --shadow-button-hover: 0 8px 32px rgba(14, 107, 94, 0.4);
  --shadow-footer: 0 -4px 30px rgba(0, 0, 0, 0.08);

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Language Toggle --- */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.6s ease-out 0.3s both;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lang-toggle:active {
  transform: translateY(0);
}

@media (max-width: 380px) {
  .lang-toggle {
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

/* --- Animated Ocean Background --- */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26, 158, 139, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(14, 107, 94, 0.3) 0%, transparent 50%),
    linear-gradient(180deg,
      #0a4f46 0%,
      #0E6B5E 15%,
      #137a6b 30%,
      #1a9e8b 50%,
      #2bb8a5 65%,
      #5ec4b6 78%,
      #8ed5c9 90%,
      #b3cfbf 100%);
}

/* Floating coral/wave shapes */
.page-background::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 10% 30%, rgba(219, 143, 152, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 85% 60%, rgba(168, 210, 195, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 400px 350px at 50% 80%, rgba(201, 169, 110, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 350px 250px at 30% 70%, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
  animation: floatBg 20s ease-in-out infinite;
}

.page-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle 200px at 15% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
    radial-gradient(circle 150px at 75% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    radial-gradient(circle 180px at 45% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: floatBg2 25s ease-in-out infinite;
}

@keyframes floatBg {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(20px, -15px) rotate(1deg);
  }

  66% {
    transform: translate(-15px, 10px) rotate(-0.5deg);
  }
}

@keyframes floatBg2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, 15px);
  }
}

/* Water wave pattern */
.wave-decoration {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: -1;
  opacity: 0.15;
  overflow: hidden;
}

.wave-decoration svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: waveMove 8s linear infinite;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Main Content Area --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Header Logo --- */
.header-logo {
  margin-bottom: 48px;
  animation: fadeInDown 0.8s ease-out;
}

.header-logo img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: var(--transition-smooth);
}

.header-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
}

/* --- Glass Card Container --- */
.menu-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-glass);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.menu-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-white-90);
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}

.menu-card__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 auto 36px;
  border: none;
}

/* --- Menu Buttons --- */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
  text-align: center;
  line-height: 1.3;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  transition: left 0.6s ease;
}

.menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-button-hover);
  background: linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-brand) 100%);
}

.menu-btn:hover::before {
  left: 100%;
}

.menu-btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
}

.menu-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.menu-btn:hover svg {
  opacity: 1;
  transform: translateX(3px);
}

/* Staggered animation */
.menu-btn:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.menu-btn:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.menu-btn:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, rgba(179, 207, 191, 0.85) 0%, rgba(179, 207, 191, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 48px 20px 32px;
  text-align: center;
  box-shadow: var(--shadow-footer);
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.footer-logo {
  margin: 0 auto 24px;
  width: 120px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: var(--transition-smooth);
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* --- Social Media Icons --- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 107, 94, 0.12);
  border: 1.5px solid rgba(14, 107, 94, 0.2);
  transition: var(--transition-bounce);
  color: var(--color-brand);
}

.social-link:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(14, 107, 94, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

/* --- Copyright --- */
.copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.copyright a {
  color: var(--color-brand);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.copyright a:hover {
  color: var(--color-brand-dark);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */

/* Small phones */
@media (max-width: 380px) {
  .menu-card {
    padding: 32px 20px;
  }

  .menu-btn {
    font-size: 1rem;
    padding: 18px 20px;
    letter-spacing: 2px;
  }

  .header-logo img {
    width: 110px;
  }
}

/* Tablets and larger phones */
@media (min-width: 480px) {
  .menu-card {
    padding: 56px 48px;
  }

  .menu-btn {
    font-size: 1.35rem;
    padding: 22px 36px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .header-logo img {
    width: 160px;
  }

  .header-logo {
    margin-bottom: 56px;
  }

  .menu-card {
    padding: 64px 56px;
    max-width: 640px;
  }

  .menu-btn {
    font-size: 1.4rem;
    padding: 24px 40px;
    letter-spacing: 4px;
  }

  .site-footer {
    padding: 56px 40px 36px;
  }

  .footer-logo {
    width: 140px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .menu-card {
    max-width: 700px;
    padding: 72px 64px;
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wave-decoration svg {
    animation: none;
  }
}

/* --- Print --- */
@media print {

  .page-background,
  .wave-decoration {
    display: none;
  }

  body {
    background: white;
  }

  .menu-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .menu-btn {
    background: white;
    color: var(--color-brand);
    border: 2px solid var(--color-brand);
    box-shadow: none;
  }
}