:root {
    --brand-color: #EE3932;
    --brand-color-dark: #cc2b22;
    --brand-color-light: #ff6b5f;
    --dark-color: #212529;
    --grey-color: #a6a7a8;
    --light-color: #F5F5F5;

    /* Bootstrap compatibility */
    --bs-primary: var(--brand-color);
    --bs-primary-rgb: 239, 72, 64;
    --bs-link-color: var(--brand-color);
    --bs-link-hover-color: var(--brand-color-dark);
}

/* Base styles */
body {
    background-color: #ffffff;
    color: var(--dark-color);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--brand-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

.container-fluid {
    padding: 0 0 2rem;
}

.container {
    padding: 1rem 1rem 2rem
}

@media (max-width: 1024px) {
    .container-fluid {
        padding: 0 0 1rem;
    }
}

section, aside, main {
    margin-top: 4rem;
}

/* Header */
.navbar {
    padding: 0.5rem 1rem;
    --bs-navbar-brand-color: var(--brand-color);
    --bs-navbar-brand-hover-color: var(--brand-color-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img,
.header-logo {
    max-height: 50px;
    width: auto;
}

.navbar .container-fluid {
    padding: 0;
}

.header-content {
    width: 100%; /* Default for desktop */
}

.header-cta {
    color: #EE3932;
    font-family: Barlow;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
}

/* Language Switcher*/
.language-switcher {
    margin: 0;
}

.language-switcher .nav-link {
    padding: 1rem 1rem 0;
}

.language-switcher form {
    margin: 0;
}

.lang-select-wrapper {
    position: relative;
    display: inline-block;
}

.custom-lang-dropdown {
    position: relative;
}

.selected-flag {
    cursor: pointer;
}

.selected-flag img {
    width: 24px;
    height: 18px;
    object-fit: contain;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: -5px;
    background: transparent;
    border-radius: 4px;
    display: none;
    z-index: 1000;
    margin-top: 0px;
}

.custom-lang-dropdown:hover .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 5px;
    cursor: pointer;
}

.dropdown-option img {
    width: 24px;
    height: 18px;
    object-fit: contain;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
}

.sign-in-btn, .sign-up-btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .header-logo,
    .navbar-brand img {
        max-height: 40px;
    }

    .auth-buttons {
        align-items: flex-end;
    }

    .sign-in-btn {
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.25rem;
    }

    .sign-up-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .header-logo,
    .navbar-brand img {
        max-height: 30px;
    }

    .navbar {
        padding: 0.25rem 0.5rem;
    }

    .language-switcher .nav-link {
        padding: 0.25rem 0.5rem;
    }

    .sign-in-btn, .sign-up-btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Utility classes */
.text-brand {
    color: var(--brand-color) !important;
}

.bg-brand {
    background-color: var(--brand-color) !important;
}

/* Buttons */
.btn-brand {
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 24px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 72, 64, 0.2);
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-color-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 72, 64, 0.3);
}

.btn-brand:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 72, 64, 0.2);
}

.btn-custom,
a.btn-custom {
    display: inline-block;
    background-color: #fff;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
    border-radius: 25px;
    padding: 8px 24px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 72, 64, 0.1);
    text-decoration: none;
    line-height: 1.5;
    cursor: pointer;
}

.btn-custom:hover,
.btn-custom:focus,
a.btn-custom:hover,
a.btn-custom:focus {
    background-color: var(--brand-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 72, 64, 0.2);
    text-decoration: none;
}

.btn-custom:active,
a.btn-custom:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 72, 64, 0.1);
}

.btn-custom-dark,
a.btn-custom-dark {
    background-color: var(--brand-color);
    color: #fff;
    border: 2px solid var(--brand-color);
}

.btn-custom-dark:hover,
.btn-custom-dark:focus,
a.btn-custom-dark:hover,
a.btn-custom-dark:focus {
    background-color: #fff;
    color: var(--brand-color);
}

.btn-custom-dark:active,
a.btn-custom-dark:active {
    transform: translateY(0);
}

.btn.btn-square {
    border-radius: 4px;
    padding: 8px12px;
    text-transform: none;
}

.btn.btn-link {
    text-decoration: none;
    color: var(--dark-color);
}

.btn-link:hover {
    color: var(--brand-color);
}

/* Footer */
.footer {
    background-color: var(--brand-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1.3fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-section:nth-child(2) {
    margin-top: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.footer-section .big-text {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0;
}

a.footer-link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-top: 0;
}

a.footer-link:hover {
    opacity: 0.8;
    color: #fff;
}

a.footer-main-link {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-decoration: underline;
}

.social-links p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #fff;
    font-size: 2rem;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
    color: #fff;
}

/* Contact form */
.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.form-description {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Partners section */
.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.partner-logo {
    height: 100px;
    width: auto;
}

.partner-logo:last-of-type {
    height: 150px;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom .footer-links {
    flex-direction: row;
    gap: 0.5rem;
}

.footer-bottom span {
    opacity: 0.5;
}

@media (max-width: 991.98px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom .footer-links {
        flex-direction: column;
    }

    .footer-bottom span {
        display: none;
    }
}

/* Breadcrumbs styles */
.breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: var(--grey-color);
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding-right: 0.5rem;
    color: var(--grey-color);
}

.breadcrumb-item a {
    color: var(--dark-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--grey-color);
}