/* 
* Domain - Financial Audit Company
* Main stylesheet
* Color palette:
* - Primary: Deep Ultramarine (#2C2E81)
* - Accent: Electric Coral (#FF5E57)
* - Background: Gradient from #E6F7F1 to #F8F8FF
* - Fonts: 'Poppins', 'Montserrat'
*/

/* ===== Base styles ===== */
:root {
    --color-primary: #2C2E81;
    --color-primary-light: #3F4196;
    --color-accent: #FF5E57;
    --color-accent-light: #FF7C76;
    --color-bg-start: #E6F7F1;
    --color-bg-end: #F8F8FF;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-light-gray: #F4F4F6;
    --color-border: #E0E0E0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.3;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 3rem;
    text-align: center;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1.6rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

/* ===== Header & Navigation ===== */
.main-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 4.5rem;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    height: 4.5rem;
}

.nav-list li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list a {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

.nav-list a.btn-small {
    display: inline-flex;
    height: auto;
    padding: 0.8rem 1.6rem;
    align-items: center;
}

/* ===== Main Sections ===== */
main {
    margin-top: 8rem; /* Account for fixed header */
}

/* Hero Section */
.hero-section {
    padding-top: 12rem;
    padding-bottom: 10rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(44, 46, 129, 0.05), rgba(255, 94, 87, 0.05));
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto 4rem;
}

.hero-content h1 {
    margin-bottom: 2rem;
    font-size: 4.8rem;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--color-text-light);
}

.hero-image {
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-photo {
    width: 100%;
    max-width: 80rem;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-photo:hover {
    transform: scale(1.02);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-weight: 600;
    margin-bottom: 1.6rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-item {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit-item h3 {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-light-gray);
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial {
    flex: 0 0 auto;
    width: 100%;
    max-width: 35rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 3rem;
    scroll-snap-align: center;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(44, 46, 129, 0.1);
}

.testimonial-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 3px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.client-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.client-name {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.4rem;
    color: var(--color-text-light);
}

/* FAQ Section */
.faq-container {
    max-width: 80rem;
    margin: 4rem auto 0;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-light-gray);
}

.faq-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-item input[type="checkbox"] + .faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item input[type="checkbox"]:checked + .faq-answer {
    padding: 2rem;
    max-height: 500px;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
    content: '-';
}

/* Contact Form Section */
.contact-section {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    max-width: 80rem;
    margin: 0 auto;
    padding: 5rem;
}

.contact-form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1.6rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(44, 46, 129, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.4rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.form-error {
    background-color: rgba(255, 94, 87, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.form-error p {
    color: #d32f2f;
    margin-bottom: 0;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0 2rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.footer-section a {
    color: var(--color-white);
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-section ul li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.4rem;
    opacity: 0.8;
}

/* Thank You Page */
.thankyou-section {
    text-align: center;
    padding: 12rem 0;
}

.message {
    max-width: 60rem;
    margin: 0 auto 3rem;
}

/* Legal Pages */
.legal-section {
    padding: 12rem 0 6rem;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-content {
    max-width: 90rem;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.legal-content h2 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-content h3 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 2rem;
    list-style: disc;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.8rem;
}

@media screen and (max-width: 768px) {
    .legal-content {
        padding: 2rem;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 2rem;
}

.cookie-content a {
    color: var(--color-accent-light);
}

#accept-cookies {
    background-color: var(--color-white);
    color: var(--color-primary);
    min-width: 12rem;
}

#accept-cookies:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ===== Responsive Design ===== */

/* Mobile Menu */
/* Mobile menu without JavaScript */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 3rem;
    height: 2.5rem;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

#mobile-menu-checkbox {
    display: none;
}

#mobile-menu-checkbox:checked ~ .container .header-content .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

#mobile-menu-checkbox:checked ~ .container .header-content .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-checkbox:checked ~ .container .header-content .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media screen and (max-width: 900px) {
    html {
        font-size: 56.25%; /* 9px = 0.9rem */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 8rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 8rem);
        background-color: var(--color-white);
        transition: var(--transition);
        z-index: 999;
        padding: 2rem 0;
    }
    
    #mobile-menu-checkbox:checked ~ .container .header-content .main-nav {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: auto;
    }
    
    .nav-list li {
        width: 100%;
        height: auto;
    }
    
    .nav-list a {
        display: block;
        padding: 2rem;
        text-align: center;
        font-size: 1.8rem;
        border-bottom: 1px solid var(--color-border);
        height: auto;
        justify-content: center;
    }
    
    .testimonials-slider {
        padding-bottom: 4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-content p {
        margin-right: 0;
    }
    
    .contact-section {
        padding: 3rem;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 50%; /* 8px = 0.8rem */
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero-section {
        padding-top: 10rem;
    }
    
    .testimonial {
        max-width: 90%;
    }
    
    .contact-form {
        padding: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 400px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .contact-section {
        padding: 2rem;
    }
} 