/* ---
This file contains CSS rules specific to individual pages (contact, index, gallery, etc.)
that were previously embedded in `<style>` blocks. Consolidating them here improves
maintainability and follows best practices for separating structure (HTML) from presentation (CSS).
--- */

/*
    ========================================
    == STYLES FROM: contact.php
    ========================================
*/
.founders-container { display: flex; justify-content: center; gap: 40px; text-align: center; flex-wrap: wrap; }
.founder-card { text-align: center; max-width: 200px; }
.founder-card img { border-radius: 50%; width: 120px; height: 120px; margin-bottom: 16px; object-fit: cover; }
.founder-card h4 { margin-bottom: 4px; font-size: 1.1rem; }
.founder-card p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

.services-page-grid { padding-top: 60px; padding-bottom: 80px; }
.services-grid-refined { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) {
    .services-grid-refined.five-items { grid-template-columns: 1fr 1fr; }
    .services-grid-refined.five-items .service-card-v2:last-child { grid-column: 1 / -1; }
}
.service-card-v2 { background: none; border: 1px solid var(--border-color); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; transition: background-color 0.3s ease, border-color 0.3s ease; }
.service-card-v2:hover { background-color: rgba(255, 255, 255, 0.03); border-color: var(--accent-primary); }
.service-card-v2 .service-number { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; color: var(--accent-primary); letter-spacing: 1.5px; }
.service-card-v2 h3 { font-family: var(--font-primary); font-size: 2rem; margin: 10px 0 15px 0; }
.service-card-v2 p { line-height: 1.7; flex-grow: 1; }
.service-card-v2 .service-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.service-card-v2 .pricing-model-value { font-size: 1.2rem; color: var(--text-primary); font-weight: 500; }
.service-card-v2 .case-study-link { display: none; } /* Hide old links */

/* NEW styles for nested case studies */
.service-card-v2 .service-cases {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}
.service-card-v2 .service-cases > h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}
.service-cases .case-study-grid { display: flex; flex-direction: column; gap: 20px; }

/* Base case study styles (retained for reuse) */
.case-study-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .case-study-grid { grid-template-columns: 1fr 1fr; } }
.case-study-card { display: flex; flex-direction: column; background-color: var(--bg-panel); border-radius: 12px; overflow: hidden; height: 100%; transition: background-color 0.2s ease; }
.case-study-card:hover { background-color: #2c2c2e; }
.case-study-visual img { width: 100%; height: 250px; object-fit: cover; }
.case-study-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.case-study-content h4 { font-size: 1.3rem; }
.case-study-content .client { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }
.case-study-content p { color: var(--text-primary); font-size: 0.95rem; flex-grow: 1; }
.case-study-investment { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.case-study-investment-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.case-study-investment-value { font-size: 1.4rem; font-weight: 600; color: var(--accent-primary); display: block; margin-top: 5px; }

/* Overrides for COMPACT case study cards when nested */
 .service-cases .case-study-card {
    flex-direction: row;
    background-color: var(--color-grey-dark);
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
    height: auto;
}
.service-cases .case-study-visual { flex: 0 0 150px; }
.service-cases .case-study-visual img { width: 150px; height: 112px; border-radius: 6px; }
.service-cases .case-study-content { padding: 0; text-align: left; }
.service-cases .case-study-content h4 { font-size: 1.1rem; margin-bottom: 5px; }
.service-cases .case-study-content .client { margin-bottom: 10px; }
.service-cases .case-study-content p { font-size: 0.9rem; flex-grow: 0; margin: 0; line-height: 1.5; color: var(--text-secondary); }
.service-cases .case-study-investment { display: none; } /* Hide investment in nested view */

/*
    ========================================
    == STYLES FROM: index.php
    ========================================
*/

/* --- Luxury Gallery --- */
.luxury-gallery-section {
    padding: 100px 0;
    background-color: var(--bg-main);
    text-align: center;
}
.gallery-iframe-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 720px;
    margin-top: 60px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.gallery-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
    z-index: 2;
}
.gallery-iframe-container.loaded iframe {
    opacity: 1;
}
.gallery-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 0.5s ease;
}
.gallery-iframe-container.loaded .gallery-preview-overlay {
    opacity: 0;
    pointer-events: none;
}


/* Pricing Toggle Switch */
.pricing-toggle-container { display: flex; justify-content: center; align-items: center; margin-bottom: 40px; gap: 15px; }
.pricing-toggle-label { font-size: 1rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s ease; cursor: pointer; }
.pricing-toggle-label.active { color: var(--text-primary); }
.pricing-toggle { position: relative; display: inline-block; width: 50px; height: 26px; }
.pricing-toggle input { opacity: 0; width: 0; height: 0; }
.pricing-toggle .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-panel-header); transition: .4s; border-radius: 26px; }
.pricing-toggle .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.pricing-toggle input:checked + .slider { background-color: var(--accent-primary); }
.pricing-toggle input:focus + .slider { box-shadow: 0 0 1px var(--accent-primary); }
.pricing-toggle input:checked + .slider:before { transform: translateX(24px); }
.save-badge { background-color: var(--accent-confirm); color: white; font-size: 0.8em; font-weight: 600; padding: 3px 8px; border-radius: 12px; margin-left: 8px; }
.info-hover {
    display: inline-block;
    position: relative;
    margin-left: 5px;
    color: var(--text-secondary);
    cursor: help;
}
.info-hover .fa-solid {
    transition: color 0.2s ease;
}
.info-hover:hover .fa-solid {
    color: var(--accent-primary);
}
.icon-list { list-style: none; padding-left: 0; }
.icon-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.icon-list .fa-solid { color: var(--accent-primary); font-size: 1.1em; width: 20px; text-align: center; }

/* Workflow Section */
.workflow-section .feature-grid { align-items: center; margin-bottom: 100px; }
.workflow-section .feature-grid:last-child { margin-bottom: 0px; }
.ai-command-example {
    margin-top: 30px;
    background-color: var(--bg-deep);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}
.ai-prompt {
    font-family: var(--font-mono);
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-style: italic;
}
.ai-command-example p { margin: 0; color: var(--text-secondary); font-size: 0.95em; }

/* Re-using canned-demo styles for the advanced metal showcase */
.canned-demo-sphere {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.canned-demo-sphere img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}
.canned-demo-suggestions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.canned-demo-suggestions .btn-chip { margin-bottom: 8px; }

/* Service Showcase in Pricing */
.enterprise-panel { padding-bottom: 60px; border-bottom: 1px solid var(--border-color); margin-bottom: 60px; text-align: center; }
.service-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 40px 0; }
.service-showcase-item { text-align: left; }
.service-showcase-visual-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: var(--color-grey-dark);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.service-showcase-visual-wrapper iframe,
.service-showcase-visual-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.managed-gallery-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.managed-gallery-showcase img {
    position: absolute;
    width: 65%;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.4, 1);
    object-fit: cover;
    aspect-ratio: 4/5;
}
.managed-gallery-showcase img:nth-child(1) {
    z-index: 3;
    transform: translateY(-5%) rotate(-8deg);
}
.managed-gallery-showcase img:nth-child(2) {
    z-index: 2;
    transform: translateY(0%) rotate(0deg) scale(0.95);
}
.managed-gallery-showcase img:nth-child(3) {
    z-index: 1;
    transform: translateY(5%) rotate(8deg) scale(0.9);
}
.service-showcase-item:hover .managed-gallery-showcase img:nth-child(1) {
    transform: translateY(-10%) translateX(-30%) rotate(-12deg) scale(1.05);
}
.service-showcase-item:hover .managed-gallery-showcase img:nth-child(2) {
    transform: translateY(-5%) translateX(0%) rotate(2deg) scale(1.05);
}
.service-showcase-item:hover .managed-gallery-showcase img:nth-child(3) {
    transform: translateY(0%) translateX(30%) rotate(12deg) scale(1.05);
}
.service-showcase-item h4 { font-size: 1.1em; margin-bottom: 8px; }
.service-showcase-item p { font-size: 0.9em; color: var(--text-secondary); margin: 0; }
.white-glove-title { font-size: 1.5em; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-primary); }


/*
    ========================================
    == STYLES FROM: gallery.php
    ========================================
*/
.gallery-item-image-wrapper { position: relative; }
.gallery-item-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
