:root {
  --bg: #0b1220;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --brand: #3b82f6;
  --brand-2: #22c55e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(59, 130, 246, 0.3), transparent 55%), radial-gradient(1000px 600px at 80% 20%, rgba(34, 197, 94, 0.18), transparent 60%), var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

/* Bootstrap utility overrides for dark theme */
.text-muted {
  color: var(--muted) !important;
}
.text-body {
  color: var(--text) !important;
}

/* Hero sizing tweaks */
@media (max-width: 576px) {
  .hero .carousel {
    height: 400px;
  }
  .hero-img {
    height: 400px;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.04) contrast(1.02);
  }

  .hero-content {
    position: relative;
    z-index: 5;
    margin-top: -90px;
    padding-bottom: 3rem;
  }
}

a:hover {
  color: #dbeafe;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: #fff;
  color: #111;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  z-index: 10000;
}
.skip-link:focus {
  left: 0.75rem;
}

/* Header */
.site-header {
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 10px;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.navbar .nav-link {
  color: var(--text);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Buttons */
.btn {
  border-radius: 14px;
  font-weight: 800;
}
.btn-brand {
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  color: #0b1220;
  border: none;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}
.btn-brand:hover {
  filter: brightness(1.05);
  color: #0b1220;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero */
.hero {
  position: relative;
}
.hero .carousel {
  height: min(58vh, 560px);
}
.hero-img {
  height: min(58vh, 560px);
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.15) 0%, rgba(11, 18, 32, 0.92) 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  margin-top: -120px;
  padding-bottom: 2rem;
}
.glass {
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}
.fw-800 {
  font-weight: 800;
}
.fw-700 {
  font-weight: 700;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
}

/* Sections */
.section {
  padding: 4.25rem 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-soft {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.card-soft .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.list-check {
  list-style: none;
  padding-left: 0;
}
.list-check li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #86efac;
  font-weight: 900;
}

/* Media */
.media-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.media-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(11, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
}

/* Contact */
.icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
  flex: 0 0 auto;
}
.form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 14px;
}
.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
  color: var(--text);
}
.form-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}
.invalid-feedback {
  color: #fecaca;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 18, 32, 0.9);
}
.footer-link {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-weight: 700;
}
.footer-link:hover {
  color: #e0f2fe;
  text-decoration: underline;
}

.link-underline {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-underline:hover {
  color: #e0f2fe;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-content {
    margin-top: -120px;
  }
}

/* Hero responsive sizing */
@media (max-width: 992px) {
  .hero-content {
    margin-top: -70px;
  }
}
@media (max-width: 576px) {
  .hero .carousel {
    height: clamp(280px, 52vh, 440px);
  }
  .hero-img {
    height: clamp(280px, 52vh, 440px);
  }
  .hero-content {
    margin-top: -55px;
    padding-bottom: 2.5rem;
  }
}

.hero .carousel-item {
  height: 400px !important;
}
.hero .carousel-item img {
  height: 400px !important;
  object-fit: cover;
}

/* =========================================================
   Historical Dark-Brown Theme + Navbar Fixes (override layer)
   Drop-in safe: keep the original CSS intact above.
   ========================================================= */

/* Theme variables */
:root {
  --bg: #1b120b; /* deep walnut */
  --surface: rgba(255, 245, 235, 0.06);
  --surface-2: rgba(255, 245, 235, 0.1);
  --border: rgba(255, 234, 205, 0.16);
  --text: rgba(255, 248, 235, 0.92);
  --muted: rgba(255, 236, 210, 0.7);
  --brand: #caa45a; /* antique gold */
  --brand-2: #9b4a2a; /* warm rust */
}

/* Page background (warm glows instead of blue/green) */
body {
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(202, 164, 90, 0.22), transparent 55%), radial-gradient(1000px 600px at 80% 20%, rgba(155, 74, 42, 0.18), transparent 60%),
    radial-gradient(900px 700px at 60% 95%, rgba(93, 47, 28, 0.22), transparent 55%), var(--bg);
}

/* Header / overlay */
.site-header {
  background: rgba(27, 18, 11, 0.78) !important;
  border-bottom: 1px solid rgba(255, 234, 205, 0.12) !important;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(27, 18, 11, 0.12) 0%, rgba(27, 18, 11, 0.94) 80%) !important;
}

/* Accent text */
.eyebrow {
  color: #e0c28a !important;
}

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), #e2c27a) !important;
  color: #1b120b !important;
  box-shadow: 0 10px 30px rgba(202, 164, 90, 0.24) !important;
}
.btn-brand:hover {
  filter: brightness(1.06);
  color: #1b120b !important;
}

/* Icons + focus ring */
.icon-bubble {
  background: rgba(202, 164, 90, 0.16) !important;
  border: 1px solid rgba(202, 164, 90, 0.28) !important;
  color: #f3ddb2 !important;
}
.form-control:focus {
  border-color: rgba(202, 164, 90, 0.6) !important;
  box-shadow: 0 0 0 0.2rem rgba(202, 164, 90, 0.18) !important;
}

/* Checkmarks */
.list-check li::before {
  color: #e2c27a !important;
}

/* Media badge */
.media-badge {
  background: rgba(27, 18, 11, 0.78) !important;
}

/* Links */
a:hover {
  color: #fff2d5;
}

/* =========================================================
   Navbar size + hamburger visibility fixes
   ========================================================= */

/* Reduce header height */
.navbar {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.brand-logo {
  height: 40px !important; /* slightly smaller */
  border-radius: 10px;
}
.navbar .nav-link {
  padding: 0.5rem 0.75rem !important; /* tighter */
}

/* Make active/hover states warm instead of default blue */
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  background: rgba(202, 164, 90, 0.16) !important;
}
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  background: rgba(202, 164, 90, 0.22) !important;
  color: #fff2d5 !important;
}

/* Ensure hamburger icon shows even without navbar-dark/light class */
.navbar-toggler {
  border-color: rgba(255, 242, 213, 0.25) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(202, 164, 90, 0.18) !important;
}
.navbar-toggler-icon {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,242,213,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile: make the dropdown panel readable */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-radius: 16px;
    background: rgba(27, 18, 11, 0.88);
    border: 1px solid rgba(255, 234, 205, 0.12);
  }
  .navbar-nav {
    gap: 0.25rem;
  }
}

/* =========================================================
   Requested tweaks: brand text white, buttons gold, footer brown
   ========================================================= */

/* 1) Make "History Roads" text next to logo white */
.navbar .brand-name,
.navbar-brand .brand-name {
  color: #ffffff !important;
}

/* 2) Convert Bootstrap outline-primary buttons from blue to antique-gold */
.btn.btn-outline-primary,
.btn-outline-primary {
  color: #f3ddb2 !important;
  border-color: var(--brand) !important;
  background: rgba(0, 0, 0, 0) !important;
  box-shadow: none !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(202, 164, 90, 0.22) !important;
  border-color: #e2c27a !important;
  color: #fff2d5 !important;
}

.btn.btn-outline-primary:active,
.btn-outline-primary:active {
  background: rgba(202, 164, 90, 0.3) !important;
  border-color: #e2c27a !important;
  color: #fff2d5 !important;
}

/* Make any icon inside inherit the new color */
.btn-outline-primary i,
.btn-outline-primary svg {
  color: inherit !important;
  fill: currentColor !important;
}

/* 3) Footer background to match navbar (dark brown) */
.site-footer {
  background: rgba(15, 10, 6, 0.82) !important;
  border-top: 1px solid rgba(255, 234, 205, 0.12) !important;
}

.footer-link {
  color: rgba(255, 242, 213, 0.78) !important;
}

.footer-link:hover {
  color: #fff2d5 !important;
  text-decoration: underline;
}

.link-underline {
  color: #f3ddb2 !important;
}

.link-underline:hover {
  color: #fff2d5 !important;
}

/* White text */
.cyan {
  color: rgb(234, 245, 11);
}

.logo-text {
  color: white;
  font-weight: 500px !important;
}

/* button override */
.btn-outline-primary {
  color: #8fb8fa !important;
  border-color: #3b82f6;
}
.brand-logo {
  height: 80px !important; /* 32 / 36 / 40 / 48 etc */
  width: auto;
}
/* Taller or shorter navbar */
.navbar {
  padding-top: 0.25rem; /* increase for taller */
  padding-bottom: 0.25rem;
}

/* NAV hover background (the pill color) */
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  background: rgba(202, 164, 90, 0.52) !important; /* ← change this */
  color: #fff2d5 !important; /* optional */
}

/* NAV active/current background */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  background: rgba(202, 164, 90, 0.3) !important; /* ← change this too */
  color: #fff2d5 !important;
}

.link-underline {
  color: #fff700 !important;
  text-decoration: none;
}
