/* 
Theme: Domain - Financial Audit Firm
Colors:
- Arctic Night Blue (#1C2541) – main background
- Warm Peach (#FFBB99) – CTA buttons and highlights
- Deep Emerald (#0D735F) – section backgrounds
- Cloud White (#F9F9F9) – text and card backgrounds
- Citrus Yellow (#FFDA44) – hover effects and accents
*/

/* ===== BASE STYLES ===== */
:root {
    --color-primary: #1C2541;
    --color-secondary: #FFBB99;
    --color-tertiary: #0D735F;
    --color-light: #F9F9F9;
    --color-accent: #FFDA44;
    --font-primary: 'Arial', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-primary);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-tertiary);
    color: var(--color-light);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-light);
    z-index: 1000;
    padding: 15px 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 15px 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    text-transform: lowercase;
    color: var(--color-light);
    letter-spacing: -1px;
}

.logo:hover {
    color: var(--color-secondary);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-secondary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-primary);
    color: var(--color-light);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* Account for fixed header */
    padding-top: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(13, 115, 95, 0.7), rgba(28, 37, 65, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.animated-text {
    display: inline-block;
    color: var(--color-secondary);
    position: relative;
}

.animated-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-color: var(--color-accent);
    animation: underline-pulse 2s infinite;
}

@keyframes underline-pulse {
    0% { opacity: 0.2; width: 0; }
    50% { opacity: 1; width: 100%; }
    100% { opacity: 0.2; width: 0; }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 4px solid var(--color-secondary);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--color-tertiary);
    color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.service-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: linear-gradient(135deg, var(--color-light) 0%, #e9e9e9 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: 1.8rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--color-primary);
    color: var(--color-light);
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%; /* Will be controlled by CSS variables */
}

.testimonial-slide {
    width: 33.333%; /* Will be controlled by CSS variables */
    padding: 0 15px;
    flex-shrink: 0;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 2rem;
    color: var(--color-secondary);
    position: absolute;
}

.testimonial-content::before {
    top: -10px;
    left: -5px;
}

.testimonial-content::after {
    bottom: -20px;
    right: -5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot:hover,
.testimonial-dot.active {
    background-color: var(--color-secondary);
}

/* ===== STATS SECTION ===== */
.stats {
    background-color: var(--color-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-tertiary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-number::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animated {
    animation: count-up 1s forwards;
}

/* ===== CONTACT FORM SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    color: var(--color-light);
}

.form-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    color: var(--color-primary);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 187, 153, 0.3);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-check input[type="checkbox"] {
    margin-top: 5px;
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: var(--color-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    grid-column: 1 / span 2;
}

.footer-contact ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a:hover,
.footer-legal a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===== POLICY PAGES ===== */
.policy-page {
    padding: 120px 0 60px;
}

.policy-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
}

.policy-container h2 {
    margin-top: 40px;
}

.policy-container h3 {
    margin-top: 30px;
}

.policy-container ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* ===== THANK YOU PAGE ===== */
.thanks-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 120px 0 60px;
}

.thanks-container {
    max-width: 600px;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu-button {
        font-size: 1.5rem;
        color: var(--color-light);
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.menu-open {
        max-height: 100vh;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    
    /* Adjust sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    /* Cookie Notice */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hero section mobile adjustment */
    .hero {
        padding-top: 80px;
    }
    
    .hero-content {
        padding-top: 30px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: 1;
    }
}
