/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== TOP RED BAR ===== */
.top-red-bar {
    background: #cc0000;
    height: 5px;
    width: 100%;
}

/* ===== HEADER ===== */
#header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: stretch;
    max-width: 1280px;
    width: 100%;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    min-width: 160px;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
}

.logo-wrap img {
    height: 60px;
    width: auto;
    display: block;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #555;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav rows */
.nav-rows {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    height: 38px;
}

.nav-row:last-child {
    border-bottom: none;
}

.nav-row a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    font-size: 11px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-right: 1px solid #ddd;
    transition: background 0.2s, color 0.2s;
}

.nav-row a:last-child {
    border-right: none;
}

.nav-row a:hover,
.nav-row a.active {
    background: #cc0000;
    color: #fff;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 616px;
    overflow: hidden;
    background: #2c2c2c;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 80%;
}

.hero-caption h1 {
    font-size: 38px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-caption p {
    font-size: 18px;
    color: #dddddd;
    letter-spacing: 1px;
}

/* Slide dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots span.active {
    background: #ffffff;
}

/* ===== CONTENT SECTION (Home) ===== */
.content-section {
    background: #f0f0f0;
    padding: 50px 20px;
}

.content-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.content-text {
    width: 38%;
    padding-top: 8px;
    padding-right: 40px;
}

.content-text p {
    font-size: 15px;
    color: #000000;
    line-height: 1.8;
}

.content-video {
    width: 62%;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.content-video h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 14px;
}

.video-thumb {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    display: block;
    border: 1px solid #bbb;
    background: #888;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.play-btn::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #333;
    margin-left: 4px;
}

/* ===== FOOTER ===== */
#footer {
    background: #2a2a2a;
    color: #aaa;
    text-align: center;
    padding: 18px 20px;
    font-size: 15px;
}

#footer a {
    color: #ccc;
}

#footer a:hover {
    color: #fff;
}


.page-banner1 {
    margin: auto;
    text-align: center;
    width: 100%;
}

.page-banner1 img {
    width: 100%;
    display: block;
}

/* Desktop image: visible on desktop, hidden on mobile */
.fordesktop {
    display: block;
}

/* Mobile image: hidden on desktop, visible on mobile */
.formobile {
    display: none;
}

@media (max-width: 768px) {
    .fordesktop {
        display: none;
    }
    .formobile {
        display: block;
    }
}



/* ===== PAGE BANNER ===== */
.page-banner {
    width: 100%;
    height: 325px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    background: #ffffff;
    padding: 40px 0 60px;
}

.page-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 22px;
    font-weight: normal;
    color: #444;
    letter-spacing: 1px;
    margin-bottom: 28px;
    padding-bottom: 0;
}

/* ===== HISTORY LAYOUT ===== */
.history-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.history-text {
    flex: 1;
}

.history-text p {
    font-size: 15px;
    color: #000000;
    line-height: 1.75;
    margin-bottom: 14px;
}

.history-text p:last-child {
    margin-bottom: 0;
}

.history-photos {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 4px;
}

.director-photo {
    width: 80px;
    height: 110px;
    background: #c8b89a;
    border: 1px solid #bbb;
}

/* ===== AUTOMOTIVE APPLICATIONS ===== */
.automotive-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 24px;
}

.automotive-img-wrap {
    margin-top: 4px;
    margin-bottom: 30px;
}

.automotive-img-wrap img {
    width: 100%;
    max-width: 100%;
    display: block;
    border: 1px solid #ddd;
}

/* ===== AUTOMOTIVE EXCELLENCE ===== */
.excellence-content {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.excellence-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 18px;
}

.excellence-content p:last-child {
    margin-bottom: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-title {
    margin-bottom: 30px;
}

.contact-title span {
    color: #cc0000;
}

.contact-layout {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-country {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.contact-row.no-icon {
    padding-left: 0;
    margin-top: 14px;
    margin-bottom: 6px;
}

.contact-icon {
    flex-shrink: 0;
    width: 18px;
    font-size: 14px;
    color: #555;
    margin-top: 1px;
    text-align: center;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: normal;
    color: #333;
}

.contact-link {
    color: #cc0000;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-map {
    width: 320px;
    flex-shrink: 0;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 1px solid #ccc;
}

/* ===== PLANT PAGE ===== */
.plant-content {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.plant-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 18px;
}

.plant-content p:last-child {
    margin-bottom: 0;
}

/* ===== ENVIRONMENTAL MANAGEMENT ===== */
.env-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 22px;
}

.env-certificate {
    border: 1px solid #ccc;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.env-certificate img {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* ===== QUALITY PAGE ===== */
.quality-content>p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 16px;
}

.quality-certificate {
    border: 1px solid #ccc;
    display: inline-block;
    line-height: 0;
    margin-bottom: 24px;
    margin-top: 6px;
    max-width: 100%;
}

.quality-certificate img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.quality-section {
    margin-bottom: 20px;
}

.quality-sub-heading {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.quality-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

/* ===== TECHNOLOGY & PEOPLE ===== */
.technology-content {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.technology-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0;
}

/* ===== CUSTOMERS PAGE ===== */
.customers-content>p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 24px;
}

.customers-grid {
    border: 1px solid #ddd;
    display: block;
    line-height: 0;
    max-width: 100%;
}

.customers-grid img {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* ===== PRODUCTS PAGE ===== */
.products-intro {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 22px;
}

.product-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
}

.product-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.product-list li {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.product-table-title {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: #1a81a1;
    padding: 9px 8px;
    margin-bottom: 0;
    margin-top: 10px;
}

/* Blue header tables */
.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    color: #ffffff;
    margin-bottom: 2px;
}

.product-table thead tr {
    background: #2493b5;
    color: #fff;
}

.product-table thead th {
    padding: 13px 8px;
    font-weight: bold;
    text-align: left;
}

.product-table tbody tr {
    background: #2ea5c9;
}

.product-table tbody tr:nth-child(even) {
    background: #2ea5c9;
}

.product-table tbody td {
    padding: 4px 8px;
    vertical-align: top;
    line-height: 1.5;
}

.product-table-split tbody tr:first-child td.split-head {
    background: #1a81a1;
    color: #fff;
    font-weight: bold;
    padding: 5px 8px;
}
.product-note {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.6;
    background: #2ea5c9;
    padding: 7px 10px;
    border: 1px solid #b8ccd8;
    margin-bottom: 2px;
}

/* Table scroll wrapper for responsive */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: -2px;
}

.table-scroll .product-table {
    min-width: 480px;
}

/* =================================================================
   RESPONSIVE — TABLET  (max 1024px)
================================================================= */
@media (max-width: 1024px) {

    .header-inner {
        border-left: none;
        border-right: none;
    }

    .logo-wrap {
        min-width: 130px;
        padding: 8px 14px;
    }

    .nav-row a {
        padding: 0 10px;
        font-size: 10.5px;
    }

    .hero-slider {
        height: 380px;
    }

    .hero-caption h1 {
        font-size: 28px;
    }

    .hero-caption p {
        font-size: 15px;
    }

    .content-inner {
        padding: 0 10px;
    }

    .page-banner {
        height: 220px;
    }

    .contact-map {
        width: 260px;
    }
}

/* =================================================================
   RESPONSIVE — SMALL TABLET / LARGE MOBILE  (max 768px)
================================================================= */
@media (max-width: 768px) {

    /* ---- Header: top bar = logo left + hamburger right ---- */
    #header {
        position: relative;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        border-left: none;
        border-right: none;
    }

    /* Logo — top-left cell */
    .logo-wrap {
        grid-column: 1;
        grid-row: 1;
        border-right: none;
        min-width: unset;
        padding: 10px 16px;
        justify-content: flex-start;
    }

    .logo-wrap img {
        height: 48px;
    }

    /* Hamburger — top-right cell */
    .nav-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        padding: 10px 16px;
        margin-left: 0;
    }

    /* Nav — spans full width in second row, hidden by default */
    .nav-rows {
        display: none !important;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        border-top: 1px solid #ddd;
        background: #fff;
        width: 100%;
    }

    .nav-rows.open {
        display: flex !important;
    }

    .nav-row {
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        border-bottom: none;
    }

    .nav-row:last-child {
        border-bottom: none;
    }

    .nav-row a {
        height: auto;
        padding: 13px 20px;
        font-size: 13px;
        font-weight: bold;
        border-right: none;
        border-bottom: 1px solid #eee;
        width: 100%;
        white-space: normal;
        display: block;
    }

    .nav-row a:last-child {
        border-bottom: none;
    }

    /* ---- Hero ---- */
    .hero-slider {
        height: 260px;
    }

    .hero-caption h1 {
        font-size: 20px;
    }

    .hero-caption p {
        font-size: 13px;
    }

    /* ---- Home content section ---- */
    .content-section {
        padding: 30px 16px;
    }

    .content-inner {
        flex-direction: column;
        padding: 0;
        gap: 24px;
    }

    .content-text {
        width: 100%;
        padding-right: 0;
        padding-top: 0;
    }

    .content-video {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }

    /* ---- Page banner ---- */
    .page-banner {
        height: 180px;
    }

    /* ---- Page content ---- */
    .page-content {
        padding: 28px 0 40px;
    }

    .page-container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* ---- History ---- */
    .history-layout {
        flex-direction: column;
        gap: 20px;
    }

    .history-photos {
        justify-content: center;
    }

    /* ---- Contact ---- */
    .contact-layout {
        flex-direction: column;
        gap: 28px;
    }

    .contact-map {
        width: 100%;
    }

    .contact-map iframe {
        height: 220px;
    }

    /* ---- Products tables ---- */
    .table-scroll {
        overflow-x: auto;
    }

    .product-table {
        font-size: 11px;
    }

    /* ---- Footer ---- */
    #footer {
        font-size: 13px;
        padding: 14px 16px;
    }
}

/* =================================================================
   RESPONSIVE — MOBILE  (max 480px)
================================================================= */
@media (max-width: 480px) {

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .logo-wrap img {
        height: 40px;
    }

    /* Ensure nav stays hidden on small phones too */
    .nav-rows {
        display: none !important;
    }

    .nav-rows.open {
        display: flex !important;
    }

    /* ---- Hero ---- */
    .hero-slider {
        height: 200px;
    }

    .hero-caption {
        width: 90%;
    }

    .hero-caption h1 {
        font-size: 16px;
    }

    .hero-caption p {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    /* ---- Content section ---- */
    .content-section {
        padding: 22px 12px;
    }

    .content-text p,
    .content-video h3 {
        font-size: 14px;
    }

    /* ---- Page banner ---- */
    .page-banner {
        height: 120px;
    }

    .page-content {
        padding: 20px 0 30px;
    }

    .page-container {
        padding: 0 12px;
    }

    .page-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* ---- History ---- */
    .history-text p {
        font-size: 14px;
    }

    /* ---- Automotive / plant / tech ---- */
    .automotive-content p,
    .excellence-content p,
    .plant-content p,
    .env-content p,
    .technology-content p,
    .quality-content>p,
    .quality-section p,
    .customers-content>p,
    .products-intro {
        font-size: 14px;
    }

    /* ---- Contact ---- */
    .contact-row {
        font-size: 14px;
    }

    .contact-map iframe {
        height: 200px;
    }

    /* ---- Product tables ---- */
    .product-table {
        font-size: 10.5px;
    }

    .product-table thead th,
    .product-table tbody td {
        padding: 4px 6px;
    }

    .product-note {
        font-size: 11px;
    }

    .product-table-title {
        font-size: 11px;
    }

    /* ---- Footer ---- */
    #footer {
        font-size: 12px;
    }
}


/* =================================================================
   ENQUIRY FORM
================================================================= */
.enquiry-form-wrap {
    margin-top: 40px;
    border: 1px solid #ccc;
    border-radius: 2px;
    overflow: hidden;
}

/* ---- Header bar ---- */
.enquiry-form-header {
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
}

.enquiry-form-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.enquiry-required-note {
    font-size: 11px;
    color: #cc0000;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ---- Form body ---- */
.enquiry-form-body {
    padding: 24px 22px 28px;
    background: #fff;
}

/* ---- Rows ---- */
.ef-row {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
}

.ef-cols-2 > .ef-field {
    flex: 1 1 0;
}

.ef-cols-3 > .ef-field {
    flex: 1 1 0;
}

.ef-full {
    flex: 1 1 100%;
}

/* ---- Label ---- */
.ef-label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    font-weight: normal;
}

.ef-req {
    color: #cc0000;
    font-size: 13px;
    font-weight: bold;
    margin-left: 2px;
}

.ef-optional {
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

/* ---- Inputs / Select ---- */
.ef-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.ef-input:focus {
    border-color: #888;
}

.ef-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* ---- Textarea ---- */
.ef-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* ---- Upload zone ---- */
.ef-upload-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px dashed #bbb;
    border-radius: 2px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.ef-upload-zone:hover {
    border-color: #888;
    background: #fafafa;
}

.ef-upload-icon {
    font-size: 20px;
    color: #555;
    line-height: 1;
}

.ef-upload-text {
    font-size: 13px;
    color: #444;
}

.ef-file-hidden {
    display: none;
}

/* ---- Consent row ---- */
.ef-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #444;
    line-height: 1.55;
}

.ef-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: #cc0000;
    cursor: pointer;
}

.ef-consent label {
    cursor: pointer;
}

/* ---- Submit button ---- */
.ef-submit {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    font-family: inherit;
}

.ef-submit:hover {
    background: #aa0000;
}

/* =================================================================
   ENQUIRY FORM — RESPONSIVE
================================================================= */
@media (max-width: 768px) {
    .enquiry-form-body {
        padding: 18px 16px 22px;
    }

    /* All rows stack to single column */
    .ef-row,
    .ef-cols-2,
    .ef-cols-3 {
        flex-direction: column;
        gap: 12px;
    }

    .ef-cols-2 > .ef-field,
    .ef-cols-3 > .ef-field {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .enquiry-form-header {
        padding: 9px 14px;
    }

    .enquiry-form-title {
        font-size: 10px;
    }

    .enquiry-required-note {
        font-size: 10px;
    }

    .ef-label,
    .ef-input,
    .ef-upload-text,
    .ef-consent {
        font-size: 13px;
    }

    .ef-submit {
        width: 100%;
        text-align: center;
    }
}
