/* ============================================================
   luwaktech.com — replica of the live site's structure & copy,
   restyled to the official Luwak Tech badge:
   white ground · mascot orange #F68B1F · black type
   Avenir LT (live-site font) with Nunito Sans web fallback.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-deep: #fff6ec;
  --text: #1d1a17;
  --muted: #4f4a44;
  --line: #efe6db;
  --orange: #f68b1f;
  --orange-deep: #e07200;

  --font-heavy: "Avenir Next", Avenir, "Nunito Sans", Helvetica, sans-serif;
  --font-light: "Avenir Next", Avenir, "Nunito Sans", Helvetica, sans-serif;

  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-light);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-heavy); font-weight: 800; line-height: 1.15; color: var(--text); }

.eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 20px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { gap: 14px; }
.logo img { height: 72px; width: auto; }
.logo .wordmark {
  font-family: var(--font-heavy);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}
.site-nav a:hover { color: var(--orange-deep); }

.btn {
  display: inline-block;
  font-family: var(--font-light);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--orange-deep); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.site-nav a.btn { color: #fff; }
.site-nav a.btn:hover { color: #fff; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero { padding: 96px 0 0; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 20ch;
  margin: 0 auto;
}
.hero p {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 19px;
}
.hero-image { margin-top: 64px; }
.hero-image img { width: 100%; height: auto; border-radius: 12px; }

.stack-shots { display: grid; gap: 28px; }
.stack-shots img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

/* ---------- stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.stats-strip strong {
  font-family: var(--font-heavy);
  font-weight: 800;
  font-size: 30px;
  color: var(--orange-deep);
  display: block;
}
.stats-strip span { font-size: 15px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- capabilities ---------- */

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.cap {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 16px 36px -24px rgba(29, 26, 23, 0.25);
}
.cap h3 { font-size: 19px; margin-bottom: 14px; }
.cap ul { list-style: none; }
.cap li {
  color: var(--muted);
  font-size: 15.5px;
  padding: 6px 0 6px 22px;
  position: relative;
}
.cap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- services rows ---------- */

.svc {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc h3 { font-size: 20px; }
.svc .svc-proof { font-size: 14px; color: var(--orange-deep); margin-top: 6px; }
.svc p { color: var(--muted); font-size: 16.5px; max-width: 60ch; }
.svc a { font-size: 14.5px; font-weight: 600; color: var(--orange-deep); text-decoration: none; white-space: nowrap; }
.svc a:hover { text-decoration: underline; }

.svc-foot { margin-top: 28px; font-size: 15.5px; color: var(--muted); text-align: center; }

/* ---------- compact product grid ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.prod:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(29, 26, 23, 0.3); }
.prod-shot {
  height: 130px;
  background: var(--cream, #fff6ec);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 14px 18px 0;
}
.prod-shot img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: top; border-radius: 5px 5px 0 0; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 17px; }
.prod-body p { font-size: 14.5px; color: var(--muted); margin-top: 4px; flex: 1; }
.prod-body a { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--orange-deep); text-decoration: none; }
.prod-body a:hover { text-decoration: underline; }

/* ---------- sections ---------- */

section { padding: 96px 0; }
section.deep { background: var(--bg-deep); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }

/* ---------- products ---------- */

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.product-row + .product-row { border-top: 1px solid var(--line); }
.product-row.flip .product-media { order: 2; }

.product-media img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(29, 26, 23, 0.25);
}

.product-copy h3 { font-size: 30px; margin-bottom: 18px; }
.product-copy ul { list-style: none; }
.product-copy li {
  color: var(--muted);
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 16.5px;
}
.product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.try-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 400;
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--orange-deep);
  padding-bottom: 2px;
}
.try-link:hover { color: var(--text); border-color: var(--text); }

.explore { text-align: center; margin-top: 40px; }

/* ---------- services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.service h3 { font-size: 22px; margin-bottom: 14px; }
.service p { color: var(--muted); font-size: 15.5px; }

/* ---------- testimonial ---------- */

.testimonial { text-align: center; }
.testimonial blockquote {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto;
  color: var(--text);
}
.testimonial img {
  width: 72px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  margin: 28px auto 10px;
}
.testimonial cite { font-style: normal; color: var(--muted); }

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.mentor-row { display: flex; justify-content: center; margin-bottom: 72px; }
.mentor-row .member { width: 250px; text-align: center; }
.member img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 8px;
}
.member p { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.member h3 { font-size: 17.5px; font-weight: 800; }
.member a { font-size: 14px; color: var(--orange-deep); text-decoration: none; }
.member a:hover { text-decoration: underline; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.contact-info p { color: var(--muted); max-width: 40ch; }
.contact-direct { margin-top: 28px; display: grid; gap: 8px; font-size: 16px; }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { color: var(--orange-deep); }

.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 6px 2px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--font-light);
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8cfc4;
  padding: 10px 2px;
  margin-bottom: 22px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.form-success { color: #1a8a3c; font-size: 15px; margin-top: 14px; display: none; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-deep); }
.footer-badge { text-align: center; margin-bottom: 44px; }
.footer-badge img { display: inline-block; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-col { font-size: 16px; color: var(--muted); }
.footer-col a { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--orange-deep); }
.footer-col strong { display: block; color: var(--text); font-weight: 800; margin-bottom: 12px; font-size: 14px; }
.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .product-row, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-row.flip .product-media { order: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 8px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-nav {
    position: fixed;
    inset: 92px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    padding: 8px 14px;
    font-size: 14px;
    font-family: var(--font-light);
    cursor: pointer;
  }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 0; }
  .contact-form .field-row { grid-template-columns: 1fr; }
}

/* ---------- tech stack page ---------- */

.tech-group { margin-bottom: 56px; }
.tech-group h3 { font-size: 21px; margin-bottom: 6px; }
.tech-group .tg-note { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 14px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 10px 14px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(29, 26, 23, 0.3); }
.tile img { width: 40px; height: 40px; margin: 0 auto 10px; display: block; }
.tile .abbr {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile span { font-size: 13.5px; color: var(--text); display: block; line-height: 1.3; }
