/* 
 * Design System - M&U Montage und Umbau NRW GmbH & Co. KG
 * Premium, trustworthy, and modern look.
 */

:root {
    /* Color Tokens (HSL) */
    --primary: 221.2 83.2% 53.3%;        /* Cobalt Blue: #2563eb */
    --primary-hover: 222.6 75.2% 44.1%;  /* Darker Blue: #1d4ed8 */
    --primary-light: 217.2 91.2% 59.8%;  /* Active Blue: #3b82f6 */
    --secondary: 142.1 70.6% 45.3%;      /* Forest Green (Gartenbau): #10b981 */
    --secondary-hover: 142.1 76.2% 36.3%;/* Darker Green: #059669 */
    
    --bg-dark: 222.2 84% 4.9%;           /* Deep Navy background: #030712 */
    --bg-light: 210 40% 98%;             /* Very Light Slate: #f8fafc */
    
    --slate-50: 210 40% 96.1%;
    --slate-100: 210 40% 96.1%;
    --slate-200: 214.3 31.8% 91.4%;
    --slate-300: 212.7 26.8% 83.9%;
    --slate-700: 215.4 16.3% 46.9%;
    --slate-800: 217.2 32.6% 17.5%;      /* Dark Navy Card */
    --slate-900: 222.2 47.4% 11.2%;      /* Header/Footer Slate */
    
    --text-dark: 222.2 47.4% 11.2%;
    --text-muted: 215.4 16.3% 46.9%;
    --text-light: 210 40% 98%;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-dark: rgba(15, 23, 42, 0.06);
    
    --shadow-sm: 0 1px 2px 0 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.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Base Resets & Layouts --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: hsl(var(--bg-light));
    color: hsl(var(--text-dark));
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: hsl(var(--text-dark));
    letter-spacing: -0.025em;
}

/* Custom Selection */
::selection {
    background-color: rgba(37, 99, 235, 0.15);
    color: hsl(var(--primary));
}

/* --- Navigation Header --- */
.top-info-bar {
    background-color: hsl(var(--slate-900));
    color: hsl(var(--text-light));
    font-size: 0.85rem;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    z-index: 1001;
    position: relative;
}

.top-info-left {
    display: flex;
    gap: 1.5rem;
}

.top-info-link {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.top-info-link:hover {
    color: white;
}

.top-info-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
    padding: 0.1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-box {
    transform: rotate(5deg) scale(1.05);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    color: hsl(var(--text-dark));
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo-text span {
    color: hsl(var(--primary));
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-item-link {
    text-decoration: none;
    color: hsl(var(--text-dark));
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item-link:hover {
    color: hsl(var(--primary));
    background: rgba(37, 99, 235, 0.04);
}

.nav-item-link.active {
    color: hsl(var(--primary));
}

.nav-item-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0.85rem;
    right: 0.85rem;
    height: 3px;
    background: hsl(var(--primary));
    border-radius: 99px;
}

.btn-cta {
    background: hsl(var(--primary));
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-cta:hover {
    background: hsl(var(--primary-hover));
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-cta:active {
    transform: translateY(0);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    border: 1px solid var(--border-dark);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.6rem;
    width: 230px;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
    text-decoration: none;
    color: hsl(var(--text-dark));
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: hsl(var(--primary));
}

.dropdown-item::after {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    font-weight: bold;
}

.dropdown-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.hero {
    position: relative;
    background-color: #0f172a;
    color: white;
    padding: 10rem 2rem 8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(9, 13, 22, 0.78) 100%);
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: hsl(var(--primary-light));
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 850;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa 0%, hsl(var(--primary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-p {
    font-size: 1.28rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1.5px);
}

/* --- Section Formatting --- */
.section-padding {
    padding: 7rem 2rem;
}

.section-title-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 5rem;
}

.section-badge {
    font-size: 0.85rem;
    color: hsl(var(--primary));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.85rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: hsl(var(--text-dark));
}

.section-desc {
    color: hsl(var(--text-muted));
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Services Grid & Cards --- */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.015);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.06);
}

.service-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.service-card-desc {
    font-size: 0.92rem;
    color: hsl(var(--text-muted));
    line-height: 1.55;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.service-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: hsl(var(--primary));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.service-link svg {
    transition: transform 0.2s ease;
}

.service-card:hover .service-link {
    color: hsl(var(--primary-hover));
    gap: 0.45rem;
}

.service-card:hover .service-link svg {
    transform: translateX(2px);
}

/* --- About / Intro Section --- */
.intro-section {
    background: white;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-img-stack {
    position: relative;
    border-radius: 24px;
}

.intro-img-main {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-dark);
}

.intro-badge-overlay {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: hsl(var(--slate-900));
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.intro-badge-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.intro-badge-text {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.intro-feature-item {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: hsl(var(--text-dark));
}

.intro-feature-item svg {
    width: 20px;
    height: 20px;
    fill: hsl(var(--primary));
    flex-shrink: 0;
}

/* --- Call To Action (Banner) --- */
.cta-banner {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-hover)) 100%);
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner-content {
    max-width: 720px;
    margin: 0 auto;
}

.cta-banner h2 {
    color: white;
    font-size: 2.8rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-banner .hero-buttons {
    margin-top: 1rem;
}

/* --- Service Detail Pages --- */
.service-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 22, 0.8) 100%),
                url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
}

.service-hero h1 {
    color: white;
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    font-weight: 850;
}

.service-hero p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 5rem;
    align-items: start;
}

.service-body-text h2 {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.service-body-text p {
    color: hsl(var(--text-muted));
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    background: white;
    border: 1px solid var(--border-dark);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.feature-item:hover {
    transform: translateX(4px);
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.02);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.06);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.feature-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.feature-details p {
    font-size: 0.92rem;
    color: hsl(var(--text-muted));
    line-height: 1.5;
    margin: 0;
}

/* Sidebar cards */
.sidebar-card {
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.sidebar-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-bullet-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: hsl(var(--text-dark));
}

.sidebar-bullet-item svg {
    width: 18px;
    height: 18px;
    fill: hsl(var(--secondary));
}

/* --- Contact Page Layout --- */
.contact-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 5rem;
}

.contact-card {
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.02);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 700;
    color: hsl(var(--text-dark));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"], input[type="email"], select, textarea {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: hsl(var(--text-dark));
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
}

input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    background: hsl(var(--primary));
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-submit:hover {
    background: hsl(var(--primary-hover));
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: linear-gradient(135deg, hsl(var(--slate-900)) 0%, #030712 100%);
    color: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-light);
}

.info-card h3 {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.98rem;
    color: #94a3b8;
}

.info-details strong {
    color: white;
    font-size: 1.05rem;
}

.info-details a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-details a:hover {
    color: white;
}

/* --- Alerts --- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* --- Legal / Impressum / DSGVO --- */
.legal-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.015);
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.legal-container h1 {
    font-size: 2.8rem;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid hsl(var(--primary));
    padding-bottom: 0.85rem;
    display: inline-block;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: hsl(var(--text-dark));
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 0.5rem;
}

.legal-container h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--text-dark));
}

.legal-container p {
    color: hsl(var(--text-muted));
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.legal-container ul {
    margin-left: 2.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-muted));
    font-size: 1rem;
}

.legal-container li {
    margin-bottom: 0.65rem;
}

/* --- Responsive Layout adjustments --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .intro-container { gap: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-container { padding: 1rem; }
    .hero { padding: 8rem 1.5rem 6rem; }
    .hero h1 { font-size: 2.6rem; }
    .hero-p { font-size: 1.1rem; }
    .section-padding { padding: 5rem 1.5rem; }
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .intro-container { grid-template-columns: 1fr; gap: 3rem; }
    .intro-img-main { height: 320px; }
    .cta-banner h2 { font-size: 2.2rem; }
    .content-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .contact-card { padding: 2rem 1.5rem; }
    .legal-container { padding: 3rem 1.5rem; }
    .legal-container h1 { font-size: 2.2rem; }

    /* Mobile Hamburger & Navigation Menu */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 6rem 2rem 2rem;
        gap: 1.25rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1005;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item-link {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        display: block;
        border-radius: 10px;
    }
    
    .nav-item-link.active::after {
        display: none; /* remove desktop bottom bar */
    }
    
    .nav-item-link.active {
        background: rgba(37, 99, 235, 0.06);
    }
    
    /* Mobile dropdown styling */
    .dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(15, 23, 42, 0.02);
        width: 100%;
        padding: 0.5rem;
        margin-top: 0.5rem;
        border-radius: 10px;
    }
    
    .dropdown.active .dropdown-menu {
        display: flex;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.85rem;
        font-size: 0.95rem;
    }
    
    .btn-cta {
        width: 100%;
        margin-top: 1rem;
        padding: 0.9rem;
    }

    /* Fix form layouts on mobile */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .form-group {
        margin-bottom: 1.25rem;
    }

    /* Fix intro features layout on mobile */
    .intro-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    /* Fix top info line wrapping on mobile */
    .top-info-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        text-align: center;
    }
    .top-info-left {
        justify-content: center;
        gap: 1rem;
    }
}

/* Extra small devices spacing updates */
@media (max-width: 480px) {
    .top-info-left span:last-child {
        display: none; /* Hide location text to keep info bar clean */
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .hero-buttons .btn-cta, 
    .hero-buttons .btn-secondary {
        width: 100%;
    }
}

/* --- Mobile Hamburger Button --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: hsl(var(--text-dark));
    border-radius: 9px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Hamburger active transformation to 'X' */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: hsl(var(--primary));
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: hsl(var(--primary));
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 25px rgba(18, 140, 126, 0.4);
}

@keyframes whatsapp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.whatsapp-bounce {
    animation: whatsapp-bounce 3s ease-in-out infinite;
}

/* --- Footer --- */
footer {
    background-color: hsl(var(--slate-900));
    color: #94a3b8;
    padding: 5rem 2rem 2.5rem;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
}

.footer-logo .logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-heading {
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: hsl(var(--primary-light));
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-contact-item:last-of-type {
    margin-bottom: 0;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: hsl(var(--primary-light));
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(3, 7, 18, 0.35);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    color: #e2e8f0;
}

.cookie-banner.show {
    bottom: 20px;
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 30px;
        right: auto;
    }
}

.cookie-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-title svg {
    width: 20px;
    height: 20px;
    fill: hsl(var(--primary-light));
}

.cookie-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.cookie-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.cookie-btn-accept:hover {
    background: hsl(var(--primary-hover));
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid var(--border-light);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* --- Honeypot Spambot Trap --- */
.honey-trap {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Color Utilities --- */
.text-primary { color: hsl(var(--primary)) !important; }
.text-secondary { color: hsl(var(--secondary)) !important; }
.text-muted { color: hsl(var(--text-muted)) !important; }
.text-dark { color: hsl(var(--text-dark)) !important; }
.text-light { color: hsl(var(--text-light)) !important; }
.bg-light { background-color: hsl(var(--bg-light)) !important; }
.bg-dark { background-color: hsl(var(--bg-dark)) !important; }

/* --- 404 Error Page --- */
.error-container {
    max-width: 600px;
    margin: 6rem auto;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.error-container h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-dark));
}

.error-container p {
    color: hsl(var(--text-muted));
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}
