/* ========================================
   PINEAPPLE EXPRESS THAILAND - CONSOLIDATED STYLES
   ======================================== */

/* ========= CSS Variables ========= */
:root {
  /* Brand Colors */
  --brand: #e59700;
  --brand-hover: #ffb84d;
  --accent: #00c8ff;
  --quote-accent: #FF5C00;
  
  /* Container & Background */
  --container-bg: rgba(28, 28, 28, 0.82);
  --container-border: rgba(0, 0, 0, 0.85);
  
  /* Typography Colors */
  --h1-col: #DD5500;
  --h2-col: #DD5500;
  --h3-col: #DD5500;
  --body-col: #FFFFFF;
  
  /* Background Animation */
  --bgShiftX1: 50%;
  --bgShiftY1: 50%;
  --bgShiftX2: 47%;
  --bgShiftY2: 53%;
  --wobble-dur: 8s;
  --fade-dur: 6s;
  --heroH: 124px;
}

/* ========= Base Styles ========= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #e9e9e9;
  background: #000;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

/* ========= Background Animation ========= */
.background-overlay {
  position: fixed;
  inset: 0;
  background-image: url("images/ma.jpg");
  background-size: cover;
  background-position: var(--bgShiftX1) var(--bgShiftY1);
  z-index: 0;
  pointer-events: none;
  animation: bgDrift 3s ease-in-out infinite alternate;
  will-change: opacity, background-position;
}

.no-bg-anim .background-overlay {
  animation: none;
  opacity: 0.15;
}

@keyframes bgDrift {
  0% {
    background-position: var(--bgShiftX1) var(--bgShiftY1);
    opacity: 0.10;
  }
  50% {
    background-position: 44% 57%;
    opacity: 0.70;
  }
  100% {
    background-position: var(--bgShiftX2) var(--bgShiftY2);
    opacity: 0.10;
  }
}

/* ========= Language Switcher ========= */
.lang-fixed {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: saturate(120%) blur(4px);
}

.lang-fixed label {
  font-size: 0.9rem;
  color: #ddd;
}

.lang-dropdown {
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #000;
}

/* ========= Logo & Header Styles ========= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.28s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 8px 12px 10px;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-row img {
  display: block;
  width: auto;
  max-height: 250px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.hero-logo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2px;
  text-align: center;
}

.hero-logo .logo-wrap {
  position: relative;
  display: inline-block;
  animation: wobblePsy var(--wobble-dur) ease-in-out infinite alternate;
  transform-origin: 50% 52%;
  will-change: transform;
}

.no-logo-anim .hero-logo .logo-wrap {
  animation: none;
}

.hero-logo img {
  display: block;
  height: auto;
  max-width: 40vw;
  margin-inline: auto;
}

#logoMain {
  max-height: 240px;
  animation: logoFade var(--fade-dur) ease-in-out infinite alternate;
  will-change: opacity;
}

.no-logo-anim #logoMain {
  animation: none;
}

#neonOverlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: neonPulse var(--wobble-dur) ease-in-out infinite alternate;
  will-change: opacity, filter;
}

.no-neon #neonOverlay {
  display: none;
}

@keyframes wobblePsy {
  0% {
    transform: rotate(-0.4deg) scale(1);
  }
  25% {
    transform: rotate(0.4deg) scale(1.012);
  }
  50% {
    transform: rotate(-0.6deg) scale(1.008);
  }
  75% {
    transform: rotate(0.6deg) scale(1.018);
  }
  100% {
    transform: rotate(-0.4deg) scale(1);
  }
}

@keyframes logoFade {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

@keyframes neonPulse {
  0% {
    opacity: 0.05;
    filter: blur(14px) saturate(140%);
  }
  50% {
    opacity: 0.07;
    filter: blur(16px) saturate(150%);
  }
  100% {
    opacity: 0.12;
    filter: blur(14px) saturate(140%);
  }
}

/* ========= Enhanced Navigation ========= */
.enhanced-nav {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 20px 0;
  backdrop-filter: blur(8px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(229, 151, 0, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(229, 151, 0, 0.1);
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}

.nav-link {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 151, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--brand-hover);
  background: rgba(229, 151, 0, 0.1);
  border-color: rgba(229, 151, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(229, 151, 0, 0.2),
    0 0 8px rgba(229, 151, 0, 0.1);
}

.nav-link:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(229, 151, 0, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-separator {
  color: var(--brand);
  opacity: 0.6;
  font-weight: 300;
  margin: 0 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-separator:hover {
  opacity: 1;
  color: var(--brand-hover);
}

.nav-link.current {
  color: var(--brand);
  background: rgba(229, 151, 0, 0.15);
  border-color: rgba(229, 151, 0, 0.4);
  box-shadow: 
    0 0 12px rgba(229, 151, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link.current:hover {
  color: var(--brand-hover);
  background: rgba(229, 151, 0, 0.2);
}

/* ========= Container & Layout ========= */
.container {
  max-width: 900px;
  margin: 12px auto 28px;
  padding: 24px;
  position: relative;
  z-index: 2;
  background: var(--container-bg);
  border: 2px solid var(--container-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

/* ========= Typography ========= */
h1, h2, h3 {
  margin: 0 0 8px;
}

h1 {
  font-family: "Chicle", system-ui, sans-serif;
  letter-spacing: 0.5px;
  font-weight: 400;
  text-align: center;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--brand);
  line-height: 1;
}

h2 {
  font-family: "Noto Sans", system-ui, sans-serif;
  font-weight: 600;
  text-align: center;
  color: var(--brand);
  margin-bottom: 16px;
  font-size: clamp(18px, 2.8vw, 20px);
  line-height: 1.2;
}

h3 {
  margin-top: 18px;
  color: var(--h3-col);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
}

p {
  margin: 0 0 16px;
  text-align: left;
  letter-spacing: 0.1px;
  word-break: normal;
  overflow-wrap: anywhere;
}

p.lead {
  text-align: center;
  color: #d8d8d8;
  margin: 0 0 18px;
}

/* ========= Quote Styles ========= */
.quote {
  margin: 22px 0;
  padding: 18px 18px 18px 20px;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--quote-accent);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) inset;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  font-weight: 500;
  color: #f3f3f3;
  font-style: italic;
  letter-spacing: 0.1px;
}

.quote::before {
  content: """;
  position: absolute;
  top: -8px;
  left: 8px;
  font-family: serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
}

/* ========= Social Icons ========= */
.socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #111;
  border: 1px solid #333;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  background: #161616;
}

.socials svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.socials a[aria-label="LINE"] {
  color: #06c755;
}

.socials a[aria-label="Facebook"] {
  color: #1778f2;
}

.socials a[aria-label="Instagram"] {
  color: #e1306c;
}

/* ========= Form Styles ========= */
.form-container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) inset;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e9e9e9;
  font-weight: 500;
  font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  max-width: 50%;
  padding: 12px 16px;
  border: 1px solid #333;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #e9e9e9;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.2);
}

.form-group input::placeholder {
  color: #888;
}

.submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--h1-col));
  color: #000;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35%;
  margin-top: 20px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #f0a500, #ff6600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 151, 0, 0.4);
}

.submit-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Contact Form Specific */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: #eaeaea;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea, 
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus, 
textarea:focus, 
select:focus {
  border-color: #7da7ff;
  box-shadow: 0 0 0 3px rgba(97, 158, 255, 0.15);
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.muted {
  color: #aeb7c7;
  font-size: 0.9rem;
}

.req {
  color: #ffb4b4;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe875, #f2c735);
  color: #181810;
  box-shadow: 0 8px 18px rgba(242, 199, 53, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.06s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(1px);
}

/* ========= File Upload Styles ========= */
.dropzone {
  border: 2px dashed #444;
  border-radius: 10px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.3);
  color: #ccc;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(0, 200, 255, 0.08);
}

.file-list {
  margin-top: 10px;
  color: #ddd;
  font-size: 14px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #2a2a2a;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress {
  height: 6px;
  width: 140px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* ========= Menu Specific Styles ========= */
.viewport-stage {
  width: 100vw;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  background: #000;
  padding: 14px 12px 40px;
}

.menu-wrap {
  width: min(1100px, 100%);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.menu-card {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  width: min(980px, 100%);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.menu-card:focus-visible {
  outline: 2px dashed var(--brand);
  outline-offset: 2px;
}

.menu-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.menu-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  -webkit-user-select: none;
  user-select: none;
  margin: 0 auto;
}

.menu-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e5e5e5;
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========= Lightbox Styles ========= */
.lb-backdrop,
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(2px);
}

.lb-backdrop[aria-hidden="false"],
.lightbox-backdrop[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.lb-stage,
.lightbox-stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 3.5vh 2vw;
  outline: none;
}

.lb-img,
.lightbox-img {
  width: 100%;
  height: 100%;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background: #000;
}

.lb-ui,
.lightbox-ui {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.lb-close,
.lb-btn {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
}

.lb-close:hover,
.lb-btn:hover {
  background: rgba(34, 34, 34, 0.7);
}

.lb-counter {
  opacity: 0.85;
}

.lb-caption {
  flex: 1 1 auto;
  min-height: 1.5em;
  text-align: center;
  opacity: 0.9;
}

.lb-spacer {
  width: 22px;
}

.lb-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* ========= Map Styles ========= */
.map-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* ========= Utility Classes ========= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.footer {
  text-align: center;
  color: #bbb;
  font-size: 0.95rem;
  padding: 18px 10px 32px;
}

/* ========= Responsive Design ========= */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }
  
  .nav-separator {
    display: none;
  }
  
  .enhanced-nav {
    padding: 20px 16px;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group textarea {
    max-width: 100%;
  }
  
  .submit-btn {
    width: 100%;
  }
  
  form {
    grid-template-columns: 1fr;
  }
  
  .menu-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-link {
    font-size: 14px;
    padding: 14px 16px;
  }
}

@media (min-width: 720px) {
  .menu-wrap {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .lb-side {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.35rem 0.6rem;
  }
  
  .lb-prev {
    left: 1rem;
  }
  
  .lb-next {
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-overlay {
    animation: none;
    opacity: 0.15;
  }
  
  .hero-logo img {
    animation: none;
  }
  
  .hero-logo .logo-wrap {
    animation: none;
  }
  
  #logoMain {
    animation: none;
  }
  
  #neonOverlay {
    display: none;
  }
}
