/* Premium Responsive CSS Stylesheet for ArVal Malergeschäft */

:root {
    --primary-orange: #FF5F00;
    --primary-hover: #E05300;
    --dark-charcoal: #4A4A4A;
    --dark-bg: #1A1A1A;
    --light-bg: #F9FAFB;
    --text-color: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.site-logo {
    height: 85px; /* Noticeably bigger and highly visible logo mark */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.btn-nav {
    background-color: var(--primary-orange);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--primary-hover);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(26,26,26,0.8) 0%, rgba(0,0,0,0.5) 100%),
                url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=1920&q=80') center center/cover no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 60px 0;
}

.hero-content { max-width: 750px; }

.hero-tagline {
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #E2E8F0;
    margin-bottom: 35px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(255, 95, 0, 0.3);
}

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

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* --- SERVICES & CARDS --- */
.services { background-color: var(--light-bg); padding: 90px 0; }
.text-center { text-align: center; }

.custom-underline {
    width: 50px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid #EDF2F7;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(255, 95, 0, 0.08);
    border-color: var(--primary-orange);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

/* --- ABOUT SECTION --- */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.sub-heading { color: var(--primary-orange); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.about-text h2 { font-size: 2.4rem; margin-top: 5px; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; }

.stats-counter { display: flex; gap: 50px; margin-top: 30px; }
.counter-item { display: flex; flex-direction: column; }
.counter-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-orange); }
.counter-suffix { font-size: 2rem; font-weight: 800; color: var(--primary-orange); }
.counter-label { font-size: 0.9rem; color: var(--dark-charcoal); font-weight: 600; }

.canvas-card {
    background-color: var(--dark-charcoal);
    color: var(--white);
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    border-bottom: 6px solid var(--primary-orange);
}

.canvas-icon { font-size: 3.5rem; color: var(--primary-orange); margin-bottom: 20px; }

/* --- CONTACT SECTION --- */
.contact { background-color: var(--dark-bg); color: var(--white); padding: 90px 0; }
.contact h2 { color: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; margin-top: 50px; }
.contact-info h3 { color: var(--primary-orange); margin-bottom: 15px; }
.contact-links p { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; color: #CBD5E0; }
.contact-links i { color: var(--primary-orange); }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px; background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: var(--white);
    font-family: inherit; font-size: 1rem; transition: border 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-orange); }

/* --- FOOTER --- */
footer { background-color: #111111; color: #718096; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: #718096; text-decoration: none; margin-left: 10px; }

/* --- HIGH PERFORMANCE MOBILE SMOOTHING & AUTO-LAYOUT ADJUSTMENTS --- */
@media (max-width: 991px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media(max-width: 768px) {
    header {
        padding: 10px 0;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .site-logo {
        height: 80px; /* Stands out clean and prominent even on handheld screens */
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 0;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .btn-nav {
        padding: 6px 16px;
    }
    .hero {
        text-align: center;
        min-height: auto;
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .btn {
        margin-right: 0 !important;
        width: 100%;
    }
    .services, .about, .contact {
        padding: 60px 0;
    }
    .about-text h2 {
        font-size: 2.0rem;
    }
    .stats-counter {
        justify-content: center;
        gap: 30px;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --- SCROLL ANIMATION STATES --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent mobile browsers from forcing phone numbers to turn blue */
.contact-links p, .contact-links a.tel-link {
    color: #CBD5E0 !important;
    text-decoration: none;
}
.contact-links a.tel-link:hover {
    color: var(--primary-orange) !important;
}
