/* ============================================
   TOPAZ THAI AUTHENTIC - Premium Thai Cuisine
   Shared Stylesheet
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Montserrat', sans-serif; background: #0a0a0a; color: #e8dcc8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === CUSTOM PROPERTIES === */
:root {
  --gold: #c9a96e;
  --gold-light: #e4c98a;
  --dark: #0a0a0a;
  --dark-brown: #1a1209;
  --cream: #f5e6d3;
  --text: #e8dcc8;
  --text-muted: #a89880;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Montserrat', sans-serif;
  --thai: 'Noto Serif Thai', serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 3rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}
.nav__logo span { font-size: 0.7rem; display: block; letter-spacing: 4px; font-family: var(--sans); font-weight: 300; color: var(--text-muted); text-transform: uppercase; }
.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__links a { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; color: var(--text); }
.nav__links a:hover { color: var(--gold); }
.nav__links a.active { color: var(--gold); }
.nav__links a.btn-nav { background: var(--gold); color: var(--dark); padding: 0.6rem 1.5rem; border-radius: 2px; font-weight: 600; }
.nav__links a.btn-nav:hover { background: var(--gold-light); }
.nav__social { display: flex; gap: 1rem; }
.nav__social a {
  color: var(--text-muted); font-size: 0.9rem;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
}
.nav__social a:hover { color: var(--gold); border-color: var(--gold); }
.nav__social a svg { width: 28px; height: 28px; fill: currentColor; }
.nav__mobile { display: none; cursor: pointer; }
.nav__mobile span { display: block; width: 25px; height: 2px; background: var(--gold); margin: 5px 0; transition: var(--transition); }

/* === HERO VIDEO === */
.hero {
  position: relative; height: 100vh; width: 100%; overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; overflow: hidden;
}
.hero__video video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__slideshow {
  position: absolute; inset: 0;
}
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide.active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: slowZoom 12s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
/* === HERO OVERLAY ===
   TO CHANGE OPACITY: Adjust the last number in each rgba() value below.
   - First rgba = top opacity (currently 0.5)
   - Second rgba = middle opacity (currently 0.3)
   - Third rgba = bottom opacity (currently 0.7)
   Values range from 0 (transparent) to 1 (fully dark)
   ============================================ */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.3) 40%, rgba(10,10,10,0.2) 100%);
  z-index: 2;
}
.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.hero__thai {
  font-family: var(--thai); font-size: 1.2rem; color: var(--gold); letter-spacing: 6px;
  margin-bottom: 1rem; opacity: 0.9;
}
.hero__title {
  font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 300;
  color: #fff; line-height: 1.1; margin-bottom: 1rem;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__subtitle {
  font-size: 1rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem; font-weight: 300;
}
.hero__cta { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.btn {
  padding: 1rem 2.5rem; font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 500; border: none; cursor: pointer;
  transition: var(--transition); font-family: var(--sans); display: inline-block;
}
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

/* Hero Video Controls */
.hero__video-controls {
  position: absolute; bottom: 3rem; left: 3rem; z-index: 5;
  display: flex; gap: 0.8rem;
}
.video-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; transition: var(--transition);
}
.video-btn:hover { background: rgba(201,169,110,0.2); }

/* Hero Slide Controls (fallback when no video) */
.hero__controls {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 0.8rem; align-items: center;
}
.hero__dot {
  width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold);
  background: transparent; cursor: pointer; transition: var(--transition);
}
.hero__dot.active { background: var(--gold); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold); font-size: 1.2rem; cursor: pointer; transition: var(--transition);
}
.hero__arrow:hover { background: rgba(201,169,110,0.2); }
.hero__arrow--prev { left: 2rem; }
.hero__arrow--next { right: 2rem; }

/* === PAGE HERO (for inner pages) === */
.page-hero {
  position: relative; height: 40vh; min-height: 300px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.page-hero__bg {
  position: absolute; inset: 0;
}
.page-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.7) 100%);
}
.page-hero__content {
  position: relative; z-index: 2; text-align: center;
}
.page-hero__title {
  font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300;
  color: #fff; margin-bottom: 0.5rem;
}
.page-hero__title em { font-style: italic; color: var(--gold); }
.page-hero__subtitle {
  font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted);
}

/* === SECTIONS === */
.section {
  padding: 3rem 3rem; position: relative;
}
.section--dark { background: var(--dark); }
.section--brown { background: var(--dark-brown); }
.section__header {
  text-align: center; margin-bottom: 4rem;
}
.section__label {
  font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 500;
}
.section__title {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; color: #fff; line-height: 1.2;
}
.section__title em { font-style: italic; color: var(--gold); }
.section__divider {
  width: 60px; height: 1px; background: var(--gold); margin: 1.5rem auto 0;
  position: relative;
}
.section__divider::after {
  content: '\25C6'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: var(--gold); font-size: 0.6rem;
  background: var(--dark); padding: 0 0.8rem;
}

/* Thai Ornament Divider */
.thai-ornament {
  text-align: center; padding: 2rem 0; color: var(--gold); opacity: 0.4;
  font-size: 1.5rem; letter-spacing: 8px;
}

/* === WELCOME/ABOUT === */
.welcome {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.welcome__text {
  font-family: var(--serif); font-size: 1.3rem; line-height: 2;
  color: var(--text); font-weight: 300;
}
.welcome__text p { margin-bottom: 1.5rem; }
.welcome__thai {
  font-family: var(--thai); font-size: 2rem; color: var(--gold);
  margin-top: 2rem; opacity: 0.8;
}

/* === FEATURED SLIDESHOW === */
.featured {
  position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto;
}
.featured__track {
  display: flex; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.featured__slide {
  min-width: 100%; position: relative;
}
.featured__slide img {
  width: 100%; height: 500px; object-fit: cover; border-radius: 4px;
}
.featured__slide-overlay {
  position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(0deg, rgba(10,10,10,0.8) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem;
}
.featured__slide-title {
  font-family: var(--serif); font-size: 2.5rem; color: #fff; font-weight: 300;
  margin-bottom: 0.5rem;
}
.featured__slide-text {
  color: var(--text-muted); font-size: 0.95rem; max-width: 500px;
}
.featured__nav {
  display: flex; justify-content: center; gap: 1rem; margin-top: 2rem;
}
.featured__nav-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent;
  cursor: pointer; transition: var(--transition);
}
.featured__nav-dot.active { background: var(--gold); }
.featured__arrows {
  position: absolute; top: 50%; width: 100%;
  display: flex; justify-content: space-between; padding: 0 1rem;
  transform: translateY(-50%); pointer-events: none;
}
.featured__arrow {
  width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold); cursor: pointer; pointer-events: all;
  transition: var(--transition); border-radius: 50%;
}
.featured__arrow:hover { background: rgba(201,169,110,0.2); }

/* === GALLERY === */
.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  max-width: 1200px; margin: 0 auto;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4/3;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,10,10,0); transition: var(--transition);
}
.gallery__item:hover::after { background: rgba(201,169,110,0.1); }

/* === MENU === */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.menu-card {
  background: rgba(26,18,9,0.6); border: 1px solid rgba(201,169,110,0.15);
  border-radius: 4px; padding: 2rem; transition: var(--transition);
}
.menu-card:hover {
  border-color: rgba(201,169,110,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.menu-card__name {
  font-family: var(--serif); font-size: 1.4rem; color: #fff;
  margin-bottom: 0.5rem;
}
.menu-card__desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 1rem;
}
.menu-card__price {
  font-family: var(--serif); font-size: 1.2rem; color: var(--gold);
}
.menu-card__tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 2px; margin-top: 0.8rem;
}

/* Menu Category */
.menu-category {
  max-width: 1100px; margin: 0 auto 4rem;
}
.menu-category__title {
  font-family: var(--serif); font-size: 2rem; color: var(--gold);
  margin-bottom: 2rem; text-align: center; font-weight: 400;
}
.menu-category__items {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(201,169,110,0.1);
}
.menu-item__info { flex: 1; }
.menu-item__name {
  font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: 0.3rem;
}
.menu-item__desc {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.5;
}
.menu-item__price {
  font-family: var(--serif); font-size: 1.1rem; color: var(--gold);
  margin-left: 2rem; white-space: nowrap;
}

/* === REVIEWS === */
.reviews {
  max-width: 1000px; margin: 0 auto;
}
.reviews__rating {
  text-align: center; margin-bottom: 3rem;
}
.reviews__stars { color: var(--gold); font-size: 2rem; letter-spacing: 4px; }
.reviews__score { font-family: var(--serif); font-size: 3rem; color: #fff; margin-top: 0.5rem; }
.reviews__count { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.review-card {
  background: rgba(26,18,9,0.5); border: 1px solid rgba(201,169,110,0.1);
  border-radius: 4px; padding: 2rem;
}
.review-card__stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.review-card__text { font-size: 0.9rem; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 1.5rem; }
.review-card__author { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* === ORDER === */
.order-platforms {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  margin: 2rem auto 0;
}
.order-btn {
  padding: 1.2rem 2.5rem; background: rgba(26,18,9,0.6);
  border: 1px solid rgba(201,169,110,0.3); border-radius: 4px;
  font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); transition: var(--transition); font-weight: 500;
  text-align: center;
}
.order-btn:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.order-btn span { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 300; text-transform: none; letter-spacing: 0; }

/* === CONTACT === */
.contact {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
  align-items: start;
}
.contact__info h3 {
  font-family: var(--serif); font-size: 1.8rem; color: #fff;
  margin-bottom: 2rem; font-weight: 400;
}
.contact__item {
  display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start;
}
.contact__icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.9rem; flex-shrink: 0;
}
.contact__detail h4 { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.contact__detail p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.contact__detail a { color: var(--text); }
.contact__detail a:hover { color: var(--gold); }
.contact__map {
  width: 100%; height: 380px; border-radius: 15px; overflow: hidden;
  border: 0px solid rgba(201,169,110,0.15);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.1); }

/* === FOOTER === */
.footer {
  background: #050505; padding: 4rem 3rem 2rem; text-align: center;
  border-top: 1px solid rgba(201,169,110,0.1);
}
.footer__logo {
  font-family: var(--serif); font-size: 2rem; color: var(--gold);
  letter-spacing: 2px; margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2rem;
}
.footer__social { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2rem; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition);
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__social a svg { width: 28px; height: 28px; fill: currentColor; }
.footer__links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.footer__links a { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-size: 0.75rem; color: rgba(168,152,128,0.5); }

/* === ANIMATIONS === */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu.open ~ .nav .nav__mobile,
body.menu-open .nav__mobile { display: none !important; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2rem; color: var(--text);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 2.5rem; color: var(--gold); cursor: pointer;
  z-index: 9999; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.5); border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.3);
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  background: var(--gold); color: var(--dark); padding: 0.8rem 1.5rem;
  font-size: 0.85rem; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .nav__links { display: none; }
  .nav__social { display: none; }
  .nav__mobile { display: block; }
  .contact { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__arrow { display: none; }
  .section { padding: 5rem 1.5rem; }
}
@media (max-width: 600px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .nav { padding: 1rem 1.5rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .featured__slide img { height: 300px; }
  .menu-item { flex-direction: column; }
  .menu-item__price { margin-left: 0; margin-top: 0.5rem; }
}
