/* ==========================================
   Digital Business Card
   Shared Stylesheet
   ========================================== */


/* ==========================================
   Global Reset
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: #f3f5f7;

    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    line-height: 1.5;
}


/* ==========================================
   Main Container
   ========================================== */

.container {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;
    padding: 30px 20px;
}


/* ==========================================
   Header
   ========================================== */

header {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    display: block;

    width: 160px;
    max-width: 60%;
    height: auto;

    margin: 0 auto 20px;

    object-fit: contain;
}

h1 {
    margin: 0;

    color: #0077cc;

    font-size: 2.25rem;
    line-height: 1.2;
    text-align: center;
}

.tagline {
    margin: 10px 0 0;

    color: #666666;

    font-size: 1.05rem;
    text-align: center;
}


/* ==========================================
   Cards
   ========================================== */

.card {
    margin-bottom: 22px;
    padding: 25px;

    background: #ffffff;

    border: 1px solid #e8eaed;
    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;

    color: #0077cc;

    font-size: 1.4rem;

    border-bottom: 1px solid #e5e5e5;
}

.card p {
    margin: 0 0 16px;
}

.card p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   Buttons
   ========================================== */

.button {
    display: block;

    width: 100%;

    margin: 12px 0;
    padding: 15px 18px;

    background: #0077cc;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:first-of-type {
    margin-top: 0;
}

.button:last-of-type {
    margin-bottom: 0;
}

.button:hover {
    background: #005fa3;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.button:active {
    transform: translateY(0);
    box-shadow: none;
}

.button:focus-visible {
    outline: 3px solid rgba(0, 119, 204, 0.35);
    outline-offset: 3px;
}


/* ==========================================
   Payment Button
   ========================================== */

.payment-button {
    background: #0070ba;
}

.payment-button:hover {
    background: #005c99;
}


/* ==========================================
   Lists
   ========================================== */

ul {
    margin: 0;
    padding-left: 22px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

li:last-child {
    margin-bottom: 0;
}


/* ==========================================
   Business Hours
   ========================================== */

#business-hours p {
    margin-bottom: 18px;
}

#business-hours p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   Footer
   ========================================== */

.footer {
    margin-top: 35px;
    padding: 0 15px 30px;

    color: #666666;

    line-height: 1.7;
    text-align: center;
}

.footer p {
    margin: 0 0 20px;
}

.footer small {
    color: #888888;
    font-size: 0.9rem;
}


/* ==========================================
   Loading and Error Messages
   ========================================== */

.status-message {
    width: calc(100% - 40px);
    max-width: 700px;

    margin: 60px auto;
    padding: 30px 20px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    color: #666666;

    text-align: center;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.error-message {
    color: #9b1c1c;
}


/* ==========================================
   Hidden Elements
   ========================================== */

[hidden] {
    display: none !important;
}


/* ==========================================
   Mobile Devices
   ========================================== */

@media (max-width: 600px) {

    .container {
        padding: 20px 16px;
    }

    header {
        margin-bottom: 24px;
    }

    .logo {
        width: 140px;
        max-width: 65%;
        margin-bottom: 16px;
    }

    h1 {
        font-size: 1.9rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 18px;
        padding: 20px;

        border-radius: 12px;
    }

    .card h2 {
        margin-bottom: 16px;
        font-size: 1.3rem;
    }

    .button {
        padding: 16px;
        font-size: 1rem;
    }

    .status-message {
        width: calc(100% - 32px);

        margin-top: 35px;
        padding: 25px 18px;
    }

    .footer {
        margin-top: 28px;
        padding-bottom: 20px;
    }
}


/* ==========================================
   Very Small Phones
   ========================================== */

@media (max-width: 360px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .card {
        padding: 17px;
    }

    .button {
        padding-left: 12px;
        padding-right: 12px;

        font-size: 0.95rem;
    }

    .status-message {
        width: calc(100% - 24px);
    }
}


/* ==========================================
   Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }

    .button:hover {
        transform: none;
    }
}


/* ==========================================
   Printing
   ========================================== */

@media print {

    body {
        background: #ffffff;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .card {
        box-shadow: none;
        break-inside: avoid;
    }

    .button {
        color: #000000;
        background: #ffffff;

        border: 1px solid #cccccc;
    }
}
/* ==========================================
   Profile Photos and Icons
   ========================================== */

.profile-photo {
    display: block;

    width: 180px;
    height: 180px;

    margin: 0 auto 20px;

    border: 5px solid #ffffff;
    border-radius: 50%;

    object-fit: cover;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.large-icon {
    margin-bottom: 15px;

    font-size: 4rem;
    line-height: 1;
    text-align: center;
}


/* ==========================================
   Special Profile Cards
   ========================================== */

.urgent-card {
    border: 2px solid #d97706;
}

.emergency-card {
    border: 2px solid #b91c1c;
}

.centered-text {
    font-size: 1.1rem;
    text-align: center;
}

.secondary-button {
    background: #4b5563;
}

.secondary-button:hover {
    background: #374151;
}


/* ==========================================
   Emergency Contacts
   ========================================== */

.contact-block {
    margin-bottom: 25px;
    padding-bottom: 25px;

    border-bottom: 1px solid #e5e5e5;
}

.contact-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: none;
}

.contact-block h3 {
    margin: 0 0 5px;

    color: #333333;
    font-size: 1.15rem;
}

.contact-block p {
    margin: 0 0 12px;

    color: #666666;
}
