:root {
    /* Colors */
    --primary-blue: #1b365d; /* Dark blue from logo */
    --primary-blue-hover: #11233e;
    --primary-red: #c1272d; /* Red from logo */
    --primary-red-hover: #9a1f24;
    --light-red-bg: #fdf2f2;
    --text-main: #1c1f2e;
    --text-muted: #5a5f72;
    --text-light: #9096a8;
    --bg-main: #f5f2ed;
    --bg-sidebar: #edeae4;
    --bg-light-grey: #e8e4dd;
    --border-color: #d8d3ca;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    
    /* Layout */
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-speed) ease;
}

.logo-container {
    padding: 30px;
    border-bottom: 1px solid transparent; /* Keeps spacing consistent if border is added later */
}

.text-logo {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-style: italic;
}

.logo-red {
    color: var(--primary-red);
}

.logo-blue {
    color: var(--primary-blue);
}

.main-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 15px;
    padding: 0 30px;
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 5px;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    transition: all var(--transition-speed) ease;
}

.main-nav a i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color var(--transition-speed) ease;
}

.main-nav a:hover {
    background-color: var(--bg-light-grey);
    color: var(--primary-red);
}

.main-nav a:hover i {
    color: var(--primary-red);
}

.main-nav a.active {
    background-color: var(--light-red-bg);
    color: var(--primary-red);
    font-weight: 600;
}

.main-nav a.active i {
    color: var(--primary-red);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background-color: var(--primary-red);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.help-box {
    margin: 30px;
    padding: 20px;
    background-color: var(--bg-light-grey);
    border-radius: 12px;
    text-align: left;
}

.help-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.help-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 60px; /* Sulygiuota su content ir footer (60px) */
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.header-logo-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.consultation-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.consultation-info .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.consultation-info .phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.consultation-info .phone:hover {
    color: var(--primary-red);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px rgba(27, 54, 93, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(27, 54, 93, 0.3);
}

.btn-danger {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 6px rgba(193, 39, 45, 0.2);
}

.btn-danger:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(193, 39, 45, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-light-grey);
}

/* Mygtukų paspaudimo efektas */
.btn:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Fade-in-up animacija */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    flex: 1;
    padding: 80px 60px;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtilus mėlynas švytėjimas fone */
.hero-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,64,175,0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

/* Animacijos hero elementams */
.badge, .main-headline, .sub-headline, .hero-buttons {
    position: relative;
    z-index: 1;
}

.badge {
    animation: fadeInUp 0.5s ease both;
}

.main-headline {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.sub-headline {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.badge {
    display: inline-block;
    background-color: var(--light-red-bg);
    color: var(--primary-red);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.main-headline {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary-blue);
    font-weight: 800;
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.main-headline .highlight {
    color: var(--primary-red);
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 60px;
    max-width: 1000px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    font-style: italic;
    font-weight: 800;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
    display: block;
    margin: 0 auto 40px;
    width: max-content;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.icon-wrapper {
    background: var(--light-red-bg);
    color: var(--primary-red);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    font-weight: 800;
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
}

.partner-logo {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.partner-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
    margin-top: auto;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%) opacity(100%);
}

.partner-card:hover {
    color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    aspect-ratio: 4 / 3;
    position: relative;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Skaidrus, šiek tiek patamsintas fonas be baltos spalvos */
    -webkit-backdrop-filter: blur(5px); /* Švelnus susiliejimas, kad fonas matytųsi ryškiau */
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15); /* Softer shadow for light background */
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white; /* Grąžinta balta spalva, kad matytųsi tamsiame fone */
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
        padding-top: 20px;
    }
}


/* Contact Section */
.contact-box {
    background: var(--primary-blue);
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(27, 54, 93, 0.2);
}

.contact-info-side {
    flex: 1;
    padding: 60px;
    color: white;
}

.contact-info-side h2 {
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-desc {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.detail-icon {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    margin-right: 15px;
}

.detail-text {
    font-weight: 600;
}

.contact-form-side {
    flex: 1;
    padding: 60px;
    background: rgba(255,255,255,0.03);
    border-left: 1px solid rgba(255,255,255,0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    color: white;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--primary-red);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 30px 60px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.footer-social-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

/* Invisible placeholder matching the header button to perfectly align the FB icon vertically with KONSULTACIJA */
@media (min-width: 769px) {
    .footer-social-wrapper::after {
        content: "Gauti pasiūlymą";
        visibility: hidden;
        padding: 12px 24px;
        font-weight: 600;
        font-size: 0.95rem;
        margin-left: 15px; /* Papildomas margin, kad bendras tarpas būtų 30px kaip ir headeryje */
        pointer-events: none;
    }
}

.social-text {
    margin-bottom: 0;
    text-align: right;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.4;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    color: #1877F2; /* Facebook mėlyna */
    font-size: 2.8rem; /* Gerokai padidinta */
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-5px) scale(1.1);
}

/* --- Mobile Elements --- */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.close-menu-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Responsive Design --- */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    .main-headline {
        font-size: 3rem;
    }
    
    .hero-section, .content-section {
        padding: 60px 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        flex-direction: column;
    }
    
    .contact-form-side {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .close-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-header {
        justify-content: space-between;
        padding: 15px 20px 15px 75px; /* Sulygiuota su mobilia footer (20px) */
    }

    .header-logo-mobile {
        display: block;
    }

    .header-logo-mobile .text-logo {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 15px;
    }

    .consultation-info {
        display: none; /* Hide phone text on small mobile, keep button */
    }

    .hero-section, .content-section {
        padding: 40px 20px;
        text-align: center;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-side, .contact-form-side {
        padding: 30px;
        text-align: left;
    }

    .section-title {
        margin: 0 auto 40px;
    }

    .badge {
        align-self: center;
    }

    .main-headline {
        font-size: 2.5rem;
    }

    .sub-headline {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 30px;
    }

    .footer-social-wrapper {
        flex-direction: column;
        justify-content: center;
    }

    .social-text {
        text-align: center;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .top-header {
        flex-direction: column;
        align-items: stretch;
        padding-left: 15px;
        padding-top: 70px; /* Space for fixed hamburger */
    }
    
    .header-logo-mobile {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .header-actions {
        justify-content: center;
    }

    .main-headline {
        font-size: 2rem;
    }
}
