:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f3ede3;
  --text: #231914;
  --text-muted: #66584f;
  --primary: #6b3e26;
  --primary-dark: #4f2c19;
  --accent: #c57b37;
  --wa: #1f8a4c;
  --wa-dark: #166c3a;
  --border: #e5dccf;
  --shadow: 0 10px 30px rgba(35, 25, 20, 0.08);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: var(--wa-dark);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(107, 62, 38, 0.08);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(197, 123, 55, 0.16), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(107, 62, 38, 0.12), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-pill {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 1.5rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stat-box {
  background: var(--surface-alt);
  padding: 0.9rem;
  border-radius: 10px;
}

.stat-box strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
}

.stat-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Tabs */
.wood-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tab-btn:hover {
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(107, 62, 38, 0.22);
}

.tab-count {
  font-size: 0.75rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
}

/* Wood Overview Card */
.wood-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.wood-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 0.65rem;
}

.wood-overview h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.wood-overview p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.uses-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.uses-list li {
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}

.uses-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wa);
  font-weight: 800;
}

.specs-grid {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.spec-item {
  background: var(--surface-alt);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.spec-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.spec-item strong {
  font-size: 0.92rem;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}

.filter-bar input,
.filter-bar select {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
}

.filter-bar input {
  flex: 1 1 240px;
}

/* Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fcfaf6;
}

.price-cell {
  font-weight: 700;
  color: var(--primary-dark);
}

.unit-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-alt);
}

.unit-pill.pak {
  background: #fdebd3;
  color: #8a4b08;
}

.btn-sm {
  padding: 0.42rem 0.78rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.contact-only-box {
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.contact-only-box p {
  max-width: 56ch;
  margin: 0 auto 1.2rem;
  color: var(--text-muted);
}

/* Calculator */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.calc-form {
  display: grid;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
}

.calc-result {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 1.35rem;
  display: grid;
  gap: 0.85rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.result-total {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background: #231914;
  color: #f3ede3;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.footer-grid p {
  color: #cfc3b4;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .hero-grid,
  .wood-overview,
  .calc-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}
