/* ==========================================================================
   RESIDENTIAL REAL ESTATE PAGE - SPECIFIC STYLES
   Common styles are in css/style.css
   ========================================================================== */

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-secondary-teal) 0, var(--color-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   SERVICE HERO SECTION
   ========================================================================== */

.service-hero-v2 {
    position: relative;
    padding: 10rem 2rem 6rem;
    overflow: hidden;
    text-align: center;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0e1a 0, #0f172a 50%, #1e293b 100%);
    z-index: -3;
}

.service-hero-gradient-animated {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(45, 212, 191, 0.15) 0, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.12) 0, transparent 50%);
    animation: gradientPulse 8s ease-in-out infinite alternate;
    z-index: -2;
}

.service-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

@keyframes gradientPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.service-hero-content {
    position: relative;
    z-index: 1;
}

.service-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.service-hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-secondary-teal);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.1s forwards;
}

.service-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.2s forwards;
}

.service-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.3s forwards;
}

.service-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.4s forwards;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.trust-pill svg {
    width: 16px;
    height: 16px;
    color: var(--color-secondary-teal);
}

.service-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.5s forwards;
}

.btn-glow {
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.4);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #20bd5a;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .service-hero-v2 {
        padding: 8rem 1.5rem 4rem;
    }

    .service-hero-trust {
        flex-direction: column;
        align-items: center;
    }

    .service-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .service-hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   VISUAL PROOF SECTION (Before/After Comparison)
   ========================================================================== */

.visual-proof-section {
    padding: 5rem 0;
    background: #fff;
}

.section-header-compact {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.comparison-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.comparison-card {
    background: var(--color-bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.comparison-slider-v2 {
    position: relative;
    aspect-ratio: 3/2;
    cursor: ew-resize;
    user-select: none;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-after {
    clip-path: inset(0 0 0 50%);
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-label {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    z-index: 2;
}

.comparison-before .comparison-label {
    left: 1rem;
}

.comparison-after .comparison-label {
    right: 1rem;
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.handle-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.handle-circle {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    pointer-events: all;
    cursor: ew-resize;
    transition: transform 0.2s ease;
}

.handle-circle:hover {
    transform: scale(1.1);
}

.handle-circle svg {
    width: 16px;
    height: 16px;
    color: #0f172a;
}

.comparison-info {
    padding: 1.25rem 1.5rem;
}

.comparison-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary-teal);
    background: rgba(20, 184, 166, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.comparison-tag.highlight {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--color-accent-purple);
}

.comparison-info p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .comparison-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .visual-proof-section {
        padding: 4rem 0;
    }

    .comparison-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .handle-circle {
        width: 40px;
        height: 40px;
    }

    .handle-circle svg {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   SERVICES BREAKDOWN SECTION
   ========================================================================== */

.services-breakdown {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card-v2 {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.service-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary-teal);
}

.service-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-v2:hover .service-card-glow {
    opacity: 1;
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 14px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-secondary-teal);
}

.service-icon.sunset svg {
    color: #f59e0b;
}

.service-icon.sky svg {
    color: #3b82f6;
}

.service-icon.video svg {
    color: #8b5cf6;
}

.service-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-badge.popular {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--color-secondary-teal);
}

.service-badge.impact {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.service-badge.mls {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary-teal);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .services-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-breakdown {
        padding: 4rem 0;
    }

    .services-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */

.process-section-v2 {
    padding: 5rem 0;
    background: #fff;
}

.process-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg-light);
    border-radius: 16px;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.process-card.highlight {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(139, 92, 246, 0.05));
    border-color: var(--color-secondary-teal);
}

.process-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
}

.process-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-secondary-teal);
}

.process-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.process-card-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.process-cta {
    text-align: center;
}

@media (max-width: 1024px) {
    .process-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-section-v2 {
        padding: 4rem 0;
    }

    .process-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WHY CHOOSE SECTION
   ========================================================================== */

.why-choose-section {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-secondary-teal);
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 14px;
}

.why-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-secondary-teal);
}

.why-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 4rem 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STATS STRIP SECTION
   ========================================================================== */

.stats-strip {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0e1a 0, #0f172a 100%);
}

.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item-v2 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-secondary-teal);
}

.stat-icon.highlight {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(139, 92, 246, 0.2));
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-number.text {
    font-size: 1.75rem;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary-teal);
    margin-left: 0.25rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

@media (max-width: 1024px) {
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-strip {
        padding: 3rem 0;
    }

    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section-v2 {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0e1a 0, #0f172a 100%);
    z-index: -3;
}

.cta-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(45, 212, 191, 0.15) 0, transparent 60%);
    z-index: -2;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.cta-content-v2 {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title-v2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-subtitle-v2 {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-buttons-v2 {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .cta-section-v2 {
        padding: 4rem 0;
    }

    .cta-buttons-v2 {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons-v2 .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.portfolio-video {
  width: 100%;
  height: 70%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.portfolio-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
