/* SEO optimizuotas CSS */
:root {
    --primary: #5d8aa8;
    --secondary: #34495e;
    --accent: #c3786f;
    --light: #f5f7f8;
    --dark: #2c3e50;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Accessibility improvements */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    padding-right: 10px;
}

.logo img {
    margin-right: 10px;
    font-size: 28px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: white;
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../img/pukelis.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.about {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary);
}

.section-title h2 {
    font-size: 36px;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.services {
    padding: 80px 0;
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Desktop layout for the services grid */
@media screen and (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        grid-gap: 30px;
    }
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background-color: var(--primary);
    color: white;
    font-size: 36px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-content p {
    color: #666;
    line-height: 1.6;
}

.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(99, 168, 214, 0.9), rgba(40, 117, 168, 0.781)), url('../img/Neįgaliųjų pavėžėjimas ir transporto paslaugos Klaipėdoje2.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: white;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    padding-left: 30px;
}

.faq-item h3:before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--accent);
}

.faq-item p {
    color: #666;
    line-height: 1.8;
    padding-left: 30px;
    position: relative;
}

.faq-item p:before {
    content: "A";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary);
}

.contact {
    padding: 80px 0;
    background-color: var(--light);
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

/* Fixed version with responsive adjustments */
.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px; /* Prevents icon from shrinking */
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
}

/* Add responsive adjustments for smaller screens */
@media screen and (max-width: 576px) {
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .contact-icon i {
        font-size: 0.9em; /* Slightly reduce icon size */
    }
    
    .contact-text h4 {
        font-size: 0.95em;
    }
    
    .contact-text p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 400px) {
    .contact-item {
        align-items: center; /* Better vertical alignment on very small screens */
    }
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-text a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 138, 168, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

footer {
    background-color: var(--secondary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--secondary);
        padding: 80px 30px 30px;
        transition: all 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .about-image, .about-text, .contact-info, .contact-form {
        padding: 15px 0;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .contact-flex {
        gap: 20px;
    }
    
    .footer-section {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .faq-item h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .container {
        width: 95%;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .nav-links {
        width: 80%;
    }

    .faq-item h3 {
        font-size: 16px;
        padding-left: 25px;
    }

    .faq-item p {
        padding-left: 25px;
    }
}

/* Top header style - kontaktinė informacija */
.top-header {
    background-color: var(--secondary);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-info {
    display: flex;
    flex-wrap: wrap;
}

.top-contact-info a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
    white-space: nowrap;
}

.top-contact-info a:hover {
    color: var(--accent);
}

.top-contact-info a i {
    margin-right: 5px;
}

.top-social a {
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Mobile devices (smaller than 576px) */
@media (max-width: 576px) {
    .top-header {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .top-contact-info {
        margin-bottom: 5px;
        justify-content: center;
    }
    
    .top-contact-info a {
        margin: 3px 10px;
    }
}

/* Very small devices (smaller than 400px) */
@media (max-width: 400px) {
    .top-header {
        font-size: 11px;
    }
    
    .top-contact-info a {
        margin: 3px 3px;
    }
    
    .top-social a {
        font-size: 14px;
    }
}