/* 
 * Main stylesheet for domain.com
 * Financial Audit Company Website
 */

:root {
    /* Color Palette */
    --color-background: #F0F8FF;    /* Alice Blue - Main Background */
    --color-accent-1: #FF6F61;      /* Coral Red - Primary Accent */
    --color-accent-2: #6B5B95;      /* Purple Grey - Secondary Accent */
    --color-button: #88B04B;        /* Lime Green - Button Color */
    --color-text: #2F2F2F;          /* Dark Grey - Text Color */
    --color-white: #FFFFFF;         /* White - Block Background */
    --color-border: #E0E0E0;        /* Light Grey - Borders and Shadows */
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 16px;
    --line-height-base: 1.5;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: var(--line-height-base);
    background-color: var(--color-background);
    position: relative;
}

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

a:hover {
    color: var(--color-accent-1);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.section {
    padding: 4rem 0;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-button);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #7AA33D; /* Slightly darker */
    transform: translateY(-2px);
    color: var(--color-white);
}

/* Card Styles */
.card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-2);
}

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

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

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-accent-2);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    background-color: var(--color-background);
    justify-content: center;
    width: 100%;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hero h1 {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.hero p {
    width: 100%;
    text-align: center;
    margin: 1rem auto 2rem;
    max-width: 800px;
}

.hero .btn {
    margin: 0.5rem auto;
    display: inline-block;
    text-align: center;
}

/* About Section */
.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-card {
    flex: 1 0 calc(33.333% - 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Services Section */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.services-cards .card {
    padding: 0 0 1.5rem;
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin: 0 0 1.5rem;
}

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

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

.services-cards h3 {
    margin: 0 1.5rem 1rem;
    font-size: 1.4rem;
}

.services-cards p {
    margin: 0 1.5rem 1rem;
    font-size: 0.95rem;
}

.services-cards ul {
    margin: 0 1.5rem;
    padding-left: 1.5rem;
}

/* Why Us Section */
.why-us-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cases Section */
.cases-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.case-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-item img {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.case-item:hover img {
    transform: scale(1.05);
}

.case-item h3 {
    margin: 1rem 1rem 0.5rem;
    font-size: 1.3rem;
}

.case-item p {
    flex-grow: 1;
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* FAQ Section */
.faq-item {
    background-color: var(--color-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    width: 100%;
}

.faq-question {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--color-border);
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent-2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

/* Footer Styles */
footer {
    background-color: var(--color-accent-2);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    width: 100%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-white);
}

.footer-links a:hover {
    color: var(--color-accent-1);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content {
    margin-right: 1rem;
    flex: 1 1 auto;
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 100%;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav ul {
        list-style: none;
    }
    
    .mobile-nav li {
        margin-bottom: 1rem;
    }
    
    .about-card {
        flex: 1 0 calc(50% - 2rem);
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
    
    .services-cards .card {
        margin-bottom: 2rem;
    }
    
    .service-card-image {
        height: 180px;
    }
    
    .why-us-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cases-gallery {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .case-item {
        margin-bottom: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .case-item h3 {
        font-size: 1.2rem;
        margin: 0.8rem 1rem 0.5rem;
    }
    
    .case-item p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 2rem 0;
    }
    
    .about-card {
        flex: 1 0 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
    
    .card {
        margin-left: 0;
        margin-right: 0;
    }
}