/* ========================================
   LINK IN BIO PAGE - @retirewithdom
   Heritage Life Solutions
   Mobile-first, standalone design
   ======================================== */

:root {
    --lib-primary: #3CADD4;
    --lib-secondary: #00A651;
    --lib-navy: #1E3A5F;
    --lib-gold: #ffd108;
    --lib-white: #FFFFFF;
    --lib-light: #F5F5F5;
    --lib-dark-bg: linear-gradient(135deg, #1E3A5F 0%, #0f1f33 100%);
    --lib-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--lib-font);
    background: var(--lib-dark-bg);
    min-height: 100vh;
    color: var(--lib-white);
}

.lib-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

/* ========================================
   PROFILE SECTION
   ======================================== */
.lib-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.lib-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--lib-primary);
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(60, 173, 212, 0.3);
}

.lib-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--lib-white);
}

.lib-handle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--lib-primary);
    margin-bottom: 0.5rem;
}

.lib-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ========================================
   FEATURED SECTION (Free eBook)
   ======================================== */
.lib-featured {
    margin-bottom: 1.5rem;
}

.lib-featured-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 209, 8, 0.15) 0%, rgba(255, 209, 8, 0.05) 100%);
    border: 2px solid var(--lib-gold);
    text-decoration: none;
    color: var(--lib-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lib-featured-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 8, 0.1), transparent);
    transition: left 0.5s ease;
}

.lib-featured-link:hover::before {
    left: 100%;
}

.lib-featured-link:hover {
    background: linear-gradient(135deg, rgba(255, 209, 8, 0.25) 0%, rgba(255, 209, 8, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 209, 8, 0.2);
}

.lib-featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--lib-gold);
    border-radius: 10px;
    flex-shrink: 0;
}

.lib-featured-icon svg {
    stroke: var(--lib-navy);
}

.lib-featured-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lib-featured-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lib-gold);
}

.lib-featured-text small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.lib-featured-badge {
    background: var(--lib-gold);
    color: var(--lib-navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.lib-services {
    margin-bottom: 2rem;
}

.lib-section-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 1.25rem;
}

.lib-service-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--lib-white);
    transition: all 0.3s ease;
}

.lib-service-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(60, 173, 212, 0.3);
    transform: translateX(4px);
}

.lib-service-link:hover .lib-service-arrow {
    color: var(--lib-primary);
}

.lib-service-card {
    margin-bottom: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lib-service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(60, 173, 212, 0.3);
}

.lib-service-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--lib-white);
    transition: all 0.3s ease;
}

.lib-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--lib-primary);
    border-radius: 10px;
    flex-shrink: 0;
}

.lib-service-icon svg {
    stroke: var(--lib-white);
}

.lib-service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lib-service-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lib-white);
}

.lib-service-text small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.lib-service-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.lib-service-toggle[aria-expanded="true"] .lib-service-arrow {
    transform: rotate(180deg);
    color: var(--lib-primary);
}

.lib-service-toggle[aria-expanded="true"] {
    background: rgba(60, 173, 212, 0.1);
}

/* Service Form (collapsible) */
.lib-service-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.lib-service-form.open {
    max-height: 800px;
    padding: 1.25rem;
}

.lib-form-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   SCHEDULE CALL SECTION
   ======================================== */
.lib-call-section {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.lib-call-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.lib-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--lib-primary);
    border-radius: 50px;
    color: var(--lib-primary);
    font-family: var(--lib-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lib-call-btn:hover {
    background: var(--lib-primary);
    color: var(--lib-white);
}

.lib-call-btn svg {
    stroke: currentColor;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.lib-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lib-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--lib-white);
    transition: all 0.3s ease;
}

.lib-social a:hover {
    background: var(--lib-primary);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.lib-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lib-footer-logo {
    height: 40px;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.lib-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   RESPONSIVE - Larger screens
   ======================================== */
@media (min-width: 520px) {
    .lib-page {
        padding: 3rem 2rem 4rem;
    }

    .lib-avatar {
        width: 130px;
        height: 130px;
    }

    .lib-name {
        font-size: 1.75rem;
    }

    .lib-service-toggle {
        padding: 1.25rem 1.5rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lib-service-card {
    animation: fadeIn 0.4s ease forwards;
}

.lib-service-card:nth-child(2) { animation-delay: 0.1s; }
.lib-service-card:nth-child(3) { animation-delay: 0.2s; }
.lib-service-card:nth-child(4) { animation-delay: 0.3s; }
.lib-service-card:nth-child(5) { animation-delay: 0.4s; }

/* ========================================
   BOOKING PAGE (Thank You / Calendar)
   ======================================== */
.lib-booking-page {
    padding-top: 2.5rem;
}

.lib-booking-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lib-white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.lib-booking-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

.lib-calendar-section {
    background: var(--lib-white);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 400px;
}

.lib-calendar-section iframe {
    border-radius: 8px;
    min-height: 400px;
}

.lib-back-section {
    text-align: center;
    margin-bottom: 2rem;
}

.lib-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.lib-back-link:hover {
    color: var(--lib-primary);
}

.lib-back-link svg {
    stroke: currentColor;
}

@media (min-width: 520px) {
    .lib-booking-title {
        font-size: 1.75rem;
    }

    .lib-calendar-section {
        padding: 1.5rem;
    }
}

/* ========================================
   FORM PAGE (Standalone Form)
   ======================================== */
.lib-form-page {
    padding-top: 2.5rem;
}

.lib-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lib-white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.lib-form-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

.lib-form-section {
    background: var(--lib-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.lib-form-section iframe {
    border-radius: 8px;
}

@media (min-width: 520px) {
    .lib-form-title {
        font-size: 1.75rem;
    }

    .lib-form-section {
        padding: 2rem;
    }
}
