/* ==========================================================================
   Omnitek – App Styles (Professional & Polished)
   Place this file at: public/assets/css/app.css
   ========================================================================== */

/* ---------------------- Brand Palette & Bootstrap Mapping ----------------- */
:root {
  /* Core Brand Colors */
  --brand-blue: #044578;
  --brand-red: #d42426; /* Deep Christmas Red */
  --brand-dark: #0f172a;
  --brand-light: #f8f9fa;

  /* Accents & Tints */
  --brand-blue-12: color-mix(in oklab, var(--brand-blue) 12%, white);
  --brand-blue-6: color-mix(in oklab, var(--brand-blue) 6%, white);
  --brand-red-10: color-mix(in oklab, var(--brand-red) 10%, white);

  /* Typography */
  --font-head: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* Bootstrap Overrides */
:root {
  --bs-primary: var(--brand-red); /* Using Red as primary for the theme */
  --bs-primary-rgb: 212, 36, 38;
  --bs-secondary: #64748b;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: #334155;
  --bs-link-color: var(--brand-blue);
  --bs-link-hover-color: var(--brand-red);
}

/* ------------------------------ Base / Typography ------------------------- */
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.lead {
  font-weight: 400;
  color: #475569;
}

/* ------------------------------- Components ------------------------------ */

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: 0 4px 6px -1px rgba(212, 36, 38, 0.2), 0 2px 4px -1px rgba(212, 36, 38, 0.1);
}

.btn-primary:hover {
  background-color: #b91c1e;
  border-color: #b91c1e;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(212, 36, 38, 0.3);
}

.btn-outline-dark {
  border-color: #e2e8f0;
  color: var(--brand-dark);
}

.btn-outline-dark:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Cards */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--brand-red-10);
}

/* Navbar */
.brand-navbar {
  border-top: 4px solid var(--brand-red);
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.nav-link {
  font-weight: 500;
  color: #64748b;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red) !important;
}

.dropdown-menu {
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #475569;
}

.dropdown-item:hover {
  background-color: var(--brand-red-10);
  color: var(--brand-red);
}

/* Utility Bar */
.utility-bar {
  background-color: var(--brand-dark);
  color: #94a3b8;
  font-size: 0.875rem;
}

.utility-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.utility-bar a:hover {
  color: white;
}

/* Footer */
.brand-footer {
  background-color: var(--brand-dark);
  color: #cbd5e1;
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.brand-footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

.brand-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.brand-footer a:hover {
  color: white;
}

.footer-hr {
  border-color: #334155;
  margin-block: 3rem;
}

/* ------------------------------- Sections -------------------------------- */
.page-header {
  background: linear-gradient(to bottom, #f8fafc, #fff);
  padding-block: 4rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.page-eyebrow {
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.icon-box {
  transition: all 0.3s ease;
}

.card:hover .icon-box {
  background-color: var(--brand-red) !important;
  color: white !important;
}

/* ------------------------------- Utilities ------------------------------- */
.text-primary { color: var(--brand-red) !important; }
.bg-primary-subtle { background-color: var(--brand-red-10) !important; }
.text-secondary { color: #64748b !important; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero p, .hero .btn {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero p { animation-delay: 0.2s; opacity: 0; }
.hero .btn { animation-delay: 0.4s; opacity: 0; }
