:root {
    --blue: #0878bd;
    --dark: #222;
    --light: #f5f7fa;
    --orange: #f28c18;
}

/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}


/* =========================
   TOP BAR
========================= */

.topbar {
    background: #222;
    color: #ddd;
    font-size: 13px;
    padding: 7px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}


/* =========================
   HEADER
========================= */

.header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================
   LOGO
========================= */

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo img {
    display: block;
    width: 190px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
}


/* =========================
   OLD TEXT LOGO
========================= */

.logo {
    font-weight: 900;
    font-size: 28px;
    color: #0784c7;
    letter-spacing: -2px;
}

.logo span {
    font-size: 12px;
    letter-spacing: 0;
    color: #222;
    margin-left: 3px;
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 1;
    flex-wrap: wrap;
}

.menu > a,
.menu .dropdown > a {
    display: block;
    padding: 27px 13px;
    font-size: 14px;
    color: #333;
    transition: all 0.25s ease;
}

.menu > a:hover,
.menu > a.active,
.menu .dropdown > a:hover {
    color: var(--blue);
    background: #f7f7f7;
}


/* =========================
   DROPDOWN
========================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--blue);
    z-index: 999;
}

.dropdown-menu a {
    display: block;
    padding: 11px 15px !important;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--blue);
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    padding: 5px;
    cursor: pointer;
    color: #222;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    background: #111;
}

.hero img {
    width: 100%;
    display: block;
    height: auto;
    max-height: 430px;
    object-fit: cover;
}

.hero .caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.20);
    padding: 20px;
}

.hero h1 {
    font-size: 44px;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}


/* =========================
   COMMON SECTIONS
========================= */

.section {
    padding: 60px 0;
}

.section.gray {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: 30px;
    color: #222;
}

.section-sub {
    text-align: center;
    color: #777;
    max-width: 720px;
    margin: 0 auto 35px;
}


/* =========================
   CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-top: 0;
    color: var(--blue);
}


/* =========================
   ABOUT SECTION
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
    align-items: center;
}

.about-grid img {
    width: 100%;
    display: block;
}

.about-grid h2 {
    font-size: 30px;
    margin-top: 0;
    color: #222;
}

.about-grid p {
    margin-bottom: 16px;
}


/* =========================
   PRODUCT GRID
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.product {
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.product .pbody {
    padding: 20px;
}

.product h3 {
    margin: 0 0 8px;
    color: var(--blue);
}

.product p {
    margin-top: 0;
}


/* =========================
   INNER PAGE BANNER
========================= */

.page-banner {
    position: relative;
    background: #111;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    opacity: 0.88;
}

.page-banner .inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.30);
    padding: 20px;
}

.page-banner h1 {
    font-size: 40px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


/* =========================
   CONTENT
========================= */

.content {
    max-width: 900px;
    margin: auto;
}

.content h2 {
    color: var(--blue);
    margin-top: 0;
}

.content h3 {
    color: #222;
}

.content ul {
    padding-left: 25px;
}

.content li {
    margin: 8px 0;
}


/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-box {
    padding: 30px;
    background: #f7f7f7;
    border-left: 4px solid var(--blue);
}

.contact-box h2 {
    margin-top: 0;
}

.form input,
.form textarea {
    width: 100%;
    padding: 13px;
    margin: 0 0 14px;
    border: 1px solid #ccc;
    font: inherit;
    outline: none;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--blue);
}

.form button {
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 13px 25px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.25s ease;
}

.form button:hover {
    background: #065f96;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #202020;
    color: #bbb;
    padding: 45px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer h3 {
    color: #fff;
    margin-top: 0;
}

.footer p {
    margin: 8px 0;
}

.footer a {
    color: #bbb;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 18px;
    font-size: 13px;
    text-align: center;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .nav {
        gap: 20px;
    }

    .brand-logo img {
        width: 170px;
    }

    .menu > a,
    .menu .dropdown > a {
        padding: 27px 9px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 38px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    /* Header */
    .header .nav {
        min-height: 68px;
        gap: 15px;
        position: relative;
    }

    /* Logo */
    .brand-logo {
        max-width: calc(100% - 55px);
        flex-shrink: 1;
    }

    .brand-logo img {
        width: 155px;
        max-width: 100%;
        height: auto;
        max-height: 55px;
        object-fit: contain;
    }

    /* Hamburger */
    .mobile-toggle {
        display: block;
        flex-shrink: 0;
        background: none;
        border: 0;
        font-size: 25px;
        line-height: 1;
        padding: 5px;
        cursor: pointer;
    }

    /* Mobile Navigation */
    .menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        flex: none;
    }

    .menu.open {
        display: flex;
    }

    .menu > a,
    .menu .dropdown > a {
        display: block;
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    /* Mobile dropdown */
    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border-top: 0;
        background: #f8f8f8;
    }

    .dropdown-menu a {
        padding: 11px 30px !important;
        border-bottom: 1px solid #e5e5e5;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }


    /* Topbar */
    .topbar .container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
    }


    /* Hero */
    .hero img {
        min-height: 250px;
        object-fit: cover;
    }

    .hero .caption {
        padding: 15px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.25;
    }

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


    /* Sections */
    .section {
        padding: 45px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-sub {
        font-size: 14px;
    }


    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-grid h2 {
        font-size: 27px;
    }


    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product img {
        height: 220px;
    }


    /* Inner Banner */
    .page-banner img {
        height: 220px;
    }

    .page-banner h1 {
        font-size: 30px;
        line-height: 1.25;
    }


    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .copyright {
        font-size: 12px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .nav {
        min-height: 64px !important;
    }

    .brand-logo img {
        width: 135px;
        max-height: 48px;
    }

    .mobile-toggle {
        font-size: 23px;
    }

    .menu {
        top: 64px;
    }

    .hero img {
        height: 250px;
        min-height: 250px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero p {
        font-size: 14px;
    }

    .page-banner img {
        height: 190px;
    }

    .page-banner h1 {
        font-size: 25px;
    }

    .section {
        padding: 38px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .product .pbody {
        padding: 18px;
    }

    .product img {
        height: 190px;
    }

    .contact-box {
        padding: 22px;
    }

    .footer {
        padding-top: 35px;
    }
}