/* ============================================
   AKEMI RESTAURANT — Warm Casual Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+JP:wght@400;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Warm reds from the restaurant's identity */
  --red: #C41E24;
  --red-dark: #A01920;
  --red-soft: #E8484E;
  --red-bg: rgba(196, 30, 36, 0.06);

  /* Warm neutrals inspired by wood & interior */
  --cream: #FDF8F3;
  --cream-dark: #F5EDE3;
  --beige: #EDE4D8;
  --wood: #8B6F4E;
  --wood-light: #B89B72;

  /* Text */
  --text: #2C1810;
  --text-secondary: #6B5B4E;
  --text-light: #9A8A7B;

  /* Surfaces */
  --white: #FFFFFF;
  --card: #FFFFFF;
  --border: rgba(139, 111, 78, 0.12);

  /* Misc */
  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.06);
  --shadow: 0 4px 20px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-jp: 'Noto Serif JP', serif;
  --max-width: 1100px;
}

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

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

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

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

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

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

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 30, 36, 0.25);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 30, 36, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.btn-soft {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(196, 30, 36, 0.15);
}

.btn-soft:hover {
  background: rgba(196, 30, 36, 0.12);
  transform: translateY(-2px);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.85rem 0;
  transition: all var(--transition);
  background: rgba(253, 248, 243, 0.85);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(253, 248, 243, 0.97);
  backdrop-filter: blur(14px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 12px rgba(44, 24, 16, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 0 3px rgba(139, 111, 78, 0.3));
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.8rem;
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(20, 10, 5, 0.55) 0%,
      rgba(20, 10, 5, 0.45) 50%,
      rgba(20, 10, 5, 0.65) 80%,
      var(--cream) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1.05;
  margin-bottom: 0.6rem;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.7s ease 0.15s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.35s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.6s forwards;
  opacity: 0;
}

.hero-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero-buttons .btn-outline:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 5rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.feature-card h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 0.75rem;
}

.about-images .img-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.about-images .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-images .img-wrapper:hover img {
  transform: scale(1.04);
}

.about-images .img-wrapper:first-child {
  grid-row: 1 / 3;
}

/* ============================================
   MENU
   ============================================ */
.menu-section {
  padding: 5rem 0;
  background: var(--cream-dark);
}

.menu-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* --- Formules (restaurant style, not e-commerce) --- */
.formules-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.formule-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.5rem;
  position: relative;
}

.formule-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.formule-item .formule-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.formule-item .formule-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.formule-item .formule-detail {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --- Tabs --- */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.3rem;
  background: var(--white);
  border-radius: 50px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}

.menu-tab {
  padding: 0.65rem 1.3rem;
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.menu-tab:hover {
  color: var(--text);
  background: var(--cream);
}

.menu-tab.active {
  background: var(--red);
  color: #fff;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.menu-subcategory {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.menu-subcategory:first-child {
  margin-top: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.6rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  gap: 1rem;
}

.menu-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.menu-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.menu-item-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

.menu-download {
  text-align: center;
  margin-top: 2rem;
}

.menu-download p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 5rem 0;
  background: var(--cream);
}

.gallery-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 0.75rem;
}

.gallery-grid .gallery-item:nth-child(1) {
  grid-column: 1 / 3;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

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

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

/* ============================================
   ORDER CTA
   ============================================ */
.order-section {
  padding: 5rem 0;
  background: var(--cream-dark);
}

.order-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--red-bg);
  border: 1px solid rgba(196, 30, 36, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.order-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.order-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.order-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   INFO
   ============================================ */
.info-section {
  padding: 5rem 0;
  background: var(--cream);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-bg);
  border-radius: var(--radius-sm);
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.halal-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}

.halal-badge img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.halal-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2E7D32;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.halal-badge-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.15rem;
}

.halal-badge-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.info-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 340px;
  box-shadow: var(--shadow-sm);
}

.info-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.25rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 400;
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ============================================
   MOBILE MENU (hidden by default, shown via JS on mobile)
   ============================================ */
.mobile-menu,
.mobile-overlay {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 4.5rem 1.5rem 3rem;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu a {
    display: block;
    padding: 0.9rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu .btn {
    width: 100%;
    text-align: center;
    border-radius: 50px;
    box-sizing: border-box;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
  }

  .mobile-overlay.open {
    display: block;
  }

  .hero {
    max-height: 600px;
  }

  .hero-title {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-images {
    grid-template-rows: 160px 160px;
  }

  .formules-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .formule-item:not(:last-child)::after {
    display: none;
  }

  .formule-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .formule-item:last-child {
    border-bottom: none;
  }

  .menu-tabs {
    border-radius: var(--radius-sm);
    padding: 0.2rem;
    gap: 0.2rem;
  }

  .menu-tab {
    padding: 0.55rem 0.85rem;
    font-size: 0.72rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: 1 / 3;
  }

  .order-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .order-image {
    order: -1;
  }

  .order-image img {
    height: 240px;
  }

  .order-buttons {
    justify-content: center;
  }

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

  .info-map {
    min-height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-grid {
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-auto-rows: 200px;
  }

  .order-inner {
    gap: 2rem;
  }
}