/* ───────────────────────────────────────────
   QT Coffee Company — Stylesheet
   Palette: Emerald (#064E3B) + Cream (#F5F0E8)
   Fonts: Playfair Display + Inter
─────────────────────────────────────────── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #F5F0E8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── CUSTOM PROPERTIES ── */
:root {
  --emerald:     #064E3B;
  --emerald-deep:#033628;
  --emerald-light:#0A7A5C;
  --cream:       #F5F0E8;
  --cream-dark:  #E8E0D0;
  --cream-light: #FAF8F4;
  --dark:        #1a1a1a;
  --dark-mute:   #3a3a3a;
  --gold:        #C8A96E;
  --gold-light:  #D4BA8A;
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; }
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: var(--gold-light); }
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.section-title--dark { color: var(--dark); }
.section-title--light { color: var(--cream); }
.text-accent { color: var(--emerald-light); }
.text-accent-light { color: var(--gold-light); }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn--light {
  background: var(--cream);
  color: var(--emerald);
}
.btn--light:hover { background: var(--gold-light); color: var(--emerald-deep); transform: translateY(-2px); }
.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,240,232,0.5);
}
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(245,240,232,0.1); transform: translateY(-2px); }
.btn--dark {
  background: var(--emerald);
  color: var(--cream);
}
.btn--dark:hover { background: var(--emerald-deep); transform: translateY(-2px); }
.btn--outline-dark {
  background: transparent;
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
}
.btn--outline-dark:hover { background: var(--emerald); color: var(--cream); transform: translateY(-2px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6,78,59,0.0);
  transition: background var(--transition), box-shadow var(--transition);
}
.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);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245,240,232,0.8);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--cream); }
.nav-link--cta {
  background: var(--cream);
  color: var(--emerald);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-link--cta:hover { background: var(--gold-light); color: var(--emerald-deep); }
.nav-toggle {
  display: none;
  color: var(--cream);
  padding: 0.25rem;
}

/* ── 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-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3,54,40,0.55) 0%,
    rgba(6,78,59,0.70) 50%,
    rgba(3,54,40,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
  color: var(--cream);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.hero-title-accent {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(245,240,232,0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--cream);
  opacity: 0.6;
  animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── ABOUT ── */
.about {
  padding: 7rem 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(6,78,59,0.15);
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.about-text { padding: 1rem 0; }
.about-text p {
  color: var(--dark-mute);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--dark-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── MENU ── */
.menu {
  padding: 7rem 0;
  background: var(--cream-light);
}
.menu-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.menu-header p {
  color: var(--dark-mute);
  font-size: 1.1rem;
  line-height: 1.7;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.menu-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(6,78,59,0.12);
}
.menu-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-card:hover .menu-card-img img { transform: scale(1.05); }
.menu-card-body {
  padding: 2rem;
}
.menu-card-title {
  font-size: 1.5rem;
  color: var(--emerald);
  margin-bottom: 0.75rem;
}
.menu-card-desc {
  font-size: 0.95rem;
  color: var(--dark-mute);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.menu-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.menu-card-list li {
  font-size: 0.875rem;
  color: var(--dark);
  padding-left: 1rem;
  position: relative;
}
.menu-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--emerald-light);
  border-radius: 50%;
}

/* ── SHOP ── */
.shop {
  padding: 7rem 0;
  background: var(--emerald);
  color: var(--cream);
}
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.shop-text { padding: 1rem 0; }
.shop-text .section-eyebrow { color: var(--gold-light); }
.shop-desc {
  color: rgba(245,240,232,0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.shop-text .btn { margin-top: 1.5rem; }
.shop-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.shop-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.shop-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.shop-img-secondary {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-top: -3rem;
  margin-left: 2rem;
  position: relative;
  z-index: 1;
}
.shop-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 7rem 0;
  background: var(--emerald-deep);
  color: var(--cream);
  text-align: center;
}
.testimonials .section-title { margin-bottom: 3.5rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}
.testimonial-card {
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition);
}
.testimonial-card:hover { background: rgba(245,240,232,0.1); }
.testimonial-quote {
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245,240,232,0.85);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

/* ── VISIT ── */
.visit {
  padding: 7rem 0;
  background: var(--cream);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.visit-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.visit-icon {
  flex-shrink: 0;
  color: var(--emerald);
  margin-top: 0.15rem;
}
.visit-detail strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.35rem;
}
.visit-detail p {
  color: var(--dark-mute);
  font-size: 1rem;
  line-height: 1.6;
}
.visit-detail a {
  color: var(--emerald-light);
  transition: color var(--transition);
}
.visit-detail a:hover { color: var(--emerald); text-decoration: underline; }
.visit-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(6,78,59,0.12);
  min-height: 400px;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 4rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.1);
}
.footer-logo-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--cream);
}
.footer-logo-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.footer-tagline {
  color: rgba(245,240,232,0.5);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }
.footer-contact p {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.7;
}
.footer-contact a {
  color: var(--gold-light);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.35);
}

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--emerald-deep);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }
  .nav-links.open { right: 0; }
  .nav-link { color: var(--cream); font-size: 1.1rem; }
  .nav-link--cta {
    background: var(--cream);
    color: var(--emerald);
    padding: 0.75rem 1.5rem;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-overlay.active { opacity: 1; pointer-events: all; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid,
  .shop-layout,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-wrap { max-width: 500px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .menu-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .shop-img-secondary { margin-left: 0; margin-top: -2rem; }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── SCROLL REVEAL (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s 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);
  }
}
