/* ===== Design Tokens ===== */
:root {
  --white: #ffffff;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B6B6B;
  --gray-600: #525252;
  --gray-700: #3D3D3D;
  --gray-900: #1A1A1A;

  --green-500: #43A66D;
  --green-600: #388E5C;
  --green-700: #2D6B4A;
  --green-800: #234D3A;
  --green-900: #1B3A2D;

  --wa-green: #25D366;
  --bg-dark: #1B2E23;
  --bg-alt: #F5F7F6;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.97); }

.btn--white { background: var(--white); color: var(--green-900); }
.btn--wa { background: var(--wa-green); color: var(--white); }
.btn--green { background: var(--green-800); color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--outline {
  background: var(--green-800);
  color: var(--white);
}
.btn--outline:hover { background: var(--green-900); opacity: 1; }
.btn--submit {
  width: 100%;
  height: 52px;
  justify-content: center;
  background: var(--green-600);
  color: var(--white);
  font-size: 16px;
  border: none;
  border-radius: 4px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 80px;
}

.header__logo img { height: 48px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
.header__link:hover { color: var(--green-700); }

.header__cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--green-800);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s;
}
.header__cta:hover { background: var(--green-900); }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #1B3A2Ddd 0%,
    #1B3A2D88 60%,
    #1B3A2D44 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 720px;
}

.hero__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  max-width: 620px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section--white { background: var(--white); }
.section--alt { background: var(--bg-alt); }

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

.section__header { margin-bottom: 48px; }
.section__header--center { text-align: center; }
.section__header--center .section__desc { margin-inline: auto; }

.section__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green-700);
  margin-bottom: 12px;
}

.section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 700px;
}

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

/* ===== Product Card ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.08); }

.card__img {
  height: 220px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-600);
  flex: 1;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card__actions .btn { margin-top: 0; }

.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}

.btn--ghost:hover { background: var(--green-800); color: var(--white); opacity: 1; }

/* ===== Serve Grid ===== */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.serve-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.serve-card__icon { color: var(--green-700); flex-shrink: 0; }

.serve-card__title {
  font-size: 20px;
  font-weight: 600;
}

.serve-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-600);
}

/* ===== Why Grid ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
  text-align: center;
}

.why-item__icon { color: var(--green-700); }

.why-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.why-item__title {
  font-size: 15px;
  font-weight: 600;
}

.why-item__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-600);
}

/* ===== Form Section ===== */
.form-section {
  background: var(--bg-dark);
  padding: 80px 0;
}

.form-section__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.form-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.form-section__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.form-section__desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,.67);
  max-width: 500px;
  margin: 0 auto;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-form__field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}

.quote-form__field input,
.quote-form__field select,
.quote-form__field textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s;
  color: var(--white);
}

.quote-form__field input::placeholder,
.quote-form__field textarea::placeholder {
  color: rgba(255,255,255,.27);
}

.quote-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  color: rgba(255,255,255,.27);
}
.quote-form__field select:valid { color: var(--white); }
.quote-form__field select option { color: var(--gray-900); background: var(--white); }

.quote-form__field textarea {
  height: 120px;
  padding: 14px;
  resize: vertical;
}

.quote-form__field input:focus,
.quote-form__field select:focus,
.quote-form__field textarea:focus {
  border-color: var(--green-500);
}

.quote-form__field input.is-invalid,
.quote-form__field select.is-invalid,
.quote-form__field textarea.is-invalid {
  border-color: #e74c3c;
}

.quote-form__feedback {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}
.quote-form__feedback--success { color: var(--wa-green); }
.quote-form__feedback--error { color: #e74c3c; }

/* ===== Footer ===== */
.footer { background: var(--gray-900); }

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo { height: 56px; width: auto; }

.footer__contact {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color .2s;
}
.footer__link:hover { color: var(--white); }
.footer__link--wa svg { stroke: var(--wa-green); }

.footer__divider {
  height: 1px;
  background: rgba(255,255,255,.08);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray-500);
}

.footer__site {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
}

/* ===== Credit Bar ===== */
.credit-bar {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--gray-500);
}
.credit-bar strong { font-weight: 700; }
.credit-bar__link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.credit-bar__link:hover { color: var(--gray-300); }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--wa-green);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transform: translateY(100px);
  opacity: 0;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s, background .2s;
}
.fab.is-visible { transform: translateY(0); opacity: 1; }
.fab:hover { background: #20bd5a; }
.fab span { white-space: nowrap; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .header__inner { padding: 16px 40px; }
  .hero__content { padding: 0 40px; }
  .section__inner { padding: 0 40px; }
  .footer__inner { padding: 48px 40px; }
}

@media (max-width: 768px) {
  .header__inner { padding: 14px 20px; }
  .header__logo img { height: 40px; }
  .header__toggle { display: flex; }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 24px;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,.1);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 200;
  }
  .header__nav.is-open { transform: translateX(0); }

  .header__link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-100);
  }

  .header__cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
  }

  .header__toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__toggle.is-active span:nth-child(2) { opacity: 0; }
  .header__toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { height: 560px; }
  .hero__content { padding: 0 20px; gap: 16px; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 15px; }
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      #0F3D1F66 0%,
      #0F3D1F24 45%,
      transparent 100%
    );
  }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  .section { padding: 48px 0; }
  .section__inner { padding: 0 20px; }
  .section__header { margin-bottom: 28px; }
  .section__title { font-size: 28px; }
  .section__desc { font-size: 15px; }

  .product-grid--3 { grid-template-columns: 1fr; }

  .serve-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  .form-section { padding: 48px 0; }
  .form-section__title { font-size: 30px; }
  .form-section__desc { font-size: 14px; }
  .quote-form__row { grid-template-columns: 1fr; gap: 12px; }

  .footer__inner { padding: 32px 20px; gap: 20px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__copy { font-size: 12px; }

  .credit-bar { padding: 10px 20px; }

  .fab { bottom: 16px; right: 16px; padding: 12px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .section__title { font-size: 24px; }
  .form-section__title { font-size: 26px; }
}

/* ===== Nav overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,.4);
}
.nav-overlay.is-visible { display: block; }

/* ===== Scroll Animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.1s cubic-bezier(.16,1,.3,1),
    transform 1.1s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

[data-reveal="up"] { transform: translateY(32px); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="scale"] { transform: scale(.95); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero entrance (immediate, no scroll trigger) */
.hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 1.2s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: .25s; }
.hero__content > *:nth-child(2) { animation-delay: .55s; }
.hero__content > *:nth-child(3) { animation-delay: .85s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Header scroll state */
.header--scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
