/* --- LAB LANDING PAGE SPECIFIC STYLES --- */

/* --- ANIMATED HERO BANNER --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Keeps the zooming images contained */
}

/* Slideshow Container */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Slide Setup */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Hidden by default */
    
    /* 15 seconds total duration, running infinitely */
    animation: luxuryFade 15s infinite;
}

/* Stagger the start times for each of the 3 photos */
.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 5s; }
.slide-3 { animation-delay: 10s; }

/* The Keyframe Animation: Fading + Subtle Zoom */
@keyframes luxuryFade {
    0% { 
        opacity: 0; 
        transform: scale(1); 
    }
    10% { 
        opacity: 1; /* Fully visible quickly */
    }
    25% { 
        opacity: 1; /* Stays visible */
    }
    35% { 
        opacity: 0; 
        transform: scale(1.05); /* Slowly zooms in by 5% while fading out */
    }
    100% { 
        opacity: 0; 
        transform: scale(1.05); 
    }
}

/* Dark Overlay so the white text always pops */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

/* Text Formatting */
.hero-banner-content {
    position: relative;
    z-index: 2; /* Keeps text above the slideshow and overlay */
    padding: 0 20px;
    max-width: 900px;
    color: #FFFFFF;
}

.hero-banner-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem); 
    line-height: 1.4; 
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-banner-content p {
    font-size: 1.15rem;
    color: #F0F0F0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Sections */
.lab-section {
    padding: 80px 5%;
    background-color: var(--color-bg);
}

.lab-section.gray-bg {
    background-color: var(--color-section-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-transform: uppercase;
}

.section-title .divider {
    width: 50px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 15px auto;
}

/* Image Cards Grid (Like S2 & S4 Screenshots) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: #EAEAEA;
    object-fit: cover;
}

.card-content {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.card-content p {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* GIA Style Red Action Link */
.red-action-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-red-link);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.red-action-link:hover {
    text-decoration: underline;
}

/* --- INNER PAGES (About & Contact) --- */
.page-header { 
    padding: 80px 5% 40px; 
    text-align: center; 
    background-color: var(--color-section-gray); 
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 { 
    font-family: var(--font-serif); 
    font-size: 2.5rem; 
    color: var(--color-text); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Us Layout */
.about-split { 
    display: flex; 
    flex-wrap: wrap; 
    max-width: 1200px; 
    margin: 80px auto; 
    gap: 60px; 
    padding: 0 5%; 
    align-items: center; 
}

.about-text { flex: 1; min-width: 300px; }
.about-text h2 { 
    font-family: var(--font-serif); 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
}
.about-text p { margin-bottom: 20px; color: #444; font-size: 1.1rem; }

.about-image { flex: 1; min-width: 300px; }
.about-image img { 
    width: 100%; 
    height: auto; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

/* Contact Layout */
.contact-container { 
    display: flex; 
    flex-wrap: wrap; 
    max-width: 1200px; 
    margin: 80px auto; 
    gap: 60px; 
    padding: 0 5%; 
}

.contact-info, .contact-form-wrapper { flex: 1; min-width: 300px; }

.contact-info-block { margin-bottom: 40px; }
.contact-info-block h3 { 
    font-family: var(--font-sans); 
    font-size: 0.95rem; 
    color: var(--color-gold); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}
.contact-info-block p { font-size: 1.1rem; color: #444; line-height: 1.8; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #666;
}
.form-group input, .form-group textarea { 
    padding: 15px; 
    border: 1px solid var(--color-border); 
    font-family: var(--font-sans); 
    font-size: 1rem; 
    transition: border-color 0.3s; 
    background-color: var(--color-section-gray);
}
.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--color-gold); 
    outline: none; 
    background-color: var(--color-bg);
}
.submit-btn { 
    background-color: var(--color-text); 
    color: var(--color-bg); 
    padding: 16px 30px; 
    border: none; 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
    margin-top: 10px;
}
.submit-btn:hover { background-color: var(--color-gold); }

/* Google Maps Container */
.map-container { 
    width: 100%; 
    height: 450px; 
    background-color: #EEE; 
    margin-top: 20px; 
}
.map-container iframe { width: 100%; height: 100%; border: none; }