/* ========================================
   Lampara - Neo-Filipino Bistro
   Global Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-rgb: 26, 26, 46;
  --color-accent: #e8a838;
  --color-accent-light: #f0be5e;
  --color-accent-dark: #c98e2a;
  --color-black: #0f0f17;
  --color-cream: #f5f1ea;
  --color-cream-dark: #e8e0d0;
  --color-white: #ffffff;
  --color-gray: #999;
  --color-gray-light: #ccc;
  --color-overlay: rgba(15, 15, 23, 0.82);

  --font-heading: 'Literata', serif;
  --font-body: 'Urbanist', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-accent-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.navbar--scrolled {
  background: rgba(15, 15, 23, 0.96);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

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

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__logo span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-cream);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar__logo:hover {
  color: var(--color-accent-light);
}

.navbar__links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.navbar__links a {
  color: var(--color-cream);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

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

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-accent);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* 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-cream);
  transition: all var(--transition);
}

.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);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1.1rem;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  margin-top: var(--nav-height);
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.breadcrumb__list a {
  color: var(--color-gray);
}

.breadcrumb__list a:hover {
  color: var(--color-accent);
}

.breadcrumb__list li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--color-gray);
}

.breadcrumb__list li:last-child {
  color: var(--color-accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 23, 0.5) 0%,
    rgba(15, 15, 23, 0.75) 60%,
    rgba(15, 15, 23, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
}

.hero__tagline {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero__content p {
  font-size: 1.15rem;
  color: var(--color-cream-dark);
  margin-bottom: 32px;
  line-height: 1.8;
}

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

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 23, 0.8);
}

.page-hero__content {
  position: relative;
  text-align: center;
  padding: 80px 24px 40px;
}

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

.page-hero__content p {
  color: var(--color-cream-dark);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
}

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

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

.btn--filled:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-primary);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

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

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

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

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

.divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto;
}

/* --- Highlight Cards --- */
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.highlight-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(232, 168, 56, 0.1);
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 168, 56, 0.3);
}

.highlight-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.highlight-card h3 {
  color: var(--color-accent);
  margin-bottom: 12px;
}

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

/* --- Image + Text Row --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split--reverse .split__image {
  order: 2;
}

.split__image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.split__text h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.split__text .divider {
  margin: 12px 0;
}

.split__text p {
  color: var(--color-gray-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split--reverse .split__image {
    order: 0;
  }

  .split__image img {
    height: 280px;
  }
}

/* --- Menu Grid --- */
.menu-category {
  margin-bottom: 60px;
}

.menu-category h3 {
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 168, 56, 0.2);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.menu-item {
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(232, 168, 56, 0.08);
  border-radius: 8px;
  padding: 24px;
  transition: border-color var(--transition);
}

.menu-item:hover {
  border-color: rgba(232, 168, 56, 0.25);
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.menu-item__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

.menu-item__price {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  margin-left: 16px;
}

.menu-item__desc {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Gallery Grid --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery__item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.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__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 23, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__item__overlay {
  opacity: 1;
}

.gallery__item__overlay span {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox__close:hover {
  color: var(--color-accent);
}

.lightbox__caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-cream);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 16px;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox__nav:hover {
  color: var(--color-accent);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

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

.contact__info h3 {
  color: var(--color-accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.contact__detail {
  margin-bottom: 24px;
}

.contact__detail h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact__detail p,
.contact__detail a {
  color: var(--color-gray-light);
  font-size: 0.95rem;
}

.contact__map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.contact__social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.contact__social a {
  color: var(--color-cream);
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: 4px;
  transition: all var(--transition);
}

.contact__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

/* --- Awards / Recognition --- */
.awards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.award-card {
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(232, 168, 56, 0.1);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}

.award-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.award-card h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.award-card p {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* --- Team --- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 24px;
}

.team-card h3 {
  color: var(--color-white);
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.team-card__role {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  padding: 60px 0 24px;
  border-top: 1px solid rgba(232, 168, 56, 0.1);
}

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

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.footer__desc {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}

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

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 168, 56, 0.08);
  color: var(--color-gray);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- 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);
}

/* --- Utility --- */
.text-accent {
  color: var(--color-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
