@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS — MADE + Figma 8pt
   ═══════════════════════════════════════════ */
:root {
  --color-primary:       #1B5E40;
  --color-primary-dark:  #0F2E20;
  --color-primary-mid:   #143D2B;
  --color-primary-light: #40916C;
  --color-accent:        #6ABE5E;
  --color-warm:          #D4A24C;
  --color-canvas:        #FAFAF7;
  --color-surface:       #FFFFFF;
  --color-text:          #1C1F1D;
  --color-text-mid:      #4A5550;
  --color-text-soft:     #7A8680;
  --color-border:        #E8E5E0;
  --color-error:         #C53030;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;
  --space-6xl: 160px;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 999px;

  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 500ms;

  --nav-h: 72px;
  --max-w: 1120px;
}

/* ═══════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-canvas);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -80px; left: 24px;
  padding: 10px 20px; background: var(--color-primary); color: #fff;
  font-size: 14px; font-weight: 500; border-radius: var(--radius-md); z-index: 9999;
}
.skip-link:focus { top: 16px; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  transition: all 350ms var(--ease-out);
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--color-primary); color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,94,64,0.25);
}
.btn--warm {
  background: var(--color-warm); color: #fff;
}
.btn--warm:hover {
  background: #bf912e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,162,76,0.3);
}
.btn--ghost {
  background: transparent; border-color: rgba(255,255,255,0.35); color: #fff;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7);
}
.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,94,64,0.2);
}
.btn--full { width: 100%; }

/* ═══════════════════════════════════════════
   SECTION SYSTEM
   ═══════════════════════════════════════════ */
.section {
  padding: var(--space-5xl) 0;
}
.section--flush { padding: 0; }

.section__label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-md);
}
.section__heading {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 500;
  line-height: 1.18;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.section__heading--light { color: #fff; }
.section__sub {
  font-size: 17px; font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-mid);
  max-width: 520px;
}
.section__sub--light { color: rgba(255,255,255,0.7); }

.section__header {
  margin-bottom: var(--space-3xl);
}
.section__header--center {
  text-align: center;
}
.section__header--center .section__sub {
  margin: var(--space-md) auto 0;
}

/* ═══════════════════════════════════════════
   1. NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  z-index: 200;
  transition: background 400ms, box-shadow 400ms, border-color 400ms;
  border-bottom: 1px solid transparent;
  /* Default to solid since hero is light */
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}
.nav--solid {
  box-shadow: var(--shadow-subtle);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
}
.nav__logo { width: 38px; height: 38px; }
.nav__wordmark {
  display: flex; flex-direction: column;
}
.nav__name {
  font-weight: 600; font-size: 16px;
  letter-spacing: 0.14em; color: var(--color-primary);
  line-height: 1.1;
  transition: color 400ms;
}
.nav__sub-name {
  font-weight: 500; font-size: 9px;
  letter-spacing: 0.22em; color: var(--color-text-soft);
  transition: color 400ms;
}

.nav__links {
  display: flex; align-items: center; gap: var(--space-xl);
}
.nav__link {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-mid);
  padding: 6px 0;
  position: relative;
  transition: color 250ms;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width 350ms var(--ease-out);
}
.nav__link:hover { color: var(--color-primary); }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav__cta .btn { padding: 10px 24px; font-size: 13px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 7px;
}
.nav__toggle span {
  width: 22px; height: 1.5px; background: var(--color-text);
  border-radius: 1px; transition: all 300ms var(--ease-out);
}
.nav__toggle--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: #fff !important; }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: #fff !important; }

/* ═══════════════════════════════════════════
   2. HERO — Split Layout
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--color-canvas);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}
.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.hero__text {
  max-width: 540px;
}
.hero__tagline {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
}
.hero__title {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 500;
  line-height: 1.12;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.hero__desc {
  font-size: 17px; font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-mid);
  margin-bottom: var(--space-2xl);
}
.hero__actions {
  display: flex; gap: var(--space-md);
  flex-wrap: wrap;
}

/* Illustration */
.hero__illustration {
  display: flex; align-items: center; justify-content: center;
}
.hero__illustration svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Trust stats — inline */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--color-text);
  display: block;
}
.hero__stat-suffix { color: var(--color-primary); }
.hero__stat-label {
  display: block;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-soft);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   3. ABOUT
   ═══════════════════════════════════════════ */
.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.about__text p {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--color-text-mid);
}
.about__text p + p { margin-top: var(--space-md); }
.about__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about__img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Pillars */
.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-4xl);
}
.pillar {
  padding: var(--space-xl) var(--space-lg);
  border-top: 2px solid var(--color-border);
  transition: border-color 400ms var(--ease-out);
}
.pillar:hover { border-color: var(--color-primary); }
.pillar__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.pillar__text {
  font-size: 14px; font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-soft);
}

/* ═══════════════════════════════════════════
   4. PRODUCTS
   ═══════════════════════════════════════════ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.product {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product__img {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.product__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.product:hover .product__img img {
  transform: scale(1.05);
}
.product__body {
  padding: var(--space-lg);
}
.product__name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.product__desc {
  font-size: 14px; font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-soft);
}

/* ═══════════════════════════════════════════
   5. BEST PRACTICES (Horizontal scroll-like)
   ═══════════════════════════════════════════ */
.practices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.practice {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color 400ms, box-shadow 400ms;
}
.practice:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}
.practice__icon {
  width: 40px; height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
.practice__title {
  font-size: 16px; font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.practice__text {
  font-size: 14px; font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-soft);
}

/* ═══════════════════════════════════════════
   6. WHY US — clean split
   ═══════════════════════════════════════════ */
.why__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.why__quote {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}
.why__quote em {
  color: var(--color-primary);
  font-style: italic;
}
.why__motto {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-primary-light);
  margin-top: var(--space-lg);
}

.why__list {
  list-style: none;
  counter-reset: why-counter;
}
.why__item {
  counter-increment: why-counter;
  display: flex; gap: var(--space-lg); align-items: baseline;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.why__item:last-child { border-bottom: none; }
.why__item::before {
  content: counter(why-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--color-accent);
  flex-shrink: 0; min-width: 32px;
}
.why__item-title {
  font-size: 16px; font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}
.why__item-text {
  font-size: 14px; font-weight: 300;
  color: var(--color-text-soft); line-height: 1.6;
}

/* ═══════════════════════════════════════════
   7. CONTACT
   ═══════════════════════════════════════════ */
.contact {
  background: var(--color-primary-dark);
  color: #fff;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.contact__form {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex; flex-direction: column; gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md);
}
.form-group {
  display: flex; flex-direction: column; gap: 5px;
}
.form-label {
  font-size: 13px; font-weight: 500; color: var(--color-text-mid);
}
.form-label .req { color: var(--color-error); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  color: var(--color-text);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,94,64,0.1);
}
.form-input--error { border-color: var(--color-error) !important; }
.form-error {
  font-size: 12px; color: var(--color-error); min-height: 16px;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5550' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkboxes */
.check-group {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2px;
}
.check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--color-text-mid); cursor: pointer;
}
.check input { display: none; }
.check__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-canvas);
  transition: all 150ms;
  display: flex; align-items: center; justify-content: center;
}
.check input:checked ~ .check__box {
  background: var(--color-primary); border-color: var(--color-primary);
}
.check input:checked ~ .check__box::after {
  content: ''; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-0.5px,-0.5px);
}

/* Info card */
.contact__info {
  padding: var(--space-2xl) var(--space-lg);
}
.contact__info-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  margin-bottom: var(--space-xl);
}
.contact__info-row {
  display: flex; gap: var(--space-md); align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact__info-row:last-child { border-bottom: none; }
.contact__info-row svg {
  color: var(--color-accent); flex-shrink: 0; margin-top: 2px;
}
.contact__info-row strong {
  font-size: 13px; font-weight: 500; display: block; margin-bottom: 1px;
}
.contact__info-row p {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.5;
}

/* ═══════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--color-primary-dark);
  padding: var(--space-3xl) 0 0;
  color: rgba(255,255,255,0.7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-3xl);
}
.footer__brand-link {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--space-md);
}
.footer__brand-icon { width: 36px; height: 36px; }
.footer__brand-name {
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.14em; color: #fff; line-height: 1.1;
}
.footer__brand-sub {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.45);
  display: block; margin-top: 2px;
}
.footer__tagline {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.5); margin-bottom: 10px;
}
.footer__motto {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--color-accent);
}
.footer__heading {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35); margin-bottom: var(--space-lg);
}
.footer__link {
  display: block; font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.6); padding: 5px 0;
  transition: color 200ms;
}
.footer__link:hover { color: var(--color-accent); }
.footer__contact-item {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.5); padding: 4px 0;
}
.footer__socials {
  display: flex; gap: 10px; margin-top: var(--space-lg);
}
.footer__soc {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 200ms;
}
.footer__soc:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}
.footer__bottom {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* Divider between contact and footer */
.contact-footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .practices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }
  .section { padding: var(--space-4xl) 0; }
  .section__heading { font-size: 30px; }
  
  .hero { padding-top: calc(var(--nav-h) + 20px); text-align: center; }
  .hero__title { font-size: 38px; }
  .hero__split { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero__text { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__illustration { order: -1; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); padding-top: var(--space-lg); }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform 400ms var(--ease-out);
  }
  .nav__links--open { transform: translateX(0); }
  .nav__link { font-size: 18px; color: #fff !important; }

  .about__row,
  .why__row,
  .contact__row,
  .footer__grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .about__pillars { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .practices__grid { grid-template-columns: 1fr; }
  .why__quote { font-size: 26px; text-align: center; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 28px; }
  .hero__desc { font-size: 15px; }
}
