/**
 * Custom styles for SevenKM theme with Bootstrap 5
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Lexend:wght@100..900&family=Poppins:wght@100..900&display=swap');

:root {
  --primary: #0066FF;
  --secondary: #00D4FF;
  --accent: #FF6B00;
  --dark: #0A0E27;
  --dark-alt: #1A1F3A;
  --nav-bg: #2C3E7A;
  --light: #FFFFFF;
  --text-muted: #B0B5C9;
  --btn-color: #00D4FF;
  --btn-hover: #00B8E6;
}

/* Global Font Family - Using Inter until GeneralSans files are added */
* {
  font-family: 'Inter', 'GeneralSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Global Styles */
html {
  overflow-x: hidden;
}

body {
  /* background-image: url(../images/body-bg.png); */
  background-size: 72%;
  background-attachment: fixed;
  background-color: var(--dark);
  color: var(--light);
  font-family: 'Inter', 'GeneralSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', 'GeneralSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
}

/* Utility Classes */
.bg-btn-color {
  background-color: var(--btn-color);
}

.hover\:bg-btn-hover:hover {
  background-color: var(--btn-hover);
}

/* Bootstrap overrides for dark theme */
/* .bg-dark {
  background-color: var(--dark-alt) !important;
} */

section.bg-dark {
  color: var(--light);
}

.font-custom {
  font-family: 'Inter', 'GeneralSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-lexend {
  font-family: 'Inter', 'GeneralSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Navigation Bar with Diagonal Cut Design */
.navbar {
  background: transparent !important;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
}

.navbar .container-fluid {
  padding: 0;
  display: flex;
  align-items: stretch;
}

/* Logo Section - Light Gray Background with Diagonal Cut */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 1.2rem 4rem 1.2rem 2rem;
  background: #E8E8E8;
  position: relative;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
}

.navbar-brand-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2C3E7A;
  line-height: 1;
  letter-spacing: 2px;
}

.navbar-brand-subtitle {
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 0.25rem;
}

.navbar-logo {
  max-height: 50px;
  width: auto;
}

/* Mobile Toggle Button */
.navbar-toggler {
  position: relative;
  z-index: 4;
  margin-right: 1rem;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Menu Section - Dark Blue with Diagonal Cut */
.navbar-collapse {
  background: linear-gradient(90deg, #2C3E7A 0%, #3D4F8F 100%);
  padding: 1.2rem 2rem 1.2rem 4rem;
  position: relative;
  flex-grow: 1;
  clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -40px;
}

.navbar-nav {
  align-items: center;
  width: 100%;
}

/* Fix admin toolbar overlap */
body.toolbar-fixed .navbar {
  margin-top: 0;
}

body.toolbar-horizontal.toolbar-tray-open .navbar {
  margin-top: 0;
}

/* Navigation Links */
.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary) !important;
}

.navbar-nav .nav-item {
  white-space: nowrap;
}

/* Dropdown Toggle - SVG Arrow Icon */
.navbar-nav .dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
  border: none;
  vertical-align: middle;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.navbar-nav .dropdown-toggle:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300D4FF'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Dropdown Menu */
.dropdown-menu {
  background: rgba(44, 62, 122, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-item:hover {
  padding-left: 1.4rem;
  color: #2F3573;
  background: #eef2ff;
  border-bottom: 2px solid #C2D8FE;
}
.dropdown-menu .dropdown-item:hover::before {
  color: #2d3e5f;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Phone Button */
.phone-btn {
  background: white !important;
  color: var(--nav-bg) !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  border-radius: 0.5rem;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.phone-btn:hover {
  background: transparent !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-brand {
    padding: 1rem 2rem;
  }

  .navbar-brand::after {
    display: none;
  }

  .navbar-collapse {
    background: linear-gradient(90deg, #2C3E7A 0%, #3D4F8F 100%);
    padding: 1rem;
    margin-left: 0;
    margin-top: 0;
  }

  .phone-btn {
    margin-top: 1rem;
    display: block;
    text-align: center;
  }

  .dropdown-menu {
    background: rgba(61, 79, 143, 0.98);
    border: none;
    box-shadow: none;
  }
}

/* Override Bootstrap primary color */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--secondary);
}

/* Sections */
section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }
}
