/* ─── White Lion Coffee — Stylesheet ─────────────────────────────────────── */
/* Aesthetic: warm editorial / refined craft — parchment tones, ink typography */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

@import url("/css/auth-styles.css");
/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --cream-dist: #f5efe4;
  --cream:	#622a0f
  --parchment:  #ede3d2;
  --ink:        #1c1712;
  --espresso:   #3b2314;
  --lion:       #c8843a;
  --lion-light: #e8b06a;
  --muted:      #7a6a5a;
  --border:     #d9cebf;
  --white:      #fdfaf6;
  --white-tawney:      #3b270c;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --main-bg: url('/site/images/Emperor2.jpg');

  --radius: 4px;
  --transition: 0.25s ease;
  --shadow: 0 2px 16px rgba(28,23,18,.08);
  --shadow-lg: 0 8px 40px rgba(28,23,18,.14);
}

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  /* overflow-x: hidden; */
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem,  4vw, 3rem);  }
h3 { font-size: 1.5rem; }

p { max-width: 65ch; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border: 2px solid var(--lion);
  background: transparent;
  color: var(--lion);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn:hover { background: var(--lion); color: var(--white); }
.btn-filled { background: var(--lion); color: var(--white); }
.btn-filled:hover { background: var(--espresso); border-color: var(--espresso); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--white); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: clip;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--espresso);
  font-weight: 400;
  letter-spacing: .02em;
}
.nav-logo span { color: var(--lion); font-style: normal; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--lion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  padding: .4rem;
  color: var(--espresso);
  transition: color var(--transition);
}
.nav-cart:hover { color: var(--lion); }
.cart-count {
  position: absolute;
  top: -2px; right: -4px;
  background: var(--lion);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-count.visible { display: flex; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/*  #var(--espresso); */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--espresso);
  background-image: url("/site/images/Emperor2.jpg");
  background-size: cover;
  background-position: center;  
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200,132,58,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(200,132,58,.10) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  animation: fadeUp .9s ease both;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lion-light);
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--lion-light);
}
.hero p {
  /* color: rgba(245,239,228,.65);*/
  color: var(--white-tawney);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Decorative line pattern */
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: 10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(200,132,58,.15);
}
.hero::after {
  content: '';
  position: absolute;
  right: 40px; top: 20%;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(200,132,58,.10);
}

/* ── Section Base ─────────────────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--parchment); }
.section-dark { background: var(--espresso); }

.section-header {
  margin-bottom: 3.5rem;
}
.section-header .eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lion);
  font-weight: 500;
  display: block;
  margin-bottom: .6rem;
}
.section-dark .section-header h2,
.section-dark p { color: var(--cream); }
.section-dark .eyebrow { color: var(--lion-light); }

/* ── About / Story ────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-visual-box {
  aspect-ratio: 4/5;
  background: var(--espresso);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-placeholder {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(200,132,58,.3);
  font-style: italic;
}
.about-visual-box::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--lion);
  border-radius: 2px;
  z-index: -1;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p  { margin-bottom: 1.25rem; color: var(--muted); }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--lion);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
  display: block;
}

/* ── Menu ─────────────────────────────────────────────────────────────────── */
.menu-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.menu-tab {
  padding: .5rem 1.25rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
}
.menu-tab:hover  { border-color: var(--lion); color: var(--lion); }
.menu-tab.active { background: var(--lion); border-color: var(--lion); color: var(--white); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.menu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.menu-card-info h3 {
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.menu-card-info p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: none;
}
.menu-card-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--lion);
  white-space: nowrap;
  font-weight: 600;
}
.menu-add-btn {
  margin-top: 1rem;
  padding: .4rem 1rem;
  font-size: .75rem;
}
.loading-state, .error-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

/* ── Cart Panel ───────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,23,18,.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-panel-header h3 { font-size: 1.25rem; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: .25rem;
}
.cart-close:hover { color: var(--ink); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-name { font-size: .9rem; font-weight: 500; margin-bottom: .15rem; }
.cart-item-price { font-size: .8rem; color: var(--muted); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  background: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--lion); color: var(--lion); }
.qty-num { font-size: .85rem; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.cart-total-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--espresso);
}
.cart-checkout-btn { width: 100%; }

/* ── Checkout Form ────────────────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--lion); }
.form-group textarea { resize: vertical; min-height: 90px; }

.order-summary-box {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 90px;
}
.order-summary-box h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .5rem 0;
  color: var(--muted);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 1rem;
  padding-top: 1rem;
  margin-top: .5rem;
  border-top: 1px solid var(--border);
}

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--lion);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--lion);
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .15rem; }
.contact-detail-text span { font-size: .85rem; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(245,239,228,.55);
  padding: 4rem 0 2rem;
  overflow-x: clip;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--cream); font-size: 1.35rem; }
.footer-brand p { font-size: .85rem; margin-top: 1rem; max-width: 28ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  color: rgba(245,239,228,.55);
  margin-bottom: .5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--lion-light); }
.footer-bottom {
  border-top: 1px solid rgba(245,239,228,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
}

/* ── Toast Notification ───────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.toast {
  background: var(--ink);
  color: var(--white);
  padding: .875rem 1.5rem;
  border-radius: var(--radius);
  font-size: .875rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-left: 3px solid var(--lion);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: #6aab6a; }
.toast.error   { border-color: #c05a5a; }

/* ── Page Sections Visibility ─────────────────────────────────────────────── */
.page { display: none; animation: fadeUp .5s ease both; }
.page.active { display: block; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid, .checkout-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-visual-box::after { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}
