/* Global Variables & Reset */
:root {
    /* Color Palette inspired by professional advisory services */
    --primary-color: #1a3b5d;
    /* Deep Blue - Trust & Stability */
    --secondary-color: #c49a6c;
    /* Muted Gold/Beige - Premium feel */
    --accent-color: #d32f2f;
    /* Subtle nod to German red, used sparingly */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

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

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: var(--white);
    height: auto;
    /* Allow height to adjust */
    min-height: var(--header-height);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.phone,
.address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.phone:hover {
    color: var(--secondary-color);
}

.address {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Icons */
.phone svg,
.address svg {
    color: var(--secondary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    line-height: 0;
    transition: all 0.3s ease;
    opacity: 0.5;
    display: flex;
    align-items: center;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--secondary-color);
}

.lang-btn:hover:not(.active) {
    opacity: 0.8;
}

/* Hero Section */
#hero {
    height: 90vh;
    background-image: linear-gradient(rgba(10, 25, 45, 0.6), rgba(10, 25, 45, 0.5)), url('Paraguay.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button,
.submit-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.4);
    cursor: pointer;
    font-size: 0.9rem;
}

.cta-button:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 154, 108, 0.6);
    background-color: #d4a778;
}

/* About Section */
#about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

#about h2,
#process-steps h2,
#testimonials h2,
#faq h2,
#contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

#about h2::after,
#process-steps h2::after,
#testimonials h2::after,
#faq h2::after,
#contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-photo-wrapper {
    flex: 0 0 300px;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Process Steps */
#process-steps {
    padding: 80px 0;
    background-color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.testimonial-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 200px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.testimonial.active {
    opacity: 1;
}

.testimonial blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.testimonial-dot.active {
    background-color: var(--secondary-color);
}

/* Contact Section */
#contact {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* FAQ Section */
#faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-color);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {

    /* Header mobile: 2 rows */
    .header-content {
        flex-wrap: wrap;
        padding: 18px 15px 10px;
        row-gap: 12px;
    }

    .logo {
        font-size: 1.2rem;
        order: 1;
    }

    .header-right {
        display: contents;
    }

    .lang-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    .contact-info {
        order: 3;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .phone,
    .address {
        font-size: 0.75rem;
    }

    #hero {
        background-attachment: scroll;
        margin-top: 90px;
    }

    #hero h1 {
        font-size: 1.4rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    #hero .subtitle {
        font-size: 1rem;
    }

    /* Success Message */
    .success-message {
        text-align: center;
        padding: 40px;
        background: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        max-width: 600px;
        margin: 0 auto;
        animation: fadeIn 0.5s ease;
    }

    .success-icon {
        color: #28a745;
        margin-bottom: 20px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .about-content {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }

    .about-photo-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .process-steps {
        flex-direction: column;
    }

    /* Testimonials mobile */
    .testimonial {
        padding: 25px;
    }

    .testimonial blockquote p {
        font-size: 1rem;
    }

    .testimonial-carousel {
        min-height: 280px;
    }

    /* FAQ mobile */
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.95rem;
    }
}