/* ============================================================
   Pro-TechT Digital Business Card — Shared Stylesheet
   Brand kit reference:
     Mirage         #111628   primary dark
     Folkstone Grey #5F667B   muted text
     White          #FFFFFF
     Platinum Gray  #D9DADF   light borders / dividers
     Alabaster      #EFEDE8   off-white text & surfaces
     Outer Space    #414451   secondary dark surface
     Orange         #FF6600   accent
   Typography: Manrope (locally bundled — used as Satoshi substitute
   since Satoshi is not openly redistributable. Manrope is the
   closest free, geometric, humanist sans available.)
   ============================================================ */

/* ---------- Locally-bundled font ---------- */
@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/manrope-variable.woff2") format("woff2-variations"),
         url("/assets/fonts/manrope-variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Brand tokens ---------- */
:root {
    --mirage:        #111628;
    --folkstone:     #5F667B;
    --platinum:      #D9DADF;
    --alabaster:     #EFEDE8;
    --outer-space:   #414451;
    --orange:        #FF6600;
    --white:         #FFFFFF;

    --card-radius:   20px;
    --card-max:      420px;
    --shadow:        0 24px 60px rgba(0, 0, 0, 0.45);
    --inner-radius:  14px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--mirage);
    color: var(--alabaster);
    min-height: 100vh;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-4);
    background-image: radial-gradient(circle at 20% 0%, rgba(255, 102, 0, 0.10), transparent 55%),
                      radial-gradient(circle at 80% 100%, rgba(95, 102, 123, 0.18), transparent 50%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- Card ---------- */
.card {
    width: 100%;
    max-width: var(--card-max);
    background: linear-gradient(180deg, #161C32 0%, #111628 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(217, 218, 223, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 35%, var(--folkstone) 100%);
}

/* ---------- Header (photo + name) ---------- */
.card-header {
    padding: var(--space-7) var(--space-5) var(--space-5);
    text-align: center;
    position: relative;
}

.photo-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--space-5);
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--orange) 0%, rgba(255, 102, 0, 0.2) 100%);
    box-shadow: 0 8px 28px rgba(255, 102, 0, 0.25);
}

.photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--outer-space);
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--outer-space);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alabaster);
    font-weight: 800;
    font-size: 42px;
    letter-spacing: 1px;
}

.name {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--alabaster);
}

.title {
    margin-top: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--orange);
}

.company {
    margin-top: var(--space-3);
    font-size: 13px;
    font-weight: 500;
    color: var(--folkstone);
    letter-spacing: 0.04em;
}

/* ---------- Divider ---------- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 218, 223, 0.18), transparent);
    margin: 0 var(--space-5);
}

/* ---------- Contact rows ---------- */
.contacts {
    padding: var(--space-5);
    display: grid;
    gap: var(--space-3);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(217, 218, 223, 0.06);
    border-radius: var(--inner-radius);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    color: var(--alabaster);
    min-height: 56px;
}

.contact-row:hover,
.contact-row:active {
    background: rgba(255, 102, 0, 0.08);
    border-color: rgba(255, 102, 0, 0.35);
    transform: translateY(-1px);
}

.contact-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mirage);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.contact-body {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--folkstone);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--alabaster);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Logo block ---------- */
.logo-block {
    padding: var(--space-4) var(--space-5);
    text-align: center;
}

.logo-block a {
    display: inline-block;
    line-height: 0;
}

.logo-block img {
    width: 260px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- QR code ---------- */
.qr-block {
    padding: var(--space-4) var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.qr-code {
    width: 140px;
    height: 140px;
    padding: 10px;
    background: var(--alabaster);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.qr-code svg {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-caption {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--folkstone);
}

/* ---------- Socials ---------- */
.socials {
    padding: 0 var(--space-5) var(--space-6);
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(217, 218, 223, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alabaster);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--mirage);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--space-4) var(--space-5) var(--space-5);
    text-align: center;
    border-top: 1px solid rgba(217, 218, 223, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

.footer-address {
    font-size: 12px;
    font-weight: 500;
    color: var(--folkstone);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.footer-address a {
    color: var(--folkstone);
    border-bottom: 1px dotted rgba(95, 102, 123, 0.4);
}

.footer-address a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ---------- Save contact button ---------- */
.cta-row {
    padding: 0 var(--space-5) var(--space-5);
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4);
    background: var(--orange);
    color: var(--mirage);
    border: none;
    border-radius: var(--inner-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.30);
}

.cta-button:hover,
.cta-button:active {
    background: #ff7a1f;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 102, 0, 0.40);
}

.cta-button svg { width: 18px; height: 18px; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    body { padding: var(--space-7) var(--space-5); }
    .name { font-size: 30px; }
    .photo-wrap { width: 160px; height: 160px; }
    .qr-code { width: 160px; height: 160px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        anima