/* Fluchile IT — site styles */

:root {
  --site-primary: #8d432f;
  --site-primary-light: #d98b71;
  --site-primary-dark: #670f00;
  --site-secondary: #686d46;
  --site-accent: #008fa0;
  --site-surface: #f6f6f6;
  --site-text-secondary: #605451;
  --bs-body-bg: #fff3f3;
  --bs-body-color: #170805;
  --bs-body-font-family: 'Karla', sans-serif;
  --bs-link-color: #8d432f;
  --bs-link-hover-color: #670f00;
}

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: 'Spectral', serif;
}

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

.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; }

/* ---- Buttons: brutalist-thick-border, pill-everywhere shapes ---- */
.btn {
  border-radius: 9999px;
  padding: 0.65rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-width: 3px;
  box-shadow: 2px 2px 0 currentColor;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { box-shadow: none; transform: translate(2px, 2px); }

.btn-primary { box-shadow: 3px 3px 0 var(--site-primary-dark); }
.btn-primary:hover { box-shadow: none; }

.btn-surface {
  background-color: var(--site-surface);
  color: var(--site-primary);
  border: 3px solid var(--site-primary);
  border-radius: 9999px;
  box-shadow: 3px 3px 0 var(--site-primary);
}
.btn-surface:hover { box-shadow: none; color: var(--site-primary-dark); border-color: var(--site-primary-dark); }

/* ---- Cards ---- */
.card {
  border-radius: 24px;
  border: 1px solid rgba(104, 109, 70, 0.25);
  box-shadow: 4px 4px 0 var(--site-accent);
  background-color: var(--site-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--site-accent);
}

/* ---- Inputs ---- */
.form-control, .form-select {
  border-radius: 12px;
  border: 2px solid rgba(104, 109, 70, 0.35);
}
.form-control:focus, .form-select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 143, 160, 0.2);
}

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

/* ---- Section rhythm: hairline borders, consistent bg ---- */
.site-section {
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid rgba(104, 109, 70, 0.25);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.site-section:last-of-type { border-bottom: none; }

.max-w-prose {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Navbar: sticky-shrink ---- */
.navbar {
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background-color: var(--bs-body-bg);
}
.navbar .logo-mark {
  height: 52px;
  width: 52px;
  transition: height 0.25s ease, width 0.25s ease;
  border-radius: 16px;
}
.navbar.scrolled {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  box-shadow: 0 2px 10px rgba(23, 8, 5, 0.12);
}
.navbar.scrolled .logo-mark {
  height: 36px;
  width: 36px;
}
.navbar-brand span {
  font-family: 'Spectral', serif;
  font-weight: 600;
}
.nav-link {
  font-weight: 600;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.1rem;
  height: 2px;
  background-color: var(--site-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* ---- Hero: asymmetric overlap ---- */
.hero-media {
  position: relative;
}
.hero-media img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card {
  background-color: var(--site-surface);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--site-accent);
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 992px) {
  .hero-card {
    margin-top: 5rem;
    margin-bottom: -5rem;
    margin-right: -3.5rem;
  }
}

/* ---- Project cards ---- */
.project-card img {
  border-radius: 16px 16px 0 0;
}

/* ---- Footer: stacked-centered ---- */
.site-footer {
  background-color: var(--site-surface);
  padding-top: 3rem;
  padding-bottom: 2rem;
  text-align: center;
}
.site-footer .footer-brand {
  font-family: 'Spectral', serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.site-footer p {
  margin-bottom: 0.4rem;
  color: var(--site-text-secondary);
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-links a {
  color: var(--site-primary);
  font-weight: 600;
  text-decoration: none;
}
.site-footer .footer-links a:hover {
  color: var(--site-primary-dark);
  text-decoration: underline;
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 620px;
  margin: 0 auto;
  background-color: var(--site-surface);
  border: 3px solid var(--site-primary);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--site-primary);
  padding: 1.25rem 1.5rem;
  z-index: 1050;
  display: none;
}
.cookie-banner.show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.92rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---- Form confirmation ---- */
.form-success {
  display: none;
}
.form-success.show {
  display: block;
}

/* ---- Misc ---- */
.badge-accent {
  display: inline-block;
  background-color: var(--site-accent);
  color: #fff;
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
