/* Base & Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;          /* Light blue-gray – Swedish sky feel */
    color: #1a2a44;                     /* Dark blue-gray text */
    line-height: 1.6;
}

/* Navigation Bar – shrinks on scroll */
.navbar {
    background: #004b87;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 10px 0;                    /* becomes slimmer */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: #003a6d;                /* slightly darker when minimized */
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.nav-logo-text {
    color: #ffcc00;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    transition: font-size 0.4s ease;
}

.navbar.scrolled .nav-logo-text {
    font-size: 1.35rem;                 /* smaller logo text when scrolled */
}

/* Language Switcher - desktop */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-left: auto;
}

.lang-link {
    color: white;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.lang-link:hover {
    background: rgba(255, 204, 0, 0.18);
    color: #ffcc00;
}

.lang-current {
    background: rgba(255, 204, 0, 0.25);
    color: #ffcc00;
    font-weight: 600;
    pointer-events: none;
}

.lang-separator {
    color: rgba(255,255,255,0.5);
    font-weight: normal;
}

/* Mobile language switcher (inside mobile menu) */
.mobile-lang-switch {
    margin: 32px 0 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.mobile-lang-switch .lang-link {
    font-size: 1.15rem;
    padding: 8px 16px;
}

.mobile-lang-switch .lang-separator {
    margin: 0 12px;
    color: rgba(255,255,255,0.6);
}

@media (min-width: 769px) {
    .mobile-lang-switch {
        display: none;
    }
}

/* Desktop / wide screen nav links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: font-size 0.4s ease, color 0.3s;
}

.navbar.scrolled .nav-links li a {
    font-size: 1rem;                    /* smaller menu text when scrolled */
}

.nav-links li a:hover {
    color: #ffcc00;
}

.nav-links a.active {
    color: #ffcc00;
    font-weight: bold;
    border-bottom: 2px solid #ffcc00;
}

/* Hamburger button – hidden by default, only shown on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation to X when open */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu dropdown */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #004b87;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 16px 0;
}

.mobile-menu a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
}

/* ────────────────────────────────────────────────
   MOBILE STYLES
───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-left: 12px;
    }

    .nav-links {
        display: none;
    }

    .nav-logo-text {
        font-size: 1.35rem;
        max-width: 55%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lang-switch {
        font-size: 0.95rem;
        gap: 6px;
    }

    .lang-link {
        padding: 4px 8px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .navbar {
        padding: 16px 0;
    }

    .navbar.scrolled {
        padding: 8px 0;
    }

    .hero {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 30px 20px;
    }

    .full-service-grid {
        gap: 50px;
    }
}

/* Extra safety for very narrow phones (≤ 360px) */
@media (max-width: 360px) {
    .nav-logo-text {
        font-size: 1.25rem;
        max-width: 50%;
    }

    .lang-switch {
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: white;
    border-radius: 0 0 12px 12px;
    margin-bottom: 40px;
    box-shadow: 0 6px 16px rgba(0,75,135,0.12);
    border-top: 6px solid #ffcc00;
}

.hero h1 {
    color: #004b87;
    margin-bottom: 16px;
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.25rem;
    margin: 12px 0;
    color: #334455;
}

.subtitle {
    font-size: 1.4rem;
    color: #334455;
    margin-top: 12px;
}

.location {
    font-style: italic;
    color: #2e7d32;
    margin: 20px 0 30px;
    font-weight: 500;
}

.logo {
    max-width: 220px;
    height: auto;
    margin-top: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* General Sections */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 60px;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,75,135,0.1);
    border-left: 5px solid #2e7d32;
}

h2 {
    color: #004b87;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.4rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #ffcc00;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    background: #f8fbff;
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,75,135,0.15);
}

.feature h3 {
    color: #2e7d32;
}

/* Lists with Checkmarks */
ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

ul li {
    margin: 18px 0;
    padding-left: 36px;
    position: relative;
    font-size: 1.1rem;
}

.services ul li::before,
.why-us ul li::before,
.pricing-card ul li::before,
.section ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.4rem;
}

.nav-links li::before,
.mobile-menu li::before {
    content: none !important;
}

/* Fact Grid */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.fact {
    background: linear-gradient(135deg, #e8f5ff, #f0fff0);
    padding: 24px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #004b87;
    border: 1px solid #cce5ff;
}

/* Pricing styles (kept for future use) */
.pricing-single-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.pricing-single-item {
    background: #f8fbff;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,75,135,0.06);
    transition: transform 0.2s;
}

.pricing-single-item:hover {
    transform: translateY(-5px);
}

/* Contact & Button */
.contact {
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f0f8ff);
}

.contact-info {
    font-size: 1.4rem;
    margin: 24px 0;
    font-weight: bold;
    color: #004b87;
    background: #ffcc0022;
    padding: 16px;
    border-radius: 8px;
    display: inline-block;
}

.btn {
    display: inline-block;
    background: #ffcc00;
    color: #004b87;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #ffdd44;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    background: #004b87;
    color: white;
    margin-top: 60px;
    font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #004b87;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccd6e4;
    border-radius: 6px;
    font-size: 1rem;
    background: #f8fbff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}