/* ============================================
   GROUNDWORK COFFEE — Warm Editorial Aesthetic
   ============================================ */

:root {
  --espresso: #2b1a12;
  --espresso-soft: #3d2818;
  --cream: #f5efe6;
  --cream-deep: #ebe1d1;
  --copper: #b8743d;
  --copper-bright: #d4894d;
  --text-dark: #2b1a12;
  --text-muted: #6b5849;
  --text-light: #d9ccba;
  --line: rgba(43, 26, 18, 0.12);
  --line-light: rgba(245, 239, 230, 0.15);
  --maxw: 1280px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

/* ---- Shared ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 1.2rem;
}
.eyebrow.dark { color: var(--copper); }
.eyebrow.light { color: var(--copper-bright); }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 1rem;
}
.section-lead.light { color: var(--text-light); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(245, 239, 230, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f5efe6;
  transition: color 0.4s ease;
}
.logo.light { color: var(--espresso); }
.nav.scrolled .logo { color: var(--espresso); }

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 239, 230, 0.85);
  transition: color 0.3s ease;
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--copper);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--copper); }

.btn-nav {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid rgba(245, 239, 230, 0.5);
  border-radius: 100px;
  color: #f5efe6;
  transition: all 0.3s ease;
}
.nav.scrolled .btn-nav {
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-nav:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out infinite alternate;
}
@keyframes heroZoom {
  to { transform: scale(1.15); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(43,26,18,0.85) 0%, rgba(43,26,18,0.6) 45%, rgba(43,26,18,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-top: 6rem;
}
.hero-content .eyebrow {
  color: var(--copper-bright);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  color: #f7f1e8;
  font-weight: 300;
  max-width: 900px;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--copper-bright);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(245, 239, 230, 0.82);
  max-width: 520px;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  background: var(--copper);
  color: #fff;
  border-radius: 100px;
  border: 1.5px solid var(--copper);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 116, 61, 0.35);
}
.btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #f5efe6;
  border-radius: 100px;
  border: 1.5px solid rgba(245, 239, 230, 0.4);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  border-color: #f5efe6;
  background: rgba(245, 239, 230, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(245, 239, 230, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,239,230,0.6), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px; left: 0;
  width: 100%; height: 40px;
  background: var(--copper-bright);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  to { top: 40px; }
}

/* ---- MARQUEE ---- */
.marquee {
  background: var(--espresso);
  color: var(--cream);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 300;
  animation: marquee 30s linear infinite;
}
.marquee .dot { color: var(--copper-bright); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---- STORY ---- */
.story {
  padding: 7rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story-text h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 1.6rem;
  color: var(--espresso);
}
.story-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.story-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--copper);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}
.story-img-wrap {
  position: relative;
}
.story-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}
.img-tag {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-family: var(--sans);
}

/* ---- COFFEE / CARDS ---- */
.coffee {
  background: var(--cream-deep);
  padding: 7rem 2rem;
}
.section-head {
  max-width: var(--maxw);
  margin: 0 auto 4rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--espresso);
}
.section-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.card {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(43, 26, 18, 0.15);
}
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,26,18,0.3), transparent 50%);
}
.card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-origin {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.card-body h3 {
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 0.7rem;
}
.card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.4rem;
}
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--espresso);
}
.weight {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- BREW ---- */
.brew {
  background: var(--espresso);
  color: var(--cream);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}
.brew::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,116,61,0.15), transparent 70%);
  border-radius: 50%;
}
.brew-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.brew-head {
  text-align: center;
  margin-bottom: 4rem;
}
.brew-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--cream);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.step {
  position: relative;
  padding-top: 1rem;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--copper-bright);
}
.step-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--copper-bright);
  display: block;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.step p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- VISIT ---- */
.visit {
  padding: 7rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.visit-info h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--espresso);
  margin-bottom: 2rem;
}
.visit-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}
.detail {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 1rem;
}
.detail svg {
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 2px;
}
.detail strong {
  color: var(--espresso);
  font-weight: 600;
}
.visit-img-wrap {
  height: 480px;
  overflow: hidden;
  border-radius: 4px;
}
.visit-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visit .btn-primary {
  background: var(--espresso);
  border-color: var(--espresso);
}
.visit .btn-primary:hover {
  background: var(--copper);
  border-color: var(--copper);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--espresso);
  color: var(--text-light);
  padding: 5rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 280px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--copper-bright); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(217, 204, 186, 0.5);
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .story-grid, .visit-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-stats { gap: 2rem; }
  .story-img, .visit-img-wrap { height: 360px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .story, .coffee, .brew, .visit { padding: 4.5rem 1.5rem; }
  .hero { padding: 0 1.5rem; }
}
