/* 
  Chairs for Charity Argentina - Custom Stylesheet
  Fundación Sillas Solidarias - CUIT 30-71884192-3
*/

:root {
  --primary-color: #2b5346;
  --primary-hover: #1e3d33;
  --secondary-color: #e07a5f;
  --secondary-hover: #c9654b;
  --accent-color: #f4a261;
  --dark-color: #1a202c;
  --text-muted: #64748b;
  --bg-light: #fdfbf7;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  background-color: var(--bg-light);
  color: #334155;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.preloader {
  display: none !important;
}

/* --- Topbar --- */
.topbar {
  background: #1e3d33;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar a {
  color: #f8fafc;
  text-decoration: none;
  transition: color 0.2s;
}
.topbar a:hover {
  color: var(--accent-color);
}
.topbar .badge-cuit {
  background: rgba(224, 122, 95, 0.25);
  color: #fbd38d;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --- Navbar & Branding --- */
.navbar {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 0 !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  z-index: 1030 !important;
  overflow: visible !important;
}
.navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1320px !important;
}
.navbar-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon-box {
  width: 40px;
  height: 40px;
  background: #edf7f4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  margin: 0;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.navbar-nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
}
.nav-link {
  font-size: 0.86rem !important;
  font-weight: 500;
  color: #334155 !important;
  padding: 6px 10px !important;
  margin: 0 2px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
  background: #edf7f4;
}

/* --- Dropdown Submenu --- */
.nav-item.dropdown, ul.nav li {
  position: relative;
}
.dropdown-menu, .sub-menu {
  position: absolute !important;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 270px;
  z-index: 1000;
}
.dropdown-item, .sub-menu li a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  color: #1e293b;
  transition: all 0.15s ease;
}
.dropdown-item:hover, .sub-menu li a:hover {
  background: #edf7f4;
  color: var(--primary-color);
  padding-left: 22px;
}

/* Form Controls */
select, .form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

/* --- Inner Page Header Safe Spacing --- */
.page-header-section {
  padding-top: 140px;
  padding-bottom: 50px;
  background: linear-gradient(135deg, #1e3d33 0%, #2b5346 60%, #3d6e5e 100%);
  color: #ffffff;
  position: relative;
}
.page-header-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--bg-light);
  border-radius: 24px 24px 0 0;
}

/* Breadcrumb */
.custom-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.custom-breadcrumb li+li:before {
  content: "/";
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.6);
}
.custom-breadcrumb a {
  color: #fbd38d;
  text-decoration: none;
}
.custom-breadcrumb .active {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Typography & Google Ads Markers --- */
.gads-headline {
  display: inline-block;
  font-weight: 800;
}
.gads-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: #fbd38d;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.gads-desc {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Cards & Badges --- */
.card-solidary {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.card-solidary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(43, 83, 70, 0.1);
}
.icon-box-solidary {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #edf7f4;
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.metric-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}
.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* --- Calculator Box --- */
.calculator-panel {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  padding: 36px;
  border: 1px solid var(--border-subtle);
}
.calc-result-badge {
  background: linear-gradient(135deg, #2b5346, #1e3d33);
  color: #ffffff;
  border-radius: 14px;
  padding: 24px;
}

/* --- Buttons --- */
.btn-primary-solidary {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-solidary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 83, 70, 0.25);
}

.btn-secondary-solidary {
  background: var(--secondary-color);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary-solidary:hover {
  background: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.25);
}

/* --- Footer --- */
.site-footer {
  background: #172c24;
  color: #cbd5e1;
  padding: 60px 0 30px;
  font-size: 0.90rem;
}
.site-footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.site-footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--secondary-color);
}
.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 25px;
}

/* Toast Notification */
.solidary-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border-left: 5px solid var(--primary-color);
  padding: 16px 20px;
  display: none;
  animation: slideInUp 0.3s ease;
}
@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
