@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ========================================
   CSS Variables (from Tailwind config)
   ======================================== */
:root {
  --background: 90 20% 96%;
  --foreground: 150 30% 12%;
  --card: 90 15% 93%;
  --card-foreground: 150 30% 12%;
  --primary: 145 40% 28%;
  --primary-foreground: 60 30% 96%;
  --secondary: 42 45% 82%;
  --secondary-foreground: 150 30% 12%;
  --muted: 90 12% 88%;
  --muted-foreground: 150 10% 45%;
  --accent: 42 60% 65%;
  --accent-foreground: 150 30% 12%;
  --border: 90 15% 85%;
  --ring: 145 40% 28%;
  --radius: 0.25rem;

  /* Custom tokens */
  --forest: 145 40% 28%;
  --forest-light: 145 30% 42%;
  --forest-dark: 150 45% 15%;
  --sunlight: 42 60% 65%;
  --sunlight-warm: 35 70% 55%;
  --cream: 42 40% 92%;
  --bark: 25 30% 30%;
  --leaf: 120 35% 45%;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

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

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

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

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.5); }

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 768px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1280px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

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

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

/* ========================================
   Navbar
   ======================================== */
.nav-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
}

.nav-floating.scrolled {
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: hsl(var(--forest-dark));
}

@media (min-width: 768px) {
  .nav-logo { font-size: 1.875rem; }
}

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

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

.nav-links a {
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--foreground) / 0.3),
    hsl(var(--foreground) / 0.1),
    hsl(var(--background))
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-subtitle-top {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: hsl(var(--primary-foreground) / 0.8);
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-subtitle-top { font-size: 1rem; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 300;
  color: hsl(var(--primary-foreground));
  letter-spacing: 0.2em;
}

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

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

.hero-subtitle-bottom {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: hsl(var(--primary-foreground) / 0.6);
  font-family: var(--font-display);
  font-style: italic;
}

@media (min-width: 768px) {
  .hero-subtitle-bottom { font-size: 1.25rem; }
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
}

.hero-scroll-line {
  width: 1px;
  height: 4rem;
  background: hsl(var(--primary-foreground) / 0.3);
  margin: 0 auto 0.5rem;
}

.hero-scroll-text {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary-foreground) / 0.4);
  font-family: var(--font-body);
}

/* ========================================
   Section Headers
   ======================================== */
.section-label {
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: hsl(var(--foreground));
}

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

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

/* ========================================
   Gallery Section
   ======================================== */
.section-gallery {
  padding: 4rem 0.75rem;
}

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

@media (min-width: 1280px) {
  .section-gallery { padding: 6rem 2rem; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 5rem; }
}

/* Masonry Grid */
.masonry-grid {
  columns: 2;
  column-gap: 0.5rem;
}

@media (min-width: 768px) {
  .masonry-grid { columns: 3; column-gap: 0.75rem; }
}

@media (min-width: 1280px) {
  .masonry-grid { columns: 4; column-gap: 1rem; }
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .gallery-item { margin-bottom: 0.75rem; }
}

@media (min-width: 1280px) {
  .gallery-item { margin-bottom: 1rem; }
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.7s ease;
}

.gallery-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0;
}

.gallery-item:hover video {
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, hsl(150 30% 12% / 0.7), transparent, transparent);
  opacity: 0;
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .gallery-overlay { padding: 1.5rem; }
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: hsl(var(--primary-foreground));
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .gallery-overlay h3 { font-size: 1.5rem; }
}

.gallery-overlay p {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  font-family: var(--font-body);
  margin-top: 0.25rem;
}

/* ========================================
   Menu Section
   ======================================== */
.section-menu {
  padding: 4rem 0.75rem;
  background: hsl(var(--card));
}

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

@media (min-width: 1280px) {
  .section-menu { padding: 6rem 2rem; }
}

/* Category Filter */
.category-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .category-filters { gap: 1.5rem; }
}

.category-btn {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: hsl(var(--muted-foreground));
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.category-btn:hover,
.category-btn.active {
  color: hsl(var(--foreground));
}

.category-btn.active {
  border-bottom-color: hsl(var(--accent));
}

/* Menu Item Overlay */
.menu-item .menu-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--foreground) / 0.8), hsl(var(--foreground) / 0.2), transparent);
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

@media (min-width: 768px) {
  .menu-item .menu-overlay { padding: 1.5rem; }
}

.menu-item:hover .menu-overlay {
  opacity: 1;
}

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

.menu-overlay .category-tag {
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  font-family: var(--font-body);
  margin-bottom: 0.25rem;
}

.menu-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: hsl(var(--primary-foreground));
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .menu-overlay h3 { font-size: 1.5rem; }
}

.menu-overlay .menu-desc {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
  font-family: var(--font-body);
  margin-top: 0.25rem;
}

.menu-overlay .menu-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: hsl(var(--sunlight));
  margin-top: 0.5rem;
}

/* ========================================
   About Section
   ======================================== */
.section-about {
  padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
  .section-about { padding: 8rem 1.5rem; }
}

.about-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.about-divider {
  width: 3rem;
  height: 1px;
  background: hsl(var(--accent));
  margin: 2rem auto;
}

.about-text {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-body);
  line-height: 1.8;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-text { font-size: 1.25rem; }
}

.about-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .about-stat-num { font-size: 2.25rem; }
}

.about-stat-label {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 1.5rem;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 300;
  color: hsl(var(--foreground));
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-logo { font-size: 2.25rem; }
}

.footer-info {
  color: hsl(var(--muted-foreground));
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-links a {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

.footer-links .dot {
  color: hsl(var(--border));
}

.footer-copyright {
  margin-top: 3rem;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground) / 0.5);
  font-family: var(--font-body);
}

/* ========================================
   Utility: hidden items for menu filter
   ======================================== */
.menu-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-item.hidden {
  display: none;
}
