/* ===================================
   GoSeva Website - Additional Styles
   Lightbox, Animations, and Extras
   =================================== */

/* Lightbox
   ======== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox--active {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 36px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

/* Certificate Display
   =================== */
.certificate {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.certificate__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
}

.certificate__download {
    margin-top: var(--spacing-md);
}

/* Content Section
   =============== */
.content-section {
    padding: var(--spacing-xl) 0;
}

.content-section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.content-section__title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
}

.content-section__subtitle {
    font-size: var(--font-size-body-large);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.content-section__body {
    max-width: 750px;
    margin: 0 auto;
}

.content-section__body p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.content-section__body h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-section__body ul,
.content-section__body ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.content-section__body li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* Prevent body scroll when menu is open
   ===================================== */
body.menu-open {
    overflow: hidden;
}

/* Header scrolled state
   ===================== */
.header--scrolled {
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-md);
}

/* Print Styles
   ============ */
@media print {

    .header,
    .footer,
    .nav__toggle,
    .back-to-top,
    .social-share {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Accessibility
   ============= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus Styles
   ============ */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}