/* ==========================================================================
   Domain Financial Audit Service - Complete CSS Stylesheet
   Responsive Design with Custom Color Palette and CSS Animations
   ========================================================================== */

/* Custom Color Palette */
:root {
    --primary-bg: #014D4E;        /* Deep dark teal */
    --accent-lime: #D4E157;       /* Lime yellow */
    --accent-coral: #FF6F61;      /* Coral pink */
    --text-light: #ECEFF1;        /* Warm light gray */
    --block-bg: #FFFFFF;          /* Pure white */
    --gradient-button: linear-gradient(135deg, #D4E157, #FF6F61);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Smooth scrolling offset for fixed header */
html {
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background: var(--primary-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-lime);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
    margin-bottom: 1.2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Header Styles */
.header {
    background: rgba(1, 77, 78, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-lime);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--accent-coral);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--accent-lime);
    background: rgba(212, 225, 87, 0.1);
    border-color: var(--accent-lime);
}

.nav-link.active {
    color: var(--accent-lime);
    background: rgba(212, 225, 87, 0.15);
    border-color: var(--accent-lime);
}

/* CSS-Only Mobile Menu */
.mobile-menu-checkbox {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-lime);
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger to X animation */
.mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 248, 225, 0.05);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-button);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary-bg);
    color: var(--accent-lime);
    border: 2px solid var(--accent-lime);
}

.btn-secondary:hover {
    background: var(--accent-lime);
    color: var(--primary-bg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 77, 78, 0.8), rgba(212, 225, 87, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--accent-lime);
    font-weight: 300;
}

/* Card Styles */
.card {
    background: var(--block-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--primary-bg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 225, 87, 0.1), rgba(255, 111, 97, 0.1));
    transition: left 0.5s ease;
    z-index: 1;
}

.card:hover::before {
    left: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card h3 {
    color: var(--primary-bg);
    margin-bottom: 1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Services Section */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-bg);
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-button);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    text-align: left;
}

.timeline-content {
    background: var(--block-bg);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    color: var(--primary-bg);
    box-shadow: var(--shadow-soft);
}

.timeline-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-bg);
    box-shadow: 0 0 0 8px var(--primary-bg);
}

/* Form Styles */
.form-container {
    background: var(--block-bg);
    border-radius: 20px;
    padding: 3rem;
    color: var(--primary-bg);
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-bg);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--primary-bg);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 3px rgba(212, 225, 87, 0.2);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--accent-coral);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonial {
    background: var(--block-bg);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    color: var(--primary-bg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--accent-lime);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-bg);
}

/* Footer */
.footer {
    background: rgba(1, 77, 78, 0.95);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--accent-lime);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--accent-coral);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--block-bg);
    color: var(--primary-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
    max-width: 500px;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-popup .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    opacity: 1;
    visibility: visible;
}

.cookie-popup .btn-secondary {
    background: var(--primary-bg) !important;
    color: var(--accent-lime) !important;
    border: 2px solid var(--accent-lime) !important;
    opacity: 1;
    visibility: visible;
}

.cookie-popup .btn-secondary:hover {
    background: var(--accent-lime) !important;
    color: var(--primary-bg) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed slideInTimeline animation - now pure CSS */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* All elements should be clickable by default */

/* Ensure buttons and links are always clickable */
.btn, a {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Improve button visibility on white backgrounds */
.card .btn-secondary {
    background: var(--primary-bg) !important;
    color: var(--accent-lime) !important;
    border: 2px solid var(--accent-lime) !important;
    box-shadow: var(--shadow-soft);
    opacity: 1;
    visibility: visible;
}

.card .btn-secondary:hover {
    background: var(--accent-lime) !important;
    color: var(--primary-bg) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-soft);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu-checkbox:checked ~ .nav-menu {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Overlay when menu is open */
    .mobile-menu-checkbox:checked ~ .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -70%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        background-attachment: scroll;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-number {
        left: 20px;
        transform: translateY(-50%);
    }

    .form-container {
        padding: 2rem;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-popup-buttons {
        flex-direction: column;
    }
    
    .cookie-popup .btn-secondary {
        background: var(--primary-bg) !important;
        color: var(--accent-lime) !important;
        border: 2px solid var(--accent-lime) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-popup {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-bg: #000000;
        --text-light: #ffffff;
        --accent-lime: #ffff00;
        --accent-coral: #ff0000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-light: #f0f0f0;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-lime);
    color: var(--primary-bg);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--accent-lime);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn,
.loading a {
    pointer-events: auto !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-lime);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
