/* core styles import global defaults. */
/* core/style.css - keep minimal critical rules here. The large global stylesheet is loaded asynchronously from the base template to avoid render-blocking @import chains. */
:root{--brand:#0a58ca}
/* add any tiny critical rules needed for initial render (logo, nav layout) */
.yd-logo{display:inline-flex;align-items:center}
.yd-logo img{display:block;border:0}

.yd-portal-shell {
    padding: 32px 0 48px;
}

.yd-portal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 54%, #2563eb 100%);
    color: #fff;
    border-radius: 28px;
    padding: 28px 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    margin-bottom: 28px;
}

.yd-portal-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.yd-portal-hero-copy {
    flex: 1 1 420px;
}

.yd-portal-hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 8px;
    line-height: 1.1;
}

.yd-portal-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
}

.yd-portal-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.18);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
}

.yd-portal-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    display: block;
}

.yd-portal-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.2);
}

.yd-portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.yd-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.yd-portal-card,
.yd-portal-panel,
.yd-portal-form-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.yd-portal-card {
    display: block;
    padding: 22px 20px;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yd-portal-card:hover,
.yd-portal-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.12);
    text-decoration: none;
}

.yd-portal-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.yd-portal-card span {
    color: #475569;
    line-height: 1.5;
}

.yd-portal-card.highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #e0ecff 100%);
    border-color: rgba(59,130,246,0.18);
}

.yd-portal-card.danger {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: rgba(244, 63, 94, 0.18);
}

.yd-portal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.yd-portal-stat {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.yd-portal-stat h3 {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.yd-portal-stat p {
    margin: 0;
    color: #475569;
    font-weight: 600;
}

.yd-portal-panel,
.yd-portal-form-card {
    padding: 24px;
    margin-bottom: 22px;
}

.yd-portal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.yd-portal-panel-header h2,
.yd-portal-form-card h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #0f172a;
}

.yd-portal-panel-header a,
.yd-portal-form-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.yd-portal-section-note {
    margin: 0 0 20px;
    color: #475569;
}

.yd-portal-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.yd-portal-form-grid .form-group {
    margin-bottom: 0;
}

.yd-portal-form-card .form-group {
    margin-bottom: 18px;
}

.yd-portal-form-card input,
.yd-portal-form-card select,
.yd-portal-form-card textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    font: inherit;
}

.yd-portal-form-card input:focus,
.yd-portal-form-card select:focus,
.yd-portal-form-card textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.yd-portal-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.yd-portal-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.yd-portal-btn-primary,
.yd-portal-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.yd-portal-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.yd-portal-btn-secondary {
    background: #ffffff;
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.2);
}

.yd-portal-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(250, 204, 21, 0.18);
    color: #7c4700;
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.yd-portal-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.yd-portal-profile-card {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.yd-portal-profile-card .yd-portal-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    display: block;
}

.yd-portal-profile-card .yd-portal-avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    font-size: 2rem;
}

.yd-portal-profile-meta {
    text-align: center;
}

.yd-portal-profile-meta h3 {
    margin: 0 0 6px;
}

.yd-portal-profile-meta p {
    margin: 0;
    color: #475569;
}

@media (max-width: 1000px) {
    .yd-header {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .yd-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        order: 3;
    }

    .yd-menu.active {
        display: flex !important;
    }

    .yd-header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        gap: 8px !important;
    }

    .yd-portal-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .yd-header {
        flex-wrap: nowrap !important;
    }

    .yd-portal-shell {
        padding-top: 18px;
    }

    .yd-portal-hero {
        padding: 22px 18px;
    }

    .yd-portal-hero-inner {
        align-items: flex-start;
    }
}

.testimonials-live-section {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.testimonials-live-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 24px;
    align-items: start;
}

.testimonial-summary-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.testimonial-summary-card h2 {
    margin: 12px 0 10px;
    font-size: 1.7rem;
}

.testimonial-summary-card p {
    color: #475569;
    line-height: 1.6;
}

.testimonial-summary-stats {
    display: flex;
    gap: 16px;
    margin: 18px 0 20px;
}

.testimonial-summary-stats div {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.testimonial-summary-stats strong {
    display: block;
    font-size: 1.2rem;
    color: #0f172a;
}

.testimonial-summary-stats span {
    color: #64748b;
    font-size: 0.9rem;
}

.testimonial-review-stack {
    display: grid;
    gap: 16px;
}

.testimonial-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.testimonial-rating {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
}

.testimonial-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.testimonial-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0f4c9d;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .testimonials-live-shell {
        grid-template-columns: 1fr;
    }
}

.home-services-section {
    padding: 88px 0 72px;
    background: var(--white);
}

.home-services-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.home-services-eyebrow,
.home-services-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--secondary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-services-header h2 {
    margin-bottom: 14px;
    color: var(--dark);
}

.home-services-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home-services-card {
    display: flex;
    height: 100%;
    animation: fade-up 0.7s ease both;
}

.home-services-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-services-card-link:hover,
.home-services-card-link:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.home-services-card-link:hover .home-services-iconwrap img,
.home-services-card-link:focus-visible .home-services-iconwrap img {
    transform: scale(1.06);
}

.home-services-card-link:hover .home-services-button,
.home-services-card-link:focus-visible .home-services-button {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.18);
}

.home-services-iconwrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.04));
}

.home-services-iconwrap img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.home-services-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.home-services-card p {
    margin-bottom: 16px;
    color: var(--gray);
}

.home-services-features {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.home-services-features li {
    position: relative;
    padding-left: 18px;
    color: var(--gray);
    font-size: 0.95rem;
}

.home-services-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: 700;
}

.home-services-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    font-weight: 700;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.home-services-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.home-services-card-link:hover .home-services-button::before,
.home-services-card-link:focus-visible .home-services-button::before {
    animation: button-ripple 0.5s ease-out;
}

.home-services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
    padding: 32px 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f6fffa 0%, #f0fff7 100%);
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.home-services-cta h3 {
    margin: 0;
    color: var(--dark);
}

.home-services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-process-section {
    padding: 0 0 72px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-process-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-process-header h2 {
    margin-bottom: 14px;
    color: var(--dark);
}

.home-process-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-process-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: fade-up 0.7s ease both;
}

.home-process-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), rgba(16, 185, 129, 0.2));
}

.home-process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
    border-color: rgba(16, 185, 129, 0.24);
}

.home-process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14);
}

.home-process-card h3 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.05rem, 1.15rem + 0.3vw, 1.4rem);
}

.home-process-card p {
    margin: 0;
    color: var(--gray);
}

.home-services-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.home-services-cta-btn:hover,
.home-services-cta-btn:focus-visible {
    transform: translateY(-2px);
}

.home-services-cta-btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.home-services-cta-btn-secondary {
    background: var(--white);
    color: var(--secondary);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes button-ripple {
    0% {
        transform: scaleX(0);
        opacity: 0.7;
    }
    100% {
        transform: scaleX(1.15);
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .home-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-services-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-process-grid,
    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-services-section {
        padding: 72px 0 56px;
    }

    .home-services-card-link {
        padding: 24px;
    }

    .home-services-cta {
        padding: 24px;
    }

    .home-services-cta-actions {
        width: 100%;
    }

    .home-services-cta-btn {
        flex: 1 1 100%;
    }
}
