/* ========================================
   Services Page
   ======================================== */

.services-page {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 50px 20px;
}


/* Page Introduction */

.services-intro {
    margin-bottom: 40px;
}

.services-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-intro p {
    color: #666;
    max-width: 1100px;
    font-size: 1.05rem;
}


/* ========================================
   Service Cards
   ======================================== */

.service-card {
    display: flex;
    align-items: center;
    gap: 35px;

    margin-bottom: 20px;
    padding: 25px;

    border: 2px solid #000000;
    border-radius: 10px;

    background-color: white;
}


/* Image */

.service-image {
    flex: 0 0 30%;
}

.service-image img {
    display: block;
    width: 100%;

    border-radius: 8px;
    border: 1px solid black;
}

/* CANVAS */
.service-canvas-container {
    /* Need relative so loading prompt does not cover the entire page. */
    position:relative;
    flex: 0 0 30%;
}

.viewer-loading {
    position: absolute;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
    color: #64748b;

    font-size: 1rem;
    font-weight: 500;

    z-index: 10;
}

#service-canvas-1 {
    display: block;
    width: 100%;
    /* Changed from 100% to give direct height */
    height: 275px;
    /* Round corners */
    border-radius: 16px;
    overflow: hidden;
}

#service-canvas-2 {
    display: block;
    width: 100%;
    /* Changed from 100% to give direct height */
    height: 275px;
    /* Round corners */
    border-radius: 16px;
    overflow: hidden;
}

#service-canvas-3 {
    display: block;
    width: 100%;
    /* Changed from 100% to give direct height */
    height: 275px;
    /* Round corners */
    border-radius: 16px;
    overflow: hidden;
}

/* The hint to drag to rotate on the homepage, disappears (see scenesetup.js) */
.interaction-hint {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);

    padding: 6px 12px;
    border-radius: 20px;

    font-size: 1.0rem;
    white-space: nowrap;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);

    opacity: 0.80;
    transition: opacity 5s ease;

    pointer-events: none;
}

.interaction-hint.hidden {
    opacity: 0;
}

/* Information */

.service-info {
    flex: 1;
}

.service-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #002554;
}

.service-info p {
    margin-top: 0;
    font-size: 1.1rem;
}

.service-info ul {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.service-info li {
    margin-bottom: 5px;
}


/* Hover Effect */

.service-card:hover {
    transform: translateY(-5px);
    transition: 0.2s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Contact 
   ======================================== */
.services-contact {
    background-color: #f2f2f2;
}

.services-contact {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 30px;
}

.services-contact h2 {
    font-size: 2.3rem;
    color: #002554;
}

.services-contact p {
    max-width: 650px;
    margin: 0 auto 30px auto;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.services-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #01a2e0;
    color: white;
    border: 2px solid #01a2e0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.services-button:hover {
    background-color: #002554;
    border-color: #002554;
    text-decoration: none;
}

/* ========================================
   CONTROLS FOR INTERACTIVE CANVAS
   ======================================== */
.model-control {
    width: 180px;
    margin: 12px auto 0;
}

.model-control label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0.7;
}

.model-control input[type="range"] {
    width: 100%;
    cursor: pointer;
}



/* ========================================
   Mobile
   ======================================== */

@media (max-width: 768px) {

    .service-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;

        padding: 20px;
    }

    .service-image {
        flex: none;
        width: 100%;
    }

    .service-info h2 {
        margin-top: 0;
    }

    .services-contact {
        padding: 70px 25px;
    }

}