/* ===== CSS Variables ===== */
:root {
    --color-primary: #FF8800;
    --color-dark: #333333;
    --color-grey: #F5F5F5;
    --color-white: #FFFFFF;
    --color-text: #333333;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lora', serif;
    
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header ===== */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo img {
    height: 50px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-dark);
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.language-switcher a {
    color: var(--color-dark);
    font-weight: 600;
}

.language-switcher a.active {
    color: var(--color-primary);
}

.language-switcher span {
    color: var(--color-dark);
    opacity: 0.3;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 138, 0, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-grey {
    background: var(--color-grey);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-grey) 0%, var(--color-white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(244, 138, 0, 0.2);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.service-card h3 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text);
    margin-bottom: 0;
}

/* ===== Process Grid ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h3 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--color-text);
    margin-bottom: 0;
}

/* ===== Content Section ===== */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

.content-image img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.content-text h2 {
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

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

.footer-column h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.footer-column p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-content,
    .content-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}


/* Dropdown Menu Styles */
.main-navigation ul li {
    position: relative;
}

.main-navigation .dropdown {
    position: relative;
    display: inline-block;
}

.main-navigation .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

.main-navigation .dropdown-content a {
    color: #333;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.main-navigation .dropdown-content a:hover {
    background-color: rgba(244, 138, 0, 0.1);
    color: #FF8800;
}

.main-navigation .dropdown:hover .dropdown-content {
    display: block;
}

.main-navigation .dropdown > a::after {
    content: " ▾";
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .main-navigation .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1rem;
    }
    
    .main-navigation .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .main-navigation .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Accordion Styles */
.accordion {
    margin-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
    padding-top: 1rem;
}

.accordion-item {
    margin-bottom: 0.5rem;
}

.accordion-header {
    background-color: #F5F5F5;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background-color: #EEEEEE;
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.accordion-icon {
    font-size: 1.2rem;
    color: #FF8800;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 1.5rem;
}

.accordion-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.accordion-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.accordion-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.accordion-content strong {
    color: #FF8800;
}

/* Animated CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #FF8800;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 136, 0, 0.2);
}

.cta-btn:hover {
    background: #E67700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.cta-btn img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-btn:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Header CTA Buttons */
.header-cta {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.header-cta .cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Footer CTA Buttons */
.footer-cta {
    text-align: center;
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-cta h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-cta .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cta-btn.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Process step icons */
.step-icon {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    display: block;
    object-fit: contain;
}



/* Standardized illustration sizes */
.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: contain;
}

.service-card img {
    width: 120px;
    height: 120px;
}

/* Detail illustrations (larger for visibility) */
.about-card img,
.case-study-card img {
    width: 150px;
    height: 150px;
    margin: 1rem auto;
    display: block;
    object-fit: contain;
}

/* Header CTA icons - use text symbols instead of images */
.header-cta .cta-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cta .cta-btn:hover {
    background: #E67700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 138, 0, 0.3);
}

.header-cta .cta-btn img {
    display: none;
}

.header-cta .cta-btn::before {
    font-size: 1.2rem;
}

.header-cta .cta-btn[href*="contact"]::before {
    content: "✉";
}

.header-cta .cta-btn[href*="wa.me"]::before {
    content: "💬";
}

.header-cta .cta-btn[href*="tidycal"]::before {
    content: "📅";
}

/* ===== Professional Design Optimizations ===== */

/* Harmonious graphic sizing - Golden Ratio inspired */
.hero-image img {
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

.service-icon {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--color-light);
    color: var(--color-primary);
    padding-left: 2rem;
}

/* Professional spacing and rhythm */
.section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
}

/* Refined header CTA spacing */
.header-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Enhanced visual hierarchy for illustrations */
.about-card img,
.case-study-card img {
    width: 140px !important;
    height: 140px !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Process steps with better balance */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step-icon {
    width: 90px !important;
    height: 90px !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}


/* Reduce about page hero image size */
.hero-section .hero-image img {
    max-width: 350px;
    height: auto;
}


/* Equal height service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-grid .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-grid .service-card .service-icon {
    flex-shrink: 0;
}

.services-grid .service-card h3 {
    flex-shrink: 0;
}

.services-grid .service-card p {
    flex-grow: 1;
}


/* Larger process step numbers */
.process-step .step-number {
    font-size: 4rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-bottom: 1rem !important;
}

/* Larger graphics in Rene Wanzlik theme boxes */
.section-grey .service-card .service-icon img {
    width: 120px !important;
    height: 120px !important;
}



/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent iOS zoom on input focus */
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Touch-friendly buttons */
    .btn, a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }
    
    /* Mobile navigation */
    nav ul {
        flex-direction: column;
    }
    
    .header-cta {
        display: none; /* Hide header CTAs on mobile */
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}



/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy; /* Native lazy loading */
}

/* Reduce repaints */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.fade-in, .service-card, .process-step {
    will-change: transform, opacity;
    transform: translateZ(0);
}



/* Mobile Header Optimization */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }
    
    header .container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Row 1: Logo + Hamburger */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Row 2: CTAs */
    .header-cta {
        display: flex !important;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    /* Hamburger Menu Icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        padding: 8px;
        background: none;
        border: none;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--color-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem;
        color: var(--color-text);
    }
    
    /* Dropdown in mobile menu */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f8f8;
        margin-left: 1rem;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown > a::after {
        content: " ▼";
        font-size: 0.8rem;
    }
    
    .dropdown.active > a::after {
        content: " ▲";
    }
    
    /* Language switcher in menu */
    .language-switcher {
        padding: 1rem;
        border-top: 2px solid #ddd;
        margin-top: 1rem;
    }
    
    /* Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* Desktop: Hide hamburger */
@media (min-width: 769px) {
    .hamburger,
    .menu-overlay {
        display: none;
    }
    
    .header-top {
        display: contents;
    }
}
