/* ================================================
   BLOOM DIGITAL CAFÉ — DESIGN SYSTEM
   ================================================ */

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

/* CSS Variables */
:root {
  --primary: #152CAE;
  --primary-dark: #0f2090;
  --primary-light: #e8ecf8;
  --accent: #2a45c8;
  --bg-white: #ffffff;
  --bg-light: #f7f8fc;
  --bg-pale-blue: #eef1fa;
  --text-dark: #1a1a2e;
  --text-body: #4a4a6a;
  --text-muted: #8888aa;
  --border: #e2e5f0;
  --shadow-sm: 0 2px 8px rgba(21, 44, 174, 0.08);
  --shadow-md: 0 4px 20px rgba(21, 44, 174, 0.12);
  --shadow-lg: 0 8px 40px rgba(21, 44, 174, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: all 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.display-heading { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
.section-label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius-pill); padding: 4px 14px; display: inline-block; }
.price-tag { font-family: var(--font-body); font-weight: 700; color: var(--primary); }
.text-primary { color: var(--primary) !important; }

/* Navbar */
.bloom-navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.bloom-navbar .brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.brand-logo{
  width: 120px;
  height: 60px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}
.brand:hover .brand-logo{
  transform: scale(1.05);
}
.bloom-navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.bloom-navbar .nav-link:hover, .bloom-navbar .nav-link.active {
  color: var(--primary);
}
.bloom-navbar .nav-link.active {
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
}

/* Buttons */
.btn-bloom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-bloom-primary {
  background: var(--primary);
  color: #fff;
}
.btn-bloom-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-bloom-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-bloom-outline:hover { background: var(--primary); color: #fff; }
.btn-bloom-lg { padding: 14px 32px; font-size: 1rem; }
.btn-bloom-block { width: 100%; justify-content: center; border-radius: var(--radius-md); }

/* Cards */
.bloom-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.bloom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Menu Card */
.menu-card { cursor: pointer; }
.menu-card .card-img-wrap { position: relative; overflow: hidden; height: 200px; }
.menu-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.menu-card:hover .card-img-wrap img { transform: scale(1.05); }
.menu-card .badge-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.badge-tag.sale { background: #ff5a36; }
.menu-card .card-body { padding: 16px; }
.menu-card .menu-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin: 0; }
.menu-card .menu-desc { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 14px; line-height: 1.5; }
.menu-card .menu-price { font-weight: 700; color: var(--primary); }
.menu-card .btn-add-cart { width: 100%; background: transparent; border: 1.5px solid var(--border); color: var(--text-body); font-size: 0.85rem; font-weight: 500; padding: 9px; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; }
.menu-card .btn-add-cart:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Form Inputs */
.bloom-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.bloom-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 44, 174, 0.1); }
.bloom-input::placeholder { color: var(--text-muted); }
textarea.bloom-input { min-height: 120px; resize: vertical; }
.input-label { font-size: 0.85rem; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; display: block; }
.phone-group { display: flex; gap: 0; }
.phone-prefix { background: var(--bg-light); border: 1.5px solid var(--border); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); padding: 12px 14px; font-size: 0.9rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.phone-group .bloom-input { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* Section Styles */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

/* ===== CART DRAWER ===== */
#cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 1055;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  border-radius: 16px 0 0 16px;
}
#cart-drawer.open {
  right: 0;
}
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1054;
}
#cart-overlay.show {
  display: block;
}
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  background: #f8f9ff;
  border-radius: 0 0 0 16px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2ff;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 0.82rem; color: #0d6efd; font-weight: 600; }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid #0d6efd;
  background: white;
  color: #0d6efd;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.qty-btn:hover { background: #0d6efd; color: white; }
.qty-value { min-width: 20px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.remove-btn:hover { background: #fff0f0; }
.cart-empty {
  text-align: center;
  padding: 48px 24px;
  color: #aaa;
}
.cart-empty i { font-size: 3rem; display: block; margin-bottom: 12px; }

/* Add to Cart button feedback */
.btn-add-cart.adding {
  transform: scale(0.96);
  opacity: 0.85;
}

/* Footer */
.bloom-footer { background: var(--bg-white); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.bloom-footer .footer-brand { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.bloom-footer .footer-link { font-size: 0.88rem; color: var(--text-body); text-decoration: none; display: block; margin-bottom: 10px; transition: var(--transition); }
.bloom-footer .footer-link:hover { color: var(--primary); }
.bloom-footer .footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* Category Sidebar */
.category-sidebar { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.category-sidebar .cat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 20px 8px; }
.category-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); border: none; background: none; width: 100%; text-align: left; color: var(--text-body); }
.category-item:hover { background: var(--bg-light); }
.category-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.promo-sidebar { background: var(--bg-light); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; margin-top: 16px; }
.promo-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block; margin-bottom: 8px; }

/* Checkout Page */
.checkout-section-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; margin-bottom: 24px; }
.checkout-section-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.order-item-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.order-item-row img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-md); }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; }
.summary-row.total { font-weight: 700; font-size: 1rem; }

/* QRIS Card */
.qris-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.qris-image-wrap { background: linear-gradient(135deg, #fde8dc, #f8d5c5); border-radius: var(--radius-lg); padding: 24px; display: flex; justify-content: center; align-items: center; margin: 20px 0; min-height: 200px; }
.qris-image-wrap img { max-width: 160px; border-radius: var(--radius-md); }

/* Receipt */
.receipt-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; max-width: 700px; margin: 0 auto; }
.receipt-header { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.receipt-meta-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.receipt-meta-value { font-size: 0.95rem; font-weight: 600; }
.order-id-display { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--text-dark); }
.status-badge { background: #d4edda; color: #155724; font-size: 0.8rem; font-weight: 700; padding: 4px 14px; border-radius: var(--radius-pill); }
.total-summary-box { background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; margin-top: 20px; }
.success-icon { width: 72px; height: 72px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }

/* Hero Section */
.hero-section { padding: 60px 0 40px; min-height: 80vh; display: flex; align-items: center; }
.hero-badge { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 14px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); display: inline-block; margin-bottom: 20px; }
.hero-image-wrap { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image-wrap img { width: 100%; height: 460px; object-fit: cover; }

/* Cart Badge on Nav */
.cart-btn { position: relative; background: none; border: none; cursor: pointer; padding: 16px; }
.cart-badge { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section { padding: 40px 0; min-height: auto; }
  .display-heading { font-size: 2rem; }
  .cart-drawer { width: 100%; }
  .section-pad { padding: 50px 0; }
  .checkout-section-card { padding: 20px; }
  .receipt-card { padding: 24px; }
}

.career-hero{
    position: relative;
    min-height: 85vh;

    background-image: url('/images/hero/hero-bgg.png');
    background-size: cover;
    background-position: center;

    display:flex;
    align-items:center;
}

.career-content h1{
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.career-content p,
.career-tag{
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.bloom-benefit-card{
    background:#2340C7;
    color:white;
    border-radius:20px;
}

.bloom-benefit-card h5{
    color:white;
}

.bloom-benefit-card p{
    color:rgba(255,255,255,.9) !important;
}

.career-job-image{
    width:100%;
    height:220px;
    object-fit:cover;
}