/* Sub-pages Custom Stylesheet - TAGéd Studio */

/* 1. Page Hero & Breadcrumbs */
.page-hero {
    padding: 11rem 0 5rem 0;
    position: relative;
    background-color: var(--bg);
    border-bottom: 1px solid rgba(42, 40, 37, 0.05);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(200, 213, 192, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(232, 213, 203, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.breadcrumb-custom a {
    color: var(--muted);
    transition: var(--transition-fast);
}

.breadcrumb-custom a:hover {
    color: var(--ink);
}

.breadcrumb-separator {
    color: var(--sand);
}

.page-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.page-title em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.8;
}

/* 2. Portfolio Sub-page Additions */
.portfolio-intro {
    padding: 5rem 0 2rem 0;
}

.portfolio-load-more {
    margin-top: 4rem;
    text-align: center;
}

/* 3. Project Detail Page */
.project-cover-section {
    padding: 0;
    margin-top: 80px;
    /* Offset fixed nav */
}

.project-cover {
    width: 100%;
    height: 70vh;
    min-height: 450px;
    object-fit: cover;
}

.project-meta-section {
    padding: 3.5rem 0;
    background-color: var(--surface);
    border-bottom: 1px solid rgba(42, 40, 37, 0.05);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.project-meta-item {
    border-right: 1px solid rgba(42, 40, 37, 0.08);
    padding-right: 1.5rem;
}

.project-meta-item:last-child {
    border-right: none;
    padding-right: 0;
}

.project-meta-lbl {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.project-meta-val {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
}

.project-story-section {
    padding: 6.5rem 0;
}

.project-story-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.project-story-title em {
    font-style: italic;
}

.project-story-text {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

/* Before/After Image Slider Component */
.ba-slider-container {
    padding: 2rem 0 6.5rem 0;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(42, 40, 37, 0.08);
    cursor: ew-resize;
    user-select: none;
    background-color: var(--surface);
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

.ba-before img {
    width: 100vw;
    /* Keep width consistent to main container size */
    max-width: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--white);
    z-index: 5;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--ink);
    box-shadow: 0 4px 15px rgba(42, 40, 37, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s;
    cursor: ew-resize;
}

.ba-handle-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.ba-handle-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--bg);
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.45rem 1rem;
    background-color: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 252, 248, 0.2);
    color: var(--ink);
    border-radius: 50px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    z-index: 4;
}

.ba-label-before {
    left: 1.5rem;
}

.ba-label-after {
    right: 1.5rem;
}

.project-gallery-section {
    padding: 6.5rem 0;
    background-color: var(--surface);
    border-top: 1px solid rgba(42, 40, 37, 0.05);
    border-bottom: 1px solid rgba(42, 40, 37, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 15px 30px rgba(42, 40, 37, 0.04);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* 4. About Sub-page */
.about-intro-section {
    padding: 6.5rem 0;
}

.about-intro-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    border-left: 2px solid var(--sage);
    padding-left: 2rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.values-section {
    padding: 6.5rem 0;
    background-color: var(--surface);
    border-top: 1px solid rgba(42, 40, 37, 0.05);
    border-bottom: 1px solid rgba(42, 40, 37, 0.05);
}

.value-card {
    background-color: var(--bg);
    border: 1px solid rgba(42, 40, 37, 0.04);
    border-radius: 16px;
    padding: 3rem 2.2rem;
    height: 100%;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(42, 40, 37, 0.04);
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(42, 40, 37, 0.02);
}

.value-icon svg {
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.value-desc {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

/* Team Grid */
.team-section {
    padding: 6.5rem 0;
}

.team-showcase-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.team-member-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    padding: 3.5rem;
    background: var(--surface);
    border: 1px solid rgba(42, 40, 37, 0.05);
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(42, 40, 37, 0.03);
    transition: var(--transition);
}

.team-member-split:hover {
    box-shadow: 0 25px 55px rgba(42, 40, 37, 0.08);
    transform: translateY(-4px);
}

.team-member-photo-side {
    flex: 0 0 320px;
    width: 320px;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(42, 40, 37, 0.05);
    transition: var(--transition);
}

.team-member-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.team-member-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.team-member-tag {
    display: inline-block;
    background-color: rgba(200, 213, 192, 0.25);
    border: 1px solid var(--sage);
    color: var(--ink);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition-fast);
}

.team-member-name {
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
}

.team-member-divider {
    width: 60px;
    height: 1px;
    background-color: var(--sand);
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

.team-member-bio {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
}

/* Hover Interactive Effects */
.team-member-split:hover .team-member-image-wrapper img {
    transform: scale(1.05);
}

.team-member-split:hover .team-member-tag {
    background-color: var(--sage);
}

.team-member-split:hover .team-member-divider {
    width: 120px;
    background-color: var(--sage);
}

/* Timeline Components */
.timeline-section {
    padding: 6.5rem 0;
    background-color: var(--dark-bg);
    color: var(--bg);
}

.timeline-section .section-title {
    color: var(--bg);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
    padding-left: 2.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: rgba(247, 245, 240, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--sage);
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px rgba(200, 213, 192, 0.15);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--blush);
    box-shadow: 0 0 0 8px rgba(232, 213, 203, 0.25);
}

.timeline-year {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 700;
    color: var(--sage);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-year {
    color: var(--blush);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: rgba(247, 245, 240, 0.65);
    margin: 0;
    line-height: 1.7;
}



/* 5. Contact Sub-page */
.contact-section {
    padding: 6.5rem 0;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    box-shadow: 0 4px 10px rgba(42, 40, 37, 0.02);
    border: 1px solid rgba(42, 40, 37, 0.04);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.contact-detail-text h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.contact-detail-text p {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.6;
}

.map-embed-container {
    margin-top: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(42, 40, 37, 0.05);
    box-shadow: 0 15px 30px rgba(42, 40, 37, 0.04);
    filter: grayscale(1) contrast(1.05) brightness(0.98);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-embed-container:hover {
    filter: grayscale(0) contrast(1) brightness(1);
}

/* Premium Underline Forms */
.contact-form-card {
    background-color: var(--surface);
    border: 1px solid rgba(42, 40, 37, 0.04);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px rgba(42, 40, 37, 0.03);
}

.form-group-custom {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.form-control-custom {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(42, 40, 37, 0.12);
    border-radius: 0;
    padding: 0.6rem 0;
    font-size: 1rem;
    color: var(--ink);
    transition: var(--transition-fast);
}

.form-control-custom:focus {
    outline: none;
    border-bottom-color: var(--dark-bg);
    box-shadow: none;
}

/* Validation error state */
.form-control-custom.input-error {
    border-bottom-color: #c0392b;
}

.field-error {
    display: none;
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    animation: fadeSlideIn 0.2s ease;
}

.field-error.visible {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Inline submit error banner */
.submit-error-banner {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background-color: rgba(192, 57, 43, 0.07);
    border-left: 3px solid #c0392b;
    border-radius: 4px;
    font-size: 0.87rem;
    color: #c0392b;
    font-weight: 500;
}



/* Custom Dropdown Styling */
select.form-control-custom {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7570' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
    cursor: pointer;
}

/* Room Chips Toggle Grid */
.room-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.room-chip {
    background-color: transparent;
    border: 1px solid rgba(42, 40, 37, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.room-chip:hover {
    border-color: var(--ink);
    background-color: rgba(42, 40, 37, 0.02);
}

.room-chip.selected {
    background-color: var(--dark-bg);
    color: var(--bg);
    border-color: var(--dark-bg);
}

/* Success State Overlay */
.form-success-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 4rem 1rem;
}

.success-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: var(--sage);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(200, 213, 192, 0.4);
}

.success-icon-circle svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.success-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.success-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 6. Responsive Adjustments */
@media (max-width: 991px) {
    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .project-meta-item {
        border-right: none;
        padding-right: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .team-member-split {
        flex-direction: column;
        gap: 3rem;
        padding: 2.5rem 2rem;
        max-width: 550px;
        margin: 0 auto;
    }

    .team-member-photo-side {
        flex: none;
        width: 100%;
        max-width: 320px;
    }

    .contact-info-block {
        margin-bottom: 4rem;
    }
}

/* About Page Hero Styles */
.about-hero-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(42, 40, 37, 0.8);
}

.about-hero-img {
    border-radius: 28px;
    max-height: 550px;
    object-fit: cover;
    width: 95%;
}

@media (max-width: 575px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .ba-slider {
        aspect-ratio: 4/3;
        /* Adjust proportion on small screens */
    }

    .ba-before img {
        width: 150vw;
        /* Stretch overflow image to cover rotation */
    }


    .contact-form-card {
        padding: 2.5rem 1.5rem;
    }
}