/* Coffee'n High Tech — Shared styles & animations */
:root {
  --espresso: #2d1810;
  --crema: #c4a77d;
  --foam: #e8dcc8;
  --charcoal: #1a1a1a;
  --gold: #b8860b;
  --gold-light: #d4af37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  background: var(--charcoal);
  color: var(--foam);
  overflow-x: hidden;
}

/* Background layers */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 167, 125, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(184, 134, 11, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(196, 167, 125, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 1; transform: scale(1.02); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 167, 125, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 167, 125, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 167, 125, 0.15);
  transform: translateY(-100%);
  animation: navSlideDown 0.8s ease-out 0.3s forwards;
}

@keyframes navSlideDown {
  to { transform: translateY(0); }
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--crema);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s, transform 0.3s;
}

.nav-logo span { font-style: italic; color: var(--gold-light); }
.nav-logo:hover { color: var(--gold-light); transform: scale(1.02); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(232, 220, 200, 0.9);
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.4s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Utility: animated on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.visible {
  animation: revealUp 0.8s ease-out forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--foam);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.btn-primary {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-light);
}

.btn-primary:hover {
  background: rgba(212, 175, 55, 0.35);
}

/* Section spacing */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--foam);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(232, 220, 200, 0.75);
  text-align: center;
  max-width: 50ch;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(196, 167, 125, 0.2);
  font-size: 0.85rem;
  color: rgba(232, 220, 200, 0.6);
}

.site-footer a {
  color: var(--crema);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }
