/* --- CSS Variables for Colors --- */
:root {
    --veilo-teal: #2D9D8F;      /* Primary color from your logo (left) */
    --veilo-orange: #F2933F;    /* Accent color from your logo (right) */
    --text-dark: #333;          /* Dark text for readability */
    --text-light: #555;         /* Lighter text for paragraphs */
    --background-light: #F8F8F8; /* Light background for sections */
    --white: #ffffff;
    --border-light: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.05);
}

/* --- Base Styles & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400; /* Explicit normal weight */
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased; /* Improve text rendering */
    -moz-osx-font-smoothing: grayscale; /* Improve text rendering on Mac */
    text-rendering: optimizeLegibility; /* Better text rendering */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--veilo-teal);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5em;
    color: var(--text-dark); /* Make section titles darker */
}

h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 1em;
}

p {
    margin-bottom: 1em;
    color: var(--text-light);
}

a {
    color: var(--veilo-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--veilo-orange);
}

ul {
    list-style: none;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--veilo-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d17c30; /* Slightly darker orange */
    transform: translateY(-2px);
}

.btn-secondary { 
    background-color: transparent; 
    color: var(--veilo-teal); 
    border: 2px solid var(--veilo-teal); 
}

.btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}

/* --- Header --- */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 157, 143, 0.1); /* Subtle teal border */
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px; /* Restore reasonable padding for readability */
    gap: 0.5rem; /* Minimal gap to spread content */
    width: 100%;
    max-width: 100%; /* Use full width available */
    margin: 0; /* Remove auto margin centering */
}

.logo {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.8em;
    font-weight: 700 !important;
    color: var(--veilo-teal); 
    text-decoration: none;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

/* If using an image logo */
.logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
}

.header-controls { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; /* Good spacing between nav and language toggle */
    flex-shrink: 0; /* Prevent controls from shrinking */
}

.nav-links ul {
    display: flex;
    gap: 1.5rem; /* Slightly reduced gap for better spacing */
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 0; /* Remove extra left margin */
}

.nav-links a {
    font-weight: 400 !important; /* Use regular weight for better consistency */
    font-size: 1rem !important; /* Force consistent font size using rem units */
    font-family: 'Lato', sans-serif !important; /* Ensure consistent font family */
    color: var(--text-dark); 
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0; /* Add consistent padding for better click targets */
    font-style: normal !important; /* Ensure no italic rendering */
    font-variant: normal !important; /* Ensure no special variants */
    letter-spacing: 0; /* Ensure consistent letter spacing */
    line-height: 1.4; /* Consistent line height */
}

.nav-links a:hover {
    color: var(--veilo-orange);
}

/* Additional specificity for navigation links to ensure consistent rendering */
header .nav-links ul li a,
nav.nav-links ul li a,
.header-controls .nav-links a {
    font-weight: 400 !important;
    font-family: 'Lato', sans-serif !important;
    font-style: normal !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

.nav-toggle {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--veilo-teal); 
    cursor: pointer;
}

.language-toggle { 
    background: var(--veilo-teal); 
    color: white; 
    border: none; 
    padding: 10px 14px; /* Slightly increased padding for better proportions */
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 0.9em; 
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 65px; /* Slightly wider for better appearance */
    justify-content: center;
    margin-left: 0.5rem; /* Add slight margin for consistent spacing */
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--veilo-teal) 0%, var(--veilo-orange) 100%); 
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    color: var(--white); 
    margin-bottom: 1rem; 
}

.hero-section p {
    color: var(--white); 
    font-size: 1.2em; 
    margin-bottom: 2rem; 
    opacity: 0.95; 
}

.hero-buttons { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.hero-buttons .btn-secondary { 
    background-color: var(--white); 
    color: var(--veilo-teal); 
}

/* --- General Section Styling --- */
section {
    padding: 80px 0;
    background-color: var(--white);
}

section:nth-child(even) { /* For alternating background colors */
    background-color: var(--background-light);
}

/* Section spacer for better content separation */
.section-spacer {
    margin: 3rem 0; /* Add significant vertical spacing */
}

/* Page Header for inner pages */
.page-header {
    background: linear-gradient(135deg, var(--veilo-teal) 0%, var(--veilo-orange) 100%); 
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 255, 255, 0.05) 100%);
    animation: gradientShift 8s ease-in-out infinite;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; transform: translateX(-10px); }
    50% { opacity: 1; transform: translateX(10px); }
}

.page-header h1 {
    color: var(--white);
    font-size: 3em;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--white);
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* --- How It Works Section --- */
.how-it-works-section h2 {
    margin-bottom: 3em;
}

.steps-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.step-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-item .icon-large {
    font-size: 3.5em;
    color: var(--veilo-orange);
    margin-bottom: 20px;
}

.step-item h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* --- Why Veilo / Features Section --- */
.why-veilo-section h2 {
    margin-bottom: 3em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.feature-item .icon-small {
    font-size: 2.5em;
    color: var(--veilo-teal);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--text-dark);
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--background-light);
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.testimonial-card cite {
    display: block;
    font-weight: 700;
    color: var(--veilo-teal);
}

/* --- Apply & Contact Page Specific Styles --- */
.content-section {
    padding: 60px 0;
}

.content-section .container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.content-left, .content-right {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.content-section ul {
    margin-top: 15px;
}

.content-section li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.content-section li i {
    color: var(--veilo-teal);
    margin-right: 10px;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.values-section {
    background-color: var(--background-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.value-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.value-item .icon-large {
    font-size: 3.5em;
    color: var(--veilo-orange);
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--text-dark);
}


/* Forms */
.form-section {
    background-color: var(--background-light);
}

.application-form, .contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.application-form label, .contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form textarea,
.application-form input[type="file"],
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: var(--text-dark);
}

.application-form textarea,
.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.application-form input[type="file"] {
    border: none;
    padding-left: 0;
}

.application-form .btn, .contact-form .btn {
    width: auto;
    display: block; /* Make button full width on smaller screens, or inline-block for larger */
    margin-top: 20px;
}

.form-note {
    font-size: 0.9em;
    color: var(--text-light);
    text-align: center;
    margin-top: 20px;
}

/* Contact Page specific grid */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item .icon-contact {
    font-size: 1.5em;
    color: var(--veilo-orange);
    margin-right: 15px;
    width: 30px; /* fixed width for alignment */
}

.info-item p {
    margin-bottom: 0;
}

.contact-info .social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.contact-info .social-links a {
    font-size: 1.8em;
    color: var(--text-dark);
}

.contact-info .social-links a:hover {
    color: var(--veilo-teal);
}

/* --- Footer --- */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--veilo-teal);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-col p {
    color: var(--white);
    font-size: 0.95em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--white);
    font-size: 0.95em;
}

.footer-col ul a:hover {
    color: var(--veilo-orange);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--veilo-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer year display */
.current-year {
    font-weight: 600;
    color: inherit;
}

.current-year:empty::before {
    content: "2025"; /* Fallback if JavaScript doesn't load */
    opacity: 0.8;
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
    }
    
    .nav-toggle { 
        display: block; 
    }
    
    .hero-buttons { 
        flex-direction: column; 
        align-items: center; 
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 1em;
    }

    h3 {
        font-size: 1.4em;
    }

    .hero-section {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary {
        margin-left: 0; /* Remove left margin for vertical stacking */
    }

    section {
        padding: 50px 0;
    }
    
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2.5em;
    }    /* Mobile Navigation */
    .header-controls {
        position: relative;
        width: auto;
        margin-left: auto; /* Keep pushed to right on mobile */
    }    header .container {
        gap: 1rem; /* Reduce gap on mobile for better spacing */
        padding: 1rem 15px; /* Keep mobile padding for better touch targets */
    }

    .nav-links {
        display: none; /* Hide navigation by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Below header */
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding-bottom: 20px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 15px 0;
        display: block;
        width: 100%;
        color: var(--text-dark);
    }
    
    .nav-links a::after {
        display: none; /* Hide underline on mobile */
    }    .nav-toggle {
        display: block; /* Show hamburger icon */
    }    .header-controls {
        gap: 1rem; /* Reduced gap on mobile */
        margin-left: auto; /* Keep pushed to right */
    }

    .language-toggle {
        padding: 6px 10px;
        font-size: 12px;
        order: -1; /* Move language toggle before nav toggle on mobile */
    }

    .steps-grid, .features-grid, .values-grid, .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .step-item, .feature-item, .value-item {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .content-section .container {
        flex-direction: column;
        align-items: center;
    }
    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-info, .contact-form-container {
        max-width: 100%;
    }
}

.language-toggle:hover {
    background-color: #267a6e; /* Slightly darker teal */
    color: white;
}

@media (max-width: 768px) {
    .language-toggle {
        margin-right: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* --- Success Page Styles --- */
.success-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.success-message .fas.fa-check-circle {
    font-size: 4em;
    color: var(--veilo-teal);
    margin-bottom: 20px;
}

.success-message h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.success-message ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
}

.success-message li {
    margin-bottom: 10px;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
}

.success-message li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--veilo-teal);
    font-weight: bold;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .success-message {
        padding: 30px 20px;
    }
}
