/* Base Styles & Variables */
:root {
    --primary: #037971;
    --accent: #FFDC00;
    --text: #FAF9F6;
    --secondary: #A29F9E;
    --cta: #F95E5E;
    --primary-light: #039d94;
    --primary-dark: #025c56;
    --bg-light: #f5f5f5;
    --bg-dark: #333333;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    border-radius: 4px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--cta);
    color: var(--text);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--text);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Header & Navigation */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(3, 121, 113, 0.9);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    padding: 8px 16px;
    position: relative;
}

.main-nav a.active:after,
.main-nav a:not(.btn-primary):hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: calc(100% - 32px);
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(1);
    transition: var(--transition);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about {
    background-color: rgba(255, 255, 255, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content {
    animation: slideIn 0.8s ease-out;
    text-align: left;
}

.about .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 0 0 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 0 30px;
}

/* Why Choose Us Section */
.why-us {
    background-color: rgba(255, 255, 255, 0.05);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trust-badge {
    text-align: center;
    padding: 20px;
}

.badge-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.trust-badge:hover .badge-icon {
    background-color: var(--accent);
}

.badge-icon svg {
    height: 40px;
    width: 40px;
    fill: var(--text);
}

.trust-badge:hover .badge-icon svg {
    fill: var(--primary);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    counter-increment: step;
}

.process-step:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.process-step:before {
    content: counter(step);
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 2px;
    background-color: var(--accent);
    z-index: 0;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-name {
    font-weight: bold;
}

.author-title {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.cta-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    border-radius: 4px;
    transform: translateX(-50%);
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: 'Nunito Sans', sans-serif;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FAF9F6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.form-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.form-select option {
    background-color: var(--primary-dark);
    color: var(--text);
    padding: 10px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-checkbox {
    margin-right: 10px;
    margin-top: 4px;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
}

.form-checkbox:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 6px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.9rem;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--cta);
}

.form-submit {
    grid-column: span 2;
    justify-self: center;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-company .logo {
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-info {
    margin-top: 20px;
}

.footer-links h4,
.footer-legal h4 {
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content h3 {
    margin: 0 20px 10px 0;
}

.cookie-content p {
    margin: 0 20px 10px 0;
    flex: 1;
}

#accept-cookies {
    white-space: nowrap;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* FAQ Section */
.faq-section {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question.active:after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 300px;
    padding: 20px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 60px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.legal-container h1 {
    margin-bottom: 30px;
    color: var(--accent);
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Thanks Page */
.thanks-page {
    padding: 120px 0 60px;
    text-align: center;
}

.thanks-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow);
}

.thanks-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--primary);
}

.back-home {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .testimonial-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:nth-child(2):after {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1010;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-dark);
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
    }
    
    .main-nav.menu-open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav a:after {
        display: none;
    }
    
    .about-grid,
    .services-grid,
    .why-us-grid,
    .process-steps,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .form-submit {
        grid-column: 1;
    }
    
    .process-step:after {
        display: none;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #accept-cookies {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .legal-container,
    .form-container {
        padding: 30px 20px;
    }
}
