/* Es Teh Jumbo KK ITY — Clean & Simple Design System */
:root {
  --bg: #f6f5ef;
  --surface: #eceae2;
  --ink: #17241c;
  --muted: #525d55;
  --accent: #154b29;
  --accent-hover: #0f3a1f;
  --accent-ink: #f6f5ef;
  --line: rgba(23, 36, 28, 0.12);
  --line-strong: rgba(23, 36, 28, 0.24);
  --font-display: "Gabarito", system-ui, -apple-system, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

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

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

/* ================================================================ Navbar */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 150ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
}

/* ================================================================ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.985);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ================================================================ Home Hero */
.hero-home {
  display: flex;
  flex-direction: column;
}

.hero-home__photo {
  width: 100%;
  height: clamp(320px, 56vh, 520px);
  overflow: hidden;
  background: var(--surface);
}

.hero-home__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero-home__body {
  padding: 48px 0 64px;
}

.hero-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 48px;
  align-items: start;
}

.hero-home__body h1 {
  font-size: clamp(34px, 3.6vw, 52px);
  max-width: 16ch;
}

.hero-home__side {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero-home__lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--muted);
}

/* ================================================================ Page Header & Sections */
.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  margin-bottom: 12px;
}

.page-head p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 56ch;
}

.page-head .btn-row {
  margin-top: 24px;
}

.page-section {
  padding: 56px 0 72px;
}

.section-title {
  font-size: clamp(24px, 2.2vw, 32px);
  margin-bottom: 24px;
}

/* ================================================================ Tentang Page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy h2 {
  font-size: clamp(26px, 2.4vw, 34px);
}

.about-copy h3 {
  font-size: 22px;
  margin-top: 12px;
}

.about-copy p {
  color: var(--ink);
  max-width: 58ch;
}

.values-list {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.values-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

.promo-alert {
  margin-top: 8px;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.about-media {
  background: var(--surface);
  overflow: hidden;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
}

/* ================================================================ Menu Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 0 auto;
}

.product-card__title {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.product-card__price {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.product-card__foot {
  margin-top: auto;
  padding-top: 8px;
}

.product-card__foot .btn {
  width: 100%;
  min-height: 42px;
  font-size: 15px;
}

/* ================================================================ Product Detail */
.detail-crumb {
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.detail-media {
  background: var(--surface);
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-info {
  display: grid;
  gap: 20px;
  align-content: start;
}

.detail-info h1 {
  font-size: clamp(30px, 3vw, 42px);
}

.detail-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.detail-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 52ch;
}

.detail-info .btn-row {
  margin-top: 8px;
}

/* ================================================================ Kontak Page */
.map-wrap {
  margin-bottom: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 24px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-item {
  display: grid;
  gap: 4px;
}

.contact-item h3 {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.contact-item p {
  font-size: 16px;
  color: var(--ink);
}

.contact-item a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.contact-item a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 140ms var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ================================================================ Compact Footer */
.site-footer {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 36px 0 28px;
  margin-top: auto;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(246, 245, 239, 0.18);
}

.site-footer .brand {
  color: var(--accent-ink);
}

.site-footer .brand__mark {
  color: var(--accent-ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(246, 245, 239, 0.9);
  transition: color 150ms var(--ease);
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  font-size: 14px;
  color: rgba(246, 245, 239, 0.82);
}

/* ================================================================ Responsive */
@media (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-home__grid,
  .about-grid,
  .detail-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 64px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    width: 100%;
    height: 48px;
    font-size: 17px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-home__photo {
    height: 300px;
  }

  .hero-home__body {
    padding: 32px 0 48px;
  }

  .page-head {
    padding: 40px 0 32px;
  }

  .page-section {
    padding: 36px 0 56px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .contact-info,
  .contact-form {
    padding: 24px 20px;
  }

  .map-wrap iframe {
    height: 300px;
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    gap: 16px 20px;
  }
}
