/* =======================================================================
   BizMall — Public site styles
   Design language: clean blue-and-white storefront — white surfaces, a
   confident navy/blue accent, soft light-blue hero wash, flat rounded cards.
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --ink: #172554;          /* deep navy — headings, logo, dark buttons */
    --ink-soft: #5b6478;     /* secondary text */
    --blue: #2554e8;         /* primary accent — buttons, links, active states */
    --blue-dark: #1a3fc4;
    --blue-pale: #eaf0ff;    /* pale blue washes, chips, highlight box */
    --paper: #ffffff;
    --paper-dim: #f4f6fb;
    --card: #ffffff;
    --gold: #f5a623;         /* star ratings only */
    --teal: #16a37a;         /* success / active badges */
    --clay: #dc4d3d;         /* errors / sale badges */
    --line: #e6e9f2;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(23,37,84,0.04), 0 8px 20px rgba(23,37,84,0.06);
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.4em; letter-spacing: -0.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0f1b3d; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo .dot { color: var(--blue); }
.main-nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; font-size: 0.92rem; font-weight: 500; }
.main-nav a { color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-box { position: relative; }
.search-box input { background: var(--paper-dim); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--ink); font-size: 0.85rem; width: 200px; }
.search-box input::placeholder { color: var(--ink-soft); }
.cart-link { position: relative; display: flex; align-items: center; gap: 6px; font-weight: 600; background: var(--paper-dim); padding: 8px 16px; border-radius: 999px; }
.cart-badge { background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mobile-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; }

@media (max-width: 860px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 20px 20px; gap: 4px; }
    .main-nav.open { display: flex; }
    .mobile-toggle { display: block; }
    .search-box input { width: 140px; }
}

/* ---- Hero ---- */
.hero { position: relative; background: linear-gradient(135deg, #eef2fb 0%, #e7edfb 55%, #eaf0ff 100%); color: var(--ink); overflow: hidden; }
.hero-inner { position: relative; padding: 68px 0 84px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.12; margin-bottom: 18px; }
.hero h1 .highlight { background: #dbe6ff; padding: 2px 10px; border-radius: 8px; color: var(--blue-dark); }
.hero p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-mono); font-size: 1.3rem; color: var(--blue); }
.hero-stats div span { font-size: 0.78rem; color: var(--ink-soft); }

/* Slider */
.slider { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: #dde5fb; box-shadow: var(--shadow); }
.slider-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(.65,0,.35,1); }
.slide { min-width: 100%; height: 100%; position: relative; background: linear-gradient(135deg, var(--blue) 0%, var(--ink) 100%); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); color: #fff; font-size: 0.88rem; }
.slider-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; }
.slider-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); padding: 0; }
.slider-dots button.active { background: #fff; width: 20px; border-radius: 4px; }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* ---- Category pill rail ---- */
.pill-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.pill { flex: 0 0 auto; padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 0.85rem; font-weight: 500; white-space: nowrap; color: var(--ink-soft); }
.pill.active, .pill:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dark); }

/* ---- Product / course card ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.ticket {
    position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ticket:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(23,37,84,0.12); }
.ticket-media { position: relative; aspect-ratio: 1/1; background: linear-gradient(135deg, var(--blue) 0%, var(--ink) 100%); overflow: hidden; }
.ticket-media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-stamp {
    position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); color: var(--ink);
    font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.02em;
    padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.ticket-featured { position: absolute; top: 12px; right: 12px; background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.ticket-body { padding: 16px 16px 0; flex: 1; }
.ticket-body h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
.ticket-body p { font-size: 0.84rem; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-stub {
    margin-top: 14px; padding: 12px 16px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.ticket-price { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.ticket-price small { font-size: 0.68rem; color: var(--ink-soft); font-weight: 500; display: block; }
.ticket-actions { padding: 12px 16px 16px; display: flex; gap: 8px; }

/* ---- Aside / testimonials ---- */
.layout-2col { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .layout-2col { grid-template-columns: 1fr; } }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.aside-card .date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.aside-card h4 { font-size: 0.98rem; margin: 6px 0; }
.aside-card img { border-radius: 10px; margin-top: 8px; }

.testimonial { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }

/* ---- Forms ---- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 0.92rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.help-text { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.price-preview { background: var(--blue-pale); border: 1.5px solid #cddcff; border-radius: 10px; padding: 14px 18px; font-family: var(--font-mono); font-size: 1.1rem; margin-bottom: 18px; color: var(--blue-dark); }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e7f7f1; color: var(--teal); border: 1px solid #bfe8d8; }
.alert-error { background: #fdeceb; color: var(--clay); border: 1px solid #f5c6c0; }

/* ---- Cart ---- */
.cart-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--paper-dim); }
.cart-row .info { flex: 1; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 30px; height: 30px; background: var(--paper-dim); border: none; font-size: 1rem; }
.qty-stepper span { width: 32px; text-align: center; font-family: var(--font-mono); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { color: #fff; font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 12px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 0.86rem; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: #9db4ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; }

/* ---- Empty states ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h3 { color: var(--ink); }

/* ---- Utility ---- */
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-teal { background: #e7f7f1; color: var(--teal); }
.badge-gold { background: #fdf0dc; color: #a8710f; }
.badge-clay { background: #fdeceb; color: var(--clay); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
