/* 
 * AuditFin - Main Stylesheet
 * Author: Developed for AuditFin Portugal
 */

/* ===== Variables ===== */
:root {
    --primary: #11324D;
    --accent: #FFD166;
    --background: #F7F7FF;
    --text: #1D1E2C;
    --secondary: #3D5A80;
    --tertiary: #EF476F;
    --white: #FFFFFF;
    --light-gray: #EFEFEF;
    --gray: #CCCCCC;
    --dark-gray: #666666;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --border-radius: 4px;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    transition: var(--transition);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate {
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

.fade-in {
    animation-name: fadeIn;
}

.slide-left {
    animation-name: slideInLeft;
}

.slide-right {
    animation-name: slideInRight;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
    padding: 1rem 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.menu-toggle:checked + .menu-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle:checked + .menu-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.nav-list {
    display: flex;
    list-style-type: none;
    margin: 0;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list li a {
    font-weight: 600;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 700;
}

.btn-contact:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-contact::after {
    display: none;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(17, 50, 77, 0.7), rgb(131 127 112 / 80%)), url(./img/eRAGo.jpg);
     background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== About Section ===== */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent);
    z-index: -1;
}

/* ===== Features Section ===== */
.features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.service-footer {
    padding: 1rem 1.5rem;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Form Section ===== */
.form-section {
    background-color: var(--secondary);
    color: var(--white);
    padding: 4rem 0;
}

.form-section h2 {
    color: var(--white);
}

.form-section h2::after {
    background-color: var(--accent);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.2);
}

/* Add background color to option elements */
select.form-control option {
    background-color: var(--white);
    color: var(--text);
    padding: 10px;
}

select.form-control option:hover,
select.form-control option:checked {
    background-color: var(--light-gray);
}

.checkbox-group {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text);
}

.form-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Error message style */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #c62828;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: 0;
    top: -20px;
    color: var(--accent);
    opacity: 0.5;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* ===== Partners Section ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
}

/* ===== FAQ Section ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-toggle {
    display: none;
}

.faq-question {
    background-color: var(--white);
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-toggle:checked ~ .faq-question {
    background-color: var(--primary);
    color: var(--white);
}

.faq-toggle:checked ~ .faq-question::after {
    content: '-';
    color: var(--accent);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
    padding: 1.25rem;
    max-height: 500px;
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--light-gray);
    color: var(--text);
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-info .icon {
    margin-right: 10px;
    color: var(--accent);
    min-width: 20px;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form .form-group label {
    color: var(--text);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--white);
    transform: translateY(-5px);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-column h4 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.company-description {
    margin-top: 1.5rem;
    max-width: 400px;
}

.footer-links {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

address p {
    margin-bottom: 1rem;
}

address a {
    color: var(--white);
}

address a:hover {
    color: var(--accent);
}


.legal-container a {
    color: var(--primary);
}
.legal-container a:hover {
    color: var(--primary);

    
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 2rem;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-content .btn {
    flex-shrink: 0;
    background-color: var(--accent);
    color: var(--primary);
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 5rem 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.legal-container h1 {
    margin-bottom: 2rem;
}

.legal-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-container h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-container p, 
.legal-container ul {
    margin-bottom: 1.5rem;
}

/* ===== Thank You Page ===== */
.thank-you {
    padding: 8rem 0;
    text-align: center;
}

.thank-you-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.thank-you h1 {
    margin-bottom: 1.5rem;
}

.thank-you p {
    margin-bottom: 2rem;
}

/* ===== SVG Icons ===== */
.icon-feature {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.icon-feature path {
    fill: var(--primary);
}

/* ===== Media Queries ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .features-grid, 
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper, 
    .footer-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-icon {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-list li {
        margin-left: 0;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .nav-list li a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        height: auto;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid, 
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .legal-container,
    .form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .form-wrapper {
        padding: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
} 