/* ka·fe — Design System */

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

:root {
  /* Colors — Brand v2 */
  --bg-primary: #F4EFE6;      /* Paper */
  --bg-secondary: #EAD9BE;    /* Silk */
  --text-primary: #231A15;    /* Espresso */
  --text-muted: #5A4F47;
  --text-hint: #8A7F77;
  --divider: #E0D5C7;
  --accent: #C8772E;          /* Roast */
  --accent-quiet: #9DB0A1;    /* Celadon */

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-body: 400;
  --font-weight-heading: 500;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.125rem;
}

p {
  max-width: 55ch;
}

.eyebrow {
  font-size: 0.8125rem;
  color: var(--text-hint);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

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

.section {
  padding: 4rem 0;
  border-bottom: 0.5px solid var(--divider);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 0.5px solid var(--divider);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
}

.nav-logo {
  font-weight: var(--font-weight-heading);
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.nav-logo .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
  margin: 0 0.1rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.nav-logo .red {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-heading);
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh;
  border-bottom: 0.5px solid var(--divider);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content .tagline {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 100px;
  font-weight: var(--font-weight-heading);
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--divider);
  border-radius: 100px;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 3rem;
}

.hero-visual img {
  max-width: 380px;
  width: 100%;
  height: auto;
}

/* Promise Strip */
.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0.5px solid var(--divider);
}

.promise-item {
  padding: 2.5rem 1.5rem;
  border-right: 0.5px solid var(--divider);
}

.promise-item:last-child {
  border-right: none;
}

.promise-number {
  font-size: 0.75rem;
  color: var(--text-hint);
  margin-bottom: 0.75rem;
}

.promise-title {
  font-weight: var(--font-weight-heading);
  margin-bottom: 0.5rem;
}

.promise-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Menu Strip */
.menu-strip {
  padding: 4rem 1.5rem;
  border-bottom: 0.5px solid var(--divider);
}

.menu-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.menu-strip-header h2 {
  font-size: 1.25rem;
}

.menu-strip-header a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.menu-strip-header a:hover {
  color: var(--text-primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5px;
  background: var(--divider);
}

.menu-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.menu-item-number {
  font-size: 0.75rem;
  color: var(--text-hint);
  margin-bottom: 0.75rem;
}

.menu-item-name {
  font-weight: var(--font-weight-heading);
  margin-bottom: 0.5rem;
}

.menu-item-price {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: auto;
}

/* Story Strip */
.story-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 4rem 1.5rem;
  border-bottom: 0.5px solid var(--divider);
}

.story-text h2 {
  margin-bottom: 1.5rem;
}

.story-text p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.0625rem;
}

.story-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5px;
  background: var(--divider);
  align-self: start;
}

.story-stat {
  background: var(--bg-primary);
  padding: 1.25rem 1.5rem;
}

.story-stat-value {
  font-weight: var(--font-weight-heading);
  margin-bottom: 0.25rem;
}

.story-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-hint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Menu Page */
.page-header {
  padding: 4rem 1.5rem;
  border-bottom: 0.5px solid var(--divider);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
}

.menu-section {
  padding: 3rem 1.5rem;
  border-bottom: 0.5px solid var(--divider);
}

.menu-section h2 {
  font-size: 0.875rem;
  color: var(--text-hint);
  margin-bottom: 2rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.menu-list {
  list-style: none;
}

.menu-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--divider);
  align-items: baseline;
}

.menu-list-item:last-child {
  border-bottom: none;
}

.menu-list-number {
  font-size: 0.75rem;
  color: var(--text-hint);
  width: 2rem;
}

.menu-list-name {
  font-weight: var(--font-weight-heading);
}

.menu-list-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: var(--font-weight-body);
  display: block;
  margin-top: 0.25rem;
}

.menu-list-price {
  color: var(--text-muted);
}

/* Story Page */
.story-content {
  padding: 4rem 1.5rem;
  max-width: 650px;
}

.story-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.story-content p:first-of-type {
  font-size: 1.1875rem;
  color: var(--text-primary);
}

/* Find Us Page */
.findus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.findus-info {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.findus-info h1 {
  margin-bottom: 1rem;
}

.findus-intro {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.findus-detail {
  margin-bottom: 2rem;
}

.findus-detail h3 {
  color: var(--text-hint);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-body);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.findus-detail p, .findus-detail address {
  font-style: normal;
  line-height: 1.6;
}

.findus-map {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  color: var(--text-hint);
  font-size: 0.875rem;
}

/* ============================================================
   Flavor accents & signatures — v2 menu update
   ============================================================ */

/* Small flavor dot used inline before menu item names */
.flavor-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Larger flavor dot for the homepage signature cards */
.flavor-dot-lg {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.flavor-dot.ube,    .flavor-dot-lg.ube    { background: #8A6FB0; }
.flavor-dot.sesame, .flavor-dot-lg.sesame { background: #3A332E; }
.flavor-dot.banana, .flavor-dot-lg.banana { background: #D8A24A; }
.flavor-dot.matcha, .flavor-dot-lg.matcha { background: #7FA05A; }

/* "our signature" / "the signature" pill tag */
.menu-list-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.5px;
  color: #A85E1E;
  background: #F3E2CF;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-left: 0.625rem;
  vertical-align: middle;
}

/* Homepage featured signatures grid */
.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5px;
  background: var(--divider);
  border: 0.5px solid var(--divider);
}

.signature-card {
  background: var(--bg-primary);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.signature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.signature-card-number {
  font-size: 0.75rem;
  color: var(--text-hint);
}

.signature-card-name {
  font-weight: var(--font-weight-heading);
  font-size: 1.125rem;
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}

.signature-card-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.signature-card-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signature-card-foot .menu-list-tag {
  margin-left: 0;
}

.signature-card-price {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 45vh;
    order: -1;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .promise-strip {
    grid-template-columns: 1fr;
  }

  .promise-item {
    border-right: none;
    border-bottom: 0.5px solid var(--divider);
  }

  .promise-item:last-child {
    border-bottom: none;
  }

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

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

  .story-strip {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .findus-map {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 0.5px solid var(--divider);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

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

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-visual img {
    max-width: 280px;
  }

  .findus-info {
    padding: 3rem 1.5rem;
  }
}
