/* Explain: Styles for site components, including hero slideshow animations and navigation. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.72));
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 34px rgba(31, 46, 70, 0.09);
}

.site-header nav > div > a:not(.btn).is-current {
    color: var(--primary-color);
}

.site-header nav > div > a:not(.btn).is-current::after {
    transform: scaleX(1);
}

.mobile-nav-overlay .nav-close-link.is-current {
    background: var(--surface-color);
    padding-left: 0.9rem;
}

.mobile-nav-overlay .nav-close-link.is-current span {
    color: var(--primary-color);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 2px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.85), rgba(255, 255, 255, 0.55));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.card-surface {
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: rgba(250, 249, 246, 0.72);
    box-shadow: var(--shadow-soft);
}

.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.75rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(88, 129, 187, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 70, 0.12);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    width: 3.4rem;
    height: 3.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.4rem;
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.project-card.hidden {
    display: none;
}

.project-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.project-card:hover .project-media img {
    transform: scale(1.06);
}

.project-view-overlay {
    opacity: 0;
    transition: opacity 300ms ease;
}

.project-view-btn {
    transform: scale(0.5);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-view-overlay {
    opacity: 1;
}

.project-card:hover .project-view-btn {
    transform: scale(1);
}

.project-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    border-radius: 999px;
    background: rgba(31, 46, 35, 0.72);
    padding: 0.35rem 0.85rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    backdrop-filter: blur(6px);
}

.stat-card {
    border-radius: 1.5rem;
    padding: 1.6rem;
    text-align: center;
}

.stat-value {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.72);
    padding: 0.6rem 1.1rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.process-step {
    height: 100%;
    border-radius: 1.75rem;
    padding: 2rem;
}

.process-index {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.value-card {
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.7);
    padding: 1.75rem;
}

.quote-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.75rem;
    padding: 2rem;
}

.team-card {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: rgba(250, 249, 246, 0.72);
    box-shadow: var(--shadow-soft);
}

.team-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.team-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-dark) 100%);
    color: #ffffff;
}

.filter-button {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.7);
    padding: 0.6rem 1.35rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 250ms ease;
}

.filter-button:hover {
    border-color: var(--primary-color);
}

.filter-button.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.9rem;
}

.form-status.success {
    color: #3a5a40;
}

.form-status.error {
    color: #9b4a3d;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.66);
    padding: 1.25rem;
}

.detail-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    min-height: 100dvh;
    flex-direction: column;
    overflow-y: auto;
    background: var(--background-color);
    color: var(--text-color);
}

.mobile-nav-overlay.is-open {
    display: flex;
}

.policy-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.72);
    box-shadow: var(--shadow-soft);
}

.policy-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    list-style: none;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 600;
    transition: color 250ms ease;
}

.policy-item > summary::-webkit-details-marker {
    display: none;
}

.policy-item[open] > summary {
    color: var(--primary-color);
}

.policy-chevron {
    transition: transform 250ms ease;
}

.policy-item[open] .policy-chevron {
    transform: rotate(180deg);
}

.chatbot-root {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
    font-family: var(--font-body);
}

.chatbot-toggle {
    position: relative;
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: var(--shadow-button);
    transition: transform 300ms ease, background 300ms ease;
}

.chatbot-toggle:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

.chatbot-toggle::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 999px;
    border: 2px solid var(--primary-color);
    content: "";
    animation: chatbotPulse 2.8s infinite ease-out;
    pointer-events: none;
}

.chatbot-root.is-open .chatbot-toggle::before {
    display: none;
}

@keyframes chatbotPulse {
    0% {
        opacity: 0.55;
        transform: scale(0.9);
    }
    70%,
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

.chatbot-toggle-label {
    display: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .chatbot-toggle {
        width: auto;
        padding: 0 1.3rem 0 1.1rem;
    }

    .chatbot-toggle-label {
        display: inline;
    }

    .chatbot-root.is-open .chatbot-toggle-label {
        display: none;
    }
}

.chatbot-online-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: #7ee08a;
    box-shadow: 0 0 0 3px rgba(126, 224, 138, 0.25);
}

.chatbot-toggle-icon-close {
    display: none;
}

.chatbot-root.is-open .chatbot-toggle-icon-open {
    display: none;
}

.chatbot-root.is-open .chatbot-toggle-icon-close {
    display: inline;
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.9rem);
    display: none;
    width: min(92vw, 23rem);
    max-height: min(75vh, 34rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: var(--background-color);
    box-shadow: 0 26px 80px rgba(31, 46, 70, 0.22);
}

.chatbot-panel.is-open {
    display: flex;
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-dark) 100%);
    padding: 0.9rem 1rem;
    color: #ffffff;
}

.chatbot-header-icon {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.05rem;
}

.chatbot-header-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.chatbot-header-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-header-sub {
    font-size: 0.72rem;
    opacity: 0.85;
}

.chatbot-close {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transition: background 250ms ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-body {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
}

.chatbot-msg {
    display: flex;
}

.chatbot-msg-user {
    justify-content: flex-end;
}

.chatbot-bubble {
    max-width: 86%;
    border-radius: 1rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatbot-msg-user .chatbot-bubble {
    border-bottom-right-radius: 0.25rem;
    background: var(--primary-color);
    color: #ffffff;
}

.chatbot-msg-assistant .chatbot-bubble {
    border-bottom-left-radius: 0.25rem;
    background: var(--surface-color);
    color: var(--text-color);
}

.chatbot-msg-error .chatbot-bubble {
    background: rgba(155, 74, 61, 0.12);
    color: #9b4a3d;
}

.chatbot-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 250ms ease;
}

.chatbot-link:hover {
    color: var(--sage-dark);
}

.chatbot-msg-user .chatbot-link {
    color: #ffffff;
}

.chatbot-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.chatbot-typing span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--text-muted);
    animation: chatbotBlink 1.2s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatbotBlink {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-top: 1px solid var(--glass-border);
    padding: 0.75rem 1rem 0;
}

.chatbot-suggestions.is-hidden {
    display: none;
}

.chatbot-chip {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.7);
    padding: 0.4rem 0.75rem;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 250ms ease;
}

.chatbot-chip:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.chatbot-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}

.chatbot-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.6rem 0.9rem;
    color: var(--text-color);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.chatbot-send {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    transition: background 250ms ease, opacity 250ms ease;
}

.chatbot-send:hover {
    background: var(--sage-dark);
}

.chatbot-send:disabled {
    opacity: 0.6;
}

/* Google Translate Widget Overrides */
.goog-te-gadget {
    font-family: var(--font-body) !important;
    font-size: 0 !important;
    color: transparent !important;
}
.goog-te-gadget .goog-te-combo {
    min-height: 2rem !important;
    margin: 0 !important;
    padding: 0.3rem 1.7rem 0.3rem 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 999px !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    background-size: 0.5rem auto !important;
}

.goog-te-gadget .goog-te-combo:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background-color: rgba(255, 255, 255, 0.24) !important;
}

.goog-te-gadget .goog-te-combo:focus-visible {
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
}
.goog-te-gadget .goog-te-combo option {
    background: var(--background-color) !important;
    color: var(--text-color) !important;
}
.goog-logo-link,
.goog-te-gadget span,
.goog-te-banner-frame.skiptranslate,
.skiptranslate > iframe {
    display: none !important;
}
body {
    top: 0 !important;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .chatbot-panel {
        width: min(94vw, 23rem);
        max-height: min(70vh, 32rem);
    }
}

/* Animated hero background slideshow — the whole strip scrolls left/right */
.hero-slideshow {
    overflow: hidden;
    background: var(--sage-dark);
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1000ms cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    z-index: 1;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.16) translate3d(-2.2%, -1.4%, 0);
    }
}

/* Slide rotation is driven by JavaScript toggling the .is-active class. */

/* Continuous slow push-in with a gentle leftward drift */
@keyframes heroMotionZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    4% {
        opacity: 1;
    }
    25% {
        opacity: 1;
        transform: scale(1.16) translate3d(-1.6%, -0.6%, 0);
    }
    30% {
        opacity: 0;
        transform: scale(1.18) translate3d(-2%, -0.8%, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.18) translate3d(-2%, -0.8%, 0);
    }
}

/* Slow pull-back that settles the frame */
@keyframes heroMotionZoomOut {
    0% {
        opacity: 0;
        transform: scale(1.18) translate3d(1%, 0.6%, 0);
    }
    4% {
        opacity: 1;
    }
    25% {
        opacity: 1;
        transform: scale(1.02) translate3d(-0.8%, 0, 0);
    }
    30% {
        opacity: 0;
        transform: scale(1) translate3d(-1%, 0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1) translate3d(-1%, 0, 0);
    }
}

/* Cinematic left-to-right sweep */
@keyframes heroMotionPanLeft {
    0% {
        opacity: 0;
        transform: scale(1.14) translate3d(3.4%, 0, 0);
    }
    4% {
        opacity: 1;
    }
    25% {
        opacity: 1;
        transform: scale(1.15) translate3d(-3%, 0, 0);
    }
    30% {
        opacity: 0;
        transform: scale(1.16) translate3d(-3.6%, 0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.16) translate3d(-3.6%, 0, 0);
    }
}

/* Right-to-left sweep with a subtle diagonal lift */
@keyframes heroMotionPanRight {
    0% {
        opacity: 0;
        transform: scale(1.12) translate3d(-3.2%, 1.2%, 0);
    }
    4% {
        opacity: 1;
    }
    25% {
        opacity: 1;
        transform: scale(1.16) translate3d(3%, -1%, 0);
    }
    30% {
        opacity: 0;
        transform: scale(1.17) translate3d(3.6%, -1.4%, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.17) translate3d(3.6%, -1.4%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-track {
        transition: none;
    }

    .hero-slide-single {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Single-image hero with a continuous Ken Burns drift */
.hero-slide-single {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform-origin: center center;
    animation: heroMotionSingle 36s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes heroMotionSingle {
    0% {
        transform: scale(1.03) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.16) translate3d(-2.2%, -1.2%, 0);
    }
}

.hero-single-motion {
    animation: heroMotionPanRight 32s infinite ease-in-out alternate !important;
    will-change: transform;
    backface-visibility: hidden;
}

.motion-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-single-motion {
        animation: none !important;
    }
    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Floating WhatsApp quick-contact button */
.whatsapp-float {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 70;
    display: inline-flex;
    min-height: 3.5rem;
    align-items: center;
    gap: 0.6rem;
    border-radius: 999px;
    background: #25D366;
    padding: 0 1.25rem 0 1.1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.42);
    transition: transform 300ms ease, background 300ms ease, box-shadow 300ms ease;
}

.whatsapp-float i {
    font-size: 1.7rem;
    line-height: 1;
}

.whatsapp-float .whatsapp-float-label {
    display: none;
    white-space: nowrap;
}

.whatsapp-float:hover {
    background: #1EBE5A;
    box-shadow: 0 22px 46px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

.whatsapp-float:active {
    transform: translateY(0) scale(0.98);
}

@media (min-width: 640px) {
    .whatsapp-float .whatsapp-float-label {
        display: inline;
    }
}

@media (max-width: 639px) {
    .whatsapp-float {
        width: 3.5rem;
        justify-content: center;
        padding: 0;
    }
}

/* Certification document preview */
.certificate-embed {
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.certificate-embed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    transition: color 250ms ease;
}

.certificate-embed-toggle::-webkit-details-marker {
    display: none;
}

.certificate-embed-toggle:hover {
    color: var(--sage-dark);
}

.certificate-frame {
    width: 100%;
    height: 24rem;
    margin-top: 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--background-color);
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float:hover,
    .whatsapp-float:active {
        transform: none;
    }
}

/* Certificate gallery — image cards with captions */
.certificate-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.75rem;
    padding: 1.35rem;
}

.certificate-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.certificate-thumb img {
    width: 100%;
    height: auto;
    max-height: 30rem;
    object-fit: contain;
    border-radius: 0.6rem;
}

.certificate-thumb:hover {
    border-color: var(--primary-color);
    box-shadow: 0 26px 70px rgba(16, 28, 56, 0.16);
    transform: translateY(-5px);
}

.certificate-thumb:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.certificate-zoom {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: rgba(22, 36, 58, 0.82);
    padding: 0.35rem 0.75rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.certificate-thumb:hover .certificate-zoom,
.certificate-thumb:focus-visible .certificate-zoom {
    opacity: 1;
    transform: translateY(0);
}

.certificate-caption {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 1.25rem;
}

.certificate-chip {
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 0.9rem;
    border-radius: 0.9rem;
    font-size: 1.15rem;
}

.certificate-code {
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.certificate-title {
    margin-top: 0.35rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.certificate-desc {
    flex: 1;
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.certificate-meta {
    display: grid;
    gap: 0.3rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.certificate-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.certificate-meta dd {
    color: var(--text-color);
    font-weight: 600;
}

.certificate-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.certificate-view-btn {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-button);
    transition: background 250ms ease, transform 250ms ease;
}

.certificate-view-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

.certificate-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 250ms ease;
}

.certificate-download:hover {
    color: var(--primary-color);
}

/* Certificate lightbox viewer */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 17, 31, 0.88);
    padding: 1.25rem;
    backdrop-filter: blur(4px);
}

.cert-lightbox.is-open {
    display: flex;
}

.cert-lightbox-inner {
    display: flex;
    max-width: min(94vw, 62rem);
    max-height: 92vh;
    flex-direction: column;
    margin: 0;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
}

.cert-lightbox-img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.cert-lightbox-img.is-hidden {
    display: none;
}

.cert-lightbox-frame {
    display: none;
    width: min(92vw, 58rem);
    height: 82vh;
    border: 0;
    border-radius: 0.6rem;
    background: #ffffff;
}

.cert-lightbox-frame.is-active {
    display: block;
}

.certificate-embed-frame {
    display: block;
    width: 100%;
    height: 28rem;
    border: 0;
    border-radius: 0.6rem;
    background: #ffffff;
}

.cert-lightbox-caption {
    margin-top: 0.6rem;
    text-align: center;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.35rem;
    transition: background 250ms ease;
}

.cert-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.34);
}

@media (prefers-reduced-motion: reduce) {
    .certificate-thumb,
    .certificate-thumb:hover,
    .certificate-view-btn,
    .certificate-view-btn:hover {
        transform: none;
    }
}

/* Hero slideshow navigation controls */
.hero-nav-btn {
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: background 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.hero-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-nav-btn:active {
    transform: translateY(0) scale(0.96);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: width 300ms ease, background 300ms ease, transform 300ms ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.15);
}

.hero-dot.is-active {
    width: 1.6rem;
    background: var(--button-color);
}

@media (prefers-reduced-motion: reduce) {
    .hero-nav-btn,
    .hero-nav-btn:hover,
    .hero-nav-btn:active,
    .hero-dot,
    .hero-dot:hover {
        transition: none;
        transform: none;
    }
}