/* ============================================
   COMMONPLACE COFFEE — Brand Styles
   Premium Dark Luxury · Emerald + Cream + Gold
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-deep: #070e0a;
  --bg-primary: #0a1a12;
  --bg-secondary: #0d2118;
  --bg-card: #0f2619;
  --bg-elevated: #132f1f;

  --cream: #f5f0e8;
  --cream-muted: #d4cfc5;
  --cream-dim: #a8a29e;

  --emerald: #10b981;
  --emerald-deep: #064e3b;
  --emerald-light: #34d399;

  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dim: #b8923f;
  --gold-glow: rgba(212, 168, 83, 0.15);

  --text-primary: #f5f0e8;
  --text-secondary: #a8a29e;
  --text-muted: #6b7280;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 30px rgba(212, 168, 83, 0.2);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* --- Section Utilities --- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 24px;
}

.text-gold { color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 168, 83, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 240, 232, 0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(7, 14, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

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

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

.nav__logo-text { color: var(--cream); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--cream-muted);
  transition: color 0.3s ease;
  position: relative;
}

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

.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease !important;
}

.nav__cta::after { display: none; }
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

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

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

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 14, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gold);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cream-muted);
  padding: 12px 24px;
  transition: color 0.3s ease;
}

.mobile-menu__link:hover { color: var(--gold); }

/* --- 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__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(6, 78, 59, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 168, 83, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 14, 10, 0.5) 0%,
    rgba(7, 14, 10, 0.3) 40%,
    rgba(7, 14, 10, 0.6) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero__accent {
  color: var(--gold);
  font-style: italic;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--cream-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.hero__meta-dot {
  color: var(--gold-dim);
  font-size: 1.2rem;
  line-height: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gold);
  animation: float 2.5s ease-in-out infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero__scroll:hover { opacity: 1; }

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

/* --- About --- */
.about {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

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

.about__image-wrap {
  position: relative;
}

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

.about__image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about__text { max-width: 520px; }

.about__text p {
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Menu --- */
.menu {
  padding: 120px 0;
  background: var(--bg-deep);
  position: relative;
}

.menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-deep), transparent);
}

.menu__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.menu__lead {
  color: var(--cream-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.menu__categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.menu__category {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.4s ease;
}

.menu__category:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu__cat-icon {
  margin-bottom: 20px;
  opacity: 0.8;
}

.menu__cat-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.menu__list { display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.menu__item-name {
  font-weight: 500;
  color: var(--cream);
  font-size: 0.95rem;
}

.menu__item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
  max-width: 180px;
}

.menu__note {
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.9rem;
  font-style: italic;
}

/* --- Gallery --- */
.gallery {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.gallery__header {
  text-align: center;
  margin-bottom: 64px;
}

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

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

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

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

.gallery__item--large {
  grid-column: span 5;
  grid-row: span 2;
}

.gallery__item--tall {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery__item:not(.gallery__item--large):not(.gallery__item--tall) {
  grid-column: span 3;
  grid-row: span 1;
}

/* --- Testimonials --- */
.testimonials {
  padding: 120px 0;
  background: var(--bg-deep);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-deep), transparent);
}

.testimonials .container { max-width: 1100px; }

.testimonials .section-heading {
  text-align: center;
  margin-bottom: 56px;
}

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

.testimonial {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s ease;
}

.testimonial:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.testimonial__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial__author {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

/* --- Visit --- */
.visit {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
}

.visit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

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

.visit__info { max-width: 480px; }

.visit__info .section-heading { margin-bottom: 40px; }

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

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

.visit__detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: var(--radius-sm);
}

.visit__detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.visit__detail-value {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.6;
}

.visit__link {
  color: var(--gold);
  transition: color 0.3s ease;
}

.visit__link:hover { color: var(--gold-light); }

.visit__map {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 168, 83, 0.1);
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-deep);
  border-top: 1px solid rgba(212, 168, 83, 0.1);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.footer__brand { max-width: 320px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--cream-muted);
  transition: color 0.3s ease;
}

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

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__link {
  color: var(--gold-dim);
  transition: color 0.3s ease;
}

.footer__link:hover { color: var(--gold); }

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .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; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about__grid { gap: 48px; }
  .menu__categories { gap: 20px; }
  .gallery__grid {
    grid-template-rows: repeat(2, 220px);
  }
  .gallery__item--large { grid-column: span 6; grid-row: span 2; }
  .gallery__item--tall { grid-column: span 3; grid-row: span 1; }
  .gallery__item:not(.gallery__item--large):not(.gallery__item--tall) {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__image { height: 500px; }
  .menu__categories { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { height: 360px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { height: 70px; }

  .hero__headline { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__eyebrow { font-size: 0.65rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__scroll { bottom: 20px; }

  .about { padding: 80px 0; }
  .about__image { height: 400px; }
  .about__image-accent { display: none; }
  .about__stats { flex-direction: column; gap: 24px; }

  .menu { padding: 80px 0; }
  .menu__category { padding: 28px 24px; }

  .gallery { padding: 80px 0; }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item--large { grid-column: span 2; grid-row: span 1; }
  .gallery__item--tall { grid-column: span 1; grid-row: span 1; }
  .gallery__item:not(.gallery__item--large):not(.gallery__item--tall) {
    grid-column: span 1;
  }
  .gallery__item img { height: 220px; }
  .gallery__item--large img { height: 300px; }

  .testimonials { padding: 80px 0; }

  .visit { padding: 80px 0; }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__meta { flex-direction: column; gap: 8px; }
  .hero__meta-dot { display: none; }
}
