/* 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 + hamburger on mobile */
.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 much 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 */
}

/* Desktop / initial mobile view: text 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 */
.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);
}

.navbar.scrolled .hamburger {
    display: flex;
}

/* Mobile menu dropdown (hidden by default) */
.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);
}

/* Hero Section – no scroll changes (static) */
.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 – headings remain static */
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 – only for content areas */
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;
}

/* Add checkmarks only to specific content lists */
.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;
}

/* Explicitly remove checkmarks from navigation */
.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 – Single Item Services */
.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);
}

.pricing-single-item h3 {
    color: #004b87;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.pricing-single-item .price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 10px 0;
}

.pricing-single-item p:last-child {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing – Full Service Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

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

.pricing-card {
    background: white;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,75,135,0.08);
    transition: transform 0.3s;
    min-height: 580px;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid #ffcc00;
    background: #fffdf5;
    box-shadow: 0 8px 20px rgba(255,204,0,0.2);
}

.pricing-card h3.level-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004b87;
    background: #ffcc0022;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #ffcc00;
    margin-bottom: 20px;
    text-align: center;
    display: inline-block;
    width: auto;
    box-shadow: 0 2px 8px rgba(255,204,0,0.3);
}

.highlighted-price {
    font-size: 2.8rem !important;
    font-weight: 900;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.1);
    padding: 14px 28px;
    border-radius: 12px;
    margin: 20px 0;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* 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;
}

/* Notes */
.note {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 30px;
}

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

/* ────────────────────────────────────────────────
   MOBILE: Force nav links to stay in ONE LINE
   ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;               /* Prevents wrapping to new line */
        gap: 16px;                       /* smaller spacing */
        margin-left: auto;
        white-space: nowrap;
    }

    .nav-links li a {
        font-size: 0.95rem;              /* slightly smaller */
        white-space: nowrap;             /* keeps Chinese text in one line */
        padding: 6px 8px;
    }

    /* When scrolled → hide text links anyway */
    .navbar.scrolled .nav-links {
        display: none;
    }

    .navbar.scrolled .hamburger {
        display: flex;
    }

    /* Logo adjustment to help fit everything */
    .nav-logo-text {
        font-size: 1.35rem;
        max-width: 55%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Hamburger shown only when scrolled */
    .hamburger {
        display: none;
    }

    /* Navbar height adjustment */
    .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-links {
        gap: 12px;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 6px 6px;
    }

    .nav-logo-text {
        font-size: 1.25rem;
        max-width: 50%;
    }
}

/* 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;
}

