/* ============================================================
   Bitter Melon Technologies — site styles
   Vanilla CSS. Light/dark aware. No external fonts or assets.
   ============================================================ */

:root {
  --brand: #157a52;
  --brand-deep: #0e5238;
  --brand-soft: #e7f4ec;
  --accent: #2fae74;
  --bg: #fbfcfa;
  --surface: #ffffff;
  --text: #16241d;
  --muted: #5b6b63;
  --border: #e4e9e5;
  --shadow: 0 1px 2px rgba(16, 40, 30, 0.04), 0 8px 24px rgba(16, 40, 30, 0.06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fbe83;
    --brand-deep: #7bd3a6;
    --brand-soft: #16241d;
    --accent: #57d193;
    --bg: #0d1310;
    --surface: #131b16;
    --text: #e8efe9;
    --muted: #9db1a6;
    --border: #223029;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  color: var(--brand);
  display: inline-flex;
}
.brand-sub {
  color: var(--muted);
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  color: var(--brand) !important;
  font-weight: 600;
}
@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }
  .nav {
    gap: 18px;
  }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(
      60% 90% at 15% 0%,
      color-mix(in srgb, var(--brand) 14%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 80% at 100% 20%,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 70%
    );
}
.hero-inner {
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 800;
}
.accent {
  color: var(--brand);
}
.hero-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--brand-deep);
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #06110b;
  }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--brand-soft);
  border-block: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.section-lead {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

/* ── Cards ──────────────────────────────────────────────── */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(16, 40, 30, 0.06), 0 16px 40px rgba(16, 40, 30, 0.1);
}
.card-icon {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* ── About ──────────────────────────────────────────────── */
.about-inner {
  max-width: 720px;
}
.about-inner p {
  font-size: 1.1rem;
}

/* ── Contact form ───────────────────────────────────────── */
.contact-inner {
  max-width: 640px;
}
.contact-form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .btn-primary {
  justify-self: start;
}
.form-status {
  margin: 4px 0 0;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.ok {
  color: var(--brand);
}
.form-status.err {
  color: #c0392b;
}
@media (prefers-color-scheme: dark) {
  .form-status.err {
    color: #ff8a7a;
  }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}
