/* 
 * Main CSS for Financial Audit Website
 * Color Palette:
 * - Main: #0C1F2C (dark ocean blue)
 * - Accent: #F27D42 (terracotta orange)
 * - Light Gray: #F2F2F2
 * - Beige: #E1D4BB
 * - Text: #1B1B1B
 */

/* =================== Reset & Base =================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1B1B1B;
    background-color: #F2F2F2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0C1F2C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F27D42;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0C1F2C;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background-color: #F27D42;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* =================== Container & Layout =================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Checkerboard section colors */
section:nth-child(even) {
    background-color: #F2F2F2;
}

section:nth-child(odd) {
    background-color: #fff;
}

.sobre-section {
    background-color: #E1D4BB !important;
}

/* =================== Buttons =================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #F27D42;
    color: white;
}

.btn-primary:hover {
    background-color: #e06730;
    color: white;
}

.btn-secondary {
    background-color: #0C1F2C;
    color: white;
}

.btn-secondary:hover {
    background-color: #163a4f;
    color: white;
}

/* =================== Header & Navigation =================== */
.site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li:not(:last-child) {
    margin-right: 1.5rem;
}

.main-nav a {
    font-weight: 600;
}

.nav-btn {
    margin-left: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0C1F2C;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =================== Banner Section =================== */
.banner-section {
    padding: 6rem 0;
    background-color: #0C1F2C;
    color: white;
}

.banner-section h1,
.banner-section p {
    color: #1B1B1B;
}

.banner-content {
    max-width: 600px;
    margin-bottom: 2rem;
}

.banner-section .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* =================== Sobre Section =================== */
.sobre-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sobre-text,
.sobre-image {
    flex: 1;
}

.sobre-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =================== Serviços Section =================== */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servico-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 2rem;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.servico-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.servico-card h3,
.servico-card p {
    padding: 0 1.5rem;
}

.servico-card .btn {
    margin: 1rem 1.5rem 0;
}

/* =================== Vantagens Section =================== */
.vantagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vantagem-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.vantagem-item:hover {
    transform: translateY(-5px);
}

.vantagem-icon {
    margin-bottom: 1.5rem;
}

/* =================== Testemunhos Section =================== */
.testemunhos-slider {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.testimonial-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content blockquote::before,
.testimonial-content blockquote::after {
    content: '"';
    font-size: 2rem;
    color: #E1D4BB;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0;
}

.author-position {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* =================== FAQ Section =================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 0;
    position: relative;
}

.faq-question-button {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-minus {
    display: none;
}

.icon-plus {
    display: block;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .icon-minus {
    display: block;
}

.faq-item.active .icon-plus {
    display: none;
}

/* Use anchor links to control accordion without JS */
.faq-item:target .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item:target .icon-minus {
    display: block;
}

.faq-item:target .icon-plus {
    display: none;
}

/* =================== Contacto Section =================== */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contacto-info {
    background-color: #0C1F2C;
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.contacto-info h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contacto-image {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.contacto-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #F27D42;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
}

.checkbox-group label {
    margin: 0;
}

/* =================== Footer =================== */
.site-footer {
    background-color: #0C1F2C;
    color: #F2F2F2;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.site-footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: #F2F2F2;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #F27D42;
}

.footer-about p {
    margin-top: 1rem;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.75rem;
}

.footer-contact address {
    font-style: normal;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =================== Cookie Consent Popup =================== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #0C1F2C;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: #F27D42;
}

/* =================== Policy Pages =================== */
.policy-section {
    padding: 6rem 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
    margin-bottom: 2rem;
}

.policy-date {
    margin-bottom: 2rem;
    color: #666;
}

.policy-text h2 {
    margin-top: 3rem;
    font-size: 1.5rem;
}

.policy-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* =================== Gracias Page =================== */
.gracias-section {
    padding: 6rem 0;
    text-align: center;
}

.gracias-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gracias-content svg {
    margin: 0 auto 2rem;
}

.gracias-actions {
    margin: 3rem 0;
}

.gracias-actions .btn {
    margin: 0 0.5rem;
}

.gracias-info {
    margin-top: 3rem;
    text-align: left;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.gracias-info ul {
    list-style: none;
}

.gracias-info li {
    margin-bottom: 0.5rem;
}

/* =================== Responsive Design =================== */
@media (min-width: 768px) {
    .banner-section .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .banner-content {
        max-width: 50%;
        margin-bottom: 0;
        margin-right: 2rem;
    }
    
    .banner-image {
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .sobre-content {
        flex-direction: column;
    }
    
    .sobre-text {
        margin-bottom: 2rem;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        visibility: hidden;
    }
    
    .main-nav.active {
        max-height: 500px;
        padding: 1rem 0;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 1.5rem;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .main-nav li:not(:last-child) {
        margin-right: 0;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
} 