/* Rocks Dark Sections - Shared Styles (Golden Visa & Inquiry Process) */

/* --------------------------------------------------------------------------
   GLOBAL INVERSION: Fixing Elementor Typography in Dark Sections
   If a user places an Elementor widget inside a .rocks-dark-section, 
   global-typography.css forces headings to be black. We must override that here.
   -------------------------------------------------------------------------- */
.rocks-dark-section h1,
.rocks-dark-section h2,
.rocks-dark-section h3,
.rocks-dark-section h4,
.rocks-dark-section h5,
.rocks-dark-section h6,
.rocks-dark-section .elementor-widget-heading .elementor-heading-title {
    color: #ffffff !important;
}

.rocks-dark-section p,
.rocks-dark-section .elementor-text-editor,
.rocks-dark-section .elementor-widget-text-editor {
    color: #d4d4d4 !important;
}

.rocks-dark-section strong,
.rocks-dark-section b {
    color: #ffffff !important;
}

.rocks-dark-section {
    background-color: var(--color-black, #111111);
    /* Global Primary Black */
    /* Deep rich black */
    color: #ffffff;
    padding: 6rem 1rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    position: relative;
    overflow: hidden;
}

/* Override for Process Section - User controls padding via Elementor Container */
/* Removed full-width overrides that caused cut-off edges */
.rocks-process-section {
    padding: 0 !important;
}

.rocks-process-section .rocks-container {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Subtle background texture or gradient for the whole section */
/* Removed gradient overlay for flat black */
.rocks-dark-section::before {
    display: none;
}

.rocks-container {
    max-width: 75rem;
    /* 1200px */
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    /* Match global container padding if needed */
    width: 100%;
}

/* Header */
.rocks-section-header {
    text-align: center;
    /* margin-bottom handled globally via .rocks-title spacing */
}

.rocks-subtitle {
    color: #D4B06A !important;
    /* Lighter Gold for dark backgrounds */
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* margin-bottom handled globally (2rem) */
    display: block;
    /* Removed opacity: 0.9 to ensure full color */
}

.rocks-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(2.5rem, 3vw + 1rem, 4rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    /* Force white color to override Elementor defaults */
    color: #ffffff !important;
    text-shadow: none;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* --- Golden Visa Specifics (Kept clean but upgraded) --- */
.rocks-gv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rocks-gv-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.rocks-gv-card {
    background: rgba(30, 30, 30, 0.85);
    /* Increased opacity and lightness */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* More visible border */
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rocks-gv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(197, 160, 89, 0.3);
}

.rocks-gv-card-title {
    color: #ffffff;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rocks-gv-icon {
    color: var(--color-gold, #C5A059);
    width: 2rem;
    height: 2rem;
}

/* Golden Visa Table */
.rocks-gv-threshold-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.rocks-gv-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rocks-gv-row.header {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.rocks-gv-row:last-child {
    border-bottom: none;
}

.rocks-gv-cell-title {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.rocks-gv-cell-sub {
    font-size: 0.875rem;
    color: #ccc;
    /* 888 -> ccc for better contrast */
    margin-top: 0.25rem;
    display: block;
}

.rocks-gv-cell-value {
    font-weight: 700;
    color: #fff;
}

.rocks-gv-cell-region {
    color: #aaa;
    font-size: 0.875rem;
}

.rocks-gv-alert {
    margin-top: 2rem;
    background: rgba(197, 160, 89, 0.05);
    border-left: 2px solid var(--color-gold, #C5A059);
    padding: 1rem;
    font-size: 0.875rem;
    color: #ccc;
    line-height: 1.5;
}

.rocks-gv-alert strong {
    color: #fff;
}

/* Golden Visa Timeline */
.rocks-gv-timeline {
    position: relative;
    padding-left: 2rem;
    flex-grow: 1;
}

.rocks-gv-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0.5rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, #333 0%, #333 50%, rgba(51, 51, 51, 0) 100%);
}

.rocks-gv-timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.rocks-gv-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.rocks-gv-timeline-item.active::before {
    background-color: var(--color-gold, #C5A059);
    border-color: var(--color-gold, #C5A059);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

.rocks-gv-year {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-weight: 700;
    color: #666;
    margin-bottom: 0.25rem;
    display: block;
    transition: color 0.3s ease;
}

.rocks-gv-timeline-item.active .rocks-gv-year {
    color: var(--color-gold, #C5A059);
}

.rocks-gv-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.rocks-gv-item-desc {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.6;
}

.rocks-gv-btn-whatsapp {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #107c10 0%, #0d6e0d 100%);
    color: #ffffff !important;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rocks-gv-btn-whatsapp:hover {
    color: #ffffff !important;
    filter: brightness(1.1);
    box-shadow: 0 0 24px 4px rgba(37, 211, 102, 0.35);
}

/* --- Inquiry Process (Creative V2) --- */

.rocks-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* 32px */
    perspective: 1000px;
    width: 100%;
}

@media (min-width: 640px) {
    .rocks-process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .rocks-process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        /* 32px - Strict Grid */
    }
}

.rocks-process-card {
    position: relative;
    background: linear-gradient(145deg, #222222, #1a1a1a);
    /* Lighter gradient base */
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* More visible border */
    border-radius: 1rem;
    padding: 2rem;
    /* 32px - Strict 8-point grid */
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* Clips the giant watermark */
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out, border-color 0.6s ease-out;
    /* Smoother, slower animation per user request */
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for depth */
}

/* Hover Effect: Lift & Gold Glow */
@media (hover: hover) and (min-width: 768px) {
    .rocks-process-card:hover {
        transform: translateY(-12px);
        border-color: rgba(197, 160, 89, 0.4);
        box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(197, 160, 89, 0.1) inset;
    }
}

/* Gold Accent Line at Top */
.rocks-process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold, #C5A059), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (min-width: 768px) {
    .rocks-process-card:hover::before {
        opacity: 1;
    }
}

/* Content Container (Keeps text above watermark) */
.rocks-process-content {
    position: relative;
    z-index: 2;
}

/* The Title */
.rocks-process-title {
    color: #ffffff !important;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Small Gold Underline on Title */
.rocks-process-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold, #C5A059);
    margin-top: 0.5rem;
    transition: width 0.3s ease;
}

@media (hover: hover) and (min-width: 768px) {
    .rocks-process-card:hover .rocks-process-title::after {
        width: 100%;
    }
}

.rocks-process-desc {
    font-size: 0.95rem;
    /* ~15px */
    color: #e0e0e0;
    /* 999 -> e0e0e0 dramatically lighter */
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Helps against dark bg */
}

/* Giant Watermark Number */
.rocks-process-watermark {
    position: absolute;
    bottom: -25px;
    right: -10px;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 8rem;
    /* Giant! */
    font-weight: 800;
    line-height: 1;
    color: transparent;
    /* Decorative only — transparent prevents Lighthouse contrast flags */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    z-index: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    user-select: none;
}

/* Hover: Watermark becomes slightly more visible and gold-tinted */
@media (hover: hover) and (min-width: 768px) {
    .rocks-process-card:hover .rocks-process-watermark {
        -webkit-text-stroke: 1px rgba(197, 160, 89, 0.2);
        transform: scale(1.1) rotate(-5deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .rocks-dark-section {
        padding: 4rem 0;
        /* Remove horizontal padding */
    }

    .rocks-section-header {
        text-align: left;
        padding: 0 1rem;
    }

    .rocks-container,
    .rocks-destinations-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .rocks-title {
        font-size: 2rem;
    }

    .rocks-process-watermark {
        font-size: 6rem;
        bottom: -15px;
    }
}

/* --------------------------------------------------------------------------
   MARKET FUNDAMENTALS V2 (.rocks-market-v2)
   Creative Light Mode Redesign
   Refined: Icons moved to watermark, Gold top line & Glow effects.
   -------------------------------------------------------------------------- */

.rocks-market-v2 {
    background-color: #FAFAFA;
    /* Premium Off-White */
    padding: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    position: relative;
    z-index: 5;
    /* Ensure shadows sit on top of next section */
    /* overflow: hidden; Removed to prevent shadow clipping */
}

.rocks-market-v2-container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
}

/* Header */
.rocks-market-v2-header {
    text-align: center;
    margin-bottom: 4rem;
}

.rocks-market-v2-subtitle {
    color: #7B6339 !important;
    /* Accessible gold — 4.9:1 on #FAFAFA (WCAG AA) — same R:G:B ratio as brand gold */
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.rocks-market-v2-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--h2-size);
    /* Global H2 Size */
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    /* Dark Grey */
    line-height: 1.2;
}

/* Grid */
.rocks-market-v2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .rocks-market-v2-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.rocks-market-v2-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E2E4E8;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out, border-color 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Gold Accent Line at Top */
.rocks-market-v2-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C5A059, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover Effects */
@media (hover: hover) and (min-width: 768px) {
    .rocks-market-v2-card:hover {
        transform: translateY(-8px);
        border-color: rgba(197, 160, 89, 0.4);
        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.08),
            0 0 20px rgba(197, 160, 89, 0.1) inset;
        /* Inner Gold Glow */
    }

    .rocks-market-v2-card:hover::before {
        opacity: 1;
    }
}

/* Content */
.rocks-market-v2-content {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
    /* Added padding since icon is gone */
}

/* Card Title */
.rocks-market-v2-card-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--h3-size);
    /* Global H3 Size */
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Small Gold Underline on Title */
.rocks-market-v2-card-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #C5A059;
    margin-top: 0.5rem;
    transition: width 0.3s ease;
}

@media (hover: hover) and (min-width: 768px) {
    .rocks-market-v2-card:hover .rocks-market-v2-card-title::after {
        width: 100%;
    }
}

/* Description */
.rocks-market-v2-desc {
    font-size: var(--body-size);
    /* Global Body Size */
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

.rocks-market-v2-desc strong {
    color: #1A1A1A;
    font-weight: 600;
}

/* Watermark Icon */
.rocks-market-v2-watermark {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 8rem;
    /* Giant Icon */
    color: rgba(0, 0, 0, 0.03);
    /* Very subtle dark transparent */
    z-index: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    user-select: none;
    line-height: 1;
}

@media (hover: hover) and (min-width: 768px) {
    .rocks-market-v2-card:hover .rocks-market-v2-watermark {
        color: rgba(197, 160, 89, 0.08);
        /* Gold tint on hover */
        transform: scale(1.1) rotate(-5deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .rocks-market-v2-header {
        text-align: left;
        padding: 0 1rem;
    }

    .rocks-market-v2-title {
        font-size: 2rem;
    }

    .rocks-market-v2-watermark {
        font-size: 6rem;
        bottom: -10px;
    }

}

/* --------------------------------------------------------------------------
   DESTINATIONS V2 (Refined & Global Match)
   Shortcode: [rocks_destinations_v2]
   Refined: Boxed cards with global typography and standard spacing.
   -------------------------------------------------------------------------- */
.rocks-destinations-v2 {
    background-color: transparent;
    padding: 0;
    position: relative;
    z-index: 5;
}

.rocks-destinations-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.rocks-destinations-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
    /* Force 32px / 2rem as requested */
}

@media (min-width: 768px) {
    .rocks-destinations-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--space-lg) !important;
        /* Force 32px / 2rem as requested */
    }
}

/* Card Wrapper (Link) */
a.rocks-destination-card {
    position: relative;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.5rem;
    /* 24px */
    background: rgba(30, 30, 30, 0.85);
    /* Match GV */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Match GV */
    overflow: hidden;
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out, border-color 0.6s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Gold Accent Line at Top */
.rocks-destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(197, 160, 89, 0.6) 20%,
            #FFF3D6 50%,
            rgba(197, 160, 89, 0.6) 80%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

@media (hover: hover) and (min-width: 768px) {
    .rocks-destination-card:hover {
        transform: translateY(-12px);
        border-color: rgba(197, 160, 89, 0.4);
        box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(197, 160, 89, 0.1) inset;
    }

    .rocks-destination-card:hover::before {
        opacity: 1;
        box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    }
}

/* Top Image Area */
.rocks-destination-image {
    height: 16rem;
    /* 256px */
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #111111;
    /* Match content color to prevent gaps */
}

.rocks-destination-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(26, 26, 26, 0.8) 100%);
}

/* Bottom Content Area */
.rocks-destination-content {
    background: transparent;
    padding: var(--space-lg) var(--space-xl);
    /* 32px top/bottom, 64px horizontal */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2;
}

.rocks-destination-title {
    font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif) !important;
    font-size: 1.25rem !important;
    font-weight: 800;
    margin-bottom: var(--space-sm) !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    /* Never wrap onto a new line */
}

/* Two-Tone Title Color */
.rocks-destination-title .title-white {
    color: #FFFFFF !important;
}

.rocks-destination-title .title-gold {
    color: var(--color-accent, #C5A059) !important;
}

.rocks-destination-desc {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
    /* No button below */
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .rocks-destination-image {
        height: 14rem;
    }
}

@media (max-width: 480px) {
    .rocks-destination-image {
        height: 12rem;
    }

    .rocks-destination-content {
        padding: var(--space-md) var(--space-lg);
        /* 16px top/bottom, 32px horizontal */
    }
}