/* Clasebil Riparazione — site stylesheet */

:root {
  --site-primary: #655605;
  --site-primary-light: #9b9549;
  --site-primary-dark: #4e2800;
  --site-secondary: #438665;
  --site-accent: #005bba;
  --bs-body-bg: #fffad8;
  --bs-body-color: #201800;
  --bs-body-font-family: 'Mulish', sans-serif;
  --bs-link-color: #655605;
  --bs-link-hover-color: #4e2800;
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
}

a { color: var(--site-primary); }
a:hover { color: var(--site-primary-dark); }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border-width: 1px;
}

.btn-primary {
  background-color: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--site-primary-dark);
  border-color: var(--site-primary-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--site-primary);
  border-color: var(--site-primary);
  background-color: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}

.bg-primary { background-color: var(--site-primary) !important; }
.text-primary { color: var(--site-primary) !important; }
.border-primary { border-color: var(--site-primary) !important; }

/* ---------- Cards ---------- */
.card {
  border-radius: 24px;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background-color: #ffffff;
}

.card.tint-primary { box-shadow: 0 6px 18px rgba(101,86,5,0.12); }
.card.tint-secondary { box-shadow: 0 6px 18px rgba(67,134,101,0.14); }
.card.tint-accent { box-shadow: 0 6px 18px rgba(0,91,186,0.10); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid rgba(101,86,5,0.25);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05);
  background-color: #ffffff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--site-primary);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05), 0 0 0 0.15rem rgba(101,86,5,0.18);
}

/* ---------- Images ---------- */
img.rounded-img {
  border-radius: 16px;
}

/* ---------- Navbar ---------- */
.site-navbar {
  background-color: #fffad8;
  box-shadow: none;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-navbar.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.site-navbar .logo-mark {
  height: 48px;
  width: 48px;
  transition: height 0.25s ease, width 0.25s ease;
  border-radius: 16px;
}
.site-navbar.scrolled .logo-mark {
  height: 34px;
  width: 34px;
}
.navbar-brand-text {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--site-primary-dark);
}

/* ---------- Sections / rhythm ---------- */
.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid rgba(67,134,101,0.25);
}
.section:first-of-type { border-top: none; }
.section-bg-tint { background-color: #ffffff; }

/* ---------- Hero ---------- */
.hero-band {
  background-color: #fffad8;
  padding-top: 3.5rem;
  padding-bottom: 0;
}
.hero-band h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero-band h1 { font-size: 2.75rem; }
}
.hero-image {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(101,86,5,0.14);
}

.stat-band {
  background-color: var(--site-primary);
  color: #fffad8;
  margin-top: 3rem;
  border-radius: 24px 24px 0 0;
}
.stat-band .stat-number {
  font-family: 'Lora', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fffad8;
}
.stat-band .stat-label {
  font-size: 0.9rem;
  color: #fffad8cc;
}

/* ---------- Team ---------- */
.team-card {
  text-align: left;
}
.team-card .role {
  color: var(--site-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid rgba(67,134,101,0.25);
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
.site-footer a {
  color: var(--bs-body-color);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--site-primary);
}
.footer-links a {
  margin-right: 1rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background-color: #ffffff;
  border-top: 1px solid rgba(67,134,101,0.3);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  padding: 1rem 1.25rem;
  display: none;
}
.cookie-banner.show {
  display: block;
}

/* ---------- Misc ---------- */
.asym-offset {
  margin-top: -2rem;
}
@media (max-width: 767px) {
  .asym-offset { margin-top: 0; }
}

.divider-pill {
  width: 64px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--site-secondary);
  margin-bottom: 1.25rem;
}
