/**
 * Main styles for domain.org - Accounting services in Portugal
 * SEO-optimized, responsive, modern website
 * Color palette:
 * - Deep purple: #3B0B98
 * - Lemon yellow: #FFF44F
 * - Warm gray: #F7F7F7
 * - White: #FFFFFF
 * - Graphite text: #222222
 * - Peach accent: #FFBA93
 */

/* Base & Reset */
:root {
    --color-purple: #3B0B98;
    --color-yellow: #FFF44F;
    --color-gray: #F7F7F7;
    --color-white: #FFFFFF;
    --color-text: #222222;
    --color-peach: #FFBA93;
    --border-radius: 1rem;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-peach);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-purple);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-purple);
    color: var(--color-white);
    border: 2px solid var(--color-purple);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-purple);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-purple);
    border: 2px solid var(--color-purple);
}

.btn-outline:hover {
    background-color: var(--color-purple);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
    display: block;
}

/* Header & Navigation */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.desktop-nav {
    display: none;
}

.mobile-menu-toggle {
    display: block;
    cursor: pointer;
}

.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-purple);
    color: var(--color-white);
    font-size: 1.5rem;
}

.menu-icon, .close-icon {
    display: block;
    line-height: 1;
}

.mobile-nav {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 15px;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu li:last-child {
    margin-bottom: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.mobile-nav-menu a:hover {
    background-color: var(--color-gray);
}

.divider {
    height: 1px;
    background-color: var(--color-gray);
    margin: 15px 0;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFBA93' fill-opacity='0.2' d='M0,224L60,213.3C120,203,240,181,360,176C480,171,600,181,720,181.3C840,181,960,171,1080,154.7C1200,139,1320,117,1380,106.7L1440,96L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    opacity: 0.7;
    z-index: 0;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

@media (min-width: 992px) {
    .hero-section .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
    }
    
    .hero-content {
        margin-bottom: 0;
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.about-text, .about-image {
    flex: 1;
}


/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.advantage-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    margin-bottom: 20px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
}

.service-card ul {
    list-style-position: inside;
    padding: 0 20px 20px;
}

.service-card li {
    margin-bottom: 8px;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background-color: var(--color-gray);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFF44F' fill-opacity='0.2' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,85.3C672,75,768,85,864,122.7C960,160,1056,224,1152,218.7C1248,213,1344,139,1392,101.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    opacity: 0.5;
    z-index: 0;
}

.process-steps {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-purple);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-yellow);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 20px;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0;
}

.author-company {
    color: var(--color-purple);
    font-style: italic;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-purple);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text);
    font-weight: 600;
}

.faq-question:hover {
    background-color: var(--color-gray);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-purple);
}

.faq-answer {
    padding: 0 20px 20px;
    background-color: var(--color-white);
}

.faq-item.active .faq-question {
    background-color: var(--color-gray);
}

/* Footer */
.site-footer {
    background-color: var(--color-purple);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    opacity: 0.8;
}

.footer-column h3 {
    color: var(--color-yellow);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cookie-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .advantages-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 20px;
        align-items: center;
    }
    
    .nav-menu a {
        font-weight: 600;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .cookie-popup {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
} 