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

/* ===== VARIABLES ===== */
:root {
  /* Colors - Chai Baithak Palette */
  --body-color: #FAF6F0;
  /* Soft Crema */
  --text-color: #382A20;
  /* Espresso Dark */
  --text-color-light: #7A6352;
  --primary-color: #92400e;
  /* Spice / Cinnamon / Terracotta */
  --primary-color-hover: #78350f;
  --header-bg: rgba(250, 246, 240, 0.85);
  /* For glassmorphism */

  --title-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;

  --h1-font-size: 3rem;
  --h2-font-size: 2.25rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  --font-light: 300;
  --font-regular: 400;
  --font-semi: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 4.5rem;
    --h2-font-size: 3rem;
    --h3-font-size: 1.75rem;
    --normal-font-size: 1.125rem;
  }
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

ul {
  list-style: none;
}

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

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

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1100px;
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 5rem 0 2rem;
}

.section-title {
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: var(--font-semi);
  margin-bottom: 3rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: var(--font-semi);
  transition: 0.3s background-color cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

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

.mt-2 {
  margin-top: 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  transition: .4s;
}

/* Change layout to transparent by default */
.navbar.scroll-header {
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--title-font);
  font-weight: var(--font-semi);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--body-color);
  /* Light on hero */
  transition: color 0.3s;
}

/* When scrolling and bg turns light, change logo/text to dark */
.navbar.scroll-header .nav-logo,
.navbar.scroll-header .nav-link,
.navbar.scroll-header .nav-socials a,
.navbar.scroll-header .nav-toggle {
  color: var(--text-color);
}

.nav-logo i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar:not(.scroll-header) .nav-link,
.navbar:not(.scroll-header) .nav-socials a,
.navbar:not(.scroll-header) .nav-toggle {
  color: var(--body-color);
}


@media screen and (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    right: -100%;
    width: 60%;
    height: 100vh;
    padding: 3rem;
    background-color: var(--body-color);
    box-shadow: -2px 0 4px rgba(0, 0, 0, .1);
    transition: .4s;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
  }

  .nav-menu.show-menu {
    right: 0;
  }
}

.nav-link {
  font-weight: var(--font-semi);
  transition: 0.3s;
}

.navbar:not(.scroll-header) .nav-menu.show-menu .nav-link {
  color: var(--text-color);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-socials {
  display: none;
  /* Hide on mobile */
}

.nav-toggle {
  font-size: 1.5rem;
  cursor: pointer;
}

/* Desktop Nav */
@media screen and (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    column-gap: 3rem;
  }

  .nav-socials {
    display: flex;
    column-gap: 1rem;
    font-size: 1.25rem;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('../assets/chai_hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(56, 42, 32, 0.6), rgba(20, 10, 5, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  color: #fff;
  max-width: 800px;
}

.hero-subtitle {
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  font-family: var(--title-font);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--title-font);
  font-size: var(--h1-font-size);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: var(--normal-font-size);
  color: #e5e5e5;
  margin-bottom: 2.5rem;
}

/* ===== ABOUT ===== */
.about-grid {
  align-items: center;
}

.about-subtitle {
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-family: var(--title-font);
}

.about-description {
  margin-bottom: 1.5rem;
  color: var(--text-color-light);
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

@media screen and (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ===== MENU ===== */
.menu {
  background-color: #f1ebd9;
  /* slightly darker beige to break sections */
}

.menu-grid {
  display: block;
}

.menu-category {
  background: var(--body-color);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  break-inside: avoid;
  margin-bottom: 3rem;
}

.category-title {
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  border-bottom: 2px solid rgba(146, 64, 14, 0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.menu-item {
  margin-bottom: 1.5rem;
}

.menu-item:last-child {
  margin-bottom: 0;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--text-color-light);
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.menu-item-name {
  font-weight: var(--font-semi);
  font-family: var(--title-font);
  font-size: 1.1rem;
}

.menu-item-price {
  font-weight: var(--font-semi);
  color: var(--primary-color);
}

.menu-item-desc {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.menu-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.menu-cat-img {
  width: 100%;
  transform: scale(1.02);
  transition: 0.4s transform;
}

.menu-category:hover .menu-cat-img {
  transform: scale(1.05);
}

@media screen and (min-width: 768px) {
  .menu-grid {
    column-count: 2;
    column-gap: 3rem;
  }
}

/* ===== LOCATION & HOURS ===== */
.location-grid {
  align-items: center;
}

.location-box {
  display: flex;
  align-items: flex-start;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.location-box i {
  font-size: 2rem;
  color: var(--primary-color);
}

.location-box h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  font-weight: var(--font-semi);
}

.location-box p {
  color: var(--text-color-light);
}

.location-visual {
  background: url('../assets/chai_interior.png') center/cover no-repeat;
  height: 400px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reused the interior mapping just to have a classy visual block */
.location-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.circle-badge {
  position: relative;
  z-index: 2;
  background-color: var(--primary-color);
  color: #fff;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--title-font);
  font-style: italic;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(146, 64, 14, 0.4);
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@media screen and (min-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-color);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--title-font);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand .footer-logo i {
  color: var(--primary-color);
}

.footer-desc {
  color: #aaa;
}

.footer-socials {
  display: flex;
  column-gap: 1.25rem;
}

.footer-social-link {
  font-size: 1.5rem;
  color: #fff;
  transition: 0.3s;
}

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

.footer-copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: #777;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

@media screen and (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}