/* ============================================
   Just Rewards Espresso — Stylesheet
   Bold editorial · Emerald & Cream
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background-color: #fefaf3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---------- FOCUS ---------- */
:focus-visible {
  outline: 2px solid #065f46;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

/* ---------- SECTION LABELS & TITLES ---------- */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #065f46;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0f2920;
  margin-bottom: 20px;
}

.section-title--light {
  color: #fefaf3;
}

.section-title--dark {
  color: #0f2920;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3d5a4c;
  max-width: 600px;
  margin-bottom: 16px;
}

.section-desc--light {
  color: #d1fae5;
}

.section-desc--dark {
  color: #4a6b5c;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn--primary {
  background: #065f46;
  color: #fefaf3;
  border: 2px solid #065f46;
}

.btn--primary:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
}

.btn--ghost {
  background: transparent;
  color: #fefaf3;
  border: 2px solid rgba(254, 250, 243, 0.5);
}

.btn--ghost:hover {
  background: rgba(254, 250, 243, 0.1);
  border-color: #fefaf3;
  transform: translateY(-2px);
}

.btn--light {
  background: #fefaf3;
  color: #065f46;
  border: 2px solid #fefaf3;
}

.btn--light:hover {
  background: transparent;
  color: #fefaf3;
  border-color: #fefaf3;
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: #fefaf3;
  border: 2px solid rgba(254, 250, 243, 0.4);
}

.btn--ghost-light:hover {
  background: rgba(254, 250, 243, 0.1);
  border-color: #fefaf3;
  transform: translateY(-2px);
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 250, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(6, 95, 70, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f2920;
}

.logo em {
  font-style: italic;
  font-weight: 600;
  color: #065f46;
}

.logo--light {
  color: #fefaf3;
}

.logo--light em {
  color: #6ee7b7;
}

/* NAV */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 100px;
  transition: all 0.25s ease;
}

.main-nav a:hover {
  background: rgba(6, 95, 70, 0.08);
  color: #065f46;
}

.nav-cta {
  background: #065f46 !important;
  color: #fefaf3 !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: #047857 !important;
  color: #fefaf3 !important;
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(6, 95, 70, 0.08);
}

.hamburger {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #0f2920;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #0f2920;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(254, 250, 243, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid rgba(6, 95, 70, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .main-nav a {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f2920;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 41, 32, 0.92) 0%,
    rgba(6, 95, 70, 0.80) 50%,
    rgba(15, 41, 32, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 120px 0 80px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 380px;
    align-items: center;
    padding: 0 64px;
  }
}

.hero-card {
  background: rgba(254, 250, 243, 0.07);
  border: 1px solid rgba(254, 250, 243, 0.15);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 560px;
}

@media (max-width: 1023px) {
  .hero-card {
    margin: 0 auto;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ee7b7;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fefaf3;
  margin-bottom: 20px;
}

.hero-headline em {
  font-style: italic;
  color: #6ee7b7;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #d1fae5;
  margin-bottom: 32px;
  max-width: 480px;
}

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

/* Floating stat cards */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 360px;
}

.stat-card {
  background: rgba(254, 250, 243, 0.1);
  border: 1px solid rgba(254, 250, 243, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(254, 250, 243, 0.15);
}

.stat-card--1 { transform: translateY(20px); }
.stat-card--2 { transform: translateY(-10px); }
.stat-card--3 { transform: translateY(5px); }
.stat-card--4 { transform: translateY(-20px); }

.stat-card:hover {
  transform: translateY(calc(var(--lift, 0) - 4px));
}

.stat-card--1 { --lift: 20px; }
.stat-card--2 { --lift: -10px; }
.stat-card--3 { --lift: 5px; }
.stat-card--4 { --lift: -20px; }

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #6ee7b7;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #d1fae5;
  letter-spacing: 0.04em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(254, 250, 243, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== CATEGORIES ========== */
.categories {
  padding: 100px 0;
  background: #fefaf3;
}

.categories .section-label,
.categories .section-title,
.categories .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.categories .section-desc {
  margin-bottom: 48px;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(6, 95, 70, 0.06);
  border: 1px solid rgba(6, 95, 70, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(6, 95, 70, 0.14);
}

.category-card-img {
  overflow: hidden;
  aspect-ratio: 3/2;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-img img {
  transform: scale(1.06);
}

.category-card-body {
  padding: 28px 28px 32px;
}

.category-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f2920;
  margin-bottom: 10px;
}

.category-card-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a6b5c;
}

/* ========== DRINKS HIGHLIGHT ========== */
.drinks-highlight {
  padding: 100px 0;
  background: #0f2920;
}

.drinks-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .drinks-layout {
    grid-template-columns: 45% 55%;
    gap: 64px;
  }
}

.drinks-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 7/9;
}

.drinks-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drinks-content .section-label {
  color: #6ee7b7;
}

.drinks-content .section-desc {
  margin-bottom: 32px;
}

.drinks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 480px) {
  .drinks-list {
    grid-template-columns: 1fr 1fr;
  }
}

.drinks-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drinks-list-icon {
  flex-shrink: 0;
  color: #6ee7b7;
}

.drinks-list-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d1fae5;
}

/* ========== PASTRIES ========== */
.pastries {
  padding: 100px 0;
  background: #f0f7f4;
}

.pastries .section-label,
.pastries .section-title {
  text-align: center;
}

.pastries .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
  max-width: 640px;
}

.pastries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .pastries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pastries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pastry-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(6, 95, 70, 0.06);
  border: 1px solid rgba(6, 95, 70, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pastry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(6, 95, 70, 0.12);
}

.pastry-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.pastry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pastry-card:hover .pastry-card-img img {
  transform: scale(1.06);
}

.pastry-card-body {
  padding: 24px;
}

.pastry-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f2920;
  margin-bottom: 8px;
}

.pastry-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #4a6b5c;
}

/* ========== ABOUT ========== */
.about {
  padding: 100px 0;
  background: #fefaf3;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 55% 45%;
    gap: 64px;
  }
}

.about-content .section-label {
  color: #065f46;
}

.about-content .section-desc {
  margin-bottom: 20px;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 16px 48px rgba(6, 95, 70, 0.12);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -32px;
  right: -16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(6, 95, 70, 0.18);
  border: 4px solid #fefaf3;
  aspect-ratio: 4/3;
  max-width: 260px;
}

.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .about-img-float {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    max-width: 100%;
  }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 100px 0;
  background: #0f2920;
}

.testimonials .section-label {
  color: #6ee7b7;
  text-align: center;
}

.testimonials .section-title {
  text-align: center;
  color: #fefaf3;
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: rgba(254, 250, 243, 0.06);
  border: 1px solid rgba(254, 250, 243, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(254, 250, 243, 0.1);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: #d1fae5;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: 0.02em;
}

/* ========== VISIT ========== */
.visit {
  padding: 100px 0;
  background: #065f46;
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .visit-layout {
    grid-template-columns: 45% 55%;
    gap: 48px;
    align-items: stretch;
  }
}

.visit-info {
  padding: 48px 40px;
  background: rgba(254, 250, 243, 0.07);
  border: 1px solid rgba(254, 250, 243, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 899px) {
  .visit-info {
    padding: 36px 28px;
  }
}

.visit-info .section-label {
  color: #6ee7b7;
}

.visit-info .section-desc {
  margin-bottom: 40px;
}

.visit-details {
  margin-bottom: 36px;
}

.visit-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(254, 250, 243, 0.1);
}

.visit-detail:first-child {
  padding-top: 0;
}

.visit-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.visit-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ee7b7;
  padding-top: 4px;
}

.visit-detail-value {
  font-size: 1rem;
  color: #d1fae5;
  line-height: 1.7;
}

.visit-link {
  color: #fefaf3;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(254, 250, 243, 0.3);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease;
}

.visit-link:hover {
  text-decoration-color: #fefaf3;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0;
}

.hours-day {
  color: #d1fae5;
  font-weight: 500;
}

.hours-time {
  color: #fefaf3;
  font-weight: 600;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visit-map {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

@media (min-width: 900px) {
  .visit-map {
    min-height: 100%;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: #071f17;
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
    gap: 48px;
  }
}

.footer-brand {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-tagline {
  font-size: 0.9rem;
  color: #6b9e88;
  margin-top: 12px;
  max-width: 260px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
  }
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b9e88;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #6ee7b7;
}

.footer-address {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-address {
    text-align: right;
  }
}

.footer-address p {
  font-size: 0.85rem;
  color: #4a7a66;
  line-height: 1.8;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
