/* ============================================
   Base Styles - Технологии и Решения
   CSS Variables, Navbar, Footer, Breadcrumbs,
   Buttons, Generic Cards, Utilities
   ============================================ */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-primary-light: #2d5a8a;
    --color-accent: #0ea5e9;
    --color-accent-hover: #0284c7;
    --color-accent-light: #e0f2fe;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg-light: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    color: var(--color-text);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 600;
    color: var(--color-primary) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.15s ease;
}

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

.nav-link.active {
    color: var(--color-accent) !important;
    font-weight: 600;
}

/* Navbar scroll shadow */
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Navbar dropdown customization */
.navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 240px;
}

.navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-primary);
    transition: background 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: #f0f4ff;
    color: var(--color-primary);
}

/* CTA button in navbar */
.btn-nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    background: var(--color-primary-dark);
    color: #fff !important;
}

/* Desktop: show dropdown on hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ============================================
   Footer - Unified with site colors
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding-top: 60px;
    padding-bottom: 30px;
}

.site-footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255,255,255,0.8);
}

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

.site-footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.footer-contact-item i {
    color: var(--color-accent);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb-item a {
    color: var(--color-accent);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   Global Button Overrides
   ============================================ */
.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-outline-primary {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* ============================================
   Cards - Generic improvements
   ============================================ */
.card.h-100 {
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card.h-100.pricing-card {
    overflow: visible;
}

.card.h-100:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card.h-100 .card-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.card.h-100 .card-title a:hover {
    color: var(--color-accent);
}

/* ============================================
   Page Header (index pages with bg-light)
   ============================================ */
.bg-light.py-5 h1 {
    color: var(--color-primary);
}

.bg-light.py-5 .lead {
    color: var(--color-text-muted);
}

/* ============================================
   Utilities
   ============================================ */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 60px 0; }
.section-padding-lg { padding: 100px 0; }

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

/* ============================================
   SEO Optimization - Utility Classes
   ============================================ */

/* Section icon circles */
.section-icon-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Section icon with larger font */
.section-icon-lg {
    font-size: 1.2rem;
}

/* Sticky sidebar positioning — offset for sticky navbar (~70px + gap) */
.sticky-sidebar {
    top: 6rem !important;
    z-index: 1000;
}

/* Blog card image cover */
.blog-card-img-cover {
    object-fit: cover;
    height: 200px;
}

/* Product card image cover */
.product-card-img-cover {
    object-fit: cover;
    height: 225px;
}

/* Portfolio card image cover */
.portfolio-card-img-cover {
    object-fit: cover;
    height: 240px;
}

/* Product sidebar image cover */
.product-sidebar-img-cover {
    object-fit: cover;
    height: 300px;
}

/* Client logo image */
.client-logo-img {
    max-height: 60px;
    opacity: 0.6;
}

/* Placeholder icon large */
.placeholder-icon-lg {
    font-size: 2rem;
}

/* Games icon gradient background */
.service-icon-games {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
}
