/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Global Variables - Hungarian Flag Colors */
:root {
    --primary-color: #C8102E; /* Hungarian Red */
    --secondary-color: #436F4D; /* Hungarian Green */
    --link-color: #C8102E;
    --link-hover-color: #8B0A1F;
    --button-bg: #C8102E;
    --button-text: #fff;
    --top-menu-bg: #F5F5F5; /* White background */
    --top-menu-link: #C8102E;
    --footer-bg: #2C3E50;
    --footer-text: #ECF0F1;
    --footer-link: #436F4D;
    --accordion-bg: #436F4D;
    --accordion-text: #FFFFFF;
    --icon-color: #C8102E;
    --card-header-bg: #436F4D;
    --btn-outline-border: #C8102E;
    --text-primary: #C8102E;
    --font-family: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--top-menu-bg);
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.contact-info a,
.urgent-info {
    color: var(--top-menu-link);
    font-size: 0.9rem;
}

.urgent-info {
    color: var(--primary-color);
    font-weight: 600;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    min-height: 70px;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.logo {
    max-width: 280px;
    max-height: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--top-menu-link);
    font-weight: 500;
    padding: 25px 18px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #8B0A1F;
}

/* Mega Menu */
.mega-dropdown {
    position: relative;
}

.mega-dropdown .mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: auto;
    min-width: 300px;
    max-width: 600px;
    margin-top: 0;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px 0;
    background-color: #fff;
    animation: fadeIn 0.3s ease;
    z-index: 1000;
}

.mega-dropdown .mega-menu .container {
    width: auto;
    max-width: 100%;
    padding: 0 30px;
}

.mega-dropdown .mega-menu .row {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    margin: 0;
}

.mega-dropdown .mega-menu .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    padding: 0 15px;
}


.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--top-menu-link);
    padding: 12px 25px;
    transition: all 0.3s ease;
    font-weight: 400;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(200, 16, 46, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 30px;
}

.dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.5em;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link.dropdown-toggle:hover::after {
    transform: rotate(180deg);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 250px;
    }
}

/* Installation Steps */
.installation-step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.installation-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.step-icon {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 3px solid white;
}

.installation-step h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.installation-step .list-styled {
    text-align: left;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--button-text);
}

.btn-primary:hover {
    background-color: #8a2525;
    border-color: #8a2525;
    color: var(--button-text);
}

.btn-outline-primary {
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-border);
}

.btn-outline-primary:hover {
    background-color: var(--btn-outline-border);
    border-color: var(--btn-outline-border);
    color: var(--button-text);
}

.btn-apply {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--accordion-text);
    font-weight: 600;
}

.btn-apply:hover {
    background-color: #e5a035;
    border-color: #e5a035;
    color: var(--accordion-text);
}

/* Pulse Animation */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: #f8f9fa;
}

.section-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-primary h2,
.section-primary h3,
.section-primary h4 {
    color: white;
}

/* Tiles */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tile {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--icon-color);
    margin-bottom: 20px;
}

.tile h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tile p {
    color: #666;
    margin-bottom: 20px;
}

/* Accordion */
.accordion-button {
    background-color: var(--accordion-bg);
    color: var(--accordion-text);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accordion-bg);
    color: var(--accordion-text);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.accordion-header {
    font-size: 1.1rem;
}

/* Card Headers */
.card-header {
    background-color: var(--card-header-bg);
    color: var(--accordion-text);
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

/* Lists */
.list-styled {
    list-style: none;
    padding-left: 0;
}

.list-styled li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.list-styled li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.list-numbered {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.list-numbered li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.list-numbered li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    margin-top: 0px !important;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer p {
    color: #fff;
}

.footer ul {
    color: #fff;
}

.footer .list-unstyled li {
    color: #fff;
}

.footer a:hover {
    color: #f7c65a;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        min-height: 60px;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 18px;
        font-size: 0.85rem;
    }
    
    .logo {
        max-width: 220px;
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .navbar {
        min-height: auto;
        padding: 10px 0;
    }
    
    .navbar-nav {
        background-color: #fff;
        padding: 20px;
        border-top: 1px solid #ddd;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
        text-transform: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .mega-dropdown .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    
    .mega-dropdown .mega-menu .row {
        flex-wrap: wrap;
    }
    
    .mega-dropdown .mega-menu .row > [class*="col-"] {
        width: 100%;
        min-width: auto;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        border: none;
        background-color: #f8f9fa;
    }
    
    .dropdown-item {
        padding: 10px 20px;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dropdown-item:hover,
    .dropdown-item.active {
        background-color: var(--primary-color);
        color: var(--button-text);
        padding-left: 20px;
    }
}

/* Text Colors */
.text-primary {
    color: var(--text-primary) !important;
}

/* Font Awesome Icons */
.fa, .fas, .far, .fab {
    color: var(--icon-color);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: rgba(162, 45, 45, 0.05);
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(162, 45, 45, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 4px;
    border: none;
}

.alert-primary {
    background-color: rgba(162, 45, 45, 0.1);
    color: var(--primary-color);
}

/* Loading States */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hungarian Flag Decorative Elements */
.hungarian-flag {
    height: 4px;
    background: linear-gradient(to right, #C8102E 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #436F4D 66.66%);
    margin: 20px 0;
}

.hungarian-flag-vertical {
    width: 4px;
    background: linear-gradient(to bottom, #C8102E 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #436F4D 66.66%);
    margin: 0 20px;
}

.hungarian-flag-accent {
    position: relative;
}

.hungarian-flag-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #C8102E 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #436F4D 66.66%);
}

/* Hero section with Hungarian flag accent */
.hero-section.hungarian-theme {
    position: relative;
}

.hero-section.hungarian-theme::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to right, #C8102E 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #436F4D 66.66%);
    z-index: 3;
}

/* Card headers with Hungarian flag accent */
.card-header.hungarian-accent {
    position: relative;
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(var(--card-header-bg), var(--card-header-bg)),
                      linear-gradient(to right, #C8102E 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #436F4D 66.66%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-bottom: 3px solid transparent;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    .section {
        padding: 20px 0;
    }
}