/* 
 * Domain Financial Audit Website - Main Stylesheet
 * Domain: domain.com
 * Description: Modern, responsive financial audit website for the Portuguese market
 */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #1C2340;      /* Midnight Sapphire */
    --secondary: #E94B77;    /* Aurora Pink */
    --accent: #9FFFCB;       /* Neo-Mint */
    --background: #F9F6EE;   /* Soft Ivory Mist */
    --highlight: #FFB347;    /* Amber Glow */
    --text: #2F2F2F;         /* Charcoal Slate */
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 5%;
}

html {
    scroll-behavior: smooth;
}

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

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 75, 119, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 75, 119, 0.2);
}

/* === HEADER & NAVIGATION === */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: lowercase;
    color: white;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 0;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 35, 64, 0.85), rgba(28, 35, 64, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
    display: inline-block;
}

/* === ABOUT SECTION === */
.about {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    align-self: flex-start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* === SERVICES SECTION === */
.services {
    padding: var(--section-padding);
    background-color: white;
    position: relative;
}

.services:before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid var(--secondary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

/* === AUDIT TYPES SECTION === */
.audit-types {
    padding: var(--section-padding);
    background-color: var(--background);
}

.audit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.audit-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.audit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.audit-card-content {
    padding: 30px;
}

.audit-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.audit-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* === WHY CHOOSE US SECTION === */
.why-choose {
    padding: var(--section-padding);
    background-color: white;
    position: relative;
}

.why-choose:before, .why-choose:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50px;
    left: 0;
}

.why-choose:before {
    top: -50px;
    background-color: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-icon {
    margin-right: 15px;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--secondary), var(--highlight));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-text h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--background);
    position: relative;
}

.testimonials:before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--background);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.testimonials-container {
    position: relative;
    padding: 30px 0;
}

.testimonial {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-position {
    color: var(--secondary);
    font-size: 0.9rem;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(233, 75, 119, 0.1);
    font-size: 50px;
}

/* === FORM SECTION === */
.form-section {
    padding: var(--section-padding);
    background-color: white;
    position: relative;
}

.form-section:before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(to right, rgba(28, 35, 64, 0.05), rgba(233, 75, 119, 0.05));
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.form-container:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--secondary), var(--primary), var(--highlight), var(--accent));
    z-index: -1;
    border-radius: 15px;
    animation: animateBorder 4s linear infinite;
}

@keyframes animateBorder {
    0% {
        filter: blur(5px);
        transform: rotate(0deg);
    }
    100% {
        filter: blur(5px);
        transform: rotate(360deg);
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 75, 119, 0.1);
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 40px;
    color: var(--secondary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* === FAQ SECTION === */
.faq {
    padding: var(--section-padding);
    background-color: var(--background);
    position: relative;
}

.faq:before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--background);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

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

.faq-item {
    margin-bottom: 15px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 0 solid #eee;
}

.faq-answer.active {
    padding: 0 20px 20px;
    max-height: 500px;
    border-top: 1px solid #eee;
}

/* === CONTACT & FOOTER === */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer h4 {
    color: white;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary);
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* === POLICY PAGES === */
.policy-page {
    padding: 120px 0 80px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    margin-bottom: 30px;
}

.policy-container h2 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.policy-container p {
    margin-bottom: 20px;
}

.policy-container ul, .policy-container ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-container li {
    margin-bottom: 10px;
}

/* === THANK YOU PAGE === */
.thank-you {
    padding: 150px 0 80px;
    text-align: center;
}

.thank-you-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you h1 {
    margin-bottom: 20px;
}

.check-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 50px;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-popup.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.cookie-popup p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-popup a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    justify-content: space-between;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.cookie-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .header-content {
        position: relative;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 5%;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .service-card, .audit-card {
        padding: 20px;
    }
    
    .cookie-popup {
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        width: 90%;
    }
    
    .cookie-popup.active {
        transform: translateX(-50%) translateY(0);
    }
    
    .policy-container {
        padding: 30px 20px;
    }
}
