/* ============================================
   Sunny Wheatfield Cafe — Styles
   Emerald Green + Cream | Editorial Serif
   ============================================ */

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

:root {
  --color-emerald-deep: #064e3b;
  --color-emerald: #065f46;
  --color-emerald-light: #059669;
  --color-emerald-muted: #d1fae5;
  --color-cream: #fef9f0;
  --color-cream-dark: #f5ecd7;
  --color-warm: #fef3c7;
  --color-text: #1a1a1a;
  --color-text-light: #4a4a4a;
  --color-text-muted: #6b7280;
  --color-white: #ffffff;
  --color-black: #000000;

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

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

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

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

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

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

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

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

/* ========== Typography ========== */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-emerald-deep);
  margin-bottom: var(--space-md);
}

.section-title--light {
  color: var(--color-cream);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-emerald-deep);
  color: var(--color-cream);
  border-color: var(--color-emerald-deep);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(254, 249, 240, 0.5);
}

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

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(6, 78, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: var(--space-xs) 0;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-cream);
}

.nav__logo-icon {
  color: var(--color-warm);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(254, 249, 240, 0.8);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-warm);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--color-cream);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-emerald-deep);
  background: var(--color-warm);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav__cta-btn:hover {
  background: var(--color-cream);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle-line {
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 78, 59, 0.88) 0%,
    rgba(6, 95, 70, 0.75) 40%,
    rgba(5, 150, 105, 0.55) 100%
  );
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 78, 59, 0.3) 0%,
    transparent 50%,
    rgba(6, 78, 59, 0.5) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: var(--space-md);
  animation: heroFadeIn 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-warm);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.hero__headline em {
  font-style: italic;
  color: var(--color-warm);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(254, 249, 240, 0.85);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(254, 249, 240, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(254,249,240,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== About ========== */
.about {
  padding: var(--space-3xl) 0;
  background: var(--color-cream);
}

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

.about__media {
  position: relative;
}

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

.about__img--main {
  height: 500px;
}

.about__img--accent {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 55%;
  border: 6px solid var(--color-cream);
  box-shadow: var(--shadow-md);
}

.about__text {
  padding: var(--space-md) 0;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ========== Menu ========== */
.menu {
  padding: var(--space-3xl) 0;
  background: var(--color-emerald-deep);
  position: relative;
  overflow: hidden;
}

.menu::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(254, 243, 207, 0.03);
  pointer-events: none;
}

.menu__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.menu__lead {
  font-size: 1.1rem;
  color: rgba(254, 249, 240, 0.7);
  line-height: 1.7;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.menu__card {
  background: rgba(254, 249, 240, 0.06);
  border: 1px solid rgba(254, 249, 240, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.menu__card:hover {
  background: rgba(254, 249, 240, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.menu__card--accent {
  background: rgba(254, 243, 207, 0.1);
  border-color: rgba(254, 243, 207, 0.2);
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.menu__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(254, 243, 207, 0.12);
  color: var(--color-warm);
  margin-bottom: var(--space-md);
}

.menu__card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.menu__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: rgba(254, 249, 240, 0.8);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(254, 249, 240, 0.08);
}

.menu__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu__list li span:first-child {
  font-weight: 500;
  color: var(--color-cream);
}

.menu__list li span:last-child {
  font-size: 0.8rem;
  color: rgba(254, 249, 240, 0.5);
  white-space: nowrap;
}

.menu__card-desc {
  font-size: 1rem;
  color: rgba(254, 249, 240, 0.7);
  line-height: 1.7;
  margin-top: var(--space-xs);
}

/* ========== Space ========== */
.space {
  padding: var(--space-3xl) 0;
  background: var(--color-cream);
}

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

.space__gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.space__gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.space__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.space__gallery-item:hover img {
  transform: scale(1.05);
}

.space__gallery-item--large {
  grid-row: 1 / 3;
}

.space__gallery-item--large img {
  height: 100%;
  min-height: 400px;
}

.space__gallery-item:not(.space__gallery-item--large) img {
  height: 220px;
}

.space__gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--color-cream);
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.space__gallery-item:hover .space__gallery-caption {
  opacity: 1;
}

.space__features {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.space__feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-emerald-deep);
}

.space__feature svg {
  color: var(--color-emerald-light);
}

/* ========== Visit ========== */
.visit {
  padding: var(--space-3xl) 0;
  background: var(--color-emerald-deep);
  position: relative;
}

.visit::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(254, 243, 207, 0.03);
  pointer-events: none;
}

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

.visit__info {
  padding: var(--space-md) 0;
}

.visit__info .section-title {
  margin-bottom: var(--space-lg);
}

.visit__address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(254, 249, 240, 0.85);
  margin-bottom: var(--space-md);
}

.visit__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-warm);
  margin-bottom: var(--space-lg);
  transition: color 0.3s ease;
}

.visit__phone:hover {
  color: var(--color-cream);
}

.visit__hours {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(254, 249, 240, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(254, 249, 240, 0.1);
}

.visit__hours h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}

.visit__hours p {
  font-size: 0.9rem;
  color: rgba(254, 249, 240, 0.7);
  line-height: 1.7;
}

.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-lg);
}

/* ========== Footer ========== */
.footer {
  background: #032d20;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(254, 249, 240, 0.1);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-cream);
}

.footer__brand p {
  font-size: 0.85rem;
  color: rgba(254, 249, 240, 0.5);
}

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

.footer__links a {
  font-size: 0.875rem;
  color: rgba(254, 249, 240, 0.6);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--color-cream);
}

.footer__contact a {
  font-size: 0.875rem;
  color: rgba(254, 249, 240, 0.6);
  transition: color 0.3s ease;
}

.footer__contact a:hover {
  color: var(--color-warm);
}

.footer__bottom {
  padding-top: var(--space-md);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(254, 249, 240, 0.35);
}

/* ========== Scroll Animations ========== */
.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) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__img--accent {
    position: relative;
    bottom: auto;
    right: auto;
    width: 40%;
    margin-top: var(--space-sm);
  }

  .menu__grid {
    grid-template-columns: 1fr;
  }

  .menu__card--accent {
    grid-column: span 1;
  }

  .space__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .space__gallery-item--large {
    grid-row: auto;
  }

  .space__gallery-item--large img {
    min-height: 280px;
  }

  .space__gallery-item:not(.space__gallery-item--large) img {
    height: 200px;
  }

  .visit__grid {
    grid-template-columns: 1fr;
  }

  .visit__map {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(6, 78, 59, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .hero__headline {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .about__img--main {
    height: 350px;
  }

  .about__img--accent {
    width: 50%;
    right: -10px;
    bottom: -20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .hero__content {
    padding: var(--space-sm);
  }

  .space__features {
    gap: var(--space-md);
  }
}

/* ========== Mobile overlay ========== */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.nav__overlay.active {
  display: block;
}
