/* Main Stylesheet for Nufisys Theme */

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

body {
    font-family: 'Inter', sans-serif;
    background: #fafcff;
    color: #1a2c3e;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }

.section-subhead {
    font-size: 1.2rem;
    color: #4a627a;
    max-width: 680px;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0f2b3d;
    color: white;
    box-shadow: 0 8px 18px rgba(15, 43, 61, 0.15);
}

.btn-primary:hover {
    background: #1e415a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #0f2b3d;
    color: #0f2b3d;
}

.btn-outline:hover {
    background: #0f2b3d;
    color: white;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid #e9edf2;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f2b3d, #2c5a74);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #2c3f55;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0f2b3d;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hero */
.hero {
    padding: 80px 0 64px 0;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    background: #eef3fa;
    color: #0f2b3d;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #3a546d;
    margin: 1.5rem 0 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* Services */
.services, .expanded-services, .whyus {
    padding: 80px 0;
}

.services { background: #ffffff; }
.expanded-services { background: #f8fafd; }
.whyus { background: white; }

.services-grid, .expanded-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card, .expanded-card {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    transition: all 0.3s;
    border: 1px solid #eef2f8;
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.05);
}

.service-card:hover, .expanded-card:hover {
    transform: translateY(-6px);
    border-color: #cbdde9;
    box-shadow: 0 20px 28px -12px rgba(15, 43, 61, 0.12);
}

.service-icon, .expanded-icon {
    background: #eef3fc;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-card h3, .expanded-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card p, .expanded-card p {
    color: #4a5e72;
    margin-bottom: 1rem;
}

.service-feature-list {
    list-style: none;
    margin-top: 1rem;
}

.service-feature-list li {
    font-size: 0.9rem;
    color: #2c5a74;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-feature-list li::before {
    content: "▹";
    color: #0f2b3d;
    font-weight: bold;
}

.expanded-details span {
    display: inline-block;
    background: #eef3fc;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #0f2b3d;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Features */
.feature {
    text-align: center;
    padding: 1.2rem;
}

.emoji-big {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

/* CTA */
.cta {
    background: #0f2b3d;
    color: white;
    border-radius: 2rem;
    margin: 40px auto 80px;
    padding: 3rem 2rem;
    text-align: center;
}

.cta h2 {
    color: white;
}

.contact-form {
    max-width: 480px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: 60px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    border-radius: 28px;
    resize: vertical;
}

.contact-form button {
    background: white;
    color: #0f2b3d;
    width: fit-content;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #111f2b;
    color: #b9cfe4;
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a,
.footer-menu a {
    color: #b9cfe4;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.footer-col a:hover,
.footer-menu a:hover {
    color: white;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2c4458;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 760px) {
    .container {
        padding: 0 24px;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-menu {
        gap: 1rem;
    }
    .hero-grid {
        flex-direction: column;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .form-group {
        flex-direction: column;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* Page Content */
.page-content {
    padding: 80px 0;
    min-height: 60vh;
}

/* Polylang Language Switcher Styles */
.polylang-switcher .language-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.polylang-switcher .language-dropdown li {
    margin: 0;
    padding: 0;
}

.polylang-switcher .language-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #2c3f55;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.polylang-switcher .language-dropdown li a:hover {
    background: #f8fafc;
}

.polylang-switcher .language-dropdown li a img {
    margin-right: 8px;
    vertical-align: middle;
}

.polylang-switcher .language-dropdown li.current-lang a {
    background: #eef3fc;
    color: #0f2b3d;
    font-weight: 600;
}

/* Language Switcher Base Styles */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.language-dropdown-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3f55;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.language-dropdown-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.language-dropdown-btn img {
    max-width: 18px;
    height: auto;
    margin-right: 6px;
    vertical-align: middle;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    border: 1px solid #eef2f8;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .language-dropdown {
        left: 0;
        right: auto;
    }
}

/* Admin Bar Language Switcher */
#wp-admin-bar-nufisys-language .ab-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

#wp-admin-bar-nufisys-language .ab-item img {
    margin-right: 4px;
}