:root {
  --brick: #a6432b;
  --brick-dark: #8a3722;
  --charcoal: #2b2420;
  --charcoal-light: #4a3f36;
  --gold: #c79a46;
  --cream: #faf7f3;
  --sand: #f1e9df;
  --line: #e3d5c2;
  --text: #2b2420;
  --text-muted: #6b5b4b;
  --success: #3a7d44;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(43, 36, 32, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
img { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.brand-name .accent { color: var(--gold); }
.brand-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  color: #cfc3b5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav {
  display: flex;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav a {
  color: #e8ddd0;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.header-actions a {
  color: #e8ddd0;
  font-size: 0.9rem;
  position: relative;
}
.header-actions a:hover { color: #fff; }
.cart-badge {
  background: var(--brick);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 1px 6px;
  position: absolute;
  top: -8px;
  right: -14px;
}
.btn-quote-cta {
  background: var(--gold);
  color: var(--charcoal) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-secondary { background: var(--charcoal); color: #fff; }
.btn-secondary:hover { background: var(--charcoal-light); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--sand); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { filter: brightness(0.95); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-block { width: 100%; display: block; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: url('../assets/hero.svg') center/cover no-repeat, var(--charcoal);
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  max-width: 760px;
  margin: 0 auto 14px;
}
.hero p { color: #e8ddd0; max-width: 600px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-title {
  font-size: 1.7rem;
  margin: 0 0 6px;
}
.section-sub { color: var(--text-muted); margin: 0 0 30px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-alt { background: var(--sand); }

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; font-size: 1.02rem; }
.card-meta { color: var(--text-muted); font-size: 0.85rem; }
.card-price { color: var(--brick); font-weight: 700; font-size: 1.05rem; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row .btn { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 560px) {
  .button-row { flex-direction: column; }
  .button-row .btn { width: 100%; }
}
.card-tag {
  display: inline-block;
  background: var(--sand);
  color: var(--charcoal-light);
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
  align-self: flex-start;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-chip.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--charcoal-light); }
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field-full { grid-column: 1 / -1; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.helper-text { font-size: 0.8rem; color: var(--text-muted); }
.form-msg { padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.form-msg.error { background: #fbe6e4; color: var(--danger); }
.form-msg.success { background: #e5f2e6; color: var(--success); }

/* ---------- Tabs / segmented control (design tier, lighting tier) ---------- */
.option-group { display: flex; gap: 10px; flex-wrap: wrap; }
.option-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
}
.option-pill.active { background: var(--brick); border-color: var(--brick); color: #fff; }

/* ---------- Estimate box ---------- */
.estimate-box {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.estimate-total { font-size: 2.1rem; color: var(--gold); font-weight: 700; }
.estimate-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.estimate-row:last-child { border-bottom: none; }

/* ---------- Cart / summary table ---------- */
.line-table { width: 100%; border-collapse: collapse; }
.line-table th, .line-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.line-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.qty-input { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.92rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Steps / progress tracker ---------- */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.steps .step {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.steps .step.done { background: var(--gold); color: var(--charcoal); }

.progress-track { display: flex; flex-wrap: wrap; gap: 0; }
.progress-track .stage {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 10px 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 3px solid var(--line);
  position: relative;
}
.progress-track .stage.done { border-top-color: var(--success); color: var(--success); font-weight: 600; }
.progress-track .stage.current { border-top-color: var(--brick); color: var(--brick); font-weight: 700; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
@media (max-width: 760px) { .account-layout { grid-template-columns: 1fr; } }
.account-menu { display: flex; flex-direction: column; gap: 4px; }
.account-menu button {
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--charcoal-light);
}
.account-menu button.active { background: var(--brick); color: #fff; }
.record-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.record-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.status-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; background: var(--sand); color: var(--charcoal-light); }

/* ---------- Why us / stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--brick); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--text-muted); margin: 10px 0 0; }

/* ---------- Reviews ---------- */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stars { color: var(--gold); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc3b5; padding: 40px 0 18px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
.footer-grid a { display: block; color: #b7a998; font-size: 0.88rem; margin-bottom: 8px; }
.footer-brand .footer-logo { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand .footer-tagline { font-size: 0.85rem; color: #cfc3b5; margin: 0 0 10px; }
.footer-brand .footer-address { font-size: 0.82rem; color: #b7a998; margin: 0 0 14px; line-height: 1.5; }
.footer-contact-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-footer { padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.btn-footer-call { background: transparent; border: 1px solid #6b5b4b; color: #fff; }
.btn-footer-call:hover { background: rgba(255,255,255,0.08); }
.btn-footer-whatsapp { background: #25d366; color: #fff; border: 1px solid #25d366; }
.btn-footer-whatsapp:hover { background: #1ebe5a; }
.footer-bottom { border-top: 1px solid #443a32; padding-top: 16px; font-size: 0.82rem; color: #a4988a; text-align: center; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .site-footer { padding: 28px 0 14px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .btn-footer { padding: 7px 12px; font-size: 0.78rem; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.badge-cod { background: var(--sand); color: var(--charcoal-light); padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; }

@media (max-width: 900px) {
  .topbar { flex-wrap: nowrap; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .main-nav, .header-actions {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    order: 3;
  }
  .header-actions { order: 4; }
  .nav-toggle { order: 2; }
  .topbar.menu-open { flex-wrap: wrap; align-items: flex-start; }
  .topbar.menu-open .main-nav,
  .topbar.menu-open .header-actions {
    display: flex;
  }
  .main-nav a, .header-actions a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .header-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 6px;
    padding-top: 6px;
  }
  .header-actions .btn-quote-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }
}
