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

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #111;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN GROW */
main {
    flex: 1;
}

/* LINKS */
a,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-link {
    display: inline-block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #facc15;
    font-size: 20px;
    font-weight: bold;
}

.logo-img {
    width: auto;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* NAV MENU */
nav ul.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

nav ul.nav-list li a {
    color: white;
    padding: 10px 12px;
    display: block;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.3s;
}

nav ul.nav-list li a:hover {
    color: #facc15;
    background: rgba(255, 255, 255, 0.06);
}

nav ul.nav-list li a.active {
    background: #facc15;
    color: #0f172a;
}

/* HERO */
.hero-box {
    background: linear-gradient(135deg, #0e2b6e, #164fac);
    color: white;
    text-align: center;
    margin: 20px;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
    font-size: 34px;
    margin-bottom: 15px;
    color: #facc15;
}

.hero-content p {
    max-width: 760px;
    margin: auto;
    font-size: 16px;
    line-height: 1.7;
    color: #e5e7eb;
}

/* INTRO */
.intro-section {
    padding: 10px 15px 20px;
}

.intro-box {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.intro-box h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #0f172a;
}

.intro-box p {
    color: #374151;
    font-size: 16px;
}

/* COMMON SECTIONS */
.section-box,
.content-box,
.contact-cta {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 0 15px;
}

.services h2,
.tools h2,
.info-box h2,
.local-box h2,
.contact-cta h2 {
    margin-bottom: 20px;
    font-size: 24px;
    border-left: 4px solid orange;
    padding-left: 10px;
    color: #0f172a;
}

/* GRID */
.service-container,
.tool-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    align-items: stretch;
}

/* CARDS */
.service-card,
.tool-card {
    background: white;
    padding: 18px 15px;
    text-align: center;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    transition: 0.3s;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.service-card:hover,
.tool-card:hover {
    transform: translateY(-6px);
    border-color: #22c55e;
    background: #fff7ed;
    cursor: pointer;
}

.service-card img,
.tool-card img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

.service-card h3,
.tool-card h3 {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    color: #111827;
}

/* CONTENT BOXES */
.info-box,
.local-box {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 25px 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.info-box p,
.local-box p {
    font-size: 16px;
    color: #374151;
}

.internal-links {
    margin-top: 15px;
}

.internal-links a {
    color: #2563eb;
    font-weight: 600;
}

.internal-links a:hover {
    text-decoration: underline;
}

/* CTA */
.contact-cta {
    text-align: center;
    background: #0f172a;
    color: white;
    border-radius: 18px;
    padding: 30px 20px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.contact-cta h2 {
    border-left: none;
    padding-left: 0;
    color: #facc15;
}

.contact-cta p {
    margin-bottom: 18px;
    color: #e5e7eb;
    font-size: 16px;
}

.cta-btn {
    display: inline-block;
    background: #facc15;
    color: #0f172a;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    background: #fde047;
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: auto;
}

.footer p {
    margin: 4px 0;
    font-size: 14px;
}

/* TABLET */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        width: 100%;
    }

    nav .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        background: #0f172a;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav .nav-list.active {
        display: flex;
    }

    nav .nav-list li {
        width: 100%;
    }

    nav .nav-list li a {
        text-align: left;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .logo {
        font-size: 17px;
    }

    .logo-img {
        height: 30px;
    }

    .hero-box {
        padding: 50px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .intro-box h2,
    .services h2,
    .tools h2,
    .info-box h2,
    .local-box h2,
    .contact-cta h2 {
        font-size: 21px;
    }

    .intro-box p,
    .info-box p,
    .local-box p,
    .contact-cta p {
        font-size: 15px;
    }

    .service-container,
    .tool-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }

    .logo {
        font-size: 15px;
        gap: 8px;
        max-width: 85%;
    }

    .logo-img {
        height: 28px;
    }

    .hero-box {
        padding: 45px 15px;
        margin: 15px 10px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p,
    .intro-box p,
    .info-box p,
    .local-box p,
    .contact-cta p {
        font-size: 14px;
    }

    .intro-section,
    .section-box,
    .content-box {
        padding-left: 10px;
        padding-right: 10px;
    }

    .intro-box,
    .info-box,
    .local-box {
        padding: 18px 15px;
    }

    .service-container,
    .tool-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card,
    .tool-card {
        min-height: 130px;
        padding: 10px;
    }

    .service-card h3,
    .tool-card h3 {
        font-size: 11px;
    }

    .services h2,
    .tools h2,
    .info-box h2,
    .local-box h2,
    .contact-cta h2,
    .intro-box h2 {
        font-size: 20px;
    }

    .contact-cta {
        padding: 24px 15px;
    }

    .footer {
        font-size: 13px;
        padding: 14px 10px;
    }
}