/* ============================================
   B.Mocha Coffee Shop — Editorial Style
   Midnight Blue + Mint Palette
   ============================================ */

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

:root {
  --midnight: #0a1628;
  --midnight-light: #132240;
  --midnight-mid: #1a3058;
  --mint: #7ecba1;
  --mint-light: #a8dfc4;
  --mint-pale: #e2f5ea;
  --cream: #f7f5f0;
  --cream-dark: #ede9e0;
  --white: #ffffff;
  --text-dark: #0a1628;
  --text-mid: #3a4f6a;
  --text-light: #6b7f99;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --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);
  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 24px;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--midnight);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08); }

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--midnight);
}
.logo__icon { color: var(--midnight); }
.logo__icon svg { width: 32px; height: 32px; }

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav__link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--midnight); background: rgba(10, 22, 40, 0.05); }
.nav__link--cta {
  background: var(--midnight);
  color: var(--white) !important;
}
.nav__link--cta:hover { background: var(--midnight-light); }

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--midnight);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 80px;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
}
.hero__content { padding-right: 16px; }

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--midnight);
  margin-bottom: 24px;
}
.hero__headline em {
  font-style: italic;
  color: var(--mint);
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
}
.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(10, 22, 40, 0.12);
}

/* Hero Image */
.hero__image-wrap {
  position: relative;
}
.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(10, 22, 40, 0.18);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--mint);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.4;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--midnight);
  color: var(--white);
  border-color: var(--midnight);
}
.btn--primary:hover {
  background: var(--midnight-light);
  border-color: var(--midnight-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.25);
}
.btn--outline {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}
.btn--outline:hover {
  background: var(--midnight);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 12px;
}
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--midnight);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(10, 22, 40, 0.1);
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__content { }
.about__content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.about__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.about__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.about__feature-icon {
  width: 40px;
  height: 40px;
  background: var(--mint-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}

/* ---------- MENU ---------- */
.menu {
  padding: 100px 0;
  background: var(--cream);
}
.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
}
.menu-card__img {
  overflow: hidden;
  aspect-ratio: 400 / 280;
}
.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-card__img img { transform: scale(1.05); }
.menu-card__body { padding: 24px 28px 28px; }
.menu-card__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 8px;
}
.menu-card__desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 100px 0;
  background: var(--white);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; }
.gallery__item:nth-child(2) { grid-column: 7 / 13; grid-row: 1 / 2; }
.gallery__item:nth-child(3) { grid-column: 7 / 10; grid-row: 2 / 3; }
.gallery__item:nth-child(4) { grid-column: 10 / 13; grid-row: 2 / 3; }

/* ---------- VISIT ---------- */
.visit {
  padding: 100px 0;
  background: var(--midnight);
  color: var(--white);
}
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.visit .section-eyebrow { color: var(--mint); }
.visit .section-headline { color: var(--white); }
.visit__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}
.visit__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.visit__detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(126, 203, 161, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}
.visit__detail strong {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 4px;
}
.visit__detail p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.visit__detail a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}
.visit__detail a:hover { color: var(--mint); }

.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
}
.visit__map-placeholder {
  width: 100%;
  min-height: 400px;
  background: var(--midnight-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(126, 203, 161, 0.2);
}
.visit__map-icon { color: var(--mint); opacity: 0.6; }
.visit__map-placeholder p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  background: var(--cream);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__text p {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
}
.contact__email {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--midnight);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
.contact__email:hover { color: var(--mint); }

.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  border-color: var(--mint);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--mint-pale);
  color: #1a6b42;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--midnight);
  color: var(--white);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 280px;
}
.footer__brand .logo__icon { color: var(--white); }
.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__links strong, .footer__contact strong {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.footer__links ul, .footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a, .footer__contact a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer__links a:hover, .footer__contact a:hover { color: var(--white); }
.footer__contact li { color: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; line-height: 1.6; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__grid { gap: 32px; padding: 40px 0 60px; }
  .about__grid { gap: 40px; }
  .visit__grid { gap: 40px; }
  .contact__inner { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(10, 22, 40, 0.12);
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 1.0625rem; }
  .nav__link--cta { margin-top: 8px; text-align: center; }

  .hero__grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .hero__content { padding-right: 0; order: 2; }
  .hero__image-wrap { order: 1; }
  .hero__image { max-height: 420px; }
  .hero__image-accent { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__stats { gap: 16px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__image { max-height: 320px; }
  .about__image img { width: 100%; height: 100%; object-fit: cover; }

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

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .gallery__item:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
  .gallery__item:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
  .gallery__item:nth-child(4) { grid-column: 1 / 3; grid-row: auto; }

  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { min-height: 280px; }

  .contact__inner { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__headline { font-size: 2.125rem; }
  .hero__stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__stat-divider { width: 32px; height: 1px; }
  .section-headline { font-size: 1.875rem; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item:nth-child(1),
  .gallery__item:nth-child(4) { grid-column: auto; }
}
