/* 
 * Main stylesheet for domain.com
 * Financial audit company website
 */

/* Root variables - color palette */
:root {
    --primary: #2952A3; /* Vassilkovy blue */
    --accent: #D72669; /* Fuchsia */
    --text: #1E1E1E; /* Dark graphite */
    --background: #F9F6F1; /* Milky white */
    --secondary: #D4E157; /* Lime-yellow */
    --light: #FFFFFF;
    --dark: #000000;
    --grey: #F0F0F0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Header styles */
.main-header {
    background-color: var(--light);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin: 0;
    letter-spacing: -1px;
    position: relative;
}

.logo h1::after {
    content: '.';
    color: var(--accent);
    font-size: 40px;
    position: absolute;
    line-height: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    line-height: 40px;
    display: inline-block;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-contact {
    background-color: var(--accent);
    color: var(--light) !important;
    line-height: normal !important;
    padding: 10px 25px !important;
}

.btn-contact:hover {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--light);
}

.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Main content */
main {
    padding-top: 70px; /* Reduced from 90px to remove space between header and first section */
    overflow-x: hidden;
}

/* Section styles */
.section-title {
    font-size: 36px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Hero section - Updated styling */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3b7a 100%);
    color: var(--light);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 5px 20px var(--shadow);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background-color: var(--secondary);
    opacity: 0.05;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 50%;
}

.hero-image {
    width: 45%;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100px;
    height: 4px;
    background-color: var(--accent);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}


.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    width: 48%;
}

.about-image {
    width: 48%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Services section */
.services {
    background-color: var(--grey);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    width: calc(33.333% - 20px);
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    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.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}

/* Advantages section - Updated with frames */
.advantages {
    padding: 100px 0;
}

.advantage-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.advantage-item {
    text-align: center;
    width: calc(25% - 30px);
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.advantage-icon {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: rgba(215, 38, 105, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    opacity: 0.5;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.advantage-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary);
}

/* Testimonials section */
.testimonials {
    background-color: var(--primary);
    color: var(--light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials .section-title {
    color: var(--light);
}

.testimonials .section-title::after {
    background-color: var(--secondary);
}

.testimonial-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--light);
    color: var(--text);
    border-radius: 10px;
    padding: 30px;
    width: calc(33.333% - 20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.author-info p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

/* FAQ section */
.faq {
    padding: 100px 0;
}

.faq-items {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--light);
    padding: 0;
    cursor: pointer;
    display: block;
    font-weight: 600;
}

.faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: var(--text);
    text-decoration: none;
    width: 100%;
}

.faq-toggle::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--light);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}


.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-form-container {
    width: 60%;
}

.contact-form {
    background-color: var(--light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.contact-info {
    width: 35%;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 25px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    min-width: 20px;
    color: var(--accent);
    font-size: 20px;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 25px;
    max-width: 90%;
    width: 400px;
    z-index: 1000;
    display: none;
}

.cookie-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

/* Footer - Updated for alignment */
.main-footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    align-items: flex-start;
}

.footer-section {
    width: calc(33.333% - 30px);
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    height: 55px;
    display: flex;
    align-items: center;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Privacy policy pages */
.policy-page {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.policy-page h1 {
    color: var(--primary);
    margin-bottom: 30px;
}

.policy-page h2 {
    color: var(--accent);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
}

.policy-page p,
.policy-page ul,
.policy-page ol {
    margin-bottom: 20px;
}

/* Thanks page */
.thanks-page {
    text-align: center;
    padding: 100px 0;
}

.thanks-card {
    background-color: var(--light);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.thanks-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.thanks-icon {
    font-size: 80px;
    color: var(--accent);
    margin-bottom: 30px;
    display: inline-block;
    background-color: rgba(215, 38, 105, 0.1);
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    text-shadow: 0 0 10px rgba(215, 38, 105, 0.3);
    position: relative;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.thanks-page h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.thanks-page p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .service-card {
        width: calc(50% - 15px);
    }
    
    .advantage-item {
        width: calc(50% - 20px);
    }
    
    .hero-content, .hero-image {
        width: 48%;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light);
        box-shadow: 0 5px 10px var(--shadow);
        padding: 20px 0;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        margin-bottom: 30px;
        transform: none;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .service-card {
        width: 100%;
    }
    
    .testimonial-cards {
        flex-direction: column;
    }
    
    .testimonial-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form-container, .contact-info {
        width: 100%;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        height: auto;
    }
    
    main {
        overflow-x: hidden;
    }
    
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 576px) {
    .advantage-item {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
} 