:root {
  --bg: #ffffff;
  --bg-alt: #f7f4ef;
  --card: #ffffff;
  --border: #e6e0d4;
  --text: #2b2b2b;
  --text-dim: #6f6a62;
  --accent: #b8935a;
  --accent-hover: #a17e49;
  --accent-gradient: linear-gradient(135deg, #d8b56f, #8a6a3d);
  --whatsapp: #25d366;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.logo img {
  height: 64px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-nav-slot { display: flex; align-items: center; gap: 10px; }
.auth-link { font-size: 13px; font-weight: 600; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.auth-link:hover { color: var(--accent); }

.lang-select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--whatsapp);
  color: #06210f;
}
.btn-primary:hover { background: #2fe377; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* Hero */
.hero {
  padding: 90px 24px 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 147, 90, 0.14), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(37, 211, 102, 0.06), transparent 45%),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
  font-size: 38px;
  margin: 0 0 18px;
  font-weight: 800;
  line-height: 1.2;
}
.hero p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 32px;
}

/* Full-bleed cover-photo style hero */
.hero-with-cover {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 12, 0.2), rgba(10, 10, 12, 0.4)),
    url("../assets/hero-cover.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.hero-with-cover h1,
.hero-with-cover p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-with-cover p { color: rgba(255, 255, 255, 0.88); }

@media (max-width: 600px) {
  .hero-with-cover { min-height: 420px; padding: 32px 20px; }
}

.category-detail-photo {
  width: 100%;
  max-width: 480px;
  height: 260px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(43, 43, 43, 0.12);
}
.category-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hidden-init { display: none; }
.back-link { margin-top: 28px; }

.category-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(184, 147, 90, 0.14);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.category-detail-icon svg { width: 38px; height: 38px; }

/* Vision & Mission */
.vm-section { padding: 60px 0; background: var(--bg); }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.vm-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vm-card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* Calculators */
.calc-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 560px;
  margin: 0 auto;
}
.calc-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.calc-field input, .calc-field select {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 15px;
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--accent); }
.calc-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: none;
}
.calc-result.show { display: block; }
.calc-result .calc-result-value {
  font-size: 26px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.calc-note { font-size: 12px; color: var(--text-dim); margin-top: 10px; }
.calc-cta { margin-top: 18px; }

/* Comparison table */
.calc-panel:has(.compare-table) { max-width: 760px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.compare-table th:first-child, .compare-table td:first-child { color: var(--text-dim); font-weight: 600; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { font-weight: 700; }
.calc-panel ul { margin: 0; padding-left: 20px; font-size: 14px; }
.calc-panel ul li { margin-bottom: 6px; }
.calc-panel ul a { color: var(--accent); }

/* Values */
.values-section { padding: 50px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.values-section h2 { font-size: 26px; margin: 0 0 24px; font-weight: 800; }
.values-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.value-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-hover);
}

/* Why GND */
.why-section { padding: 60px 0; }
.why-section h2 { font-size: 28px; margin: 0 0 26px; font-weight: 800; text-align: center; }
.why-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 14px;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.why-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--whatsapp);
}

/* History / Timeline */
.history-section { padding: 60px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.history-section h2 { font-size: 28px; margin: 0 0 10px; font-weight: 800; }
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
  position: relative;
}
.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin-bottom: 14px;
}
.timeline-item h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.timeline-item p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Category search */
.category-search {
  max-width: 420px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
}
.category-search svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}
.category-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
}
.category-search input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Categories */
.categories-section { padding: 70px 0; }
.categories-section h2, .about-text h2, .contact-section h2 {
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 800;
}
.section-sub {
  color: var(--text-dim);
  margin: 0 0 36px;
  font-size: 15px;
}

.condition-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.condition-toggle button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}
.condition-toggle button.active {
  background: var(--accent-gradient);
  color: #fff;
}

.group-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.group-filter-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
}
.group-filter-btn:hover { border-color: var(--accent); color: var(--text); }
.group-filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

.spareparts-section { background: var(--bg-alt); }

.founder-section { padding: 60px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.founder-inner { display: flex; align-items: center; gap: 40px; }
.founder-photo img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.founder-text h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 6px; }
.founder-text h3 { font-size: 28px; margin: 0 0 4px; }
.founder-role { color: var(--text-dim); font-weight: 600; margin: 0 0 16px; }
.founder-links a { color: var(--accent); font-weight: 700; text-decoration: none; }
.founder-links a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .founder-inner { flex-direction: column; text-align: center; }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(43, 43, 43, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(184, 147, 90, 0.16);
}

.category-photo-wrap {
  margin: -22px -22px 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 160px;
  background: var(--bg-alt);
}
.category-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(184, 147, 90, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
}
.category-icon svg { width: 28px; height: 28px; }

.category-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.category-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  flex: 1;
}

.category-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--whatsapp);
  border: 1px solid var(--whatsapp);
  border-radius: 7px;
  padding: 8px 14px;
}
.category-quote-btn:hover {
  background: var(--whatsapp);
  color: #06210f;
}

/* About */
.about-section {
  background: var(--bg-alt);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text p {
  color: var(--text-dim);
  font-size: 15px;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(43, 43, 43, 0.05);
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.stat span:last-child { color: var(--text-dim); font-size: 13px; }

/* Contact */
.contact-section {
  padding: 80px 0;
  text-align: center;
}
.contact-section p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-links a:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-links svg { width: 20px; height: 20px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Floating live support button */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #06210f;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.floating-whatsapp svg { width: 22px; height: 22px; }
.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

@media (max-width: 560px) {
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 14px; }
}

/* AI advisor widget */
.advisor-toggle-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(184, 147, 90, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.advisor-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184, 147, 90, 0.5); }

.advisor-panel {
  position: fixed;
  bottom: 90px;
  left: 22px;
  z-index: 101;
  width: 340px;
  max-width: calc(100vw - 44px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.advisor-panel.open { display: flex; }

.advisor-panel-header {
  background: var(--accent-gradient);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.advisor-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.advisor-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advisor-bubble {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.advisor-bubble-user {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.advisor-bubble-assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 3px;
}
.advisor-bubble-typing { opacity: 0.6; font-style: italic; }
.advisor-disclaimer {
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.advisor-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.advisor-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 13px;
}
.advisor-input:focus { outline: none; border-color: var(--accent); }
.advisor-send-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .advisor-toggle-btn span:last-child { display: none; }
  .advisor-toggle-btn { padding: 14px; }
  .advisor-panel { left: 12px; right: 12px; width: auto; bottom: 84px; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .vm-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
