/* ===========================
   KHAN - Japanese Kitchen & Bar
   Mobile-first / Minimal Japanese
   =========================== */

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #3a3a3a;
  --gray-400: #888;
  --gray-300: #aaa;
  --gray-200: #ccc;
  --white: #f5f5f5;
  --pure-white: #fff;
  --red: #ba1d2a;
  --red-dark: #9a1823;
  --red-light: #d42532;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --header-h: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--gray-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ===== UTILITIES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--pure-white);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gray-400);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.85rem;
  background: var(--red);
  color: var(--pure-white);
  border-radius: var(--radius);
}
.btn--small:hover {
  background: var(--red-dark);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}

.header__nav {
  display: none;
  gap: 32px;
}

.header__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color var(--transition);
}
.header__link:hover {
  color: var(--white);
}

.header__cta {
  display: none;
  padding: 10px 22px;
  background: var(--red);
  color: var(--pure-white);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.header__cta:hover {
  background: var(--red-dark);
}

/* Burger */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
}
.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.header__nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px 24px;
  gap: 24px;
  z-index: 99;
}
.header__nav.open .header__link {
  font-size: 1.2rem;
  color: var(--white);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/img/hero-banner.jpg') center/cover no-repeat;
  text-align: center;
  padding: 0 20px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.65) 0%,
    rgba(10, 10, 10, 0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pure-white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 40px;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: 72px 20px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 16px;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.carousel__arrow:hover {
  background: var(--red);
  border-color: var(--red);
}
.carousel__arrow--left {
  left: -16px;
}
.carousel__arrow--right {
  right: -16px;
}

/* ===== CARD (Bestsellers) ===== */
.card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  padding: 16px;
}

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

.card__desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ===== PROMO CARD ===== */
.promo-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition);
}
.promo-card:hover {
  transform: translateY(-4px);
}

.promo-card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.promo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.promo-card__desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.promo-card__vigencia {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-light);
}

.promo-card__body .btn--small {
  align-self: flex-start;
  margin-top: 4px;
}

/* ===== PROMOS section bg ===== */
.promos {
  background: var(--dark);
}

/* ===== MENÚS TOP (below header) ===== */
.menus--top {
  background: var(--dark);
}

/* ===== MENÚS GRID ===== */
.menus__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}
.menu-btn:hover {
  background: var(--gray-800);
  border-color: var(--red);
  transform: translateY(-2px);
}

.menu-btn__icon {
  width: 32px;
  height: 32px;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--red);
}

.menu-btn span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: url('assets/img/ambience/local-oscuro.jpg') center/cover no-repeat;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner__desc {
  color: var(--gray-300);
  margin-bottom: 28px;
  font-size: 1rem;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 20px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer__heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.footer__block p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer__link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--red-light);
  margin-top: 8px;
  transition: color var(--transition);
}
.footer__link:hover {
  color: var(--pure-white);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-800);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.footer__social-link:hover {
  background: var(--red);
  border-color: var(--red);
}
.footer__social-link svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.footer__bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: var(--gray-700);
  letter-spacing: 0.04em;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #25d366;
  color: var(--pure-white);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.85rem;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.03);
}
.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Safe area for iPhone notch */
@supports (padding-top: env(safe-area-inset-top)) {
  .whatsapp-float {
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
    right: calc(16px + env(safe-area-inset-right, 0px));
  }
}

/* ===== TABLET (640px+) ===== */
@media (min-width: 640px) {
  .menus__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .card {
    flex: 0 0 280px;
  }

  .promo-card {
    flex: 0 0 320px;
  }
}

/* ===== DESKTOP (900px+) ===== */
@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .header__logo-img {
    height: 52px;
  }

  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__burger {
    display: none;
  }

  .section {
    padding: 100px 40px;
  }

  .menus__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .carousel__arrow {
    display: flex;
  }

  .footer__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .whatsapp-float span {
    display: inline;
  }
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  .carousel__arrow--left {
    left: -24px;
  }
  .carousel__arrow--right {
    right: -24px;
  }

  .menu-btn {
    padding: 36px 20px;
  }

  .menu-btn__icon {
    width: 36px;
    height: 36px;
  }

  .menu-btn span {
    font-size: 0.9rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
