/**
 * Main Stylesheet
 * Domain Financial Audit Website
 */

/* Variables */
:root {
    /* Color Palette */
    --primary: #0B3C5D;
    --secondary: #FF6F61;
    --accent: #A2FF00;
    --background: #FAF8F0;
    --text: #333333;
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Scroll padding for anchors */
section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-lg);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.button-primary {
    background-color: var(--primary);
    color: white;
}

.button-primary:hover {
    background-color: #0a3252;
    color: white;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--secondary);
    color: white;
}

.button-secondary:hover {
    background-color: #ff5c4d;
    color: white;
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: var(--space-lg);
}

.main-nav li a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.main-nav li a:hover {
    color: var(--secondary);
}

.main-nav li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(11, 60, 93, 0.95);
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-nav li a {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav li a:hover {
    color: var(--accent);
}

.close-menu {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.9) 0%, rgba(11, 60, 93, 0.7) 100%);
}

.hero-content {
    max-width: 700px;
    padding: var(--space-xl) 0;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.hero-content .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.about-text {
    flex: 1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: var(--space-lg);
}

.service-content h3 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.service-content p {
    margin-bottom: var(--space-lg);
    color: #666;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--primary);
    color: white;
}

.benefits-section .section-title {
    color: white;
}

.benefits-section .section-title::after {
    background-color: var(--accent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-item h3 {
    color: white;
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Process Section */
.process-section {
    background-color: white;
}

.process-timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.process-step {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-left: 70px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-text {
    margin-bottom: var(--space-lg);
    color: #666;
}

.testimonial-text p {
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #888;
    font-size: 0.9rem;
}

/* Order Form Section */
.order-form-section {
    background-color: white;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f8f8f8;
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid;
    border-image: linear-gradient(to right, var(--secondary), var(--primary)) 1;
}

.form-error {
    background-color: #fff2f2;
    border-left: 4px solid #ff6b6b;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    color: #d63031;
}

.form-group {
    margin-bottom: var(--space-lg);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.required {
    color: var(--secondary);
}

.submit-group {
    text-align: center;
    margin-top: var(--space-xl);
}

/* FAQ Section */
.faq-section {
    background-color: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(11, 60, 93, 0.05);
}

.faq-question.active {
    border-bottom: 1px solid #eee;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.faq-answer {
    padding: var(--space-lg);
    color: #666;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: white;
    padding: var(--space-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h3 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.3rem;
}

.footer-col p,
.footer-col address {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.copyright {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Thank You Page */
.thank-you-section {
    display: flex;
    align-items: center;
    min-height: 70vh;
    text-align: center;
    background-color: white;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-box {
    border: 3px solid;
    border-image: linear-gradient(to right, var(--secondary), var(--primary)) 1;
    padding: var(--space-xl);
    background-color: #f8f8f8;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.thank-you-content h1 {
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.thank-you-content .message {
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Cookie Consent */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: var(--space-lg);
    z-index: 999;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

#acceptCookies {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#acceptCookies:hover {
    background-color: white;
}
