/* Font Face Declarations for Local Fonts */

/* roboto-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/fonts/roboto-v30-latin-regular.woff2') format('woff2'); 
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/fonts/roboto-v30-latin-700.woff2') format('woff2');
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/fonts/montserrat-v26-latin-700.woff2') format('woff2');
}

:root {
    --primary-color: #003366;
    --secondary-color: #d9534f;
    --text-color: #333333;
    --background-color: #ffffff;
    --font-family-body: 'Roboto', sans-serif;
    --font-family-heading: 'Montserrat', serif;
}

body {
    margin: 0;
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-top: 0;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

header img {
    height: 60px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Main element Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 100px;
}

section {
    margin-bottom: 3rem;
}

/* Footer Styles */
footer {
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

#social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#social-links a:hover {
    color: var(--primary-color);
}

#footer-legal-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

#footer-legal-links a {
    color: var(--text-color);
    font-size: 0.9rem;
}

#footer-legal-links a:hover {
    color: var(--primary-color);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Hero Section */
.hero-container {
    padding: 0;
}

.hero {
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    color: white;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--hero-image);
    box-sizing: border-box;
}

.hero h1, .hero p, .hero .button {
    position: relative;
    z-index: 3;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-family-body);
    font-size: 1rem;
}

.button:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* NEW: Style for spinner icon in button */
.button .fa-spinner {
    margin-left: 0.5rem;
}

/* General Sections */
.features, .services {
    text-align: center;
}
.section-description {
    max-width: 800px;
    margin: 0 auto 3rem;
}
.service-details {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.feature-grid, .service-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item, .service-item {
    flex-basis: 300px;
    flex-grow: 1;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    text-align: center;
}

.feature-item i, .service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Call to Action Section */
.call-to-action {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f0f4f7;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.call-to-action h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Legal texts */
.legal p, .legal h2, .legal h3 {
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-wrapper {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.contact-form-wrapper h2 {
    margin-top: 0;
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-wrapper label {
    font-weight: bold;
    margin-bottom: -0.5rem;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    padding: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.3);
}

.contact-info-wrapper {
    position: sticky;
    top: 120px; /* Adjusted for header height */
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

/* STYLES for Map Consent */
.map-consent-overlay {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    margin-top: 1rem;
    color: var(--text-color);
}
.map-consent-overlay p {
    margin: 0 0 1rem 0;
}

/* File upload styles */
input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    text-align: center;
    background-color: #6c757d;
}

.file-upload-label:hover {
    background-color: #5a6268;
}

#file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-preview-item {
    width: 100px;
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Cookie Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    flex-wrap: wrap;
}

.consent-banner.hidden {
    transform: translateY(100%);
}

.consent-banner button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#decline-cookies {
    background-color: #ccc;
    color: #333;
}

/* Text-Image Blocks */
.content-with-image {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.content-with-image .text-block {
    flex: 1;
}

.content-with-image .image-block {
    flex: 1;
}

.content-with-image .image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content-with-image.reversed {
    flex-direction: row-reverse;
}

/* Contact Person Section */
.contact-person-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-person-section .image-block {
    flex-basis: 200px;
    flex-shrink: 0;
}

.contact-person-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.contact-person-section .text-block {
    flex-grow: 1;
}

/* Custom Modal for alerts */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.custom-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.custom-modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.custom-modal-close {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.custom-modal-close:hover {
    background-color: var(--secondary-color);
}


/* Media Queries for Mobile Devices */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-info-wrapper {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
        margin-top: 80px;
    }

    header {
        flex-direction: row;
        padding: 1rem 0;
    }

    .header-content-wrapper {
        padding: 0 1rem;
    }
    
    #mobile-menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        position: absolute;
        top: 82px; /* Adjusted for header height */
        left: 0;
        background-color: var(--background-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }

    .mobile-hidden {
        display: none;
    }

    .hero {
        width: auto;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 6rem 2rem;
        background-position: center center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .feature-grid, .service-grid {
        flex-direction: column;
    }

    .content-with-image,
    .content-with-image.reversed {
        flex-direction: column;
        text-align: center;
    }

    .contact-person-section {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .contact-person-section .image-block {
        max-width: 150px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Styles for the loading modal variant */
.loading-modal .custom-modal-content {
    padding: 3rem 2rem;
}

.loading-modal .fa-spinner {
    color: var(--primary-color);
}