/* 
   Project: Espdk Maler & Murer
   Theme: Nordic Premium (Clean, Trustworthy, Human)
   Color Palette:
   - Primary (Deep Navy): #0F172A
   - Secondary (Slate): #475569
   - Background (Warm White): #FAFAFA
   - Surface (White): #FFFFFF
   - Accent (Golden Earth): #D4A373
   - Success (Soft Green): #10B981
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-primary: #0F172A;
    --color-secondary: #334155;
    --color-accent: #D4A373;
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Spacing */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 4rem;
    /* 64px */
    --space-xxl: 8rem;
    /* 128px */

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.5rem;
    --text-xl: 2.25rem;
    --text-xxl: 3rem;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-primary);
}

.display-text {
    font-size: var(--text-xxl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: var(--text-xl);
    letter-spacing: -0.01em;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.flex {
    display: flex;
    gap: var(--space-md);
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.section-padding {
    padding: var(--space-xl) 0;
}

/* Component: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1a2942;
    /* Slightly Lighter Navy */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--color-secondary);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    filter: brightness(110%);
}

/* STICKY CONTACT SYSTEM */
.sticky-actions {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    align-items: flex-end;
}

.sticky-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
    font-size: 1.25rem;
}

.sticky-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-phone {
    background-color: var(--color-primary);
}

/* Tooltips */
.tooltip {
    position: absolute;
    right: 120%;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(10px);
    font-weight: 500;
}

.sticky-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Tweak: Ensure they don't block content */
@media (max-width: 768px) {
    .sticky-actions {
        bottom: 20px;
        right: 20px;
    }
}

/* Component: Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
    transform: translateY(-4px);
}

/* Component: Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    display: none;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(80px + var(--space-xl));
    padding-bottom: var(--space-xl);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.1;
    /* Subtle texture or image */
}

/* Conversational UI Elements */
.chat-bubble {
    background: var(--color-surface);
    color: var(--color-text-main);
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    border-bottom-left-radius: 4px;
    /* Callout tail feel */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 85%;
    width: fit-content;
    margin-bottom: 1rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
    line-height: 1.5;
    position: relative;
    font-size: 1.05rem;
}

.chat-bubble.user {
    background: var(--color-primary);
    color: white;
    border-radius: 1.25rem;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 1.25rem;
    margin-left: auto;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Grid */
.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 163, 115, 0.1);
    /* Soft accent bg */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --text-xxl: 2rem;
        /* Better fit for mobile */
        --space-xl: 3rem;
    }

    .hero {
        padding-top: calc(70px + var(--space-md));
        min-height: auto;
        padding-bottom: var(--space-lg);
    }

    .hero-text {
        text-align: center;
    }

    .hero-text .flex {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed */
    }

    #chat-container {
        max-height: 400px;
        /* Smaller on mobile */
    }
}

/* Form & Input Styles */
.input-field {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-main);
    background: #F8FAFC;
    /* Slight distinct bg */
    transition: var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* Chat Container for Contact Section */
#chat-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    max-height: 550px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    /* Premium deep shadow */
}

/* Custom Scrollbar */
#chat-container::-webkit-scrollbar {
    width: 6px;
}

#chat-container::-webkit-scrollbar-track {
    background: transparent;
}

#chat-container::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* COMPONENT: FAQ Accordion */
.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Hide default triangle */
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 300;
}

details[open] .faq-summary::after {
    content: '-';
}

.faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* COMPONENT: Review Bubbles */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.review-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    /* Message style */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Center Nav (New Layout) */
.center-nav {
    display: flex;
    gap: var(--space-lg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.center-nav a {
    font-weight: 600;
    color: var(--color-secondary);
    transition: var(--transition-fast);
    font-size: var(--text-sm);
}

.center-nav a:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* Nav Actions (Right Side) */
.nav-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

/* --- Mobile Navigation System --- */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.mobile-menu-overlay .lang-switch {
    display: flex;
    gap: 1.5rem;
}

.mobile-menu-overlay .lang-switch a {
    font-size: 2rem;
}

/* Mobile Breakpoint Updates */
@media (max-width: 768px) {

    /* Navbar Layout for Mobile - COMPACT ROW */
    .nav-content {
        justify-content: space-between;
        gap: 0.25rem;
        /* Tight gap */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* 1. Show Services & Projects (Expertise & Work) */
    .center-nav {
        display: flex !important;
        position: static;
        transform: none;
        gap: 0.5rem;
        /* Tight gap between links */
    }

    /* Compact Links */
    .center-nav a {
        font-size: 0.8rem;
        /* Smaller text */
        white-space: nowrap;
        font-weight: 600;
        letter-spacing: -0.2px;
    }

    /* 2. Nav Actions Container */
    .nav-actions {
        display: flex !important;
        background: none;
        gap: 0.5rem;
        align-items: center;
    }

    /* Style the Quote Button for Mobile */
    .nav-actions .btn-primary {
        display: inline-flex;
        /* Show it! */
        padding: 0.35rem 0.75rem;
        /* Very compact padding */
        font-size: 0.75rem;
        /* Small text */
        height: auto;
        min-height: 32px;
        white-space: nowrap;
    }

    /* 3. Hide Hamburger */
    .mobile-menu-btn {
        display: none;
    }

    /* Adjust Logo Size */
    .logo {
        gap: 0;
    }

    /* .logo span removed to keep it hidden */

    .logo img {
        height: 32px;
        /* Restore size suitable for icon-only */
    }

    /* Adjust Lang Dropdown for Mobile */
    .current-lang-btn {
        font-size: 1.25rem;
        /* Smaller flag */
        padding: 2px;
    }

    /* Ensure sticky actions don't overlap with potential bottom elements */
    .sticky-actions {
        bottom: 20px;
        right: 20px;
    }
}

/* --- Language Dropdown (Desktop & Mobile) --- */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1100;
}

.current-lang-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.75rem;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.current-lang-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.current-lang-btn::after {
    content: '\f078';
    /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.5;
    color: var(--color-text-main);
}

.lang-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    padding: 0.5rem;
    min-width: 140px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show State */
.lang-dropdown.active .lang-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 1rem !important;
    /* Reset font size for text */
}

.lang-dropdown-menu a:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

.flag-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-label {
    font-size: 0.9rem;
}

/* Adjust for Mobile Menu Overlay */
.mobile-menu-overlay .lang-dropdown-menu {
    position: static;
    /* Stack naturally in mobile menu */
    box-shadow: none;
    border: 1px solid var(--color-border);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    background: #f8fafc;
}