/**
 * Projekt Detail Page Styles
 * CostaDelSol.dev
 */

:root {
    --sand-50: #FAF9F7;
    --sand-100: #F5F3F0;
    --sand-200: #E8E4DE;
    --sand-300: #D4CFC6;
    --sand-400: #C0BAB0;
    --anthracite-900: #1A1A1A;
    --anthracite-800: #2D2D2D;
    --anthracite-700: #3A3A3A;
    --anthracite-600: #4A4A4A;
    --bronze: #8B7355;
    --bronze-light: #A69076;
    --bronze-dark: #6B5A45;
    --success: #4A7C59;
    --error: #9B4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--sand-50);
    color: var(--anthracite-800);
    line-height: 1.6;
    overflow-x: hidden;
}

.serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--anthracite-900);
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: var(--anthracite-900);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--bronze-light);
}

.header-cta {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: white;
    color: var(--anthracite-900);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-header-left {
    flex: 1;
}

/* ========== PROJECT STATS ========== */
.project-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--bronze);
    padding-left: 16px;
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--bronze);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--anthracite-600);
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.4) 0%, transparent 60%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 60px;
    background: var(--sand-100);
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--sand-300), transparent);
}

.project-meta {
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.project-location {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-location::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--bronze);
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--anthracite-900);
    margin-bottom: 4px;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.project-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--bronze);
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease-out 0.35s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FORM ========== */
.lead-form {
    background: white;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    animation: fadeUp 0.8s ease-out 0.5s both;
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sand-200);
}

.form-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--anthracite-900);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--anthracite-600);
}

.form-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--anthracite-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--sand-300);
    background: var(--sand-50);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--anthracite-800);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bronze);
    background: white;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--sand-400);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--bronze);
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.9rem;
    color: var(--anthracite-600);
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--anthracite-900);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    background: var(--bronze);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139,115,85,0.3);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--anthracite-500);
    margin-top: 16px;
}

.form-note i {
    color: var(--bronze);
    margin-right: 6px;
}

.form-error {
    background: #FFF5F5;
    border-left: 3px solid var(--error);
    color: var(--error);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 2rem;
    color: white;
}

.form-success h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--anthracite-900);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--anthracite-600);
    margin-bottom: 24px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--anthracite-900);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--bronze);
}

/* ========== FEATURES ========== */
.features-section {
    padding: 100px 60px;
    background: var(--anthracite-900);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--bronze), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bronze-light);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    color: white;
}

/* Features Content Layout */
.features-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.features-text p {
    color: var(--sand-200);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.features-text p:last-child {
    margin-bottom: 0;
}

.features-text strong {
    color: white;
    font-weight: 600;
}

.features-highlights {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-item i {
    color: var(--bronze);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.highlight-item span {
    color: var(--sand-100);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* ========== GALLERY ========== */
.gallery-section {
    padding: 100px 60px;
    background: white;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.gallery-header .section-label {
    color: var(--bronze);
}

.gallery-header .section-title {
    color: var(--anthracite-900);
}

.gallery-count {
    font-size: 0.9rem;
    color: var(--anthracite-500);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-zoom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery-zoom i {
    color: var(--anthracite-900);
}

/* ========== LOCATION ========== */
.location-section {
    padding: 100px 60px;
    background: var(--sand-100);
}

.location-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.location-header {
    text-align: center;
    margin-bottom: 60px;
}

.location-header .section-label {
    color: var(--bronze);
}

.location-header .section-title {
    color: var(--anthracite-900);
}

.location-subtitle {
    font-size: 1.1rem;
    color: var(--anthracite-500);
    margin-top: 8px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.location-card {
    background: white;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.location-card:hover {
    border-color: var(--bronze);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.location-icon {
    width: 56px;
    height: 56px;
    background: var(--sand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.location-card:hover .location-icon {
    background: var(--bronze);
}

.location-icon i {
    font-size: 1.3rem;
    color: var(--bronze);
    transition: color 0.3s ease;
}

.location-card:hover .location-icon i {
    color: white;
}

.location-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--anthracite-900);
    margin-bottom: 4px;
}

.location-info p {
    font-size: 0.9rem;
    color: var(--anthracite-500);
}

.location-info .distance {
    font-weight: 600;
    color: var(--bronze);
}

/* ========== CTA ========== */
.cta-section {
    padding: 120px 60px;
    background: linear-gradient(135deg, var(--bronze-dark) 0%, var(--bronze) 50%, var(--bronze-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: white;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: white;
    color: var(--bronze-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--anthracite-900);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ========== FOOTER MINIMAL ========== */
.site-footer-minimal {
    background: var(--anthracite-900);
    padding: 20px 40px;
    text-align: center;
}

.site-footer-minimal p {
    font-size: 0.85rem;
    color: var(--sand-500);
}

/* ========== INFO BLOCK ========== */
.info-block {
    background: var(--sand-100);
    border-top: 1px solid var(--sand-200);
}

.info-block details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.info-block summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--anthracite-700);
}

.info-block summary::-webkit-details-marker {
    display: none;
}

.info-block summary i {
    transition: transform 0.3s ease;
}

.info-block details[open] summary i {
    transform: rotate(180deg);
}

.info-content {
    padding: 0 0 40px;
}

.info-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--anthracite-900);
    margin-bottom: 20px;
}

.info-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--anthracite-800);
    margin: 28px 0 12px;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--anthracite-700);
    margin: 20px 0 10px;
}

.info-content p {
    font-size: 0.95rem;
    color: var(--anthracite-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-content a {
    color: var(--bronze);
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.info-content ul {
    margin: 16px 0 16px 24px;
    color: var(--anthracite-600);
}

.info-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 40px 30px 60px;
    }

    .lead-form {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }

    .header-cta {
        padding: 10px 16px;
        font-size: 0.7rem;
    }

    .hero-content {
        padding: 30px 20px 50px;
    }

    .features-section,
    .location-section {
        padding: 60px 20px;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 60px 20px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .gallery-item:first-child {
        grid-column: span 1;
    }

    .cta-section {
        padding: 80px 20px;
    }

    .hero-header {
        flex-direction: column;
        gap: 20px;
    }

    .project-stats {
        flex-direction: row;
        gap: 20px;
        border-left: none;
        border-top: 1px solid var(--sand-200);
        padding-left: 0;
        padding-top: 16px;
    }

    .stat {
        flex-direction: column;
        gap: 2px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}
