/* =========================================================
   BAO TRAM — CAFÉ & BAKERY
   Color Palette: Warm Espresso (#22160F), Cream (#F7F2EB),
                  Warm Latte Gold (#9C7244), Dark Roast (#3A271C)
   ========================================================= */

:root {
  --bg-cream: #F7F2EB;
  --bg-card: #EFE8DE;
  --espresso-dark: #22160F;
  --espresso-mid: #3A271C;
  --text-dark: #231811;
  --text-muted: #6F6156;
  --text-light: #F7F2EB;
  --accent-gold: #B98B56;
  --border-subtle: rgba(35, 24, 17, 0.12);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- NAVIGATION ---------------- */
.hero-wrapper {
  position: relative;
  min-height: 620px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 17, 11, 0.94) 0%,
    rgba(35, 22, 15, 0.84) 42%,
    rgba(35, 22, 15, 0.25) 75%,
    rgba(28, 17, 11, 0.35) 100%
  );
}

.navbar {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 20px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-logo .amp {
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: rgba(247, 242, 235, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-order:hover {
  background-color: #FFFFFF;
  transform: translateY(-1px);
}

.cart-badge {
  background-color: var(--espresso-dark);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
}

/* ---------------- HERO CONTENT ---------------- */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-top: 42px;
  padding-bottom: 72px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.78);
  margin-bottom: 14px;
}

.eyebrow.dark {
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 5.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #FAF6F0;
}

.hero-title .amp {
  font-style: italic;
  font-weight: 400;
}

.title-divider {
  width: 28px;
  height: 1.5px;
  background-color: rgba(247, 242, 235, 0.55);
  margin: 22px 0;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.38rem;
  line-height: 1.45;
  color: rgba(247, 242, 235, 0.9);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--bg-cream);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 22, 15, 0.35);
  color: var(--text-light);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(247, 242, 235, 0.45);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: rgba(247, 242, 235, 0.14);
  border-color: #FFFFFF;
}

/* ---------------- FEATURES BAR ---------------- */
.features-bar {
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 16px;
  border-right: 1px solid var(--border-subtle);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  color: var(--espresso-mid);
  margin-bottom: 12px;
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ---------------- SPECIALS / BAKERY FAVORITES ---------------- */
.specials-section {
  padding: 68px 0 48px;
}

.specials-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: stretch;
}

.arch-frame {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border-radius: 180px 180px 8px 8px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(35, 24, 17, 0.08);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specials-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.specials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
}

.script-accent {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  color: #9C7244;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(35, 24, 17, 0.25);
  background: transparent;
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.circle-btn:hover {
  background-color: var(--espresso-dark);
  color: var(--text-light);
  border-color: var(--espresso-dark);
}

.bakery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bakery-card {
  background: transparent;
  border-radius: 16px;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.bakery-card:hover {
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-card);
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(35, 24, 17, 0.06);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bakery-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.quick-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(247, 242, 235, 0.95);
  color: var(--text-dark);
  border: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.bakery-card:hover .quick-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn:hover {
  background-color: var(--espresso-dark);
  color: var(--text-light);
}

.bakery-card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-dark);
}

/* ---------------- CAFE EXPERIENCE BANNER ---------------- */
.experience-section {
  padding: 20px 0 72px;
}

.experience-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  align-items: center;
  box-shadow: 0 18px 36px rgba(35, 24, 17, 0.12);
}

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

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

.experience-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 17, 11, 0.95) 0%,
    rgba(35, 22, 15, 0.85) 38%,
    rgba(35, 22, 15, 0.15) 72%,
    rgba(28, 17, 11, 0.2) 100%
  );
}

.experience-text {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
  color: var(--text-light);
}

.experience-title {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: #FAF6F0;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px 0 28px;
  background-color: #F1EAE0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.dark-logo {
  color: var(--text-dark);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-info h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------------- MODAL ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 13, 9, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background-color: var(--bg-cream);
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 18px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.full-width {
  width: 100%;
  background-color: var(--espresso-dark);
  color: var(--text-light);
  border-color: var(--espresso-dark);
}

.full-width:hover {
  background-color: var(--espresso-mid);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .specials-layout {
    grid-template-columns: 1fr;
  }

  .arch-frame {
    max-width: 380px;
    margin: 0 auto;
    min-height: 360px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 28px;
    right: 28px;
    background-color: var(--espresso-dark);
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
    gap: 16px;
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .bakery-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .experience-text {
    padding: 36px 28px;
  }
}
