/*
Theme Name: Parsa Creative Studio
Theme URI: https://parsacreative.com
Author: Parsa Creative
Description: Custom, high-performance bespoke theme for Parsa Creative Studio with native dynamic Projects post type.
Version: 1.2.0
Text Domain: parsa-creative
*/

:root {
    --bg-color: #f7f7f7;
    --text-color: #1a1a1a;
    --menu-bg: #faf7f2;
    --transition-speed: 0.4s;
    --accent-color: #808000;
    --fence-line: #1a1a1a;
    --border-soft: rgba(26, 26, 26, 0.12);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 100px;
}

/* Fixed Navigation Pill */
.site-header {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 330px;
    max-width: 90vw;
    height: 60px;
    background-color: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    transition: width var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.1),
                height var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.1),
                border-radius var(--transition-speed) ease,
                background-color var(--transition-speed) ease;
}

.site-header.active {
    width: 720px;
    height: 350px;
    max-width: 95vw;
    max-height: calc(100vh - 48px);
    border-radius: 24px;
    background-color: var(--menu-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 24px;
    flex-shrink: 0;
}

.logo {
    font-family: 'Cutive Mono', monospace;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
}

.menu-toggle {
    width: 32px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: top 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bar:nth-child(1) { top: 6px; }
.bar:nth-child(2) { top: 16px; }

.menu-toggle.active .bar:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    top: 11px;
    transform: rotate(-45deg);
}

.nav-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    height: calc(100% - 60px);
    padding: 10px 40px 40px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    overflow-y: auto;
    scrollbar-width: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.site-header.active .nav-content {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease 0.15s;
}

.menu-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-header.active .menu-right {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

ul.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.nav-links li {
    margin: 12px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-header.active ul.nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.site-header.active ul.nav-links li:nth-child(1) { transition-delay: 0.15s; }
.site-header.active ul.nav-links li:nth-child(2) { transition-delay: 0.20s; }
.site-header.active ul.nav-links li:nth-child(3) { transition-delay: 0.25s; }
.site-header.active ul.nav-links li:nth-child(4) { transition-delay: 0.30s; }

ul.nav-links a {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

ul.nav-links a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.svg-scenery {
    width: 100%;
    max-width: 280px;
    height: 220px;
    border-radius: 16px;
    background-color: #0f172a;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
    overflow: hidden;
}

.anim-moon {
    animation: moonPulse 4s infinite alternate ease-in-out;
    transform-origin: center;
}

.anim-smoke {
    animation: smokeRise 3s infinite linear;
    opacity: 0;
}

.smoke-1 { animation-delay: 0s; }
.smoke-2 { animation-delay: 1s; }
.smoke-3 { animation-delay: 2s; }

.anim-bird {
    animation: birdFly 26s infinite linear;
}

.bird-2 {
    animation-delay: 8s;
    animation-duration: 32s;
    transform: scale(0.7);
}

.anim-window {
    animation: windowFlicker 6s infinite alternate ease-in-out;
}

@keyframes moonPulse {
    0% { filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 12px rgba(254, 240, 138, 0.7)); transform: scale(1.03); }
}

@keyframes smokeRise {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-30px) scale(1.8); opacity: 0; }
}

@keyframes birdFly {
    0% { transform: translate(-60px, 40px) rotate(-10deg); }
    50% { transform: translate(250px, -15px) rotate(0deg); }
    100% { transform: translate(620px, 20px) rotate(10deg); }
}

@keyframes windowFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
    70% { opacity: 0.9; }
    80% { opacity: 0.5; }
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-portfolio-view {
    transition: opacity 0.3s ease;
}

.main-portfolio-view.hidden-view {
    display: none;
}

.hero-section {
    padding: clamp(120px, 16vh, 190px) 0 clamp(120px, 16vh, 190px) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-sketch-scenery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0f172a;
    max-width: 820px;
    margin: 0 auto 20px auto;
}

.hero-highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.35vw, 1.2rem);
    line-height: 1.65;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto 36px auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #28431d;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(40, 67, 29, 0.2);
}

.btn-primary:hover {
    background-color: #1e3316;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 67, 29, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-color);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 14px 28px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background-color: rgba(250, 247, 242, 0.98);
    border-color: rgba(26, 26, 26, 0.16);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: var(--text-color);
}

.quote-section {
    padding: clamp(110px, 16vh, 180px) 0;
    position: relative;
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.quote-container {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(128, 128, 0, 0.15);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.quote-text {
    font-size: clamp(1.4rem, 2.6vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.45;
    color: #1e293b;
    margin: 0 0 36px 0;
    font-style: normal;
}

.quote-highlight {
    color: #0f172a;
    position: relative;
    background: linear-gradient(180deg, transparent 65%, rgba(128, 128, 0, 0.25) 65%);
    font-weight: 600;
}

.quote-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.quote-author {
    color: #0f172a;
    font-weight: 600;
}

.quote-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.services-section {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(90px, 12vh, 130px) 24px;
    scroll-margin-top: 90px;
}

.disciplines-v-accordion {
    display: flex;
    width: 100%;
    min-height: 580px;
    background: transparent;
    position: relative;
}

.v-col {
    position: relative;
    flex: 1 1 0%;
    min-width: 72px;
    border-right: 1.5px solid var(--fence-line);
    display: flex;
    cursor: pointer;
    transition: flex 0.55s var(--transition-smooth);
    overflow: hidden;
    background: transparent;
    outline: none;
}

.v-col:last-child {
    border-right: none;
}

.v-col.active {
    flex: 4 1 0%;
    cursor: default;
}

.v-spine {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 36px 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.v-col.active .v-spine {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.v-spine-spacer {
    height: 24px;
}

.v-spine-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    writing-mode: horizontal-tb;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: auto 0;
    padding: 0 4px;
    transition: color 0.25s ease;
}

.v-col:hover:not(.active) .v-spine-title {
    color: var(--accent-color);
}

.v-spine-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    background: rgba(128, 128, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.v-col:hover:not(.active) .v-spine-toggle {
    border-color: #28431d;
    background: #28431d;
    color: #ffffff;
    transform: scale(1.08);
}

.v-expanded {
    position: absolute;
    inset: 0;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.15s;
    overflow-y: auto;
}

.v-col.active .v-expanded {
    position: relative;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

.v-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.v-exp-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.v-close-btn {
    background: rgba(128, 128, 0, 0.1);
    border: 1px solid var(--accent-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.v-close-btn:hover {
    border-color: #28431d;
    background: #28431d;
    color: #ffffff;
    transform: rotate(90deg);
}

.v-exp-body {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
    margin: auto 0;
}

.v-desc-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #6b6963;
    margin-bottom: 24px;
}

.v-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(26, 26, 26, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(26, 26, 26, 0.06);
    display: inline-block;
}

.v-graphic-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 24px;
    min-height: 220px;
}

.v-graphic-box svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .disciplines-v-accordion {
        flex-direction: column;
        min-height: auto;
    }
    .v-col {
        border-right: none;
        border-bottom: 1.5px solid var(--fence-line);
        min-height: 84px;
        width: 100%;
    }
    .v-col:last-child {
        border-bottom: none;
    }
    .v-col.active {
        flex: none;
        min-height: 520px;
    }
    .v-spine {
        flex-direction: row;
        padding: 24px 20px;
    }
    .v-spine-spacer {
        display: none;
    }
    .v-exp-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Works Polaroid Section */
.works-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 120px;
    scroll-margin-top: 90px;
}

.works-header {
    text-align: left;
    margin-bottom: 48px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.works-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(1.3rem, 1.8vw, 1.65rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #0f172a;
    line-height: 1.3;
}

.photo-scatter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 54px 44px;
    padding: 24px 12px;
}

.photo-card {
    position: relative;
    background: #ffffff;
    padding: 18px 18px 22px;
    border-radius: 8px;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    outline: none;
}

/* Polaroid subtle staggered rotation modulo 6 */
.photo-card:nth-child(6n+1) { transform: rotate(-2.2deg); }
.photo-card:nth-child(6n+2) { transform: rotate(1.8deg) translateY(24px); }
.photo-card:nth-child(6n+3) { transform: rotate(2.4deg); }
.photo-card:nth-child(6n+4) { transform: rotate(-1.9deg) translateY(28px); }
.photo-card:nth-child(6n+5) { transform: rotate(-2.6deg) translateY(12px); }
.photo-card:nth-child(6n+6) { transform: rotate(2.2deg) translateY(34px); }

.photo-card.is-featured-wide {
    grid-column: span 2;
    max-width: 580px;
    margin: 18px auto 0 auto;
    width: 100%;
    transform: rotate(-1.4deg) translateY(10px) !important;
}

.photo-card:hover,
.photo-card:focus-visible {
    transform: translateY(-8px) rotate(0deg) scale(1.02) !important;
    box-shadow: 0 24px 44px -10px rgba(0, 0, 0, 0.14), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    border-color: rgba(128, 128, 0, 0.6);
    z-index: 10;
}

.photo-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 22px;
    background: rgba(235, 230, 218, 0.88);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border-radius: 2px;
    opacity: 0.95;
    z-index: 2;
}

.photo-card:nth-child(even)::before {
    transform: translateX(-50%) rotate(1.5deg);
}

.photo-card:nth-child(odd)::before {
    transform: translateX(-50%) rotate(-1.5deg);
}

.photo-image-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f4f2ec;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-image-wrap svg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover .photo-image-wrap img,
.photo-card:hover .photo-image-wrap svg {
    transform: scale(1.04);
}

.photo-caption {
    padding: 16px 6px 4px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.photo-info-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.photo-project-name {
    font-family: 'Newsreader', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.photo-card:hover .photo-project-name {
    color: var(--accent-color);
}

.photo-category {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.photo-year {
    font-family: 'Newsreader', serif;
    font-style: italic;
    color: #64748b;
    font-size: 1.1rem;
}

/* Project Detail View */
.project-detail-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
}

.project-detail-view.active {
    display: block;
    opacity: 1;
}

.detail-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.detail-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 9999px;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-back:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateX(-3px);
    background: #ffffff;
}

.detail-header {
    margin-bottom: 48px;
}

.detail-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 14px;
    display: block;
}

.detail-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 16px;
}

.detail-client-link-wrap {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
}

.detail-client-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.96rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 6px 14px 6px 0;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.detail-client-link svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #64748b;
}

.detail-client-link:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

.detail-client-link:hover svg {
    transform: translate(3px, -3px);
    color: var(--accent-color);
}

.detail-hero-media {
    width: 100%;
    height: clamp(340px, 50vh, 560px);
    border-radius: 18px;
    overflow: hidden;
    background: #f1ede5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04);
}

.detail-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-media svg {
    width: 100%;
    height: 100%;
}

.detail-content-columns {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    margin-bottom: 64px;
}

.detail-section-heading {
    font-family: 'Newsreader', serif;
    font-size: 1.85rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.25;
}

.detail-body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 24px;
    white-space: pre-line;
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.detail-gallery-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.detail-gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.detail-gallery-item svg {
    max-width: 100%;
    height: auto;
}

.detail-gallery-caption {
    font-size: 0.86rem;
    color: #64748b;
    margin-top: 18px;
    text-align: center;
    font-weight: 500;
}

.detail-deliverables-pill-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-footer-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-soft);
}

.pagination-link {
    text-decoration: none;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s ease;
}

.pagination-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.pagination-link.next-link {
    text-align: right;
    margin-left: auto;
}

.pagination-subtitle {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 600;
}

.pagination-title {
    font-family: 'Newsreader', serif;
    font-size: 1.35rem;
    font-weight: 500;
}

/* Contact Form Section */
.contact-section {
    padding: 60px 0 40px 0;
    position: relative;
}

.contact-card {
    background-color: transparent;
    border: 3px solid #8e8e8e;
    border-radius: 28px;
    padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    box-shadow: none;
    max-width: 860px;
    margin: 0 auto;
}

.contact-form {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.form-input,
.form-textarea {
    width: 100%;
    background-color: #f4f2ec;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    padding: 16px 20px;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #8c8a82;
}

.form-input:focus,
.form-textarea:focus {
    background-color: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(235, 230, 218, 0.8);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.contact-submit-btn {
    background-color: #28431d;
    color: #ffffff;
    padding: 15px 40px;
    border: 1px solid #28431d;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(40, 67, 29, 0.25);
    width: 100%;
    max-width: 240px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(40, 67, 29, 0.38);
    background-color: #1e3316;
    border-color: #1e3316;
}

.form-status {
    font-size: 0.92rem;
    min-height: 22px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status.show {
    opacity: 1;
}

.site-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0f172a;
}

@media (max-width: 900px) {
    .photo-scatter-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .photo-card.is-featured-wide {
        grid-column: span 1;
        max-width: 100%;
        margin: 0;
    }
    .photo-card {
        transform: rotate(0deg) translateY(0) !important;
    }
    .detail-content-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .detail-gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
