/* Single Project / Success Story Styles */

/* Hero Section */
.story-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.story-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(64, 50, 38, 0.65);
    z-index: 2;
}

.story-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.story-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    flex-wrap: wrap;
}

.story-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-hero__breadcrumb a:hover {
    color: var(--secondary-color-100);
}

.story-hero__breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.story-hero__breadcrumb .current {
    color: var(--secondary-color-100);
}

.story-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.story-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary-color-100);
    padding: 6px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-hero__date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.story-hero__date svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary-color-100);
}

.story-hero__title {
    color: #fff;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.story-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
}

/* Project Info Cards */
.project-info {
    background: #fff;
    position: relative;
    z-index: 3;
    margin-top: -60px;
    padding-bottom: 2rem;
}

.project-info__card {
    background: #fff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(64, 50, 38, 0.12);
    overflow: hidden;
}

.project-info__grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .project-info__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.project-info__item {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(64, 50, 38, 0.08);
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .project-info__item {
        border-bottom: none;
        border-right: 1px solid rgba(64, 50, 38, 0.08);
    }
    
    .project-info__item:last-child {
        border-right: none;
    }
}

.project-info__item:hover {
    background: var(--secondary-color-700);
}

.project-info__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color-100) 0%, #8C6629 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.project-info__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.project-info__label {
    color: var(--ternary-color-100);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.project-info__value {
    color: var(--primary-color-100);
    font-size: 1.125rem;
    font-weight: 600;
}

/* Story Content */
.story-content {
    background: #fff;
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
    overflow: visible;
}

@media (min-width: 768px) {
    .story-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.story-content__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .story-content__grid {
        grid-template-columns: 2fr 1fr;
        align-items: flex-start;
        gap: 4rem;
    }
}

.story-content__main h3 {
    color: var(--primary-color-100);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}

.story-content__main h3:first-child {
    margin-top: 0;
}

.story-content__main p {
    color: var(--ternary-color-100);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 16px;
}

/* Quote Block */
.story-quote {
    background: linear-gradient(135deg, var(--secondary-color-700) 0%, var(--secondary-color-600) 100%);
    border-left: 4px solid var(--secondary-color-100);
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    position: relative;
}

.story-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--secondary-color-100);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.story-quote__text {
    color: var(--primary-color-100);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.story-quote__author {
    color: var(--secondary-color-100);
    font-weight: 600;
    font-size: 14px;
}

/* Image Gallery */
.story-gallery {
    margin: 2.5rem 0;
}

.story-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .story-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-gallery__item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.story-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-gallery__item:hover img {
    transform: scale(1.08);
}

.story-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(187, 154, 101, 0) 0%, rgba(187, 154, 101, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-gallery__item:hover::after {
    opacity: 1;
}

.story-gallery__main {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

/* Sidebar */
.story-sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .story-sidebar {
        position: sticky;
        top: 100px;
        align-self: flex-start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

.sidebar-card {
    background: var(--secondary-color-700);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color-100);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color-100);
}

/* Client Info */
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-info__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color-100);
}

.client-info__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info__name {
    font-weight: 600;
    color: var(--primary-color-100);
    font-size: 1rem;
}

.client-info__title {
    color: var(--ternary-color-100);
    font-size: 14px;
}

.client-testimonial {
    color: var(--ternary-color-100);
    font-style: italic;
    line-height: 1.7;
    font-size: 15px;
}

.client-rating {
    display: flex;
    gap: 4px;
    margin-top: 1rem;
}

.client-rating__star {
    color: #fbbf24;
    font-size: 1.125rem;
}

/* Related Stories */
.related-story {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(64, 50, 38, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-story:last-child {
    border-bottom: none;
}

.related-story:hover {
    padding-left: 8px;
}

.related-story__image {
    width: 80px;
    height: 60px;
    min-width: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.related-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-story__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color-100);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.related-story:hover .related-story__title {
    color: var(--secondary-color-100);
}

.related-story__category {
    font-size: 12px;
    color: var(--secondary-color-100);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(64, 50, 38, 0.08);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    fill: var(--secondary-color-100);
    margin-top: 2px;
}

.feature-list li span {
    color: var(--primary-color-200);
    line-height: 1.6;
}

/* Photo Gallery Section */
.photo-gallery-section {
    background: var(--primary-color-100);
    position: relative;
    z-index: 2;
    clear: both;
}

.photo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .photo-gallery__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.photo-gallery__item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-gallery__item:hover img {
    transform: scale(1.1);
}

.photo-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(64, 50, 38, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-gallery__item:hover::after {
    opacity: 1;
}

.photo-gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.photo-gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.photo-gallery__item:hover .photo-gallery__overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-gallery__overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Team Section */
.team-section {
    background: var(--secondary-color-700);
    position: relative;
    z-index: 2;
    clear: both;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(64, 50, 38, 0.1);
}

.team-member__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--secondary-color-100);
}

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

.team-member__name {
    color: var(--primary-color-100);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-member__role {
    color: var(--secondary-color-100);
    font-size: 13px;
    font-weight: 500;
}

/* Before/After Section */
.before-after {
    background: var(--secondary-color-700);
    position: relative;
    z-index: 2;
    clear: both;
}

.before-after__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .before-after__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.before-after__item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(64, 50, 38, 0.1);
}

.before-after__item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.before-after__label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color-100);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.before-after__item--before .before-after__label {
    background: var(--primary-color-100);
}

/* CTA Section */
.story-cta {
    background: linear-gradient(135deg, var(--primary-color-100) 0%, #5a4a3c 100%);
    position: relative;
    overflow: hidden;
    z-index: 2;
    clear: both;
}

.story-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(187, 154, 101, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.story-cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.story-cta__title {
    color: #fff;
    margin-bottom: 1rem;
}

.story-cta__text {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .story-gallery__item img,
    .photo-gallery__item img,
    .team-member,
    .related-story {
        transition: none;
    }
    
    .story-gallery__item:hover img,
    .photo-gallery__item:hover img {
        transform: none;
    }
}