/* Indo Basket Market: site styles
   Colours follow the brand guide v1.0 (Night Green palette). */

:root {
  /* Brand colours */
  --night-green: #0b2e1f;   /* text on light, dark section background */
  --forest: #164d33;        /* deep green: buttons, headings, links */
  --mint: #e8f5ec;          /* text on dark, soft panels */
  --lime: #8bd450;          /* accent on dark backgrounds only */
  --lime-text: #417222;     /* lime for text on light backgrounds (AA) */
  --saffron: #ff9a3c;       /* turmeric/saffron accent (decorative, or text on dark) */

  /* Roles */
  --bg: #fbfaf5;            /* warm off-white page background */
  --surface: #ffffff;
  --text: var(--night-green);
  --text-muted: #3d5a4b;
  --border: #d9e6dd;
  --link: var(--forest);
  --focus: var(--forest);

  --radius: 16px;
  --radius-sm: 10px;
  --max: 68rem;
  --gutter: 1.25rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  color: var(--forest);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-block;
  border-radius: 6px;
}

.brand img {
  width: 172px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--mint);
  color: var(--forest);
}

.site-nav a[aria-current="page"] {
  color: var(--forest);
  text-decoration: underline;
}

/* Sections */
main > section {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section-intro {
  max-width: 40rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.section-alt {
  background: var(--mint);
}

/* Dark sections (hero, footer) */
.dark {
  --text: var(--mint);
  --text-muted: #c4dccd;
  --link: var(--lime);
  --focus: var(--saffron);
  background: var(--night-green);
  color: var(--text);
}

.dark h1,
.dark h2 {
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  /* echoes the two dots in the logo mark */
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -6rem;
  background: var(--saffron);
  opacity: 0.16;
}

.hero::after {
  width: 11rem;
  height: 11rem;
  right: 6rem;
  bottom: -5rem;
  background: var(--lime);
  opacity: 0.14;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero .lead {
  max-width: 36rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--text);
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(232, 245, 236, 0.28);
  border-radius: 999px;
  background: rgba(232, 245, 236, 0.08);
  font-weight: 600;
  color: #fff;
}

.launch-badge::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--saffron);
}

/* Product grid */
.grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 36em) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56em) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.55rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--saffron);
}

.card:nth-child(even)::before {
  background: var(--lime);
}

.card h3 {
  margin-bottom: 0.25rem;
  color: var(--forest);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Delivery steps */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.facts {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48em) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fact {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--saffron);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.fact:nth-child(even) {
  border-left-color: var(--lime-text);
}

.fact h3 {
  color: var(--forest);
}

.fact p:last-child,
.fact ul:last-child {
  margin-bottom: 0;
}

.fact ul {
  padding-left: 1.2rem;
}

.note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Coming later */
.later {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 48em) {
  .later {
    grid-template-columns: 1fr 1fr;
  }
}

.tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--lime-text);
  font-size: 0.85rem;
  font-weight: 700;
}

/* About + contact */
.prose {
  max-width: 42rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

@media (min-width: 48em) {
  .contact-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-list div {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-list dt {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-list dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Simple page (privacy, 404) */
.page {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.page h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  color: var(--forest);
}

.page h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--night-green);
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 30px;
}

.site-footer p {
  margin: 0;
}
