/* 
 * Main stylesheet for domain.com
 * Financial Audit Company in Spain
 * Mobile-first, responsive design
 */

/* CSS Variables for consistent theming */
:root {
    --primary: #3D155F; /* Midnight Plum */
    --secondary: #C1FF72; /* Electric Lime */
    --background: #0D0D0D; /* Ink Black */
    --accent: #FF8B00; /* Solar Orange */
    --text: #F9F9F9; /* Ivory White */
    --cta: #9BE8FF; /* Frost Blue */
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
    --section-padding: 4rem 2rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Adds padding to scroll targets */
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--cta);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: var(--section-padding);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--cta);
    color: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary);
    color: var(--background);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header & Navigation */
header {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    text-transform: lowercase;
    letter-spacing: -1px;
}

.toggle-menu {
    display: none;
}

.menu-checkbox {
    display: none;
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--text);
    font-weight: 600;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .toggle-menu {
        display: block;
        cursor: pointer;
        color: var(--text);
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .menu-checkbox:checked ~ .nav-menu {
        left: 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-bg-text {
    position: absolute;
    font-size: 15rem;
    font-weight: bold;
    opacity: 0.03;
    top: -20px;
    right: -100px;
    white-space: nowrap;
    animation: slideRight 30s linear infinite;
    color: var(--text);
}

/* About Section */
.about {
    background-color: var(--background);
}

/* Services Section */
.services {
    background-color: rgba(61, 21, 95, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #121212 0%, var(--primary) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Audit Types Section */
.audit-types {
    background-color: var(--background);
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .toggle-grid {
        grid-template-columns: 1fr;
    }
}

.audit-toggle {
    background-color: rgba(61, 21, 95, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.audit-toggle-header {
    background-color: var(--primary);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-toggle-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.audit-toggle.active .audit-toggle-content {
    padding: 1.5rem;
    max-height: 500px;
    animation: fadeIn 0.5s ease-out;
}

/* Testimonials Section */
.testimonials {
    background-color: rgba(61, 21, 95, 0.1);
    overflow: hidden;
    position: relative;
}

.testimonial-slider {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    width: 33.33%;
    padding: 0 1rem;
    flex-shrink: 0;
}

.testimonial-card {
    background-color: rgba(13, 13, 13, 0.7);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.client-name {
    font-weight: bold;
}

.client-position {
    color: var(--accent);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(249, 249, 249, 0.2);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent);
}

/* Comparison Table */
.comparison {
    background-color: var(--background);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.comparison-table th {
    background-color: var(--primary);
    padding: 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(249, 249, 249, 0.1);
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(61, 21, 95, 0.05);
}

.feature-available {
    color: var(--secondary);
    font-weight: bold;
}

/* Contact Form Section */
.contact {
    background-color: rgba(61, 21, 95, 0.1);
}

.form-container {
    background-color: rgba(13, 13, 13, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(249, 249, 249, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(13, 13, 13, 0.7);
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 139, 0, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23F9F9F9' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check-label {
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    background-color: var(--background);
}

.accordion {
    margin-top: 2rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(61, 21, 95, 0.1);
}

.accordion-header {
    background-color: rgba(61, 21, 95, 0.3);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(61, 21, 95, 0.5);
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content {
    padding: 1.5rem;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}

/* Footer */
footer {
    background-color: var(--primary);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-links {
    list-style-type: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.contact-info {
    list-style-type: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(249, 249, 249, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    padding: 1.5rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-content {
    background-color: rgba(61, 21, 95, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.policy-content h2 {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-top: 2rem;
}

/* Thank You Page */
.thank-you {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.thank-you-content {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    background-color: rgba(61, 21, 95, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.check-icon {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(0.95);
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-bg-text {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        height: auto;
        min-height: 500px;
    }
    
    .hero-bg-text {
        font-size: 7rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .toggle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 3rem 1rem;
    }
    
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero-bg-text {
        font-size: 5rem;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}
