/* 
   Our Services Page - Isolated Styling
   Theme: Rajmandir Luxury Real Estate
*/

.services-page {
    background: #fff;
}

/* Hero Section */
.services-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(14, 17, 38, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: -85px; /* Offset for transparent header */
    padding-top: 85px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #fff;
}

.hero-lead {
    font-size: clamp(18px, 2vw, 24px);
    opacity: 0.9;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

/* Intro Section */
.services-intro {
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.intro-main-text {
    font-size: 19px;
    line-height: 1.8;
    color: var(--primary-3);
}

.emphasized-text {
    font-size: 24px;
    color: var(--primary-1);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-1);
    padding-left: 30px;
}

.intro-main-text p {
    margin-bottom: 25px;
}

.intro-experience-badge {
    position: relative;
    display: flex;
    justify-content: center;
}

.badge-content {
    width: 280px;
    height: 280px;
    background: var(--primary-1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    box-shadow: 0 30px 60px rgba(14, 17, 38, 0.2);
    position: relative;
    z-index: 2;
}

.badge-content::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(14, 17, 38, 0.2);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Detailed Services: The Imperial Bento */
.services-details {
    background: #F4F6FF; /* Ice Blue Background */
}

.imperial-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 30px;
}

.bento-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: #0E1126;
    box-shadow: 0 40px 80px rgba(14, 17, 38, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle edge definition */
}

/* Asymmetric Spans */
.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide-bottom {
    grid-column: span 2;
}

.bento-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.bento-card:hover .bento-image img {
    transform: scale(1.1) rotate(1deg);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 17, 38, 0.4) 0%, rgba(14, 17, 38, 0.95) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.bento-card:hover .bento-overlay {
    background: linear-gradient(180deg, rgba(14, 17, 38, 0.2) 0%, rgba(14, 17, 38, 0.9) 100%);
}

.bento-content {
    position: relative;
    z-index: 3;
    padding: 50px;
    color: #fff;
    transition: transform 0.4s ease;
}

.bento-card:hover .bento-content {
    transform: translateY(-10px);
}

.bento-num {
    display: block;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #FFFFFF !important; /* Force Pure White */
}

.bento-desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 450px;
}

.bento-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.bento-tag {
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.bento-list li {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.bento-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-2);
    border-radius: 50%;
    transform: translateY(-50%);
}

.bento-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.section-subtitle.gold {
    color: var(--primary-2) !important; /* Force brand gold */
    font-weight: 700;
}

/* Hover Glow Effect */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(188, 156, 122, 0);
    z-index: 4;
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}

.bento-card:hover::after {
    box-shadow: inset 0 0 100px rgba(188, 156, 122, 0.25); /* Stronger Brand Glow */
}
/* Bento Section Styling */
.services-bento-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-bento-header .section-title-lux {
    margin-top: 15px;
    color: var(--primary-1);
}

/* Dashboard Style Scaling */
@media (max-width: 1200px) {
    .imperial-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
    .bento-wide, .bento-wide-bottom { grid-column: span 2; }
}

@media (max-width: 768px) {
    .imperial-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .bento-content { padding: 30px; }
    .bento-title { font-size: 24px; }
    .bento-card { min-height: 300px; }
    .bento-desc { font-size: 15px; }

    /* Override the inline margin-bottom: 80px on the section header */
    .services-bento-header {
        margin-bottom: 36px !important;
    }

    /* Section padding reduction */
    .services-details.section-padding {
        padding: 60px 0;
    }
}

/* Small phones */
@media (max-width: 600px) {
    .bento-content { padding: 24px 20px; }
    .bento-title { font-size: 21px; letter-spacing: -0.3px; margin-bottom: 12px; }
    .bento-desc { font-size: 14px; }
    .bento-card { min-height: 260px; border-radius: 24px; }
    .bento-footer { margin-top: 18px; gap: 8px; }

    .services-bento-header {
        margin-bottom: 28px !important;
    }
    .services-details.section-padding {
        padding: 48px 0;
    }
}

.badge-num {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-label {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Intro Scaling */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .intro-experience-badge {
        order: -1;
    }
    .badge-content {
        width: 220px;
        height: 220px;
    }
    .badge-num {
        font-size: 56px;
    }
    .services-intro.section-padding {
        padding: 70px 0;
    }
    .emphasized-text {
        font-size: 20px;
    }
    .intro-main-text {
        font-size: 17px;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .services-intro.section-padding {
        padding: 50px 0;
    }

    .intro-grid {
        gap: 28px;
    }

    /* Shrink the badge circle further on phones */
    .badge-content {
        width: 180px;
        height: 180px;
    }

    .badge-num {
        font-size: 46px;
    }

    .badge-label {
        font-size: 13px;
        letter-spacing: 1px;
    }

    /* Reduce the emphasized quote block */
    .emphasized-text {
        font-size: 17px !important;
        padding-left: 18px;
        border-left-width: 3px;
    }

    .intro-main-text {
        font-size: 15px;
    }
}

/* --- Final CTA Section (Homepage Sync) --- */
.connect-section {
    background: #fff;
    padding-top: 0;
    padding-bottom: 0 !important;
}

.connect-box-full {
    background: #F4F6FF; 
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 100px 0; /* Premium Desktop Padding */
    margin: 0;
    border-radius: 0;
}

.container-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.connect-content {
    flex: 1;
}

.connect-box-full .section-title-lux {
    color: var(--primary-1) !important;
    margin-bottom: 40px;
}

.connect-action {
    flex: 0 0 420px;
}

.contact-card-lux {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(14, 17, 38, 0.12);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-lux:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 100px rgba(14, 17, 38, 0.15);
}

.contact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-3);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-number-lux {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-1);
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-number-lux:hover {
    color: var(--secondary-2);
    transform: scale(1.02);
}

.contact-number-lux .icon-circle {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.contact-card-lux:hover .icon-circle {
    transform: rotate(15deg) scale(1.1);
}

.cta-v2-description p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--primary-3);
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .container-connect {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }
    .connect-action {
        width: 100%;
        max-width: 450px;
    }
    .cta-v2-description {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .connect-box-full {
        margin: 0 !important; /* Remove restrictive margins */
        border-radius: 0 !important; /* Keep it full width on tablet/mobile for cleaner look */
        padding: 60px 0 40px !important;
    }
    .container-connect {
        padding: 0 32px !important; /* Generous horizontal gutter */
    }
    .connect-box-full .section-title-lux {
        font-size: 28px !important;
        margin-bottom: 25px;
    }
    .cta-v2-description p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .connect-box-full {
        padding: 40px 0 20px !important;
    }
    .container-connect {
        padding: 0 24px !important; /* Solid gutter for small screens */
        gap: 24px !important;
    }
    .contact-card-lux {
        padding: 30px 20px !important;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(14, 17, 38, 0.08) !important;
    }
    .contact-number-lux {
        font-size: 20px !important;
        margin-bottom: 15px;
    }
    .contact-number-lux .icon-circle {
        width: 40px;
        height: 40px;
    }
    .contact-number-lux .icon-circle svg {
        width: 16px;
        height: 16px;
    }
    .connect-box-full .section-title-lux {
        font-size: 24px !important;
    }
}

/* ==========================================================================
   Services Hero – Mobile & Tablet Responsive Overrides
   Scoped entirely to .services-hero — no other page is affected.
   ========================================================================== */

/* Tablet (≤992px) */
@media (max-width: 992px) {
    .services-hero {
        height: auto;
        min-height: 420px;
        padding-top: 130px;   /* Header offset + breathing room */
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .services-title {
        letter-spacing: -1px; /* Loosen the tight -2px tracking */
    }

    .hero-lead {
        font-size: 17px;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .services-hero {
        min-height: 360px;
        padding-top: 110px;
        padding-bottom: 48px;
    }

    .services-title {
        letter-spacing: -0.5px;
        margin-bottom: 14px;
    }

    .hero-lead {
        font-size: 15px !important;
        margin-bottom: 20px;
    }

    .hero-divider {
        width: 50px;
        height: 3px;
    }
}

/* ==========================================================================
   Why Rajmandir – Services Page Mobile Overrides
   (home.css is homepage-only, so these rules live here for services)
   ========================================================================== */

/* Base: reduce the huge 80px gap on services page for all viewports */
.services-page .why-grid {
    gap: 60px;
}

.services-page .feature-box {
    padding: 30px;
}

/* Tablet (≤992px) */
@media (max-width: 992px) {
    .services-page .why-rajmandir {
        padding: 70px 0 !important;
    }

    .services-page .why-grid {
        gap: 36px !important;
    }

    .services-page .feature-list {
        gap: 16px;
    }

    .services-page .feature-box {
        padding: 24px !important;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .services-page .why-rajmandir {
        padding: 50px 0 !important;
    }

    /* Feature 2x2 → single column */
    .services-page .feature-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .services-page .feature-box {
        padding: 20px !important;
        border-radius: 14px;
    }

    .services-page .feat-icon {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .services-page .feat-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .services-page .feat-desc {
        font-size: 13px;
    }
}

/* Why Rajmandir Section - Services Page Specific */
.services-page-why {
    background: #fff !important;
    border-radius: 0 !important;
}

.why-desc {
    color: var(--primary-3);
    font-size: 18px;
    margin-bottom: 40px;
}

