/* 
 * Style.css for domain.com
 * Modern, responsive design for German accounting services company
 */

/* Color Palette
 * Primary: Electric Indigo (#6C63FF)
 * Secondary: Vibrant Coral (#FF6F61)
 * Accent: Bright Lemon (#FFD166)
 * Background: Off-White Cream (#FAF8F5)
 * Text: Charcoal Gray (#2E2E2E)
 * Special Elements: Cool Mint (#9AE3D4)
 */

/* Global Styles */
:root {
    --color-primary: #6C63FF;
    --color-primary-light: #8A84FF;
    --color-primary-dark: #5A52E0;
    --color-secondary: #FF6F61;
    --color-accent: #FFD166;
    --color-background: #FAF8F5;
    --color-text: #2E2E2E;
    --color-text-light: #666666;
    --color-mint: #9AE3D4;
    --color-white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hide all scrollbars */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
    display: none;
}

/* IE and Edge */
body {
    -ms-overflow-style: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Adds padding to anchor scrolling */
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden; /* Ensure no container overflow */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-secondary);
    margin: 20px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: #e0635a;
}

/* Header & Navigation */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--color-primary), var(--color-mint));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--color-primary);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-btn .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Main Content */
main {
    margin-top: 80px; /* Header height */
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(108, 99, 255, 0.1), rgba(154, 227, 212, 0.1));
    padding: 120px 0 80px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--color-text);
    word-wrap: break-word;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-light);
}


.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}

/* Services Section */
.services {
    background-color: var(--color-background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.service-card-content {
    padding: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 20px;
}

/* Benefits Section */
.benefits {
    background-color: var(--color-white);
}

.benefits-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    flex: 1 1 300px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.benefit-icon {
    background-color: rgba(255, 111, 97, 0.1);
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

/* Statistics Section */
.statistics {
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.stat-item .stat-label {
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(108, 99, 255, 0.1);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: var(--color-text-light);
}


.contact-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Custom checkbox styling */
.custom-checkbox {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #e1e1e1;
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* FAQ Section */
.faq {
    background-color: var(--color-background);
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer.show {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section.links ul li a:hover {
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 400px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 9999;
    transition: transform 0.5s ease;
    opacity: 0;
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-link {
    display: inline-block;
    margin-left: 10px;
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 40px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-title {
    text-align: center;
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    color: var(--color-primary);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you h1 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav ul li {
        margin: 0 0 20px 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .policy-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
        padding: 0 5px;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Fix for potential horizontal scroll issues */
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Force tables to not be like tables anymore */
    table, thead, tbody, th, td, tr { 
        display: block; 
        width: 100%;
    }
    
    /* Make all media content responsive */
    iframe, embed, object {
        max-width: 100%;
    }
}

/* Form Error Alert */
.alert-danger {
    background-color: #ffe5e5;
    color: #d32f2f;
    border: 1px solid #ffbbbb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* Debug information */
.debug-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.debug-info h4 {
    margin-top: 0;
    color: #0d6efd;
}

.debug-info ul {
    margin: 0;
    padding-left: 20px;
}