:root {
    --color-blue: #39A9DB;
    --color-dark-blue: #364958;
    --color-beige: #F1E9DB;
    --color-green: #419D78;
    --color-dark-grey: #4A5759;
    --color-white: #ffffff;
    --color-text-main: #333333;
    --color-text-light: #ffffff;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --spacing-unit: 1rem;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--color-white);
    color: var(--color-text-main);
}

header {
    background: var(--color-dark-blue);
    color: var(--color-text-light);
    padding: var(--spacing-unit) 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-blue);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-blue);
}

.container {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 80vh;
}

footer {
    background: var(--color-dark-grey);
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.lang-switch {
    margin-left: 20px;
}

.lang-switch select {
    background: var(--color-dark-grey);
    color: var(--color-text-light);
    border: 1px solid var(--color-blue);
    padding: 5px;
    border-radius: 4px;
}

/* Language Dropdown (vodoro/base.html) */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.language-dropdown {
    background: var(--color-dark-grey);
    border: 1px solid var(--color-blue);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--color-text-light);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.language-dropdown:hover {
    background: var(--color-dark-blue);
    border-color: var(--color-green);
}

.language-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 1000;
}

.language-dropdown-content.show {
    display: block;
}

.language-option {
    width: 100%;
    display: block;
    text-align: left;
    background: transparent;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--color-text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.language-option:hover {
    background: var(--color-beige);
}

.language-option.active {
    background: rgba(57, 169, 219, 0.15);
    color: var(--color-dark-blue);
    font-weight: 600;
}

/* Button Styles */
.btn,
button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn:hover,
button:hover {
    background-color: var(--color-green);
}

.btn-secondary {
    background-color: var(--color-dark-grey);
}

.btn-secondary:hover {
    background-color: var(--color-dark-blue);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-dark-blue);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Override nav a styles */
nav a {
    color: var(--color-text-light);
    text-decoration: none;
}

nav a:hover {
    color: var(--color-blue);
    text-decoration: none;
}

/* Section Styles */
.section-title {
    color: var(--color-dark-blue);
    border-bottom: 2px solid var(--color-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card {
    background: var(--color-beige);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.service-card {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-blue);
}

.service-card h3 {
    margin-top: 0;
    color: var(--color-blue);
}

.service-card-head {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: start;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-beige);
    border: 1px solid #eee;
    padding: 10px;
}

.service-summary {
    margin: 0.25rem 0 0;
    color: var(--color-text-main);
    opacity: 0.9;
}

.service-cta {
    margin-top: 12px;
}

.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 250ms ease, opacity 200ms ease;
    margin-top: 0;
}

.service-card:hover .service-details,
.service-card.is-open .service-details {
    max-height: 2000px;
    opacity: 1;
    margin-top: 12px;
}


/* Form Styles */
form {
    max-width: 600px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    margin-bottom: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--color-blue);
    outline: none;
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-kicker {
    margin: 2rem 0 1rem;
    color: var(--color-dark-blue);
}

.service-list,
.service-benefits {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.service-list li,
.service-benefits li {
    margin: 0.35rem 0;
}

.service-highlight {
    margin-top: 0.9rem;
    font-weight: 600;
    color: var(--color-dark-blue);
}

.service-subtitle {
    margin-top: 0.9rem;
    font-weight: 700;
    color: var(--color-dark-blue);
}

/* New Styles for Services Page Redesign */

:root {
    --color-bg-dark: #1a1a1a;
    --color-card-bg: #252525;
}

.page-services {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--color-dark-blue) 0%, var(--color-bg-dark) 100%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-dark {
    background-color: var(--color-bg-dark);
    padding: 5rem 0;
    color: var(--color-text-light);
}

.section-title-large {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 700;
    color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    /* Make icons white */
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-white);
    font-weight: 600;
}

.feature-desc {
    color: #bbbbbb;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    border-top: 1px solid #444;
    padding-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    color: #cccccc;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: bold;
}

.big-picture-section {
    padding: 6rem 0;
    background-color: #111;
}

.big-picture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.big-picture-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.big-picture-number {
    font-size: 5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1;
}

.big-picture-content h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.big-picture-content p {
    color: #999;
    font-size: 1.1rem;
}

.cta-section {
    text-align: center;
    padding: 8rem 0;
    background: var(--color-blue);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.cta-text {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-blue);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-left: 1rem;
    transition: background-color 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Trusted By Section */
.trusted-by {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #333;
}

.trusted-by p {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.logo-placeholder {
    height: 30px;
    background: #444;
    width: 120px;
    border-radius: 4px;
}

/* Dark Form Styles */
.form-dark {
    background-color: var(--color-card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #333;
    max-width: 700px;
    margin: 0 auto;
}

.form-dark label {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.form-dark input,
.form-dark textarea {
    background-color: #333;
    border: 1px solid #444;
    color: var(--color-white);
    padding: 1rem;
    border-radius: 8px;
}

.form-dark input:focus,
.form-dark textarea:focus {
    border-color: var(--color-blue);
    background-color: #444;
}

/* Header Layout */
.header-brand {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 2rem;
    width: auto;
    /* Ensure width scales with height */
    max-width: 100%;
    margin-right: 15px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-text-light);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
    }

    .header-nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Center service cards on tablets and mobile */
    .features-grid,
    .service-grid,
    .big-picture-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-card,
    .service-card {
        padding: 2rem;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .feature-card .feature-icon {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
    }

    .feature-list {
        text-align: left;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .header-brand {
        flex-direction: row;
        align-items: center;
        max-width: 80%;
    }

    .header-logo {
        height: 1.5rem;
        /* Matches roughly the h1 font size of 1.1rem + line height */
        width: auto;
        max-width: 100%;
        margin-right: 10px;
        margin-bottom: 0;
        object-fit: contain;
    }

    header h1 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Adjust other elements for small screens */
    .hero-title {
        font-size: 2rem;
    }

    .section-title-large {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 0 1.2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .form-dark {
        padding: 1.5rem;
    }

    .logo-grid {
        gap: 1.5rem;
    }
}

/* Product Showcase Styles */
.product-grid {
    grid-template-columns: 1fr;
}

.product-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.product-content {
    flex: 1;
    min-width: 300px;
}

.product-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.product-preview-placeholder {
    width: 100%;
    height: 300px;
    background: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

@media (max-width: 900px) {
    .product-card {
        flex-direction: column;
        text-align: center;
    }

    .product-content {
        min-width: 100%;
        padding-right: 0;
    }

    .product-image {
        min-width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {

    .product-content,
    .product-image {
        min-width: 100%;
    }
}