/* ============================================
   EMBER & ROAST — Page-Specific Styles
   ============================================ */

/* =====================
   HOME PAGE
   ===================== */

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 3;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 6rem;
  position: relative;
  z-index: 2;
}
.hero-badge {
  font-family: var(--font-accent);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}
.hero-badge::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--color-ember);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, var(--fs-5xl));
  font-weight: var(--fw-regular);
  line-height: 1.05;
  color: var(--color-cream);
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}
.hero-title em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-amber);
  font-weight: var(--fw-light);
}
.hero-desc {
  font-family: var(--font-accent);
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--color-sand);
  max-width: 420px;
  margin: var(--space-xl) 0 var(--space-2xl);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}
.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeScale 1.5s var(--ease-out-expo) 0.2s forwards;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,10,8,0.4), transparent 60%);
  z-index: 1;
}
.hero-scroll {
  position: absolute;
  bottom: 3.5rem;
  left: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 4;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.3s forwards;
}
.hero-scroll span {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-stone);
  writing-mode: vertical-lr;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--color-mocha);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-ember);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* Marquee */
.marquee {
  background: var(--color-void);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-mocha);
  white-space: nowrap;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.marquee-dot {
  width: 3px;
  height: 3px;
  background: var(--color-ember);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Home Feature Grid */
.home-features { gap: var(--space-xl); }
.feature-number {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  color: var(--color-ember);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.feature-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}
.feature-text {
  font-family: var(--font-accent);
  font-size: var(--fs-base);
  color: var(--color-stone);
  line-height: var(--lh-relaxed);
}

/* =====================
   ABOUT PAGE
   ===================== */
.page-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary), rgba(10,10,8,0.5), transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
  color: var(--color-cream);
}
.page-hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--fs-lg);
  color: var(--color-sand);
  margin-top: var(--space-md);
  font-weight: var(--fw-light);
}

/* Story block */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.story-images {
  position: relative;
  height: 480px;
}
.story-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 72%;
  height: 78%;
  object-fit: cover;
  border: 4px solid var(--color-dark);
  box-shadow: var(--shadow-lg);
}
.story-img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  height: 52%;
  object-fit: cover;
  border: 4px solid var(--color-dark);
  box-shadow: var(--shadow-lg);
}
.story-year {
  position: absolute;
  bottom: 12%;
  left: 32%;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-ember);
  opacity: 0.12;
  line-height: 1;
}
.story-text {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--color-sand);
  margin: var(--space-lg) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-cream);
}
.stat-label {
  font-family: var(--font-accent);
  font-size: var(--fs-sm);
  color: var(--color-stone);
  margin-top: 0.2rem;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.value-card {
  padding: var(--space-xl);
  border: 1px solid var(--border-on-light);
  transition: all var(--duration-normal);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42,39,34,0.08);
}
.value-icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}
.value-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}
.value-text {
  font-family: var(--font-accent);
  font-size: var(--fs-base);
  color: var(--text-dark-muted);
  line-height: var(--lh-relaxed);
}

/* =====================
   MENU PAGE
   ===================== */
.menu-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}
.menu-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-ember);
  display: inline-block;
}

/* =====================
   PROCESS PAGE
   ===================== */
.process-steps {
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}
.process-step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  border: 1px solid var(--border-light);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-amber);
  position: relative;
  z-index: 1;
}
.process-step-content {}
.process-step-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}
.process-step-text {
  font-family: var(--font-accent);
  font-size: var(--fs-md);
  color: var(--color-stone);
  line-height: var(--lh-relaxed);
  max-width: 600px;
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}
.info-block { margin-bottom: var(--space-xl); }
.info-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
}
.info-value {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-light);
  color: var(--color-sand);
  line-height: var(--lh-relaxed);
}
.info-value a {
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-fast);
}
.info-value a:hover {
  color: var(--color-amber);
  border-color: var(--color-amber);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr { border-bottom: 1px solid var(--border-subtle); }
.hours-table td {
  padding: 0.7rem 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: var(--color-sand);
}
.hours-table td:last-child {
  text-align: right;
  font-weight: var(--fw-regular);
}
.hours-today td {
  color: var(--color-amber) !important;
  font-weight: var(--fw-medium) !important;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Responsive overrides ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 10rem 3rem 4rem; }
  .hero-visual { height: 50vh; }
  .story-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .story-images { height: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { padding: 8rem 1.25rem 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .hero-scroll { left: 1.25rem; }
  .page-hero { min-height: 40vh; }
  .stats-row { grid-template-columns: 1fr; gap: var(--space-md); }
  .process-steps::before { display: none; }
  .process-step { grid-template-columns: 1fr; }
}
