/* 
 * Styles for ComptExpert - Accounting Services Website
 * Colors:
 * - Background: #faf7f2 (pearl white)
 * - Primary accent: #0058a3 (cobalt blue)
 * - Secondary accent: #ffd541 (sun yellow)
 * - Text: #2d2d2d (graphite)
 * - Additional element: #c3f3f1 (turquoise mist)
 */

/* ===== Reset and Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Poppins", "Arial", sans-serif;
    color: #2d2d2d;
    background-color: #faf7f2;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0058a3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d72;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

section[id] {
    padding-top: 6rem;
    margin-top: -1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: #0058a3;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffd541;
    margin: 0.8rem auto;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.alert-danger {
    background-color: #ffeded;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0277bd;
    border: 1px solid #b3e5fc;
}

.alert-warning {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffe082;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0058a3, #0080b7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 88, 163, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004a8c, #0073a3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 88, 163, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #0058a3;
    color: #0058a3;
}

.btn-secondary:hover {
    background-color: rgba(0, 88, 163, 0.1);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    flex: 1 1 60%;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Header and Navigation ===== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    flex: 0 0 200px;
}

.logo-svg {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd541;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    text-decoration: none;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0058a3;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 6rem 0;
    background: linear-gradient(170deg, #c3f3f1 0%, #faf7f2 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0058a3;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

/* ===== About Section ===== */
.about {
    background-color: #fff;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: #0058a3;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Services Section ===== */
.services {
    background: linear-gradient(170deg, #faf7f2 0%, white 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #c3f3f1, #e6fbfa);
    color: #0058a3;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #0058a3;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-price {
    font-weight: 700;
    color: #0058a3;
    font-size: 1.1rem;
}

/* ===== Advantages Section ===== */
.advantages {
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f8ff;
    color: #0058a3;
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
}

.advantage-item h3 {
    margin-bottom: 1rem;
    color: #0058a3;
}

/* ===== Stats Section ===== */
.stats {
    background: linear-gradient(170deg, #0058a3 0%, #004a8c 100%);
    color: white;
}

.stats .section-title {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd541;
}

/* ===== Contact Form Section ===== */
.contact {
    background: linear-gradient(170deg, #faf7f2 0%, white 100%);
}

.contact-content {
    display: flex;
    gap: 4rem;
    align-items: stretch;
}

.contact-form {
    flex: 1;
}

.custom-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    color: #2d2d2d;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0058a3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.1);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 5px;
    color: #777;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]):valid + label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    background: #fff;
    color: #0058a3;
}

.form-group input:not(:placeholder-shown),
.form-group select:not([value=""]):valid {
    border-color: #0058a3;
}

.form-group select option[value=""] {
    color: #777;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 3px;
}

.checkbox-group label {
    position: static;
    transform: none;
    font-size: 0.9rem;
    flex: 1;
    padding: 0;
    color: #2d2d2d;
}

.contact-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: -1rem;
    color: rgba(0, 88, 163, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    text-align: right;
    padding-top: 0.5rem;
    border-top: 2px solid rgba(0, 88, 163, 0.1);
}

/* ===== Footer ===== */
.main-footer {
    background-color: #0058a3;
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #c3f3f1;
    margin-bottom: 2rem;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffd541;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #ffd541;
}

.legal-links li {
    margin-bottom: 0.8rem;
}

.legal-links a {
    color: #c3f3f1;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffd541;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .container,
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-content,
    .hero-image,
    .about-text,
    .about-image,
    .contact-form,
    .contact-image {
        width: 100%;
    }
    
    .contact-image {
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 102;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 101;
        gap: 1.5rem;
        overflow-y: auto;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .services-grid,
    .advantages-grid,
    .stats-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card,
    .testimonial-card,
    .custom-form {
        padding: 1.5rem;
    }
    
    .contact-image {
        max-height: 300px;
    }
}

/* ===== Accessibility ===== */
:focus {
    outline: 3px solid rgba(0, 88, 163, 0.5);
}

.img-fluid {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ===== Animations and Effects ===== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-text,
.service-card,
.advantage-item,
.stat-item,
.custom-form,
.testimonial-card {
    animation: fadeUp 0.8s ease-out forwards;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* ===== Policy Pages Styles ===== */
.policy {
    padding: 4rem 0;
    background-color: #faf7f2;
}

.policy h1 {
    color: #0058a3;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.policy-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.policy-content h2 {
    color: #0058a3;
    margin: 2.5rem 0 1rem;
    font-size: 1.8rem;
}

.policy-content h3 {
    color: #0058a3;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.policy-content ul, .policy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.7rem;
}

.policy-content a {
    color: #0058a3;
    text-decoration: underline;
}

.policy-content a:hover {
    color: #003d72;
}

.policy-content address {
    margin: 1.5rem 0;
    font-style: normal;
    line-height: 1.7;
}

@media screen and (max-width: 768px) {
    .policy-content {
        padding: 1.5rem;
    }
    
    .policy h1 {
        font-size: 2rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.3rem;
    }
} 