
:root {
    --brand-blue: #003da5;
    --brand-blue-dark: #002d7a;
    --whatsapp-green: #25D366;
    --linkedin-blue: #0A66C2;
    --background: #f2f4f7;
    --text: #172b3a;
    --muted: #667085;
    --border: #e5e7eb;
    --white: #ffffff;
}

/* =========================================
   GENERAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* =========================================
   EMPLOYEE PROFILE PAGE
========================================= */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 35px 16px 20px;
}

/* Main white profile card */

.card {
    width: 100%;
    max-width: 460px;
    padding: 28px 26px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(23, 43, 58, 0.07);
}

/* =========================================
   COMPANY BRANDING
========================================= */

.brand-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 22px;
}

.company-logo {
    display: block;
    width: 100%;
    max-width: 340px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.brand-divider {
    height: 1px;
    width: 100%;
    background: var(--border);
    margin: 0 0 25px;
}

/* =========================================
   EMPLOYEE PROFILE HEADER
========================================= */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Employee photograph */

.portrait {
    display: block;
    width: 100%;
    aspect-ratio: 2048 / 1193;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin: 0 auto 20px;
}

/* Fallback when no photograph is uploaded */

.portrait.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8edf5;
    color: var(--brand-blue);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Name and position */

.profile-heading {
    width: 100%;
    text-align: center;
}

.profile-heading h1 {
    margin: 0;
    color: var(--brand-blue);
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}

.position {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
}

.location {
    margin: 7px 0 0;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.details {
    margin-top: 25px;
    border-top: 1px solid var(--border);
}

.detail {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.detail:last-child {
    border-bottom: none;
}

/* Contact icons */

.icon {
    display: flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--brand-blue);
}

.icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Contact text */

.detail-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.detail-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.detail-value {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

a.detail:hover .detail-value {
    color: var(--brand-blue);
}

.detail.address {
    cursor: default;
}

/* =========================================
   ACTION BUTTONS
========================================= */

.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button svg {
    display: block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Save Contact */

.button.primary {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--white);
}

.button.primary:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    transform: translateY(-1px);
}

/* =========================================
   SECONDARY SOCIAL BUTTONS
========================================= */


.social-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.social-button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 12px 8px;
    text-align: center;
}

/* Two available buttons */
.social-actions.buttons-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Only one available button */
.social-actions.buttons-1 {
    grid-template-columns: 1fr;
}

@media (max-width: 420px) {
    .social-actions {
        gap: 6px;
    }

    .social-button {
        padding: 11px 4px;
        gap: 4px;
        font-size: 12px;
    }

    .social-logo {
        width: 17px;
        height: 17px;
    }
}

.social-button:hover {
    transform: translateY(-2px);
}

/* Company brochure */

.brochure-button {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.brochure-button:hover {
    background: #f0f5ff;
}

.brochure-button svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

/* WhatsApp */

.whatsapp-button {
    color: #168b45;
    border-color: var(--whatsapp-green);
}

.whatsapp-button:hover {
    background: #effdf4;
}

/* LinkedIn */

.linkedin-button {
    color: var(--linkedin-blue);
    border-color: var(--linkedin-blue);
}

.linkedin-button:hover {
    background: #eff6ff;
}

/* Social media logo images */

.social-logo {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

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

.page-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 22px;
    padding-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: center;
}

.page-footer span:first-child {
    color: var(--brand-blue);
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* =========================================
   LANDING PAGE
========================================= */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--background);
    text-align: center;
}

.landing-logo {
    display: block;
    width: 100%;
    max-width: 380px;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.landing-subtitle {
    margin: 24px 0 0;
    color: var(--brand-blue);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

@media (max-width: 480px) {

    .page {
        padding: 15px 10px 12px;
    }

    .card {
        padding: 23px 18px;
        border-radius: 13px;
    }

    .company-logo {
        max-width: 300px;
        max-height: 90px;
    }

    .brand-area {
        margin-bottom: 18px;
    }

    .brand-divider {
        margin-bottom: 22px;
    }

    .profile-heading h1 {
        font-size: 24px;
    }

    .position {
        font-size: 14px;
    }

    .detail {
        gap: 11px;
        padding: 12px 1px;
    }

    .detail-value {
        font-size: 13px;
    }

    .social-actions {
        gap: 6px;
    }

    .social-button {
        min-height: 74px;
        padding: 9px 3px;
        font-size: 10px;
    }

    .social-logo {
        width: 22px;
        height: 22px;
    }

    .landing-logo {
        max-width: 300px;
        max-height: 100px;
    }

    .landing-subtitle {
        font-size: 13px;
        letter-spacing: 1.5px;
    }
}
