/* 
   domain.com - Financial Audit Website Stylesheet
   Created for high performance and SEO optimization
*/

:root {
    --primary: #153B50;    /* Deep Sapphire Blue */
    --secondary: #FF7B25;  /* Vibrant Tangerine Orange */
    --accent: #3BB273;     /* Jade Green */
    --background: #FAF9F6; /* Soft Ivory */
    --text: #2E2E2E;       /* Anthracite Black */
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow);
}

.btn:hover {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
}

section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-left: 15px;
    padding-right: 15px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 59, 80, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    padding: 0 10px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(21, 59, 80, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--primary);
    color: white;
}

.why-us h2 {
    color: white;
}

.why-us h2:after {
    background: var(--accent);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
}

.advantage-item i {
    color: var(--accent);
    font-size: 24px;
    margin-right: 15px;
}

/* Process Section */
.process {
    background-color: white;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.process-step {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 20px;
}

.process-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 25px;
    right: -30%;
    width: 60%;
    height: 2px;
    background: var(--secondary);
    opacity: 0.5;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: """;
    font-size: 60px;
    color: var(--secondary);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -10px;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.client-name {
    font-weight: 700;
}

.client-position {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.form-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: white;
    padding: 0 10px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-top: 5px;
    margin-right: 10px;
}

.checkbox-group label {
    font-size: 14px;
}

.checkbox-group a {
    color: var(--secondary);
}

/* Blog Section */
.blog {
    background-color: var(--background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow);
}

.blog-image {
    height: 200px;
    width: 100%;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Policy Pages */
.policy-page {
    padding: 120px 0 80px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 2px solid var(--primary);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-container h2 {
    margin-top: 40px;
    font-size: 1.5rem;
    text-align: left;
}

.policy-container h2:after {
    left: 0;
    transform: none;
}

.policy-container ul, .policy-container ol {
    margin: 1rem 0 1.5rem 2rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -5px 15px var(--shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    animation: slideCookieIn 0.5s forwards;
}

@keyframes slideCookieIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-content {
    flex: 1;
    padding-right: 20px;
}

.cookie-popup.hidden {
    animation: slideCookieOut 0.5s forwards;
}

@keyframes slideCookieOut {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Mobile cookie popup styles */
@media (max-width: 768px) {
    .cookie-popup {
        padding: 15px;
        flex-direction: column;
    }
    
    .cookie-content {
        padding-right: 0;
        padding-bottom: 10px;
        text-align: center;
    }
    
    .cookie-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .cookie-popup {
        padding: 10px;
    }
    
    .cookie-content h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .cookie-content p {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .cookie-popup .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Thank You Page */
.thank-you {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.thank-you-content {
    max-width: 600px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex: 0 0 calc(50% - 20px);
    }
    
    .process-step:nth-child(even):after {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 10px;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        height: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        height: calc(100vh - 70px);
        padding: 30px 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu {
        display: block;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .process-step:after {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .hero {
        min-height: 85vh;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        padding: 0;
    }
    
    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}
