/*
  Stallion Security Theme
  Edit values in :root to quickly re-theme Bootstrap and site colors.
*/
:root {
  /* Bootstrap token overrides */
  --bs-primary: #ef614f;
  --bs-primary-rgb: 239, 97, 79;
  --bs-secondary: #17191d;
  --bs-secondary-rgb: 23, 25, 29;
  --bs-dark: #0f1013;
  --bs-dark-rgb: 15, 16, 19;
  --bs-light: #f6f7f9;
  --bs-light-rgb: 246, 247, 249;
  --bs-body-font-family: "Barlow", sans-serif;
  --bs-body-color: #d8dde5;
  --bs-body-bg: #111318;
  --bs-border-color: #2a2e37;

  /* Theme-level custom tokens */
  --stallion-bg-900: #0c0d10;
  --stallion-bg-800: #14161b;
  --stallion-bg-700: #1b1f27;
  --stallion-muted: #9ba5b6;
  --stallion-accent: #ef614f;
  --stallion-accent-soft: #ff7a67;
  --stallion-card: #191d25;
  --stallion-stroke: #2a2f3a;
  --stallion-radius: 1rem;
  --stallion-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 20% -10%, rgba(239, 97, 79, 0.2), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--stallion-bg-900);
  color: var(--bs-body-color);
  line-height: 1.6;
}

.page-transition {
  animation: fadePageIn 0.8s ease-out;
}

@keyframes fadePageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
h4,
.navbar-brand strong {
  font-family: "Kanit", sans-serif;
  letter-spacing: 0.2px;
}

.topbar {
  background: #232427;
  color: #d2d5dc;
  border-bottom: 1px solid #2f3238;
}

.topbar-social a {
  color: #f0f2f7;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-social a i {
  font-size: 1rem;
}

.top-info-icon {
  color: var(--stallion-accent-soft);
  margin-right: 0.2rem;
  vertical-align: -1px;
}

.topbar-social a:hover {
  opacity: 1;
}

.main-nav {
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand small {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--stallion-muted);
}

.brand-shield {
  width: 34px;
  height: 40px;
  display: inline-block;
  background: linear-gradient(180deg, #ff8e80 0%, #ef614f 80%);
  clip-path: polygon(50% 0%, 92% 15%, 92% 52%, 50% 100%, 8% 52%, 8% 15%);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.25);
}

.navbar-nav .nav-link {
  color: #eceff4;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding-inline: 0.9rem;
}

.nav-link-icon {
  font-size: 0.95rem;
  margin-right: 0.25rem;
  vertical-align: -1px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--stallion-accent-soft);
}

.login-nav-btn {
  border-radius: 999px;
  min-width: 88px;
}

.hero-section {
  padding: 5.5rem 0 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 19, 0.96) 0%, rgba(15, 16, 19, 0.84) 48%, rgba(15, 16, 19, 0.35) 100%),
    linear-gradient(160deg, #0e1014 0%, #161a21 70%, #141920 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-kicker {
  color: #f5f6f9;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-section h1 {
  color: #ffffff;
  line-height: 1;
}

.hero-section .lead {
  max-width: 520px;
  color: #c4ccda;
}

.hero-guard {
  max-height: 620px;
  object-fit: cover;
}

.btn-primary {
  --bs-btn-bg: var(--stallion-accent);
  --bs-btn-border-color: var(--stallion-accent);
  --bs-btn-hover-bg: #e65542;
  --bs-btn-hover-border-color: #e65542;
  --bs-btn-active-bg: #db4d3a;
  --bs-btn-active-border-color: #db4d3a;
  --bs-btn-color: #fff;
  --bs-btn-font-weight: 700;
  border-radius: 999px;
}

.btn-outline-light {
  border-radius: 999px;
}

.service-tabs {
  margin-top: -1.4rem;
}

.tabs-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--stallion-shadow);
}

.tab-item {
  background: #ea6251;
  padding: 1.4rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 124px;
}

.tab-item.active {
  background: #ff7a67;
}

.tab-icon {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.tab-item h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.section-soft {
  background: linear-gradient(180deg, #12151b 0%, #171b23 100%);
}

.section-label {
  color: var(--stallion-accent-soft);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.about-card {
  background: linear-gradient(165deg, #202531 0%, #191d27 70%);
  border: 1px solid var(--stallion-stroke);
  border-radius: var(--stallion-radius);
  box-shadow: var(--stallion-shadow);
}

.about-card ul li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.about-list-icon {
  color: var(--stallion-accent-soft);
  font-size: 1.05rem;
  margin-right: 0.35rem;
  vertical-align: -2px;
}

.about-card ul li:last-child {
  border-bottom: 0;
}

.stats-band {
  background: linear-gradient(90deg, #ef614f 0%, #d64e3d 100%);
  color: #fff;
}

.stat-number {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat-label {
  margin: 0;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.service-card {
  background: linear-gradient(180deg, #1a1e28 0%, #141821 100%);
  border: 1px solid var(--stallion-stroke);
  border-radius: 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card-icon {
  font-size: 1.8rem;
  color: var(--stallion-accent-soft);
  margin-bottom: 0.7rem;
  display: inline-block;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #e56a59;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.cta-section {
  background: linear-gradient(120deg, #12151a 0%, #1f2530 100%);
}

.site-footer {
  background: #0b0c0f;
  color: #d2d7e0;
}

.footer-icon {
  color: var(--stallion-accent-soft);
  margin-right: 0.35rem;
  vertical-align: -2px;
}

.admin-modal .modal-content {
  background: linear-gradient(160deg, #1c212b 0%, #151a23 75%);
  border: 1px solid var(--stallion-stroke);
  border-radius: 1rem;
  color: #e8edf7;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.admin-modal .modal-subtitle {
  color: #b7c0cf;
}

.admin-modal .form-label {
  color: #e4e9f4;
  font-weight: 600;
}

.admin-modal .form-control {
  background-color: #10141c;
  border-color: #2f3745;
  color: #eef2f8;
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
}

.admin-modal .admin-input-group .input-group-text {
  background-color: #10141c;
  border-color: #2f3745;
  color: #c5cedd;
}

.admin-modal .admin-input-group:focus-within .input-group-text {
  border-color: var(--stallion-accent-soft);
  color: #fff;
}

.admin-modal .form-control::placeholder {
  color: #8e99ac;
}

.admin-modal .form-control:focus {
  border-color: var(--stallion-accent-soft);
  box-shadow: 0 0 0 0.22rem rgba(239, 97, 79, 0.2);
  background-color: #10141c;
  color: #f2f5fb;
}

.admin-modal .form-check-input {
  background-color: #141a23;
  border-color: #3a4353;
}

.admin-modal .form-check-input:checked {
  background-color: var(--stallion-accent);
  border-color: var(--stallion-accent);
}

.admin-modal .form-check-label,
.admin-modal .forgot-link {
  color: #c8d1df;
}

.admin-modal .forgot-link {
  text-decoration: none;
}

.admin-modal .forgot-link:hover {
  color: #fff;
  text-decoration: underline;
}

.admin-modal .btn-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 4rem;
  }

  .hero-section .display-3 {
    font-size: clamp(2.2rem, 7vw, 3.3rem);
  }

  .tab-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .tabs-wrapper .tab-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    text-align: center;
  }

  .topbar-divider {
    display: none;
  }

  .hero-section {
    padding-bottom: 2.5rem;
  }

  .service-tabs {
    margin-top: -0.8rem;
  }
}
