/* ============================================
   Grind Coffee Company — Styles
   Emerald Green + Cream Palette
   ============================================ */

*, *::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;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --cream-50:  #faf9f6;
  --cream-100: #f5f3ed;
  --cream-200: #ebe8df;
  --cream-300: #e0dbd0;

  --stone-950: #0c0e0d;
  --stone-900: #111413;
  --stone-800: #1a1e1c;
  --stone-700: #2d3330;
  --stone-600: #4a524d;
  --stone-500: #6b7570;
  --stone-400: #9ca8a0;
  --stone-300: #c4cdc6;
  --stone-200: #e2e8e4;
  --stone-100: #f0f3f1;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-800);
  background: var(--cream-50);
}

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

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--emerald {
  background: var(--emerald-700);
  color: #ffffff;
  border: 2px solid var(--emerald-700);
}

.btn--emerald:hover {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--stone-800);
  border: 2px solid var(--stone-300);
}

.btn--outline:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-800);
  background: var(--emerald-50);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

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

/* ============================================
   SECTION LABELS & HEADINGS
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--stone-900);
  margin-bottom: 20px;
}

.section-heading--center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--stone-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

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

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--stone-900);
  font-weight: 400;
  transition: color var(--transition-fast);
}

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

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone-700);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__menu a:not(.btn):hover {
  color: var(--emerald-700);
}

.nav__menu a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-600);
  transition: width var(--transition-base);
}

.nav__menu a:not(.btn):hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--stone-700);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--cream-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

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

  .nav__menu a {
    font-size: 1.0625rem;
  }
}

/* ============================================
   HERO — Split layout
   ============================================ */
.hero {
  padding-top: 68px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream-50);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-800);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-600);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--stone-900);
  margin-bottom: 24px;
  max-width: 540px;
}

.hero__subheadline {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--stone-600);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--stone-900);
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--stone-500);
  letter-spacing: 0.02em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--cream-300);
  flex-shrink: 0;
}

.hero__image-wrap {
  position: relative;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 640 / 720;
}

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

.hero__image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--emerald-100);
  border-radius: var(--radius-lg);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px;
  }

  .hero__image-wrap {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero__stats {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

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

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--cream-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image-stack {
  position: relative;
}

.about__image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 520 / 620;
}

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

.about__image-secondary {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream-50);
  aspect-ratio: 320 / 240;
}

.about__image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-seal {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 64px;
  height: 64px;
  background: var(--emerald-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.about__text-col .section-heading {
  margin-bottom: 24px;
}

.about__text-col > p {
  color: var(--stone-600);
  margin-bottom: 16px;
  font-size: 1.0rem;
  line-height: 1.75;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.value-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
}

.value-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: 2px;
}

.value-card__desc {
  font-size: 0.875rem;
  color: var(--stone-500);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__image-stack {
    max-width: 480px;
  }
}

/* ============================================
   MENU
   ============================================ */
.menu {
  padding: 100px 0;
  background: var(--stone-900);
}

.menu__header {
  text-align: center;
  margin-bottom: 56px;
}

.menu__header .section-label {
  color: var(--emerald-400);
}

.menu__header .section-heading {
  color: #ffffff;
}

.menu__header .section-subtitle {
  color: var(--stone-400);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.menu-card {
  background: var(--stone-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone-700);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.menu-card__img {
  aspect-ratio: 480 / 320;
  overflow: hidden;
}

.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.menu-card:hover .menu-card__img img {
  transform: scale(1.05);
}

.menu-card__body {
  padding: 28px;
}

.menu-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.menu-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone-700);
}

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

.menu-card__list li span:first-child {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stone-200);
}

.menu-card__list li span:last-child {
  font-size: 0.8125rem;
  color: var(--stone-500);
  text-align: right;
  flex-shrink: 0;
}

.menu__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--stone-500);
  line-height: 1.6;
}

.menu__note strong {
  color: var(--stone-300);
}

@media (max-width: 900px) {
  .menu__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 100px 0;
  background: var(--cream-50);
}

.gallery .section-label,
.gallery .section-heading {
  text-align: center;
  display: block;
  margin-bottom: 8px;
}

.gallery .section-heading {
  margin-bottom: 48px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 400 / 400;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 800 / 400;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
}

/* ============================================
   VISIT / CONTACT
   ============================================ */
.visit {
  padding: 100px 0;
  background: var(--cream-100);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit__desc {
  font-size: 1.0rem;
  color: var(--stone-600);
  line-height: 1.75;
  margin-bottom: 36px;
}

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.visit__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit__detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
}

.visit__detail strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-500);
  margin-bottom: 4px;
}

.visit__detail p {
  font-size: 0.9375rem;
  color: var(--stone-800);
  line-height: 1.6;
}

.visit__detail a {
  color: var(--emerald-700);
  transition: color var(--transition-fast);
}

.visit__detail a:hover {
  color: var(--emerald-600);
  text-decoration: underline;
}

/* Form */
.visit__form-col {
  position: relative;
}

.visit__form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-200);
}

.visit__form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--stone-900);
  margin-bottom: 8px;
}

.visit__form-desc {
  font-size: 0.9375rem;
  color: var(--stone-500);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone-700);
  letter-spacing: 0.02em;
}

.form__input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--stone-900);
  background: var(--cream-50);
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

.form__input:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form__input::placeholder {
  color: var(--stone-400);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  color: var(--emerald-800);
  font-size: 0.875rem;
  font-weight: 500;
}

.form__success svg {
  flex-shrink: 0;
  color: var(--emerald-600);
}

@media (max-width: 900px) {
  .visit__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .visit__form-card {
    padding: 24px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--stone-800);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer__logo-icon {
  color: var(--emerald-500);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--stone-500);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-300);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9375rem;
  color: var(--stone-500);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.footer__links--contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}

.footer__hours li span:first-child {
  color: var(--stone-400);
}

.footer__hours li span:last-child {
  color: var(--stone-300);
  font-weight: 500;
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--stone-600);
}

.footer__bottom a {
  color: var(--stone-500);
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--emerald-400);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .menu-card:hover img,
  .gallery__item:hover img {
    transform: none;
  }
}
