/* Variables */
:root {
    --color-primary: #1a237e;
    --color-text: #000000;
    --color-background: #ffffff;
    --color-accent: #304ffe;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.logo-container img {
    max-height: 40px;
}

.company-name {
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.company-name:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0 1rem;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color var(--transition-speed);
}

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

nav a.secondary {
    opacity: 0.7;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: none;
}

.section.active {
    display: block;
}

#home.section {
    position: relative;
    padding: 0;
}

#home.section.active {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/PA.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    border-radius: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slogan {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background var(--transition-speed);
}

.cta-button:hover {
    background: var(--color-accent);
}

/* Content Sections */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Header Image */
.section-header-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 10px;
}

.header-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Text Content Images */
.text-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* About Section Images */
.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Intervention Cards */
.intervention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.intervention-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

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

.intervention-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.intervention-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 1.2rem;
}

.intervention-card p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2rem;
    color: var(--color-primary);
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.client-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.client-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.client-category ul {
    list-style: none;
    padding: 0;
}

.client-category li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.client-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature .material-icons {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.email {
    font-size: 1.5rem;
    margin: 2rem 0;
    color: var(--color-primary);
}

.contact-details {
    text-align: left;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-details ul {
    list-style: none;
    margin-top: 1rem;
}

.contact-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.contact-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-links a:hover {
    opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: none;
    justify-content: space-between;
    align-items: center;
}

#accept-cookies {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

#accept-cookies:hover {
    background: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content {
        padding: 1rem;
    }

    .intervention-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-images {
        gap: 1rem;
    }

    .text-image, .about-image {
        height: 200px;
    }

    .header-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0.5rem;
    }

    .header-left {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
        margin: 3rem 0 1.5rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .client-category {
        padding: 1.5rem;
    }

    .client-category h4 {
        font-size: 1.2rem;
    }

    .section {
        padding: 5rem 1rem 1rem;
    }

    .intervention-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .text-image, .about-image {
        height: 180px;
    }

    .header-image {
        height: 200px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .slogan {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .text-content p {
        text-align: left;
    }

    .intervention-card h3 {
        font-size: 1rem;
    }

    .contact-details {
        padding: 1rem;
    }

    .email {
        font-size: 1.2rem;
    }
}

/* Text Content Styles */
.text-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}