/* 
 * Main Stylesheet for domain.com
 * Designed for a German financial audit company
 * Features responsive design with CSS Flexbox/Grid and animations
 */

:root {
    /* Color Palette */
    --bg-color: #F2F7F4;        /* soft mint-gray */
    --primary: #004E64;         /* deep teal */
    --secondary: #9A031E;       /* crimson red */
    --highlight: #FFB400;       /* sunset gold */
    --text: #1B1B1E;            /* charcoal black */
    --white: #FFFFFF;
    --light-gray: #EEEEEE;
    --medium-gray: #CCCCCC;
    --dark-gray: #555555;

    /* Typography */
    --main-font: 'Open Sans', Helvetica, Arial, sans-serif;
    --heading-font: 'Montserrat', Helvetica, Arial, sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--main-font);
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--highlight);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--highlight);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #7A0218;
    color: white;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    color: var(--primary);
}

.logo svg {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 80px;
    position: relative;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services-overview {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Detailed Services Section */
.detailed-services {
    background-color: var(--bg-color);
}

.service-detail {
    margin-bottom: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail-text {
    flex: 1;
    min-width: 300px;
}

.service-detail-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-detail:nth-child(odd) .service-detail-text {
    order: 1;
    padding-left: 2rem;
}

.service-detail:nth-child(even) .service-detail-text {
    order: 0;
    padding-right: 2rem;
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--white);
}

.advantages-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.advantage-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    padding-left: 2rem;
}

.advantage-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: bold;
}

.advantage-item:last-child {
    border-bottom: none;
}

/* Case Studies Section */
.case-studies {
    background-color: var(--bg-color);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.case-category {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--highlight);
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-company {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Order Form Section */
.order-form-section {
    background-color: var(--bg-color);
    padding: 5rem 0;
}

.form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.form-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-heading h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-heading p {
    color: var(--dark-gray);
}

.form-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--highlight);
    margin: 1.5rem auto 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.form-group label {
    position: absolute;
    top: -0.75rem;
    left: 0.5rem;
    font-size: 0.7rem;
    background-color: var(--white);
    padding: 0 0.5rem;
    color: var(--primary);
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-family: var(--main-font);
    transition: all 0.3s ease;
    background-color: #FCFCFC;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 78, 100, 0.15);
    background-color: white;
}

.form-full-width {
    grid-column: span 2;
}

.checkbox-group {
    grid-column: span 2;
    margin: 1rem 0 2rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-submit {
    grid-column: span 2;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.form-submit .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 78, 100, 0.3);
    transition: all 0.3s ease;
}

.form-submit .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 78, 100, 0.4);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer a {
    color: var(--light-gray);
}

.footer a:hover {
    color: var(--highlight);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--white);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--highlight);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 0.8rem;
    color: var(--highlight);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-text {
    margin-right: 1rem;
}

.cookie-btns {
    display: flex;
}

.cookie-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accept-cookies {
    background-color: var(--highlight);
    color: var(--text);
}

.reject-cookies {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

/* Policy Pages */
.policy-page {
    padding: 4rem 0;
    margin-top: 80px;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-title {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-content h2 {
    margin-top: 2rem;
}

.policy-content ul, .policy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Thank You Page */
.thank-you {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.thank-you .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.thank-you-content {
    max-width: 600px;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
    text-align: center;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--highlight);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in {
    animation: slideIn 1s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .header-container {
        height: 70px;
    }
    
    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--white);
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav.open {
        height: auto;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-item {
        margin-left: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .service-detail:nth-child(odd) .service-detail-text,
    .service-detail:nth-child(even) .service-detail-text {
        order: 1;
        padding: 1rem 0 0 0;
    }
    
    .service-detail-image {
        order: 0;
    }
    
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .form-heading {
        grid-column: span 1;
    }
    
    .checkbox-group {
        grid-column: span 1;
    }
    
    .form-submit {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .cookie-consent {
        flex-direction: column;
    }
    
    .cookie-text {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}
