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

:root {
  --blue: #1a237e;
  --blue-mid: #283593;
  --blue-accent: #3949ab;
  --blue-pale: #e8eaf6;
  --navy: #0d1462;
  --dark: #111111;
  --mid: #333333;
  --muted: #666666;
  --border: #e0e0e0;
  --light-bg: #f0f4ff;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--blue);
  transition: background 0.18s, border-color 0.18s;
}
.btn-primary:hover { background: var(--blue-mid); border-color: var(--blue-mid); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color 0.18s, color 0.18s;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-primary-dark {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--blue);
  transition: background 0.18s;
}
.btn-primary-dark:hover { background: var(--blue-mid); border-color: var(--blue-mid); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 3px solid rgba(255,255,255,0.25);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 52px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-hours {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

.nav-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-phone:hover { color: var(--blue-pale); }

.nav-cta {
  background: var(--white);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  transition: background 0.18s;
}
.nav-cta:hover { background: var(--blue-pale); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1462 0%, #1a237e 50%, #283593 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,20,98,1) 0%, rgba(13,20,98,0.92) 40%, rgba(13,20,98,0.4) 70%, rgba(13,20,98,0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  width: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.h1-brand {
  display: block;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.22em;
  font-size: 0.38em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2em;
  text-shadow: none;
}

.h1-name {
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-divider { opacity: 0.4; }

/* ── Section labels ───────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-label--light { color: rgba(255,255,255,0.65); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 3rem;
}
.section-title--light { color: var(--white); }

/* ── Services ─────────────────────────────────────────────── */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s;
}

@media (hover: hover) {
  .service-card:hover {
    box-shadow: 0 8px 24px rgba(26,35,126,0.1);
  }
}

.service-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-accent);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery {
  padding: 0;
  background: var(--blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px;
  gap: 6px;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

/* Placeholder gradient variations */
.ph-1 { background: linear-gradient(135deg, #1a237e 0%, #283593 100%); }
.ph-2 { background: linear-gradient(135deg, #0d1462 0%, #1a237e 100%); }
.ph-3 { background: linear-gradient(135deg, #283593 0%, #3949ab 100%); }
.ph-4 { background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%); }
.ph-5 { background: linear-gradient(135deg, #0d1462 0%, #1a237e 100%); }
.ph-6 { background: linear-gradient(135deg, #1a237e 0%, #283593 100%); }
.ph-7 { background: linear-gradient(135deg, #3949ab 0%, #1a237e 100%); }
.ph-8 { background: linear-gradient(135deg, #283593 0%, #0d1462 100%); }

/* When replacing placeholders with <img>: add object-fit: cover; width: 100%; height: 100%; */

/* ── About ────────────────────────────────────────────────── */
.about {
  padding: 5rem 0;
  background: var(--light-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: center;
}

.about-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text .btn-primary-dark { margin-top: 0.75rem; }

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #c5cae9 0%, #e8eaf6 50%, #c5cae9 100%);
  /* Replace with: background-image: url('...'); background-size: cover; */
}

/* ── Yonghe Coffee Express ────────────────────────────────── */
.yonghe {
  padding: 5rem 0;
  background: var(--navy);
  border-top: 4px solid rgba(255,255,255,0.15);
}

.yonghe-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.yonghe-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.yonghe-logo {
  display: block;
  max-height: 120px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.25rem;
  border-radius: 6px;
}

.yonghe-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.yonghe-chinese {
  font-size: 1.05rem;
  color: var(--blue-pale);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.yonghe-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 400px;
}

.btn-yonghe {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-yonghe:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.yonghe-delivery {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── Rating badges ────────────────────────────────────────── */
.rating-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.uber-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
}
.uber-rating:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.35);
}

.uber-logo {
  width: 58px;
  height: 16px;
  flex-shrink: 0;
}

.doordash-logo {
  width: 64px;
  height: 16px;
  flex-shrink: 0;
}

.uber-stars {
  font-size: 0.95rem;
  color: #f5c200;
  letter-spacing: 0.02em;
  line-height: 1;
}

.star-partial { opacity: 0.4; }

.uber-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.yonghe-marquee {
  overflow: hidden;
  width: 100%;
  height: 200px;
}

.marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  height: 100%;
  animation: marquee-scroll 60s linear infinite;
}

.yonghe-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.5;
}

.contact-value a {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-value a:hover { color: var(--blue); }

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 8px;
}

.qr-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--blue);
  padding-top: 3.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.footer-detail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

.footer-detail a {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer-detail a:hover { color: var(--blue-pale); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--blue-pale); }

.footer-copy {
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }
  .about-inner,
  .yonghe-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-qr { flex-direction: row; justify-content: flex-start; }
  .about-img { order: -1; }
}

@media (max-width: 640px) {
  .nav-hours { display: none; }
  .yonghe-marquee { min-height: 220px; }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 160px);
  }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-links { text-align: left; }
  .hero-content h1 { font-size: 2.4rem; }
}

@media (max-width: 420px) {
  .nav-right { gap: 0.75rem; }
  .nav-cta { display: none; }
  .nav-phone { font-size: 0.8rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { text-align: center; }
  .contact-details { grid-template-columns: 1fr; }
}
