:root {
  --forest: #1B5E2B;
  --forest-light: #236B34;
  --sage: #3D8B4F;
  --gold: #C8963E;
  --gold-light: #D4A94F;
  --cream: #F4F2ED;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --border: #E0DCD6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--forest);
}
.logo-img { height: 36px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light); font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 101;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--forest);
  position: absolute; left: 0; transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* ── HERO (index.html) ── */
.hero {
  padding: 10rem 2rem 6rem;
  background: linear-gradient(170deg, var(--cream) 0%, var(--white) 60%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,62,0.08) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.2;
  color: var(--forest); letter-spacing: -0.02em;
}
.hero h1 span { color: var(--gold); }
.hero p {
  margin-top: 1.5rem; font-size: 1.1rem;
  color: var(--text-light); max-width: 480px;
}
.hero-stats { display: flex; gap: 3rem; margin-top: 2.5rem; }
.stat-num {
  font-size: 1.8rem; font-weight: 700; color: var(--forest);
  letter-spacing: -0.03em;
}
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 0.15rem; }

.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.3rem;
}
.card-icon.sw { background: rgba(61,139,79,0.1); color: var(--sage); }
.card-icon.hw { background: rgba(200,150,62,0.12); color: var(--gold); }
.card-icon.con { background: rgba(27,94,43,0.08); color: var(--forest); }
.card-icon.def { background: rgba(61,139,79,0.08); color: var(--sage); }
.hero-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.hero-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; margin-top: 0; }

/* ── SHARED SECTION STYLES ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--forest);
  letter-spacing: -0.02em; max-width: 560px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-light);
  margin-top: 1rem; max-width: 560px;
}

/* ── ABOUT (index.html) ── */
#about { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-top: 3rem; align-items: start;
}
.about-text p { color: var(--text-light); margin-bottom: 1.2rem; font-size: 0.98rem; }
.values-list { display: flex; flex-direction: column; gap: 1.2rem; }
.value-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: 10px; padding: 1.4rem;
  border: 1px solid var(--border);
}
.value-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--forest); color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: 1rem;
}
.value-item h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.value-item p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

/* ── SECTORS (index.html) ── */
.sectors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.sector-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sector-card:hover {
  border-color: var(--sage);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.sector-num {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.sector-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.sector-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ── PRODUCTS (index.html) ── */
#products { background: var(--forest); color: var(--white); }
#products .section-label { color: var(--gold); }
#products .section-title { color: var(--white); }
#products .section-subtitle { color: rgba(255,255,255,0.65); }
.products-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 3rem;
}
.product-card {
  background: var(--forest-light); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 2rem; transition: border-color 0.3s;
}
.product-card:hover { border-color: rgba(200,150,62,0.3); }
.product-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem; border-radius: 20px; margin-bottom: 1rem;
}
.badge-sw { background: rgba(61,139,79,0.25); color: #8BC4A0; }
.badge-hw { background: rgba(200,150,62,0.2); color: var(--gold-light); }
.product-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.product-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--gold-light); margin-top: 1rem; font-weight: 500;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── CONTACT (index.html) ── */
#contact { background: var(--cream); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem;
}
.contact-info p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.2rem;
}
.contact-detail .cd-label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
}
.contact-detail .cd-value { font-size: 0.95rem; font-weight: 500; color: var(--forest); }
.contact-detail .cd-value a {
  color: var(--forest); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: border-color 0.2s;
}
.contact-detail .cd-value a:hover { border-color: var(--forest); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: 1rem; }
.form-row > * { flex: 1; }
.contact-form label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
  display: block; margin-bottom: 0.4rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem;
  background: var(--white); color: var(--text);
  transition: border-color 0.2s; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--sage); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  padding: 0.85rem 2rem; background: var(--forest); color: var(--white);
  border: none; border-radius: 8px; font-family: inherit;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s; align-self: flex-start;
}
.btn-submit:hover { background: var(--forest-light); }

/* ── PAGE HEADER (template pages) ── */
.page-header {
  padding: 9rem 2rem 3.5rem;
  background: linear-gradient(170deg, var(--cream) 0%, var(--white) 60%);
}
.page-header-inner { max-width: 1160px; margin: 0 auto; }
.page-header .breadcrumb {
  font-size: 0.82rem; color: var(--text-light); margin-bottom: 1rem;
}
.page-header .breadcrumb a {
  color: var(--sage); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.page-header .breadcrumb a:hover { border-color: var(--sage); }
.page-header .breadcrumb span { margin: 0 0.4rem; color: var(--border); }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--forest);
  letter-spacing: -0.02em; max-width: 700px;
}
.page-header .lead {
  font-size: 1.1rem; color: var(--text-light);
  margin-top: 1rem; max-width: 640px;
}

/* ── PAGE CONTENT (template pages) ── */
.page-content {
  max-width: 860px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--forest);
  margin: 3rem 0 1rem; letter-spacing: -0.02em;
}
.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--text);
  margin: 2rem 0 0.8rem;
}

.page-content h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin: 1.5rem 0 0.6rem; text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-content p {
  color: var(--text-light); margin-bottom: 1.2rem; font-size: 0.98rem;
}

.page-content a {
  color: var(--forest); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: border-color 0.2s;
}
.page-content a:hover { border-color: var(--forest); }

.page-content strong { color: var(--text); font-weight: 600; }

.page-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--cream); border-radius: 0 8px 8px 0;
}
.page-content blockquote p { margin-bottom: 0; font-style: italic; }

.page-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── LISTS (template pages) ── */
.page-content ul, .page-content ol {
  margin: 0 0 1.5rem 1.5rem; color: var(--text-light);
}
.page-content li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.page-content ul li::marker { color: var(--sage); }
.page-content ol li::marker { color: var(--gold); font-weight: 600; }

/* ── TABLE (template pages) ── */
.table-wrap {
  overflow-x: auto; margin: 2rem 0;
  border: 1px solid var(--border); border-radius: 10px;
}
.page-content table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.page-content thead { background: var(--forest); color: var(--white); }
.page-content th {
  padding: 0.85rem 1.2rem; text-align: left;
  font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.page-content td {
  padding: 0.8rem 1.2rem; border-top: 1px solid var(--border);
  color: var(--text-light);
}
.page-content tbody tr:hover { background: var(--cream); }

/* ── CARDS GRID (template pages) ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin: 2rem 0;
}
.card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.5rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--sage);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.card p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0; }
.card-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  margin-bottom: 0.8rem;
  background: rgba(61,139,79,0.1); color: var(--sage);
}

/* ── CHART (template pages) ── */
.chart-container {
  background: var(--cream); border-radius: 12px;
  padding: 2rem; margin: 2rem 0;
}
.chart-title {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 1.5rem;
}
.bar-chart { display: flex; flex-direction: column; gap: 0.8rem; }
.bar-row {
  display: flex; align-items: center; gap: 1rem;
}
.bar-label {
  width: 100px; font-size: 0.85rem; font-weight: 500;
  color: var(--text); text-align: right; flex-shrink: 0;
}
.bar-track {
  flex: 1; height: 28px; background: rgba(255,255,255,0.7);
  border-radius: 6px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 6px;
  display: flex; align-items: center;
  padding: 0 0.8rem; font-size: 0.78rem;
  font-weight: 600; color: var(--white);
  transition: width 0.6s ease;
}
.bar-fill.green { background: var(--forest); }
.bar-fill.sage { background: var(--sage); }
.bar-fill.gold { background: var(--gold); }

/* ── HIGHLIGHT BOX (template pages) ── */
.highlight-box {
  background: var(--forest); color: var(--white);
  border-radius: 12px; padding: 2rem; margin: 2rem 0;
  display: flex; gap: 2rem; align-items: center;
}
.highlight-box .hb-stat {
  font-size: 2.5rem; font-weight: 700;
  color: var(--gold); flex-shrink: 0;
}
.highlight-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.highlight-box p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ── IMAGE PLACEHOLDER (template pages) ── */
.img-placeholder {
  background: var(--cream); border: 2px dashed var(--border);
  border-radius: 12px; height: 280px;
  display: grid; place-items: center; margin: 2rem 0;
  color: var(--text-light); font-size: 0.9rem;
}

/* ── CODE BLOCK (template pages) ── */
.code-block {
  background: #1a1a2e; color: #e0e0e0; border-radius: 10px;
  padding: 1.5rem; margin: 2rem 0; overflow-x: auto;
  font-family: 'Courier New', monospace; font-size: 0.85rem;
  line-height: 1.8;
}
.code-block .comment { color: #6a6a8a; }
.code-block .keyword { color: #7ec8e3; }
.code-block .string { color: #98c379; }

/* ── FORM STATUS MESSAGES ── */
.form-status-success, .form-status-error {
  padding: 0.8rem 1rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
}
.form-status-success {
  background: rgba(61,139,79,0.12); color: var(--forest);
  border: 1px solid rgba(61,139,79,0.25);
}
.form-status-error {
  background: rgba(200,62,62,0.1); color: #9B2C2C;
  border: 1px solid rgba(200,62,62,0.25);
}

/* ── FOOTER ── */
footer {
  background: var(--forest); color: rgba(255,255,255,0.5); padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo-img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-logo span { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.9rem; }
footer p { font-size: 0.82rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.82rem; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sectors-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .highlight-box { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
}
@media (max-width: 600px) {
  .hero { padding: 8rem 1.5rem 4rem; }
  section { padding: 3.5rem 1.5rem; }
  .hero-stats { gap: 2rem; }
  .form-row { flex-direction: column; }
  .page-header { padding: 7rem 1.5rem 2.5rem; }
  .page-content { padding: 2rem 1.5rem 4rem; }
  .bar-label { width: 70px; font-size: 0.78rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
