
/* ==============================
   IMDA DIGITAL BUSINESS CARDS
============================== */

.nfc-card-page {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 18px 40px;
    font-family: inherit;
}

.nfc-card-container {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Card photo */
.nfc-card-cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* Company logo */
.nfc-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: -50px auto 10px;
    position: relative;
    display: block;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
}

/* Main information */
.nfc-card-content {
    padding: 20px 24px 30px;
    text-align: center;
}

.nfc-card-content h1 {
    font-size: 23px;
    margin-bottom: 8px;
    color: #202020;
}

.nfc-card-role {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

.nfc-card-service {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Contact buttons */
.nfc-card-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.nfc-card-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #f0f2f5;
    color: #222;
    transition: background 0.2s ease;
}

.nfc-card-actions a:hover {
    background: #e0e5ec;
}

/* Save contact */
.nfc-save-contact {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #1c2537;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nfc-save-contact:hover {
    background: #303d54;
}

/* Mobile layout */
@media (max-width: 600px) {
    .nfc-card-page {
        margin: 15px auto;
        padding: 0 12px 30px;
    }

    .nfc-card-cover {
        height: 165px;
    }

    .nfc-card-content {
        padding: 18px;
    }
}

.nfc-card-profile {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin: -65px auto 12px;
    display: block;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.nfc-card-small-logo {
    width: 85px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
}

.nfc-card-contact-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.nfc-card-contact-info p {
    margin: 4px 0;
}

/* Cover for cards without photographs */

.nfc-card-cover-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #101827,
        #1f3655
    );
    color: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==============================
   NFC CARD — MOBILE IMPROVEMENTS
============================== */

@media (max-width: 600px) {

    /* Reduce space around the card */
    .nfc-card-page {
        margin: 10px auto;
        padding: 0 12px 25px;
    }

    /* Shorter cover photo */
    .nfc-card-cover {
        height: 140px;
        object-fit: cover;
        object-position: center;
    }

    /* Smaller profile photo */
    .nfc-card-profile {
        width: 110px;
        height: 110px;
        margin: -55px auto 10px;
        border: 4px solid #ffffff;
    }

    /* Smaller company logo */
    .nfc-card-small-logo {
        width: 70px;
        margin-bottom: 8px;
    }

    /* Reduce spacing */
    .nfc-card-content {
        padding: 15px 18px 25px;
    }

    .nfc-card-content h1 {
        font-size: 21px;
        margin-bottom: 5px;
    }

    .nfc-card-role {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .nfc-card-content h2 {
        font-size: 21px;
        margin-bottom: 5px;
    }

    .nfc-card-service {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .nfc-card-contact-info {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .nfc-card-actions {
        gap: 8px;
    }

    .nfc-card-actions a {
        padding: 12px 8px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* Centre Facebook when it is the last button */
.nfc-card-actions a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 6px);
}


/* ==============================
   NFC PAGES — COMPACT MOBILE HEADER
============================== */

@media (max-width: 600px) {

    /* Smaller header */
    body.nfc-page .site-header {
        position: relative;
    }

    body.nfc-page .header-container {
        padding: 8px 15px;
        gap: 10px;
        justify-content: space-between;
    }

    /* Smaller company logo */
    body.nfc-page .logo-link {
        width: 125px;
        flex-shrink: 1;
    }

    body.nfc-page .site-logo {
        width: 100%;
        height: auto;
    }

    /* Hide full navigation on NFC pages */
    body.nfc-page .main-nav {
        display: none;
    }

    /* Compact quote button */
    body.nfc-page .quote-btn {
        padding: 9px 13px;
        font-size: 12px;
        border-radius: 20px;
    }
}
