/**
 * Main stylesheet for domain.com
 * Romanian accounting services website
 */

/* ---- Reset & Base Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2E2E2E;
    background: linear-gradient(to bottom, #FDFCFB, #E2D1C3);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 15px;
}

a {
    color: #004AAD;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #B23A48;
}

section {
    padding: 60px 0;
    scroll-margin-top: 80px; /* Prevents header from overlapping section when using anchor links */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FFC857;
}

/* ---- Buttons ---- */
.button, 
.cta-button,
button {
    display: inline-block;
    background-color: #004AAD;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover, 
.cta-button:hover,
button:hover {
    background-color: #B23A48;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ---- Header Styles ---- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: 800;
    color: #004AAD;
    text-transform: lowercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    font-weight: 600;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B23A48;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
}

/* ---- Hero Banner ---- */
.hero-banner {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 74, 173, 0.7), rgba(0, 74, 173, 0.7)), url('./img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
}

.hero-banner h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ---- About Section ---- */
.about-section {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    padding: 40px;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-box {
    flex: 0 0 30%;
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #004AAD;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
}

/* ---- Services Section ---- */
.services-section {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 60px 0;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-box {
    flex: 0 0 30%;
    margin-bottom: 30px;
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    background-color: #004AAD;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will ensure the image covers the entire space without distortion */
    transition: transform 0.3s ease;
}

.service-box:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: #004AAD;
}

/* ---- Video Section ---- */
.video-section {
    text-align: center;
    padding: 60px 0;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.video-caption {
    padding: 20px;
    background-color: #004AAD;
    color: #FFFFFF;
}

/* ---- Testimonials Section ---- */
.testimonials-section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 60px 0;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.testimonial-box {
    flex: 0 0 48%;
    margin-bottom: 30px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: 700;
    color: #004AAD;
}

/* ---- FAQ Section ---- */
.faq-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
    background-color: #FFFFFF;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: #004AAD;
    display: block;
    width: 100%; /* Make question width full container width */
    text-align: left;
    box-sizing: border-box;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
}

.faq-answer {
    background-color: #F9F9F9;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-inner {
    padding: 20px;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* ---- Contact Form ---- */
.contact-section {
    padding: 60px 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.3);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.form-check input {
    margin-top: 6px;
    margin-right: 10px;
}

.form-button {
    width: 100%;
    margin-top: 20px;
}

/* ---- Footer ---- */
.site-footer {
    background-color: #004AAD;
    color: #FFFFFF;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 0 0 30%;
    margin-bottom: 30px;
}

.footer-section h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #FFC857;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #FFC857;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    color: #FFFFFF;
}

.footer-section.links ul li a:hover {
    color: #FFC857;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Cookie Popup ---- */
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #FFFFFF;
    padding: 15px 0;
    z-index: 9999;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#accept-cookies {
    background-color: #FFC857;
    color: #000000;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

#accept-cookies:hover {
    background-color: #FFFFFF;
}

/* ---- Policy Pages ---- */
.policy-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    color: #004AAD;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFC857;
}

/* ---- Media Queries ---- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    .feature-box,
    .service-box {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    /* Mobile menu */
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #004AAD;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 15px 0;
    }
    
    .hero-banner h1 {
        font-size: 2.2em;
    }
    
    .feature-box,
    .service-box,
    .testimonial-box {
        flex: 0 0 100%;
    }
    
    .footer-section {
        flex: 0 0 100%;
    }
    
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    
    #accept-cookies {
        margin-top: 15px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .about-section,
    .contact-form-container,
    .policy-container {
        padding: 20px;
    }
    
    .testimonial-box {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-image {
        margin: 0 auto 15px;
    }
}

/* Animation classes for elements, CSS-only approach */
.fade-in {
    opacity: 0; /* Start invisible */
    transform: translateY(20px);
    animation: fadeInOnLoad 0.6s ease forwards;
    animation-play-state: running;
    /* Each element will get a different delay through inline styles or nth-child selectors */
}

/* CSS animation keyframes for fade-in effect */
@keyframes fadeInOnLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
