/* ==========================================================
   UD. KENCANA DUTA MANDIRI
   Supplier Material Bangunan & Jasa Kontraktor
   Author : IB Putu Subakti
   Version : 1.0
========================================================== */

/* ===============================
   GOOGLE FONT
================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* ===============================
   CSS VARIABLES
================================== */

:root {

    --primary: #0A2342;
    --primary-light: #123663;

    --gold: #D4AF37;

    --white: #ffffff;

    --background: #F8FAFC;

    --text: #1F2937;

    --paragraph: #64748B;

    --border: #E5E7EB;

    --shadow: 0 15px 40px rgba(0, 0, 0, .08);

    --shadow-hover: 0 20px 50px rgba(0, 0, 0, .15);

    --radius: 18px;

    --transition: .35s ease;

    --container: 1280px;

}

/* ===============================
   RESET
================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: "Inter", sans-serif;

    background: var(--background);

    color: var(--text);

    overflow-x: hidden;

    line-height: 1.7;

}

img {

    width: 100%;

    display: block;

}

a {

    text-decoration: none;

    color: inherit;

}

ul {

    list-style: none;

}

button {

    border: none;

    background: none;

    font-family: inherit;

    cursor: pointer;

}

input {

    font-family: inherit;

}

/* ===============================
   CONTAINER
================================== */

.container {

    width: min(92%, var(--container));

    margin: auto;

}

/* ===============================
   SECTION
================================== */

section {

    padding: 40px 0;

}

/* ===============================
   TYPOGRAPHY
================================== */

.section-subtitle {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    font-size: .95rem;

    color: var(--gold);

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;

    margin-bottom: 20px;

}

.section-subtitle::before,
.section-subtitle::after {

    content: "";

    width: 60px;

    height: 2px;

    background: var(--gold);

}

.contact .section-title {

    color: #FFFFFF;

}

.contact .section-description {

    color: rgba(255, 255, 255, .82);

}

.contact .section-subtitle {

    color: #D4AF37;

}

.contact .section-subtitle::before,
.contact .section-subtitle::after {

    background: #D4AF37;

}

.contact::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);

    top: -180px;

    right: -150px;

}

.contact::after {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    border-radius: 50%;

    background: rgba(212, 175, 55, .08);

    bottom: -180px;

    left: -150px;

}

.section-description {

    max-width: 760px;

    margin: 0 auto;

    text-align: center;

    color: var(--paragraph);

    font-size: 1.08rem;

    line-height: 1.9;

}

/* ==========================================
            SECTION HEADING
========================================== */

.section-heading {

    max-width: 900px;

    margin: 0 auto 70px;

    text-align: center;

}

/* ===============================
   BUTTON
================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 16px 34px;

    border-radius: 50px;

    transition: var(--transition);

    font-weight: 600;

}

.btn-primary {

    background: var(--primary);

    color: var(--white);

}

.btn-primary:hover {

    background: var(--gold);

    transform: translateY(-4px);

    box-shadow: var(--shadow);

}

.btn-outline {

    border: 2px solid var(--primary);

    color: var(--primary);

}

.btn-outline:hover {

    background: var(--primary);

    color: white;

}

/* ===============================
   HEADER
================================== */

.header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, .96);

    backdrop-filter: blur(12px);

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);

    z-index: 999;

}

.navbar {

    height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.logo {

    font-family: "Poppins", sans-serif;

    font-size: 1.55rem;

    font-weight: 700;

    color: var(--primary);

}

.logo span {

    color: var(--gold);

}

.nav-menu {

    display: flex;

    gap: 38px;

}

.nav-menu a {

    font-weight: 600;

    transition: var(--transition);

}

.nav-menu a:hover {

    color: var(--gold);

}

.nav-btn {

    gap: 10px;

}

/* ===============================
   HERO
================================== */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding-top: 120px;

}

.hero-buttons {

    display: flex;

    gap: 20px;

    margin-top: 35px;

    flex-wrap: wrap;

}

/* ===============================
   UTILITY
================================== */

.text-center {

    text-align: center;

}

.mt-1 {

    margin-top: 10px;

}

.mt-2 {

    margin-top: 20px;

}

.mt-3 {

    margin-top: 30px;

}

.mt-4 {

    margin-top: 40px;

}

.mt-5 {

    margin-top: 50px;

}

/* ==========================================
                MATERIAL
========================================== */

.products {

    background: #F8FAFC;

}

.product-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    margin-top: 60px;

}

.product-card {

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    transition: .35s;

}

.product-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);

}

.product-card img {

    width: 100%;

    height: 260px;

    object-fit: cover;

}

.product-content {

    padding: 18px 20px;

}

.product-content h3 {

    font-family: "Poppins", sans-serif;

    color: #0A2342;

    font-size: 1.2rem;

    margin-bottom: 8px;

}

.product-content p {

    color: #64748B;

    font-size: .95rem;

    line-height: 1.6;

    margin: 0;

}

/* ==========================================
            RESPONSIVE
========================================== */

@media(max-width:1200px) {

    .product-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

@media(max-width:768px) {

    .product-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:576px) {

    .product-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================================
   SERVICES SECTION
   UD. Kencana Duta Mandiri
========================================================== */

.services {

    padding: 100px 0;

    background: #ffffff;

}

.services .section-subtitle {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    margin-bottom: 15px;

}

.services .section-title {

    text-align: center;

    max-width: 800px;

    margin: 0 auto 20px;

}

.services .section-description {

    max-width: 820px;

    margin: 0 auto 60px;

    text-align: center;

    color: #64748B;

    line-height: 1.8;

}

/* ==========================================
                GRID
========================================== */

.service-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

}

/* ==========================================
                CARD
========================================== */

.service-card {

    background: #ffffff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);

    transition: .35s ease;

    border: 1px solid #edf1f5;

}

.service-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 25px 55px rgba(0, 0, 0, .15);

}

/* ==========================================
                IMAGE
========================================== */

.service-image {

    position: relative;

    overflow: hidden;

}

.service-image img {

    width: 100%;

    height: 270px;

    object-fit: cover;

    transition: .45s;

}

.service-card:hover .service-image img {

    transform: scale(1.08);

}

/* ==========================================
                NUMBER
========================================== */

.service-number {

    position: absolute;

    top: 18px;

    left: 18px;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: #D4AF37;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 1rem;

    font-family: "Poppins", sans-serif;

    box-shadow: 0 10px 25px rgba(212, 175, 55, .45);

}

/* ==========================================
                CONTENT
========================================== */

.service-content {

    padding: 22px;

    text-align: center;

}

.service-content h3 {

    font-family: "Poppins", sans-serif;

    font-size: 1.15rem;

    color: #0A2342;

    transition: .3s;

    line-height: 1.5;

}

.service-card:hover .service-content h3 {

    color: #D4AF37;

}

/* ==========================================
                ANIMATION
========================================== */

.service-card {

    opacity: 1;

}

.service-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(to top,

            rgba(10, 35, 66, .18),

            rgba(10, 35, 66, 0));

    pointer-events: none;

}

/* ==========================================
                RESPONSIVE
========================================== */

@media(max-width:1200px) {

    .service-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

@media(max-width:992px) {

    .services {

        padding: 80px 0;

    }

    .service-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 25px;

    }

    .service-image img {

        height: 240px;

    }

}

@media(max-width:768px) {

    .services .section-title {

        font-size: 2.4rem;

    }

    .services .section-description {

        font-size: 1rem;

        margin-bottom: 45px;

    }

    .service-grid {

        gap: 20px;

    }

    .service-content {

        padding: 18px;

    }

    .service-content h3 {

        font-size: 1rem;

    }

    .service-number {

        width: 42px;

        height: 42px;

        font-size: .9rem;

    }

}

@media(max-width:576px) {

    .service-grid {

        grid-template-columns: 1fr;

    }

    .service-image img {

        height: 250px;

    }

    .services {

        padding: 70px 0;

    }

}

/* ==========================================================
                    CONTACT
========================================================== */

.contact {

    padding: 100px 0;

    background: linear-gradient(135deg,
            #0A2342 0%,
            #123663 50%,
            #0A2342 100%);

    position: relative;

    overflow: hidden;

}

.contact .container {

    position: relative;

    z-index: 2;

}

/* ===============================
        GRID
================================== */

.contact-grid {

    display: grid;

    grid-template-columns: repeat(5, minmax(210px, 1fr));

    gap: 22px;

    margin-bottom: 60px;

    align-items: stretch;

}

/* ===============================
        CARD
================================== */

.contact-card {

    background: #ffffff;

    border-radius: 22px;

    padding: 35px 25px;

    text-align: center;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);

    transition: .35s ease;

    border: 1px solid #edf1f5;

    min-height: 260px;

}

.contact-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);

}

/* ===============================
        ICON
================================== */

.contact-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #0A2342;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    transition: .35s;

}

.contact-card:hover .contact-icon {

    transform: scale(1.08) rotate(8deg);

}

/* ==========================================
        BRAND ICON COLOR
========================================== */

.contact-icon.phone {

    background: #0A2342;

}

.contact-icon.whatsapp {

    background: #25D366;

}

.contact-icon.facebook {

    background: #1877F2;

}

.contact-icon.location {

    background: #EA4335;

}

.contact-icon.instagram {

    background: linear-gradient(135deg,
            #F58529,
            #DD2A7B,
            #8134AF,
            #515BD4);

}

/* ===============================
        TEXT
================================== */

.contact-card h3 {

    font-family: "Poppins", sans-serif;

    font-size: 1.2rem;

    color: #0A2342;

    margin-bottom: 15px;

}

.contact-card p {

    color: #64748B;

    line-height: 1.8;

    font-size: .95rem;

}

.contact-card a {

    color: #64748B;

    text-decoration: none;

    transition: .3s;

    font-weight: 500;

    word-break: break-word;

}

.contact-card:hover a {

    color: #D4AF37;

}

/* ===============================
        BUTTON LINK
================================== */

.contact-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    color: #0A2342 !important;

    font-weight: 600 !important;

}

.contact-link:hover {

    color: #D4AF37 !important;

}

/* ===============================
        MAP
================================== */

.map-wrapper {

    overflow: hidden;

    border-radius: 25px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);

}

.map-wrapper iframe {

    width: 100%;

    height: 500px;

    display: block;

}

/* ===============================
        RESPONSIVE
================================== */

@media(max-width:1200px) {

    .contact-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

@media(max-width:992px) {

    .contact-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:768px) {

    .contact {

        padding: 80px 0;

    }

    .contact-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    .contact-card {

        padding: 30px 20px;

    }

    .contact-icon {

        width: 60px;

        height: 60px;

        font-size: 24px;

    }

    .map-wrapper iframe {

        height: 400px;

    }

}

@media(max-width:576px) {

    .map-wrapper iframe {

        height: 320px;

    }

}

/* ==========================================
        MOBILE SECTION SUBTITLE
========================================== */

@media (max-width:576px) {

    .section-subtitle {

        display: flex;

        justify-content: center;

        align-items: center;

        flex-wrap: nowrap;

        gap: 12px;

        font-size: .8rem;

        letter-spacing: 3px;

    }

    .section-subtitle::before,
    .section-subtitle::after {

        width: 40px;

        flex-shrink: 0;

    }

}