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

:root {
  --green-dark:   #0F5C3A;
  --green-mid:    #1D9E75;
  --green-light:  #C8ECD9;
  --green-pale:   #EAF7F0;
  --gray-900:     #111827;
  --gray-700:     #374151;
  --gray-500:     #6B7280;
  --gray-300:     #D1D5DB;
  --gray-100:     #F3F4F6;
  --white:        #FFFFFF;
  --border:       #E5E7EB;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--gray-900); font-weight: 600; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 2000;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--green-dark);
  letter-spacing: 0.03em;
  line-height: 1;
}
.nav-brand-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-mid);
}
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white) !important;
  background: var(--green-dark);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-mid) !important; color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ===== SECTIONS ===== */
.page { display: none; }
.page.active { display: block; animation: fadein 0.22s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, var(--green-pale) 0%, var(--white) 55%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 1.2rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--green-mid);
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-dark);
}
.hero-sub {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 11px 24px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--green-mid); }
.btn-secondary {
  padding: 11px 24px;
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--green-pale); }

.hero-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.hero-visual-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-weight: 500;
}
.process-steps { display: flex; flex-direction: column; gap: 10px; }
.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-mid);
  flex-shrink: 0;
}
.step-dot.active { background: var(--green-dark); width: 10px; height: 10px; }
.step-label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.step-value {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 20px;
}
.hero-metric {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.metric-pill {
  text-align: center;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.metric-pill .num { font-size: 18px; font-weight: 600; color: var(--green-dark); line-height: 1; }
.metric-pill .lbl { font-size: 10px; color: var(--gray-500); margin-top: 3px; }

/* ===== STATS BAR ===== */
.stats-bar {
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 1.8rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .big { font-size: 22px; font-weight: 600; color: var(--green-dark); }
.stat-cell .small { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* ===== SECTION HEADERS ===== */
.section-intro { margin-bottom: 2.5rem; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 8px;
}
.section-intro h2 { font-size: 26px; margin-bottom: 8px; }
.section-intro p { font-size: 14px; color: var(--gray-500); max-width: 580px; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 40px; height: 40px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--green-dark); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 14px; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--gray-500); line-height: 1.65; }
.tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== SECTION PADDINGS ===== */
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 48px 0; }
.alt-bg { background: var(--gray-100); }

/* ===== TWO COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.col-block h3 { font-size: 16px; margin-bottom: 10px; }
.col-block p { font-size: 14px; color: var(--gray-500); line-height: 1.75; }

/* ===== PROBLEM BLOCK ===== */
.problem-list { display: flex; flex-direction: column; gap: 12px; }
.problem-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid #E24B4A;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.problem-item p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

.solution-list { display: flex; flex-direction: column; gap: 12px; }
.solution-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-left: 3px solid var(--green-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.solution-item p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }
.item-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.item-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #E24B4A;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== TECH STEPS ===== */
.tech-steps { display: flex; flex-direction: column; }
.tech-step {
  display: flex;
  gap: 1.5rem;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.tech-step:last-child { border-bottom: none; }
.tech-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 1.5px solid var(--green-light);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tech-step-body h3 { font-size: 15px; margin-bottom: 5px; }
.tech-step-body p { font-size: 13px; color: var(--gray-500); line-height: 1.65; }

/* ===== ADVANTAGE CALLOUT ===== */
.callout {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2.5rem;
}
.callout p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-top: 8px;
}
.callout h3 { color: var(--white); font-size: 18px; }

/* ===== STANDARDS BAR ===== */
.standards-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.standards-bar .lbl { font-size: 12px; font-weight: 600; color: var(--gray-500); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.standards-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.std-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid #9FE1CB;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ===== ABOUT ===== */
.about-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0F5C3A 100%);
  color: var(--white);
  padding: 64px 0;
}
.about-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}
.about-hero p { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 560px; }
.about-tagline {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ===== CONTACTS ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-form-wrap h2 { font-size: 22px; margin-bottom: 6px; }
.contact-form-wrap .sub { font-size: 14px; color: var(--gray-500); margin-bottom: 2rem; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 500; color: var(--gray-700); margin-bottom: 5px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 13px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--green-mid); }
.form-field textarea { height: 100px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--green-mid); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
}
.form-status.ok { color: #0f7a59; }
.form-status.err { color: #b42318; }

.contact-info-block {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-block h3 { font-size: 16px; margin-bottom: 1.5rem; }
.contact-row {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 16px;
}
.contact-row-icon {
  width: 34px; height: 34px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row-icon svg { width: 16px; height: 16px; stroke: var(--green-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-row-label { font-size: 11px; color: var(--gray-500); }
.contact-row-val { font-size: 14px; font-weight: 500; color: var(--gray-900); }
.contact-row a { color: var(--green-dark); }

.macs-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--green-dark);
  border-radius: var(--radius-md);
  color: var(--white);
}
.macs-box .macs-name { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.macs-box .macs-full { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--green-dark);
}
.footer-tagline {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
  font-style: italic;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: var(--gray-500); transition: color 0.2s; }
.footer-links a:hover { color: var(--green-dark); }
.footer-copy { font-size: 12px; color: var(--gray-500); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-inner, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .hero h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}