/* Global Layout & Utility Styles */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.25;
}

.text-gradient {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--gradient-gold);
    color: var(--color-dark);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--color-light);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--color-primary-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Smart Sticky Header & Topbar System */
.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    z-index: 1010;
    display: flex;
    align-items: center;
    transition: transform var(--transition-normal);
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-info-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-socials a {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.topbar-socials a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.topbar-socials a:hover {
    color: var(--color-primary-medium);
    transform: translateY(-1.5px);
}

.topbar-divider {
    width: 1px;
    height: 16px;
    background-color: var(--color-border);
}

.topbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: var(--transition-fast);
}

.search-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2px;
    fill: none;
    transition: var(--transition-fast);
}

.search-toggle-btn .search-icon-close {
    display: none;
}

.search-toggle-btn.active .search-icon-open {
    display: none;
}

.search-toggle-btn.active .search-icon-close {
    display: block;
    stroke-width: 2.5px;
}

.search-toggle-btn:hover {
    color: var(--color-primary-medium);
}

.floating-search-box {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 320px;
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 1030;
}

.floating-search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
    background-color: var(--color-light-bg);
}

.search-form input:focus {
    border-color: var(--color-primary);
    background-color: var(--color-light);
}

.search-form button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2px;
    fill: none;
}

/* Mobile topbar specifics */
.topbar-phone-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-primary);
    color: var(--color-light) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.topbar-phone-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
}

.topbar-phone-btn:hover {
    background-color: var(--color-primary-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Site Header */
.site-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: transform var(--transition-normal), height var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-link img {
    height: 42px;
    width: auto;
    transition: var(--transition-normal);
}

/* Smart Sticky Scroll Effects */
body.scrolled .site-topbar {
    transform: translateY(-40px);
}

body.scrolled .site-header {
    transform: translateY(-40px);
    height: 70px;
    background-color: var(--color-light);
    box-shadow: var(--shadow-md);
}

body.scrolled .site-header .logo-link img {
    height: 34px;
}

/* Responsive Show/Hide Classes */
.d-mobile-only {
    display: none !important;
}

@media (max-width: 1023px) {
    .d-desktop-only {
        display: none !important;
    }
    
    .d-mobile-only {
        display: flex !important;
    }
    
    .site-header {
        top: 40px;
        height: 70px;
    }
    
    body.scrolled .site-header {
        height: 60px;
    }
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--color-primary-medium);
}

.nav-link:hover .nav-link-icon,
.nav-item.active .nav-link .nav-link-icon {
    color: var(--color-primary-medium);
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.nav-link svg.arrow-icon {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    transition: var(--transition-fast);
}

.nav-item:hover svg.arrow-icon {
    transform: rotate(180deg);
}

/* Dropdown styling */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-normal);
    padding: 24px;
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Dropdown Specifically */
.mega-menu {
    width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 32px;
}

.mega-column-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.mega-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-link:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

.mega-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-primary);
    stroke-width: 2px;
    fill: none;
}

.mega-promo-card {
    background: var(--gradient-premium);
    color: var(--color-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    box-shadow: var(--shadow-md);
}

.mega-promo-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 1;
}

.mega-promo-content {
    position: relative;
    z-index: 2;
}

.mega-promo-title {
    font-size: 18px;
    color: var(--color-light);
    margin-bottom: 8px;
}

.mega-promo-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.mega-promo-btn {
    align-self: flex-start;
    font-size: 12px;
    padding: 8px 16px;
}

/* Header CTAs */
.header-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone-btn {
    background: var(--gradient-premium);
    color: var(--color-light) !important;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    transition: var(--transition-normal);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.header-phone-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2px;
    fill: none;
}

.header-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.header-mail-btn {
    background-color: var(--color-primary-soft);
    color: var(--color-primary-medium) !important;
    border: 1px solid transparent;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    transition: var(--transition-normal);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.header-mail-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2px;
    fill: none;
}

.header-mail-btn:hover {
    background-color: var(--color-primary-medium);
    color: var(--color-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Burger menu (Mobile) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: var(--transition-normal);
}

/* Mobile Sidebar Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-light);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    transition: var(--transition-normal);
    padding: 100px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-dropdown-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-dark);
    stroke-width: 2.5px;
    fill: none;
    transition: var(--transition-fast);
}

.mobile-dropdown-btn.active svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding-left: 16px;
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid var(--color-primary-soft);
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-main);
}

.mobile-submenu-link:hover {
    color: var(--color-primary);
}

/* Back-to-top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-primary-medium);
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5px;
    fill: none;
}

/* Premium Footer */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    border-top: 4px solid var(--color-primary);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
}

.footer-brand-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-title {
    color: var(--color-light);
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--color-light);
    padding-left: 4px;
}

.footer-link::before {
    content: '→';
    color: var(--color-primary);
}

.footer-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info-item {
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-info-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    stroke-width: 2px;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer-certs {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-certs img {
    height: 30px;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.footer-certs img:hover {
    opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-ctas {
        display: none;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
