:root {
    --primary: #3F6F86;
    --secondary: #5A8F3E;
    --accent-gradient: linear-gradient(90deg, #3F6F86, #5A8F3E);
    --background-main: #F5F7FA;
    --background-card: #FFFFFF;
    --text-main: #1F2D3D;
    --text-secondary: #6B7C93;
    --text-on-dark: #FFFFFF;
    --ui-borders: #E1E8ED;
    --interactive-links: #2C7BE5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --spacing-unit: 1.5rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: var(--interactive-links);
    transition: color 0.4s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.4s ease-in-out;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-consent-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    z-index: 10000;
    border: 1px solid var(--ui-borders);
}

@media (max-width: 768px) {
    .cookie-consent-card {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
    }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.75rem);
    }

    body {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .js-mobile-break {
        word-break: break-all;
    }
}

/* ===== header ===== */
#header {
    background-color: var(--background-card);
    border-bottom: 1px solid var(--ui-borders);
    z-index: 1000
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none
}

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

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-dark);
    border-radius: var(--border-radius);
    transition: opacity 0.2s
}

.btn-primary:hover {
    opacity: 0.9;
    color: var(--text-on-dark)
}

.js-mobile-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-card);
    border-top: 1px solid var(--ui-borders);
    box-shadow: var(--box-shadow);
    z-index: 999
}

.js-mobile-menu.show {
    display: block
}

@media (min-width:1024px) {
    .nav-desktop {
        display: flex !important
    }

    .nav-mobile-toggle {
        display: none !important
    }
}

@media (max-width:1023.98px) {
    .nav-desktop {
        display: none !important
    }

    .nav-mobile-toggle {
        display: flex !important
    }
}

.nav-mobile-toggle:focus {
    outline: none;
    box-shadow: none
}

/* ===== hero_section ===== */
#hero {
    background-image: url("visuals/content/marketing-consulting-hero-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(31, 45, 61, 0.75);
    z-index: 1;
}

.hero-container {
    z-index: 2;
}

.btn-primary-custom {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-on-dark);
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary-custom:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    color: var(--text-on-dark);
}

.btn-outline-custom {
    border: 2px solid var(--secondary);
    color: var(--text-on-dark);
    padding: 10px 32px;
    border-radius: var(--border-radius);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--secondary);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

.hero-container h1 {
    letter-spacing: -0.02em;
}

.hero-container p {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ===== partner_slider ===== */
.js-slider-item:hover div {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.js-slider-item:hover i {
    color: var(--primary) !important;
    opacity: 1 !important;
}

.js-slider-item:hover span {
    color: var(--primary) !important;
}

.js-prev-btn:hover,
.js-next-btn:hover {
    background-color: var(--primary) !important;
    color: var(--text-on-dark) !important;
    border-color: var(--primary) !important;
}

/* ===== stats_block ===== */
#statistics {
    position: relative;
    overflow: hidden;
}

#statistics .display-5 {
    letter-spacing: -0.02em;
}

.js-stat-card {
    transition: transform 0.3s ease;
}

.js-stat-card:hover {
    transform: translateY(-5px);
}

/* ===== services_grid ===== */
#services {
    width: 100%;
    background-color: var(--background-main);
    padding: calc(var(--spacing-unit) * 4) 0;
}

.service-card {
    background-color: var(--background-card);
    border: 1px solid var(--ui-borders);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    width: 100%;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon-badge {
    position: absolute;
    bottom: 5px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--text-on-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    z-index: 2;
}

.service-content {
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit) var(--spacing-unit);
    width: 100%;
}

.service-title {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== difference_carousel ===== */
.js-difference-carousel .carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.js-difference-carousel .carousel-item-next,
.js-difference-carousel .carousel-item-prev,
.js-difference-carousel .carousel-item.active {
    display: block;
}

.js-difference-carousel .carousel-item {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.js-difference-carousel .carousel-item.active {
    opacity: 1;
    position: relative;
}

.custom-carousel-btn:hover {
    background-color: var(--primary) !important;
}

.custom-carousel-btn:hover i {
    color: var(--text-on-dark) !important;
}

/* ===== client_reviews ===== */
.testimonial-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--ui-borders);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* ===== newsletter_form ===== */
#newsletter {
    width: 100%;
}

#newsletter .form-control:focus {
    box-shadow: none;
    outline: 2px solid var(--secondary);
}

#newsletter .btn:hover {
    background-color: var(--background-main) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

#newsletter .input-group-text {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

#newsletter .form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

#newsletter .is-invalid {
    border: 2px solid #dc3545 !important;
}

/* ===== marketing_news ===== */
#news {
    background-color: var(--background-main);
    padding-top: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 2);
}

.news-card {
    border: 1px solid var(--ui-borders);
    border-radius: var(--border-radius);
    background-color: var(--background-card);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.news-img-container {
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-icon {
    color: var(--primary);
}

.news-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.modal-content {
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--background-card);
}

.modal-header {
    border-bottom: 1px solid var(--ui-borders);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body h4,
.modal-body h5 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* ===== contact_form_section ===== */
#contact .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(63, 111, 134, 0.15);
}

#contact .btn:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

#contact .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ===== footer ===== */
#footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#footer a:hover {
    opacity: 0.7;
}