html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #12100e;
  color: #e7ded3;
}

/* Dark navbar + footer overrides */
.navbar.bg-white {
  background-color: #1c1813 !important;
  border-bottom-color: #2a231b !important;
}

.navbar .nav-link.text-dark {
  color: #e7ded3 !important;
}

.navbar .nav-link.text-dark:hover {
  color: #ea580c !important;
}

.footer {
  background-color: #1c1813;
  border-top-color: #2a231b !important;
  color: #9a8f80 !important;
}

.footer a {
  color: #ea580c;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== Home page ===== */

.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 6rem 1.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #ea580c 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #ea580c;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.45);
  background: #f97316;
  color: #fff;
}

.btn-hero-ghost {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-hero-ghost:hover {
  background: #fff;
  color: #c2410c;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background: #1c1813;
  border: 1px solid #2a231b;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #ea580c;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.25);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #b8ac9c;
  line-height: 1.6;
  margin: 0;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .hero {
    padding: 3.5rem 1.25rem;
    border-radius: 14px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .features {
    margin: 2rem 0;
  }
}