/* ============================================
   COSMOS RESTAURANT — STYLES
   ============================================ */

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

:root {
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --cream: #fef9f0;
  --cream-dark: #f5efe4;
  --cream-light: #fffcf7;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-100: #fef3c7;
  --text-dark: #1c1917;
  --text-mid: #44403c;
  --text-light: #78716c;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--emerald-900);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-sub {
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}
.btn-primary:hover {
  background: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.45);
}

.btn-outline-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--emerald-800);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(254, 249, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  transition: var(--transition);
}

.site-header.scrolled .logo {
  color: var(--emerald-900);
}

.logo-mark {
  color: var(--amber);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.site-header.scrolled .main-nav a {
  color: var(--text-mid);
}
.site-header.scrolled .main-nav a:hover {
  color: var(--emerald-800);
  background: rgba(6, 95, 70, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.site-header.scrolled .nav-toggle span {
  background: var(--emerald-900);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active 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;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/36729761/pexels-photo-36729761.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 78, 59, 0.55) 0%,
    rgba(6, 78, 59, 0.40) 40%,
    rgba(6, 78, 59, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-light);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-headline em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--white);
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   HIGHLIGHTS
   ============================================ */
.highlights {
  padding: 80px 0;
  background: var(--white);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.highlight-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
  color: var(--white);
}

.highlight-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--emerald-900);
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================
   MENU
   ============================================ */
.menu {
  padding: 100px 0;
  background: var(--cream);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.menu-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.menu-card-img {
  background: url('https://images.pexels.com/photos/13642135/pexels-photo-13642135.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=400&h=400') center/cover no-repeat;
}
.menu-img-2 { background-image: url('https://images.pexels.com/photos/5083915/pexels-photo-5083915.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=400&h=400'); }
.menu-img-3 { background-image: url('https://images.pexels.com/photos/33144646/pexels-photo-33144646.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=400&h=400'); }
.menu-img-4 { background-image: url('https://images.pexels.com/photos/2349991/pexels-photo-2349991.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=400&h=400'); }

.menu-card-body {
  padding: 24px 24px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-category {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.menu-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--emerald-900);
}

.menu-card-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}

.link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.link-arrow:hover { gap: 10px; color: var(--emerald-800); }
.link-arrow svg { flex-shrink: 0; }

.menu-note {
  text-align: center;
  padding: 24px;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-mid);
}
.menu-note a {
  color: var(--emerald-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 500px;
}

.about-img-main {
  position: absolute;
  width: 75%;
  height: 80%;
  top: 0;
  left: 0;
  background: url('https://images.pexels.com/photos/15113069/pexels-photo-15113069.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=700&h=900') center/cover no-repeat;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-img-float {
  position: absolute;
  width: 55%;
  height: 50%;
  bottom: 0;
  right: 0;
  background: url('https://images.pexels.com/photos/28736731/pexels-photo-28736731.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=500&h=500') center/cover no-repeat;
  border-radius: var(--radius-xl);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--emerald-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: var(--cream-dark);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 100px 0 80px;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item:nth-child(1) { background-image: url('https://images.pexels.com/photos/33097100/pexels-photo-33097100.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=440'); }
.gallery-item:nth-child(2) { background-image: url('https://images.pexels.com/photos/8922188/pexels-photo-8922188.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=440'); grid-column: span 1; }
.gallery-item:nth-child(3) { background-image: url('https://images.pexels.com/photos/22711497/pexels-photo-22711497.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=440'); }
.gallery-item:nth-child(4) { background-image: url('https://images.pexels.com/photos/25809277/pexels-photo-25809277.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=440'); }
.gallery-item:nth-child(5) { background-image: url('https://images.pexels.com/photos/17130442/pexels-photo-17130442.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=440'); }
.gallery-item:nth-child(6) { background-image: url('https://images.pexels.com/photos/6248882/pexels-photo-6248882.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=440'); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--emerald-800);
}

.testimonials .section-tag { color: var(--amber-light); }
.testimonials .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.quote-mark {
  color: var(--amber-light);
  opacity: 0.5;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-light);
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  padding: 100px 0;
  background: var(--cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.visit-info .section-title { margin-bottom: 20px; }
.visit-info > p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item dt {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--emerald-700);
  color: var(--white);
}

.contact-item dd a {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
  transition: var(--transition);
}
.contact-item dd a:hover { color: var(--emerald-700); }

.hours h3 {
  font-size: 1.1rem;
  color: var(--emerald-900);
  margin-bottom: 16px;
}

.hours ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-mid);
}

.hours li span:first-child { font-weight: 700; color: var(--text-dark); }
.hours-note { font-size: 0.8rem; color: var(--text-light); font-style: italic; }

.visit-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--emerald-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; max-width: 280px; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact p {
  font-size: 0.95rem;
  line-height: 1.8;
}
.footer-contact a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .menu-grid { gap: 20px; }
  .about-images { height: 400px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { height: 350px; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(6, 78, 59, 0.97);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  
  .main-nav.open {
    opacity: 1;
    pointer-events: all;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 8px;
  }
  
  .main-nav a {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    padding: 12px 24px;
  }
  
  .main-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
  
  .highlights-grid { grid-template-columns: 1fr; }
  
  .menu-grid { grid-template-columns: 1fr; }
  
  .menu-card {
    grid-template-columns: 120px 1fr;
  }
  
  .testimonials-grid { grid-template-columns: 1fr; }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  
  .menu-card { grid-template-columns: 1fr; }
  .menu-card-img { height: 180px; }
  
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  
  .about-images { height: 280px; }
  .about-img-main { width: 80%; height: 85%; }
  .about-img-float { width: 60%; height: 55%; }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 180px);
  }
  
  .about-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 2px; }
}
