/* Coffee Roastery Landing — palette from app Assets/Colors */

:root {
  --espresso-dark: #1A1209;
  --espresso-mid: #2C1810;
  --roast-brown: #3E2723;
  --roast-brown-light: #5D4037;
  --copper-accent: #B87333;
  --copper-light: #D4894A;
  --cream-warm: #F5E6D3;
  --cream-light: #FFF8F0;
  --bean-green: #4A6741;
  --bean-green-light: #6B8F5E;
  --amber-glow: #E8A838;
  --amber-light: #F4C542;
  --steam-mist: #D7CCC8;
  --steam-light: #BCAAA4;
  --success-green: #2E7D32;

  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--espresso-dark);
  color: var(--cream-warm);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--amber-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cream-light); }

/* Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("assets/bg_hero.svg") center / cover no-repeat,
    linear-gradient(145deg, var(--espresso-dark) 0%, var(--espresso-mid) 45%, var(--roast-brown) 100%);
}

.steam {
  position: fixed;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 230, 211, 0.06) 0%, transparent 70%);
  animation: float-steam 8s ease-in-out infinite;
  pointer-events: none;
}
.steam-1 { top: 15%; left: 8%; animation-delay: 0s; }
.steam-2 { top: 60%; right: 10%; animation-delay: -3s; width: 160px; height: 160px; }
.steam-3 { bottom: 10%; left: 30%; animation-delay: -5s; width: 90px; height: 90px; }

@keyframes float-steam {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-24px) scale(1.08); opacity: 0.8; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(26, 18, 9, 0.82);
  border-bottom: 1px solid rgba(184, 115, 51, 0.2);
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-light);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--amber-light); }

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

.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--steam-mist);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: rgba(184, 115, 51, 0.2);
  color: var(--cream-light);
}
.nav-links a.active {
  background: rgba(244, 197, 66, 0.18);
  color: var(--amber-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--copper-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero / Marketing */
.hero {
  padding: 80px 24px 100px;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream-light);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--amber-light), var(--copper-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--steam-mist);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber-light), var(--copper-light));
  color: var(--espresso-dark);
  box-shadow: 0 8px 28px rgba(232, 168, 56, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(232, 168, 56, 0.5); color: var(--espresso-dark); }

.btn-ghost {
  border: 1.5px solid rgba(184, 115, 51, 0.5);
  color: var(--cream-warm);
  background: rgba(44, 24, 16, 0.5);
}
.btn-ghost:hover { border-color: var(--copper-light); background: rgba(184, 115, 51, 0.15); color: var(--cream-light); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(44, 24, 16, 0.65);
  border: 1px solid rgba(184, 115, 51, 0.25);
  min-width: 100px;
}
.stat-chip strong {
  font-size: 1.5rem;
  color: var(--amber-glow);
  line-height: 1.2;
}
.stat-chip span {
  font-size: 0.75rem;
  color: var(--steam-light);
  font-weight: 600;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(232, 168, 56, 0.18) 0%, transparent 55%),
    rgba(44, 24, 16, 0.7);
  border: 1.5px solid rgba(184, 115, 51, 0.35);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 248, 240, 0.08);
  animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 248, 240, 0.08); }
  50% { box-shadow: 0 28px 70px rgba(184, 115, 51, 0.25), inset 0 1px 0 rgba(255, 248, 240, 0.12); }
}

.hero-logo {
  width: 55%;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-orbit { position: absolute; inset: 0; }

.orbit-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(26, 18, 9, 0.85);
  border: 1px solid rgba(184, 115, 51, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.orbit-1 { top: 8%; right: 5%; animation: orbit-bob 3s ease-in-out infinite; }
.orbit-2 { bottom: 12%; left: 0; animation: orbit-bob 3.5s ease-in-out infinite -1s; }
.orbit-3 { bottom: 20%; right: 0; animation: orbit-bob 4s ease-in-out infinite -2s; }

@keyframes orbit-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* Features */
.features {
  padding: 80px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-head-left { text-align: left; margin-left: 0; margin-right: 0; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream-light);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--steam-mist);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(44, 24, 16, 0.72);
  border: 1px solid rgba(184, 115, 51, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 248, 240, 0.05);
  transition: transform var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 137, 74, 0.45);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(184, 115, 51, 0.15);
  border: 1px solid rgba(184, 115, 51, 0.25);
}
.feature-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--cream-light);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--steam-mist);
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  padding: 20px 28px;
  border-radius: 999px;
  background: rgba(26, 18, 9, 0.6);
  border: 1px solid rgba(184, 115, 51, 0.2);
  max-width: 680px;
  margin: 0 auto;
}
.pipeline span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-warm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pipe-dot {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper-accent), var(--amber-glow));
  border-radius: 2px;
}

/* Privacy */
.legal {
  padding: 80px 24px;
  background: rgba(26, 18, 9, 0.55);
  border-top: 1px solid rgba(184, 115, 51, 0.15);
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
}

.legal-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-body {
  padding: 36px;
  border-radius: var(--radius);
  background: rgba(44, 24, 16, 0.65);
  border: 1px solid rgba(184, 115, 51, 0.2);
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--amber-light);
  margin: 28px 0 10px;
}
.legal-body h3:first-of-type { margin-top: 0; }

.legal-body p, .legal-body li {
  font-size: 0.95rem;
  color: var(--steam-mist);
  margin-bottom: 12px;
}
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--cream-warm); }

/* Support */
.support {
  padding: 80px 24px 100px;
}

.support-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 20px;
  margin-top: 40px;
}

.support-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(44, 24, 16, 0.72);
  border: 1px solid rgba(184, 115, 51, 0.22);
}

.support-card-main {
  border-color: rgba(232, 168, 56, 0.35);
  background:
    radial-gradient(ellipse at top right, rgba(232, 168, 56, 0.08) 0%, transparent 60%),
    rgba(44, 24, 16, 0.75);
}

.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream-light);
  margin-bottom: 12px;
}
.support-card p { color: var(--steam-mist); font-size: 0.92rem; margin-bottom: 12px; }

.support-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber-light);
  margin: 8px 0 16px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(184, 115, 51, 0.15);
  border: 1px solid rgba(184, 115, 51, 0.3);
}
.support-email:hover { background: rgba(184, 115, 51, 0.25); color: var(--cream-light); }

.support-note { font-size: 0.82rem !important; color: var(--steam-light) !important; }

.faq-item {
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cream-warm);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--amber-glow);
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; font-size: 0.88rem; }

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 115, 51, 0.12);
  font-size: 0.88rem;
}
.info-list div:last-child { border-bottom: none; }
.info-list dt { color: var(--steam-light); font-weight: 500; }
.info-list dd { color: var(--cream-warm); font-weight: 600; text-align: right; }

/* Footer */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid rgba(184, 115, 51, 0.15);
  background: rgba(26, 18, 9, 0.9);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-warm);
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-brand:hover { color: var(--amber-light); }

.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--steam-mist);
  font-weight: 600;
}
.footer-nav a:hover { color: var(--cream-light); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--steam-light);
  margin-top: 8px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { width: min(300px, 80vw); }
  .legal-inner { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(26, 18, 9, 0.96);
    border: 1px solid rgba(184, 115, 51, 0.25);
    border-radius: var(--radius);
    padding: 12px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { text-align: center; padding: 12px; }

  .pipeline { border-radius: var(--radius); }
  .legal-body { padding: 24px; }
}
