/* ============================================
   Mr. T's Produce and Cafe — Stylesheet
   Bold editorial · Emerald + Cream
   ============================================ */

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

:root {
  --emerald-950: #042f23;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --cream-50:  #fafaf5;
  --cream-100: #f5f5e8;
  --cream-200: #ede8d4;
  --cream-300: #e0d8be;
  --gold-600:  #d97706;
  --gold-700:  #b45309;
  --gold-500:  #f59e0b;
  --text-dark: #1a1a1a;
  --text-mid:  #3d3d3d;
  --text-light:#6b6b6b;
  --white:     #ffffff;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius:  0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--emerald-900);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-md);
}

/* ---------- TYPOGRAPHY ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-md);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--emerald-900);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--emerald-900);
}

.logo-dot {
  color: var(--gold-600);
  font-weight: 900;
}

.logo-text--light {
  color: var(--cream-50);
}

.logo-icon {
  flex-shrink: 0;
}

/* NAV */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-600);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--emerald-800);
}

.nav-list a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--emerald-900);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  background: var(--emerald-700);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald-900);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

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

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--emerald-900);
  color: var(--white);
  border-color: var(--emerald-900);
}
.btn-primary:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--emerald-900);
  border-color: var(--emerald-900);
}
.btn-outline:hover {
  background: var(--emerald-900);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--cream-50);
  color: var(--emerald-900);
  border-color: var(--cream-50);
}
.btn-light:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- HERO ---------- */
.hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background: var(--cream-50);
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-lg);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--emerald-900);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.025em;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold-600);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--emerald-900);
  overflow: hidden;
  padding: var(--space-md) 0;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  gap: var(--space-lg);
  animation: marquee-scroll 24s linear infinite;
}

.marquee span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream-200);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.marquee .sep {
  color: var(--gold-600);
  font-size: 0.625rem;
  align-self: center;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--space-4xl) 0;
  background: var(--cream-100);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: var(--space-lg);
}

.about-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--cream-300);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-900);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--cream-300);
}

/* ---------- PRODUCTS ---------- */
.products {
  padding: var(--space-4xl) 0;
  background: var(--cream-50);
}

.products-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: var(--space-xl);
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: var(--space-sm);
}

.product-card-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ---------- CAFE ---------- */
.cafe {
  padding: var(--space-4xl) 0;
  background: var(--emerald-900);
  color: var(--cream-50);
}

.cafe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.cafe .section-eyebrow {
  color: var(--gold-500);
}

.cafe .section-headline {
  color: var(--cream-50);
}

.cafe-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--cream-200);
  margin-bottom: var(--space-lg);
}

.cafe-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.cafe-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cream-200);
}

.cafe-features li svg {
  flex-shrink: 0;
  color: var(--gold-500);
}

.cafe-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- VISIT ---------- */
.visit {
  padding: var(--space-4xl) 0;
  background: var(--cream-100);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.visit-details {
  font-style: normal;
  margin-bottom: var(--space-2xl);
}

.visit-address,
.visit-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.0625rem;
  color: var(--text-mid);
  margin-bottom: var(--space-md);
}

.visit-address svg,
.visit-phone svg {
  flex-shrink: 0;
  color: var(--emerald-700);
}

.visit-phone a {
  font-weight: 600;
  color: var(--emerald-900);
  transition: color var(--transition);
}

.visit-phone a:hover {
  color: var(--gold-600);
}

.visit-hours {
  margin-bottom: var(--space-2xl);
}

.visit-hours-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: var(--space-md);
}

.hours-list {
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--cream-300);
  font-size: 0.9375rem;
}

.hours-day {
  color: var(--text-dark);
  font-weight: 500;
}

.hours-time {
  color: var(--text-mid);
}

.btn-map {
  width: fit-content;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.visit-map iframe {
  width: 100%;
  height: 450px;
  display: block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--emerald-950);
  color: var(--cream-200);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--cream-300);
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--cream-300);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-500);
}

.footer-contact p {
  font-size: 0.9375rem;
  color: var(--cream-300);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.footer-contact a {
  color: var(--gold-500);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--gold-600);
}

.footer-bottom {
  padding-top: var(--space-xl);
}

.footer-bottom-inner {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--cream-300);
  opacity: 0.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .cafe-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .cafe-features {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    box-shadow: var(--shadow-lg);
    padding: 100px var(--space-xl) var(--space-xl);
    transition: right var(--transition);
    z-index: 999;
  }

  .site-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-list a {
    font-size: 1.125rem;
  }

  .hero {
    padding: var(--space-2xl) 0;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat-divider {
    display: none;
  }

  .visit-map iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section-headline {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  .product-card:hover .product-card-image img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
  }
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
