/* ============================================
   Ani Cafe — Styles
   Font Pairing: Cardo (serif) + Outfit (sans-serif)
   ============================================ */

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

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

:root {
  --color-cream: #F5F0E8;
  --color-olive: #5C6B4F;
  --color-olive-dark: #3E4A35;
  --color-olive-light: #7A8B6E;
  --color-warm: #C4A882;
  --color-warm-light: #DCC9AE;
  --color-dark: #2C2C2C;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  --color-border: #E0D8CC;
  --color-overlay: rgba(44, 44, 44, 0.55);

  --font-heading: 'Cardo', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --section-pad: 80px 0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

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

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

a {
  color: var(--color-olive);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-olive-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: var(--color-cream);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--color-olive-dark);
}

.nav-logo span {
  color: var(--color-warm);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-white);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-warm);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-warm);
}

.navbar.scrolled .nav-links a.active {
  color: var(--color-olive);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--color-dark);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumbs a {
  color: var(--color-olive-light);
}

.breadcrumbs a:hover {
  color: var(--color-olive);
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--color-border);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-olive);
  color: var(--color-white);
  border-color: var(--color-olive);
}

.btn-primary:hover {
  background: var(--color-olive-dark);
  border-color: var(--color-olive-dark);
  color: var(--color-white);
}

.btn-warm {
  background: var(--color-warm);
  color: var(--color-white);
  border-color: var(--color-warm);
}

.btn-warm:hover {
  background: #B09670;
  border-color: #B09670;
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 700px;
  padding: 0 24px;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 32px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-content .btn + .btn {
  margin-left: 12px;
}

/* Page Header (inner pages) */
.page-header {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

/* --- Sections --- */
.section {
  padding: var(--section-pad);
}

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

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-warm);
  margin: 16px auto;
  border-radius: 2px;
}

.section-alt {
  background: var(--color-white);
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  height: 400px;
}

.about-text h2 {
  margin-bottom: 16px;
}

/* --- Info Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-olive);
}

.info-card h3 {
  margin-bottom: 8px;
}

.info-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Menu Section --- */
.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.menu-category-btn {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text);
}

.menu-category-btn:hover,
.menu-category-btn.active {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-white);
}

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

.menu-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.menu-item:hover {
  transform: translateY(-2px);
}

.menu-item-info h4 {
  margin-bottom: 4px;
}

.menu-item-info p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.menu-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-olive);
  white-space: nowrap;
}

.menu-section-title {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px 0 0;
}

.menu-note {
  text-align: center;
  color: var(--color-text-light);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 32px;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  transition: opacity var(--transition);
  opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 16px;
  right: 24px;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--color-olive);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 350px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 350px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-olive);
  color: var(--color-white);
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 24px;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

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

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-warm);
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hours Table --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 500;
}

.hours-table tr.closed td {
  color: var(--color-text-light);
}

/* --- Features List --- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.features-list li::before {
  content: '\2713';
  color: var(--color-olive);
  font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 56px 0;
    --nav-height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--color-dark) !important;
    font-size: 1.2rem;
  }

  .nav-links a.active {
    color: var(--color-olive) !important;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .hero-content .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero-content .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
