/* ============================================
   REALESTATE.CSS — Shared styles for Real Estate section
   Extends style.css — does NOT duplicate base styles
   ============================================ */

/* --- Real Estate Sub-Nav (pill-style nav for RE pages) --- */
.re-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 8px;
    background: rgba(15, 26, 20, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    margin: 12px auto 0;
    width: fit-content;
    max-width: 90%;
    position: relative;
    z-index: 900;
}

.re-subnav a {
    text-decoration: none;
    color: #A0AEC0;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.re-subnav a:hover {
    color: var(--off-white);
    background: rgba(255, 255, 255, 0.08);
}

.re-subnav a.active {
    color: var(--midnight-base);
    background: var(--primary-action);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(200, 240, 106, 0.2);
}

/* --- Cinematic Hero (RE pages) --- */
.re-hero {
    position: relative;
    padding: 240px 20px 120px;
    margin-top: -180px;
    /* Pull the hero backdrop up under the navbars */
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.re-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #000;
}

.re-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: brightness(0.6) contrast(1.1);
}

.re-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 26, 20, 0.95) 0%,
            rgba(15, 26, 20, 0.2) 35%,
            rgba(15, 26, 20, 0.8) 80%,
            rgba(15, 26, 20, 1) 100%);
    z-index: -1;
}

.re-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.re-hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-action);
    margin-bottom: 28px;
}

.re-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.re-hero-subtitle {
    font-size: 1.15rem;
    color: #bbb;
    max-width: 680px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

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

/* --- Section Layout --- */
.re-section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.re-section--narrow {
    max-width: 800px;
}

.re-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-action);
    margin-bottom: 16px;
    display: block;
}

.re-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--off-white);
    line-height: 1.15;
}

.re-section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 50px;
}

.re-section--center {
    text-align: center;
}

.re-section--center .re-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Problem / Pain Point Cards --- */
.re-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.re-problem-card {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.re-problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.re-problem-card .problem-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.re-problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Solution / Feature Cards --- */
.re-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.re-solution-card {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.3s ease;
}

.re-solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 247, 198, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.re-solution-card .solution-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(233, 247, 198, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.re-solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.re-solution-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Pricing Cards --- */
.re-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.re-pricing-card {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.re-pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 247, 198, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.re-pricing-card.featured {
    border-color: rgba(233, 247, 198, 0.25);
    background: linear-gradient(160deg, rgba(233, 247, 198, 0.05) 0%, var(--deep-moss) 50%);
}

.re-pricing-card .pricing-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-action);
    margin-bottom: 12px;
}

.re-pricing-card .pricing-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 8px;
}

.re-pricing-card .pricing-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.re-pricing-card .pricing-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.re-pricing-card .pricing-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.re-pricing-card .pricing-delivery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(233, 247, 198, 0.06);
    border: 1px solid rgba(233, 247, 198, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-action);
}

/* --- Process / Steps --- */
.re-process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: 700px;
}

.re-process-step {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.re-process-step:hover {
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.re-process-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(233, 247, 198, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-action);
    flex-shrink: 0;
}

.re-process-step h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 6px;
}

.re-process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- FAQ (RE specific layout) --- */
.re-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.re-faq-item {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px 32px;
    transition: all 0.3s ease;
    cursor: default;
}

.re-faq-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.re-faq-item .faq-q {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 10px;
}

.re-faq-item .faq-a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- CTA Banner --- */
.re-cta-banner {
    text-align: center;
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.re-cta-banner .re-section-title {
    margin-bottom: 16px;
}

.re-cta-banner .re-section-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* --- ROI / Highlight Box --- */
.re-highlight-box {
    background: linear-gradient(160deg,
            rgba(233, 247, 198, 0.06) 0%,
            var(--deep-moss) 40%);
    border: 1px solid rgba(233, 247, 198, 0.12);
    border-radius: 20px;
    padding: 48px;
    margin-top: 40px;
}

.re-highlight-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.75;
}

.re-highlight-box strong {
    color: var(--off-white);
}

/* --- About Page — Points Grid --- */
.re-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.re-point-card {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.3s ease;
}

.re-point-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 247, 198, 0.15);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.re-point-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-action);
    margin-bottom: 12px;
}

.re-point-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Contact Form Container (RE version) --- */
.re-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--deep-moss);
    padding: 44px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.re-form-container .form-group {
    margin-bottom: 22px;
}

.re-form-container .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.re-form-container .form-control {
    width: 100%;
    padding: 15px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--off-white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.re-form-container .form-control:focus {
    outline: none;
    border-color: var(--primary-action);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(233, 247, 198, 0.08);
}

.re-form-container select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.re-form-container textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.re-form-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.re-form-note a {
    color: var(--primary-action);
    text-decoration: none;
    font-weight: 500;
}

.re-form-note a:hover {
    text-decoration: underline;
}

/* --- Divider --- */
.re-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Hub Services Bento (3-col on hub) --- */
.re-services-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.re-service-card {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.re-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 247, 198, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(233, 247, 198, 0.03);
}

.re-service-card .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.re-service-card .service-icon.icon-video {
    background: rgba(14, 165, 233, 0.1);
}

.re-service-card .service-icon.icon-lead {
    background: rgba(249, 115, 22, 0.1);
}

.re-service-card .service-icon.icon-photo {
    background: rgba(16, 185, 129, 0.1);
}

.re-service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.re-service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* --- Image Layouts & Placeholders --- */
.re-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 80px auto;
}

.re-split-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.re-split-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--off-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.re-split-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.re-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.re-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    pointer-events: none;
}

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

.re-image-wrapper:hover img {
    transform: scale(1.03);
}

/* 4:3 Aspect Ratio for standard placeholders */
.re-aspect-4-3 {
    aspect-ratio: 4 / 3;
}

/* 16:9 Aspect Ratio for cinematic placeholders */
.re-aspect-16-9 {
    aspect-ratio: 16 / 9;
}

/* Vertical Aspect Ratio for portrait placeholders */
.re-aspect-3-4 {
    aspect-ratio: 3 / 4;
}

/* Image Grid Gallery */
.re-image-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.re-image-grid .re-image-wrapper {
    border-radius: 16px;
}

.re-image-grid .re-image-wrapper::after {
    border-radius: 16px;
}

/* Spanning classes for grid */
.col-span-12 {
    grid-column: span 12;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

/* Service cards with background images */
.re-service-card-img {
    position: relative;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 240px 40px 40px 40px;
    /* space for image on top */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.re-service-card-img .bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.re-service-card-img .bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.7s ease, opacity 0.4s ease;
}

.re-service-card-img:hover .bg-image img {
    transform: scale(1.05);
    opacity: 0.4;
}

.re-service-card-img .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(10, 15, 13, 0.9) 70%, rgba(10, 15, 13, 1) 100%);
    z-index: 1;
}

.re-service-card-img .content {
    position: relative;
    z-index: 2;
}

.re-service-card-img h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--off-white);
    margin-bottom: 12px;
}

.re-service-card-img p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .re-hero {
        padding: 260px 20px 80px;
        margin-top: -180px;
    }

    .re-hero-title {
        font-size: 2.2rem;
    }

    .re-hero-subtitle {
        font-size: 1rem;
    }

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

    .re-section-title {
        font-size: 1.75rem;
    }

    .re-process-step {
        flex-direction: column;
        gap: 12px;
    }

    .re-highlight-box {
        padding: 32px;
    }

    .re-form-container {
        padding: 28px;
    }

    .re-subnav {
        gap: 4px;
        padding: 12px 12px;
    }

    .re-subnav a {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .re-pricing-grid,
    .re-services-bento,
    .re-problems-grid,
    .re-solutions-grid,
    .re-points-grid {
        grid-template-columns: 1fr !important;
    }

    .re-split-section {
        grid-template-columns: 1fr !important;
        gap: 40px;
        margin: 40px auto;
    }

    .re-image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .col-span-12,
    .col-span-8,
    .col-span-6,
    .col-span-4 {
        grid-column: span 4;
    }
}