/* ==========================================================================
   REAL ESTATE PAGE ENHANCEMENTS
   Real estate industry-specific styling, animations, and component overrides
   ========================================================================== */

/* COLOR THEME: Purple/Blue accents for real estate premium feel */
:root {
    --color-accent-estate: #6b18d8;
    --color-accent-estate-light: rgba(107, 24, 216, 0.12);
    --color-accent-estate-hover: rgba(107, 24, 216, 0.2);
}

/* ==========================================================================
   HERO SECTION ENHANCEMENTS
   ========================================================================== */

.ghl-hero-bg {
    position: relative;
    overflow: hidden;
}

.ghl-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 24, 216, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.sub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

.eyebrow-line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #6b18d8 0%, transparent 100%);
}

.eyebrow-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b18d8;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    opacity: 0;
    animation: heroTitleReveal 0.9s ease-out 0.4s forwards;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #6b18d8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

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

.sub-hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #6b18d8 0%, #a855f7 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(107, 24, 216, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid rgba(107, 24, 216, 0.4);
}

.btn-secondary:hover {
    border-color: #6b18d8;
    background: rgba(107, 24, 216, 0.08);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(107, 24, 216, 0.06);
    border: 1px solid rgba(107, 24, 216, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(107, 24, 216, 0.12);
    border-color: rgba(107, 24, 216, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6b18d8;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   MATRIX GRID (PROBLEM VS SOLUTION)
   ========================================================================== */

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.matrix-card {
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.matrix-card.problem {
    animation: slideInLeft 0.8s ease-out 0.3s forwards;
    border-left: 4px solid #ef4444;
}

.matrix-card.solution {
    animation: slideInRight 0.8s ease-out 0.5s forwards;
    border-left: 4px solid #10b981;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px) rotateY(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px) rotateY(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

.matrix-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(107, 24, 216, 0.15);
}

.matrix-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.matrix-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matrix-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    animation: fadeInLeft 0.6s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.matrix-issue-icon::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.matrix-solution-icon::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ==========================================================================
   CAPABILITY CARDS (6 SYSTEM COMPONENTS)
   ========================================================================== */

.ghl-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.capability-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(107, 24, 216, 0.15);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    animation: scaleIn 0.7s ease-out calc(0.1s + var(--card-index, 0) * 0.1s) forwards;
}

.capability-card:nth-child(1) { --card-index: 0; }
.capability-card:nth-child(2) { --card-index: 1; }
.capability-card:nth-child(3) { --card-index: 2; }
.capability-card:nth-child(4) { --card-index: 3; }
.capability-card:nth-child(5) { --card-index: 4; }
.capability-card:nth-child(6) { --card-index: 5; }

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

.capability-card:hover {
    background: rgba(107, 24, 216, 0.08);
    border-color: #6b18d8;
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(107, 24, 216, 0.2);
}

.ghl-service-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6b18d8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.ghl-service-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ghl-service-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.ghl-cta-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.ghl-cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 24, 216, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ghl-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-glass {
    position: relative;
    z-index: 2;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(107, 24, 216, 0.08) 0%, rgba(96, 165, 250, 0.06) 100%);
    border: 1px solid rgba(107, 24, 216, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.9s ease-out 0.4s forwards;
}

.cta-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b18d8;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 1rem;
    gap: 0.75rem;
}

.btn-large svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .text-gradient-purple {
        display: block;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

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

    .cta-banner-glass {
        padding: 3rem 2.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .sub-hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .matrix-card {
        padding: 1.5rem;
    }

    .ghl-services-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        padding: 2rem;
    }

    .cta-banner-glass {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

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

    .matrix-list li {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .capability-card {
        padding: 1.5rem;
    }

    .ghl-service-num {
        font-size: 2rem;
    }

    .ghl-service-name {
        font-size: 1rem;
    }

    .ghl-service-desc {
        font-size: 0.9rem;
    }

    .cta-banner-glass {
        padding: 2rem 1rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   FOOTER ENHANCEMENTS
   ========================================================================== */

.footer-pre-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(107, 24, 216, 0.08);
    border: 1px solid rgba(107, 24, 216, 0.2);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    margin-bottom: 4rem;
    margin-top: 3rem;
}

.footer-pre-cta-content {
    flex: 1;
}

.footer-pre-cta-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.footer-pre-cta-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    grid-column: 1;
}

.footer-brand .logo {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 280px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b18d8;
    margin-bottom: 0.5rem;
}

.footer-links-group a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: #6b18d8;
}

.footer-links-group a.active {
    color: #6b18d8;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.footer-copyright p {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #6b18d8;
}

/* FOOTER RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-pre-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-pre-cta {
        margin-bottom: 3rem;
        padding: 1.5rem;
    }

    .footer-pre-cta-title {
        font-size: 1.15rem;
    }

    .footer-pre-cta-desc {
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .footer-legal-links a {
        display: block;
    }
}

@media (max-width: 480px) {
    .footer-pre-cta {
        padding: 1.25rem 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .footer-pre-cta-title {
        font-size: 1rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-legal-links {
        gap: 0.75rem;
    }

    .footer-legal-links a {
        font-size: 0.8rem;
    }
}
