/* =========================================
   DD ENGINEERING SOLUTIONS
   MAIN WEBSITE STYLESHEET
   ========================================= */


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #203858;
    color: #ffffff;
}


/* ---------- HEADER ---------- */

.header {
    width: 100%;
    height: 155px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px 4.5%;
    position: relative;
    z-index: 10;
}

.logo-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    width: 210px;
    height: auto;
    object-fit: contain;
}

.company-name {
    margin-left: 25px;
    color: #000000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 68px);
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
}


/* ---------- NAVIGATION ---------- */

.navigation {
    position: absolute;
    top: 175px;
    left: 1.8%;
    right: 1.8%;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 1%;
}

.nav-button {
    width: 18%;
    min-height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #203b68;
    color: #ffffff;

    text-decoration: none;
    border-radius: 50px;

    font-size: clamp(20px, 2vw, 32px);
    font-weight: 700;

    transition: 0.3s ease;
}

.nav-button:hover {
    background: #000000;
}

.nav-button.active {
    background: #000000;
}


/* =========================================
   HOME PAGE
   ========================================= */

.home {
    min-height: calc(100vh - 155px);

    background-image: url("images/hero-industrial.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    position: relative;
}


/* Dark overlay */

.home-overlay {
    width: 100%;
    min-height: calc(100vh - 155px);

    background: rgba(0, 35, 75, 0.18);

    position: relative;
}


/* Home content */

.home-content {
    width: 90%;
    max-width: 1500px;

    margin: 0 auto;
    padding-top: 140px;
    padding-bottom: 80px;

    color: #ffffff;
}


/* Main heading */

.home-content h1 {
    font-size: clamp(28px, 2.3vw, 40px);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 45px;
}


/* Company heading */

.home-content h2 {
    font-size: clamp(24px, 1.8vw, 34px);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 5px;
}


/* Intro */

.home-content .intro {
    font-size: clamp(19px, 1.45vw, 28px);
    line-height: 1.45;
    font-weight: 700;
    margin-bottom: 38px;
}


/* Secondary heading */

.home-content h3 {
    font-size: clamp(21px, 1.5vw, 29px);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 5px;
}


/* Paragraphs */

.home-content p:not(.intro) {
    font-size: clamp(18px, 1.4vw, 27px);
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 30px;
}


/* Know More button */

.know-more {
    display: inline-block;

    margin-top: 5px;

    color: #ffffff;
    text-decoration: none;

    font-size: clamp(19px, 1.4vw, 27px);
    font-weight: 700;

    transition: 0.3s ease;
}

.know-more:hover {
    color: #ffc15a;
}


/* =========================================
   GENERAL CONTENT PAGES
   ABOUT / SERVICE / SOLUTION / CONTACT
   ========================================= */

.page {
    min-height: 100vh;
    background: #203858;
    padding: 70px 5.6% 90px;
}


/* Gold page title */

.page-title {
    color: #ffc15a;
    font-size: clamp(32px, 2.5vw, 48px);
    font-weight: 700;
    margin-bottom: 28px;
}


/* White headings */

.page h2 {
    color: #ffffff;
    font-size: clamp(24px, 1.8vw, 34px);
    line-height: 1.35;
    margin-bottom: 20px;
}


/* Normal text */

.page p {
    color: #ffffff;
    font-size: clamp(18px, 1.45vw, 27px);
    line-height: 1.5;
    margin-bottom: 32px;
}


/* Bold text */

.page strong {
    font-weight: 700;
}


/* =========================================
   SERVICES PAGE
   ========================================= */

.services-page {
    min-height: 100vh;
    background: #203858;
    padding: 70px 5.6% 80px;
}

.services-page .page-title {
    margin-bottom: 25px;
}

.services-intro-title {
    color: #ffffff;
    font-size: clamp(24px, 1.8vw, 34px);
    font-weight: 700;
    margin-bottom: 5px;
}

.services-intro {
    color: #ffffff;
    font-size: clamp(18px, 1.4vw, 27px);
    line-height: 1.5;
    margin-bottom: 35px;
}

.services-heading {
    color: #ffffff;
    font-size: clamp(23px, 1.7vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
}


/* Service list */

.service-list {
    margin-left: 28px;
    margin-bottom: 20px;
}

.service-list li {
    color: #ffffff;
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 1.45;
    margin-bottom: 32px;
    padding-left: 5px;
}


/* Service images */

.service-images {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.2%;

    margin-top: 10px;
}

.service-images img {
    width: 100%;
    aspect-ratio: 1.55 / 1;

    object-fit: cover;

    display: block;
}


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

.contact-page {
    min-height: 100vh;
    background: #203858;
    padding: 70px 5.6% 80px;
}

.contact-page .page-title {
    margin-bottom: 25px;
}

.contact-main-title {
    color: #ffffff;
    font-size: clamp(25px, 2vw, 36px);
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-description {
    color: #ffffff;
    font-size: clamp(18px, 1.45vw, 27px);
    line-height: 1.5;
    font-weight: 700;
    max-width: 1450px;
    margin-bottom: 58px;
}

.contact-company {
    color: #ffc15a;
    font-size: clamp(27px, 2.2vw, 40px);
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-label {
    color: #ffffff;
    font-size: clamp(22px, 1.7vw, 32px);
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-text {
    color: #ffffff;
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 1.4;
    margin-bottom: 48px;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 900px) {

    .header {
        height: auto;
        min-height: 120px;
        padding: 15px 5%;
    }

    .logo-area {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .logo {
        width: 120px;
    }

    .company-name {
        margin-left: 0;
        font-size: 27px;
        white-space: normal;
        text-align: center;
    }

    .navigation {
        position: relative;
        top: auto;
        left: auto;
        right: auto;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;

        padding: 12px 5%;

        background: #203858;
    }

    .nav-button {
        width: 100%;
        min-height: 55px;
        font-size: 19px;
    }

    .home {
        min-height: auto;
    }

    .home-overlay {
        min-height: auto;
    }

    .home-content {
        width: 90%;
        padding-top: 60px;
    }

    .service-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page,
    .services-page,
    .contact-page {
        padding: 50px 7% 70px;
    }
}


@media (max-width: 550px) {

    .header {
        min-height: 105px;
    }

    .logo {
        width: 100px;
    }

    .company-name {
        font-size: 21px;
    }

    .navigation {
        grid-template-columns: 1fr;
    }

    .nav-button {
        min-height: 48px;
        border-radius: 30px;
    }

    .home-content {
        padding-top: 45px;
    }

    .home-content h1 {
        margin-bottom: 30px;
    }

    .home-content .intro {
        margin-bottom: 28px;
    }

    .service-images {
        grid-template-columns: 1fr;
    }

    .service-list {
        margin-left: 22px;
    }

    .service-list li {
        margin-bottom: 22px;
    }
}
/* =========================
   ABOUT PAGE ACTION BUTTONS
   ========================= */

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #f4b942;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #ffffff;
    color: #1f3859;
    transform: translateY(-2px);
}
/* =========================================
   COMMON HEADER - ALL PAGES
   ========================================= */

.site-header {
    height: 125px;
    background: #ffffff;

    display: flex;
    align-items: center;

    padding: 0 70px;
    box-sizing: border-box;
}

.logo {
    width: 190px;
    height: auto;
    display: block;
}

.company-name {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 54px;
    font-weight: 600;

    color: #000000;

    margin-left: 35px;

    white-space: nowrap;
}


/* =========================================
   COMMON NAVIGATION
   ========================================= */

.main-nav {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 16px 45px;

    background: transparent;

    z-index: 10;
}

.main-nav a {
    flex: 1;

    text-align: center;

    padding: 15px 25px;

    background: #243f6b;

    color: #ffffff;

    text-decoration: none;

    font-size: 24px;
    font-weight: 700;

    border-radius: 40px;

    transition: 0.25s ease;
}

.main-nav a:hover {
    background: #000000;
    color: #ffffff;
}

.main-nav a.active {
    background: #000000;
    color: #ffffff;
}


/* =========================================
   COMMON INNER PAGES
   ========================================= */

.page {
    min-height: calc(100vh - 125px);

    background: #213a5b;

    color: #ffffff;

    padding: 55px 90px 80px;

    box-sizing: border-box;
}

.page-title {
    color: #f4b942;

    font-size: 40px;

    margin-top: 0;
    margin-bottom: 30px;
}

.page h2 {
    font-size: 27px;

    margin-top: 25px;
    margin-bottom: 18px;
}

.page h3 {
    font-size: 24px;

    margin-top: 28px;
    margin-bottom: 8px;
}

.page p {
    font-size: 21px;

    line-height: 1.55;

    margin-bottom: 28px;
}


/* =========================================
   SERVICES
   ========================================= */

.service-list {
    padding-left: 30px;

    font-size: 21px;

    line-height: 1.6;
}

.service-list li {
    margin-bottom: 22px;
}

.service-images {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 35px;

    margin-top: 30px;
}

.service-images img {
    width: 100%;
    height: 235px;

    object-fit: cover;

    display: block;
}


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

.contact-company {
    color: #f4b942;

    margin-top: 55px !important;
}
/* =========================================
   CONTACT LINKS
   ========================================= */

.contact-link {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-link:hover {
    color: #f4b942;
    text-decoration: underline;
}
/* =========================================
   MOBILE RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {

    /* Header */
    .site-header {
        padding: 15px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .site-header .logo {
        width: 75px;
        height: auto;
    }

    .company-name {
        font-size: 20px;
        line-height: 1.2;
        text-align: center;
    }


    /* Navigation */
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 9px 14px;
        white-space: nowrap;
    }


    /* Inner pages */
    .page {
        width: 100%;
        padding: 35px 20px;
        box-sizing: border-box;
    }

    .page-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 25px;
    }

    .page h2 {
        font-size: 22px;
        line-height: 1.35;
    }

    .page h3 {
        font-size: 19px;
        line-height: 1.35;
    }

    .page p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* Services */
    .service-list {
        width: 100%;
    }

    .service-images {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-images img {
        width: 100%;
        height: auto;
        display: block;
    }


    /* Contact */
    .contact-company {
        font-size: 28px;
        line-height: 1.2;
    }

    .contact-link {
        word-break: break-word;
    }


    /* Prevent horizontal scrolling */
    img {
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }
}


/* Smaller phones */
@media (max-width: 480px) {

    .company-name {
        font-size: 18px;
    }

    .site-header .logo {
        width: 65px;
    }

    .main-nav {
        gap: 6px;
        padding: 10px 6px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 8px 11px;
    }

    .page {
        padding: 30px 16px;
    }

    .page-title {
        font-size: 28px;
    }

    .page h2 {
        font-size: 20px;
    }

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

    .contact-company {
        font-size: 24px;
    }
}