/* =======================
   Brand Tokens
   ======================= */
:root {
  /* Primary (Authority Green) */
  --brand-500: #047857;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #064E3B;

  /* Dark Base (Premium Feel) */
  --dark-base: #101614;
  --surface-1: #1c2421;
  --surface-2: #242d28;
  --surface-3: #151a18;

  /* Secondary Neutral (Clean Contrast) */
  --neutral-light: #F8F3E7;
  --warm-section: #F3EBDD;
  --warm-section-2: #ECE0CF;
  --warm-surface: #FFFBF2;
  --ink: #151d19;
  --ink-muted: #4f5b54;

  /* Accent Gold (Success/Value) */
  --accent-gold: #C8A96A;
  --accent-gold-deep: #8d6827;
  --accent-gold-soft: #F1E2BD;

  /* Support Gray (UI Stability) */
  --support-gray: #6B7280;

  /* Semantic colors */
  --text-light: #F8F3E7;
  --text-muted: #c5baaa;
  --muted: var(--text-muted);
  --border-dark: rgba(248, 243, 231, 0.16);
  --border-light: rgba(21, 29, 25, 0.12);
  --ring: 0 0 0 0.2rem rgba(4, 120, 87, 0.25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-light: 0 12px 34px rgba(21, 29, 25, 0.12);
  --shadow: var(--shadow-lg);

  /* Hero treatment */
  --hero-radial: radial-gradient(900px 420px at 12% 8%, rgba(200, 169, 106, 0.26), transparent 60%);
  --hero-linear: linear-gradient(180deg, var(--dark-base), var(--surface-2));
}

/* =======================
   Base
   ======================= */
html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--dark-base), #17201d 48%, #201f1a);
  color: var(--text-light);
  overflow-x: hidden;
}

a {
  color: var(--accent-gold);
}

a:hover {
  color: var(--brand-600);
}

.page-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.py-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.bg-soft {
  background: var(--surface-1);
}

.text-accent {
  color: var(--accent-gold);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* =======================
   Header / Navigation
   ======================= */
.site-header {
  background: var(--dark-base);
  border-bottom: 1px solid var(--border-dark);
}

.brand-logo {
  height: 50px;
  width: auto;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 64px;
  }
}

.brand:hover .brand-logo {
  opacity: 0.82;
}

.brand-name {
  color: var(--text-light);
}

.nav-link {
  color: var(--text-light) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-gold) !important;
}

/* =======================
   Cards / Panels / Forms
   ======================= */
.card,
.form-section,
.search-box,
.feature-card,
.info-card,
.stat-tile,
.hiw-step {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
}

.card {
  border-radius: 0.75rem;
}

.card-body {
  background: transparent;
}

.form-section,
.search-box {
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.form-label,
label {
  color: var(--text-light);
}

.form-text {
  color: var(--text-muted);
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select,
.form-control,
.form-select {
  background: var(--neutral-light);
  color: var(--dark-base);
  border: 1px solid var(--text-muted);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
  background: var(--neutral-light);
  color: var(--dark-base);
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--support-gray) !important;
}

.form-check-input {
  background-color: var(--neutral-light);
  border-color: var(--text-muted);
}

.form-check-input:checked {
  background-color: var(--brand-500);
  border-color: var(--brand-500);
}

/* =======================
   Buttons
   ======================= */
.btn {
  border-radius: 0.5rem;
  font-weight: 700;
  transition: transform 0.05s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.18);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--text-light);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  color: var(--text-light);
}

.btn-success {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--dark-base);
}

.btn-success:hover,
.btn-success:focus {
  background-color: #d9b86b;
  border-color: #d9b86b;
  color: var(--dark-base);
}

.btn-outline-secondary,
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--text-light);
  border-color: var(--text-light);
  color: var(--dark-base);
}

.btn-link {
  color: var(--accent-gold);
}

.btn-link:hover {
  color: var(--brand-600);
}

/* =======================
   Hero / Marketing UI
   ======================= */
.hero,
.hero-gradient {
  background:
    var(--hero-radial),
    var(--hero-linear);
  color: var(--text-light);
}

.hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-light);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.hero-copy {
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions .btn {
  min-width: 180px;
}

.ui-frame {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
}

.shadow-xl,
.shadow-sm {
  box-shadow: var(--shadow) !important;
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  color: var(--text-light);
}

/* =======================
   Sections / Feature Blocks
   ======================= */
.features,
.page-section {
  background: var(--dark-base);
}

.features {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.page-section h1,
.feature-card h2,
.feature-card h3,
.newsletter h2,
.info-card h1 {
  color: var(--text-light);
}

.page-section p,
.feature-card p,
.newsletter p,
.info-card p,
.info-card ul {
  color: var(--text-muted);
}

.feature-card {
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-tile {
  padding: 1rem;
  border-radius: 0.75rem;
}

.hiw-step {
  border-style: dashed;
  border-color: rgba(200, 169, 106, 0.35);
  border-radius: 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--dark-base);
  font-weight: 800;
}

.info-card {
  border-radius: 0.75rem;
}

.info-card h3 {
  color: var(--accent-gold);
}

/* =======================
   Feature Image Blocks
   ======================= */
.feature-card-img {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: 0.75rem;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.feature-overlay {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(10, 13, 12, 0.92), rgba(10, 13, 12, 0.58), transparent);
  color: var(--text-light);
  transition: background 0.3s ease;
}

.feature-overlay h3,
.feature-overlay h5 {
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--text-light);
}

.feature-overlay p {
  margin-bottom: 0;
  color: rgba(245, 241, 232, 0.78);
}

.feature-card-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-img:hover .feature-img {
  transform: scale(1.05);
  opacity: 1;
}

/* =======================
   Newsletter / Footer
   ======================= */
.newsletter {
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border-dark);
  border-radius: 1.25rem;
  color: var(--text-light);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
}

.newsletter-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer {
  background: var(--surface-3);
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
}

/* =======================
   Alerts
   ======================= */
.alert {
  color: var(--dark-base);
  border-radius: 0.5rem;
}

.alert-success {
  background: #d4edda;
  border-color: #c3e6cb;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffeeba;
}

.alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  border-color: #bee5eb;
}

/* =======================
   Responsive
   ======================= */
@media (max-width: 767.98px) {
  .py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .newsletter {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
