/**
 * PROJECT: RENIC MANAGEMENT SERVICES
 * VERSION: 1.1.0
 * DESCRIPTION: Premium financial services styling with a focus on trust and growth.
 * AUTHOR: Lead UI/UX Strategist
 */

/* ==========================================================================
   1. BRAND DESIGN SYSTEM (Variables)
   ========================================================================== */
   :root {
    /* Primary Brand Colors */
    --renic-navy: #0A1D37;
    --renic-navy-light: #152b4a;
    --renic-orange: #F26522;
    --renic-orange-glow: rgba(242, 101, 34, 0.15);
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --soft-gray: #F8FAFC;
    --border-color: #E2E8F0;
    --text-main: #334155;
    --text-heading: #0F172A;
    --text-muted: #64748B;

    /* Semantic Elevations (Shadows) */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 10px 15px -3px rgba(10, 29, 55, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(10, 29, 55, 0.12);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   2. CORE TYPOGRAPHY
   ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   3. NAVIGATION BEHAVIOR
   ========================================================================== */
/* ==========================================================================
   3. NAVIGATION BEHAVIOR & ACTIVE STATES (Clean Version)
   ========================================================================== */
#main-nav {
    transition: var(--transition-smooth);
}

/* Scroll Effect - Polish when user scrolls down */
#main-nav.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Base Link Style */
.nav-link {
    transition: color 0.3s ease;
    display: inline-block;
    color: var(--text-main); /* Default slate color */
}

/* HOVER State - Just the Orange Color */
.nav-link:hover {
    color: var(--renic-orange) !important;
}

/* ACTIVE State - Orange Color + Boldness */
.nav-link.active {
    color: var(--renic-orange) !important;
    font-weight: 800; /* Makes it clearly the current page without needing lines */
}

/* Dropdown Menu Item Polish */
.group div a {
    transition: all 0.2s ease;
}

.group div a:hover {
    color: var(--renic-orange) !important;
    padding-left: 1.75rem !important; /* Subtle "push" effect on hover instead of line */
    background-color: var(--soft-gray);
}

/* Dropdown Active Item */
.group div a.active {
    color: var(--renic-orange) !important;
    background-color: var(--soft-gray);
    font-weight: 700;
}

/* Mobile Menu Specifics (Overwrite for cleanliness) */
@media (max-width: 1023px) {
    nav ul.flex-col li a.active {
        color: var(--renic-orange) !important;
        background-color: var(--soft-gray);
        padding-left: 1rem !important;
        border-left: 4px solid var(--renic-orange); /* Small vertical bar instead of horizontal underline */
    }
}

/* ==========================================================================
   4. INTERACTIVE SERVICE CARDS
   ========================================================================== */
.service-card {
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    background: var(--white);
    z-index: 1;
}

/* Elegant bottom border-reveal on hover */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--renic-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(242, 101, 34, 0.2);
}

.service-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Icon box inside card */
.service-icon-box {
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--renic-navy);
    color: var(--renic-orange);
    transform: scale(1.1);
}

/* ==========================================================================
   5. BUTTONS & CTAs
   ========================================================================== */
.btn-premium {
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--renic-orange);
}

.btn-premium:active {
    transform: translateY(0);
}

/* ==========================================================================
   6. FORMS & INPUTS
   ========================================================================== */
input, select, textarea {
    transition: var(--transition-fast) !important;
    border: 1.5px solid var(--border-color) !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--renic-orange) !important;
    box-shadow: 0 0 0 4px var(--renic-orange-glow) !important;
    outline: none;
}

/* Placeholder color for professional look */
::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==========================================================================
   7. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Delayed animations for grid items */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ==========================================================================
   8. CUSTOM SCROLLBAR (Brand Integrated)
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--soft-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--renic-navy);
    border-radius: 5px;
    border: 2px solid var(--soft-gray); /* Gives a padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--renic-orange);
}

/* ==========================================================================
   9. ACCESSIBILITY & UTILITIES
   ========================================================================== */
/* High contrast for screen readers or reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.text-gradient {
    background: linear-gradient(to right, var(--renic-navy), var(--renic-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.animate-slow-zoom {
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce-slow {
    animation: bounceSlow 3s infinite ease-in-out;
}


/**
 * PROJECT: RENIC MANAGEMENT SERVICES
 * PAGE: ABOUT US
 * DESCRIPTION: Custom layout and component styling for the brand narrative.
 */

/* ==========================================================================
   1. ABOUT HERO ENHANCEMENTS
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, var(--renic-navy) 0%, #051224 100%);
    position: relative;
    border-bottom: 5px solid var(--renic-orange);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Texture overlay */
.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Subtle background watermark image - A modern office/team context */
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08; /* Subtle watermark */
    z-index: 0;
}

/* The floating glow effect from your original style, kept for brand personality */
.about-hero .glow-element {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: floatGlow 10s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    from { transform: translate(0, 0); }
    to { transform: translate(-50px, 50px); }
}

/* ==========================================================================
   2. NARRATIVE IMAGE STYLING
   ========================================================================== */
.narrative-image-container {
    position: relative;
    padding-bottom: 2rem;
    padding-right: 2rem;
}

/* The offset orange box behind the image */
.narrative-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--renic-orange-glow);
    border-radius: 1.5rem;
    z-index: 0;
    transition: var(--transition-smooth);
}

.narrative-image-container:hover::after {
    transform: translate(15px, 15px);
    background-color: rgba(242, 101, 34, 0.2);
}

/* ==========================================================================
   3. MISSION & VISION CARDS
   ========================================================================== */
.mission-card {
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Special hover state for the Navy Vision card */
.vision-card-dark:hover {
    background-color: var(--renic-navy-light);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(5, 18, 36, 0.5);
}

/* ==========================================================================
   4. CORE VALUES INTERACTIONS
   ========================================================================== */
.value-item {
    padding: 2rem;
    border-radius: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.value-item:hover {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: var(--soft-gray);
    transition: var(--transition-smooth);
}

.value-item:hover .value-icon-wrapper {
    background: var(--renic-navy);
    color: var(--renic-orange);
    transform: rotate(10deg);
}

/* ==========================================================================
   5. PURPOSE SECTION (The Heartbeat of Kenya)
   ========================================================================== */
.purpose-box {
    box-shadow: 0 40px 100px -20px rgba(10, 29, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Decorative animated line for the Purpose Section */
.purpose-line {
    width: 60px;
    height: 4px;
    background: var(--renic-orange);
    margin-bottom: 2rem;
    position: relative;
}

.purpose-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: lineScan 3s infinite linear;
    opacity: 0.5;
}

@keyframes lineScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   6. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {

    .about-hero {
        min-height: 45vh;
        padding-top: 6rem;
        align-items: flex-start;
    }

    .purpose-box {
        padding: 3rem 1.5rem !important;
        border-radius: 2rem !important;
    }
    
    .mission-card {
        padding: 2rem !important;
    }
}


/**
 * PROJECT: RENIC MANAGEMENT SERVICES
 * PAGE: SERVICES & PROCESS ENHANCEMENTS
 * DESCRIPTION: Specific interactions for service cards, ETR showcase, and the onboarding journey.
 */

/* ==========================================================================
   1. SERVICES HERO & HEADER
   ========================================================================== */
.services-hero {
    background: linear-gradient(135deg, var(--renic-navy) 0%, #051224 100%);
    position: relative;
    border-bottom: 5px solid var(--renic-orange);
    min-height: 60vh;
    display: flex;
    align-items: center; 
    justify-content: flex-start; /* Aligns container to the left */
}

/* Texture overlay for hero depth */
.services-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Subtle background image watermark */
.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/team-image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
}

.services-hero .container {
    position: relative;
    z-index: 10;
    /* No change needed here, the parent flex handles the alignment */
}


/* ==========================================================================
   2. ENHANCED SERVICE CARDS (Image + Overlap Logic)
   ========================================================================== */
.service-card {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

/* Image zoom and subtle rotation on card hover */
.service-card .relative img {
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .relative img {
    transform: scale(1.15) rotate(1deg);
}

/* Icon Box Overlap Logic: The "Cut-out" Look */
.service-icon-box {
    margin-top: -3rem; /* Pushes icon up into the image space */
    z-index: 30;
    transition: var(--transition-smooth);
    border: 6px solid var(--white) !important; /* Thick border for the offset look */
    box-shadow: var(--shadow-md);
}

.service-card:hover .service-icon-box {
    transform: translateY(-8px) scale(1.05);
    background-color: var(--renic-orange) !important;
    color: var(--white) !important;
    box-shadow: 0 20px 40px rgba(242, 101, 34, 0.3);
    border-color: var(--white) !important;
}

/* Bullet point animation on hover */
.service-card:hover ul li i {
    transform: scale(1.3);
    color: var(--renic-navy);
}

/* ==========================================================================
   3. THE PROCESS JOURNEY (Interactive Timeline)
   ========================================================================== */
.process-step {
    perspective: 1000px;
}

/* The Animated Progress Bar (Controlled by main.js) */
#process-progress-bar {
    border-radius: 50px;
    box-shadow: 0 0 20px var(--renic-orange-glow);
    transition: width 0.3s ease-out;
}

/* Step Number Badge Interaction */
.process-step .absolute.-top-3.-right-3 {
    transition: var(--transition-smooth);
    z-index: 40;
    font-size: 0.7rem;
    width: 2rem;
    height: 2rem;
}

.process-step:hover .absolute.-top-3.-right-3 {
    background-color: var(--renic-orange) !important;
    color: var(--white) !important;
    transform: scale(1.25) rotate(12deg);
    border-color: var(--renic-orange) !important;
}

/* Success Pulse for the Final Step */
.process-step:last-child .w-20.h-20 {
    animation: pulseNavy 3s infinite;
}

@keyframes pulseNavy {
    0% { box-shadow: 0 0 0 0 rgba(10, 29, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(10, 29, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 29, 55, 0); }
}

/* ==========================================================================
   4. ETR SECTION SPECIAL STYLES
   ========================================================================== */
.animate-bounce-slow {
    animation: bounceSlow 4s infinite ease-in-out;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

#etr img {
    transition: var(--transition-smooth);
}

#etr:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   5. CONVERSION ENHANCEMENTS
   ========================================================================== */
/* Elegant Animated Underline for "Inquire Now" links */
.service-card a.inline-flex {
    position: relative;
    padding-bottom: 4px;
}

.service-card a.inline-flex::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px; /* Starting width */
    height: 2px;
    background-color: var(--renic-orange);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover a.inline-flex::after {
    width: 100%;
}

/* ==========================================================================
   6. RESPONSIVE REFINEMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    /* Kill the horizontal line on tablets/mobile to avoid clutter */
    .hidden.lg\:block.absolute.top-1\/4 {
        display: none !important;
    }
    
    .service-icon-box {
        margin-top: -2.5rem;
        width: 3.5rem;
        height: 3.5rem;
        border-width: 4px !important;
    }
}

@media (max-width: 640px) {
    section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .service-card .p-10 {
        padding: 1.5rem !important;
        padding-top: 0 !important;
    }
    
    .service-card h3 {
        font-size: 1.5rem !important;
    }

    /* Stack ETR Feature grid on small phones */
    #etr .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Mobile height adjustment to keep it from taking too much "fold" space */
@media (max-width: 768px) {
    .services-hero {
        min-height: 50vh;
        padding-top: 4rem;
    }
}

/**
 * PROJECT: RENIC MANAGEMENT SERVICES
 * PAGE: INSIGHTS / BLOG
 * DESCRIPTION: Premium editorial layout with magazine-style interactions.
 */

/* ==========================================================================
   1. BLOG HERO & BREADCRUMBS
   ========================================================================== */

.blog-hero {
    background: linear-gradient(135deg, var(--renic-navy) 0%, #051224 100%);
    position: relative;
    border-bottom: 5px solid var(--renic-orange);
    min-height: 60vh; /* Primary requirement */
    display: flex;
    align-items: center; /* Vertically centers the content */
}

/* Sophisticated background image with parallax-like feel */
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Keeps it professional and subtle */
    z-index: 0;
}

/* Content wrapper to ensure it sits above the background image */
.blog-hero .container {
    position: relative;
    z-index: 10;
}

/* Subtle animation for the orange accent */
.blog-hero .text-renicOrange {
    display: inline-block;
    animation: slideInRight 0.8s ease-out;
}


/* Subtle glow for hero breadcrumb */
.blog-hero nav a {
    position: relative;
    opacity: 0.8;
}

.blog-hero nav a:hover {
    opacity: 1;
    color: var(--renic-orange);
}

/* ==========================================================================
   2. FEATURED ARTICLE ENHANCEMENTS
   ========================================================================== */
.featured-article-card {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Make the featured image feel deep */
.featured-article-card .overflow-hidden img {
    filter: saturate(0.9);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), 
                filter 0.5s ease;
}

.featured-article-card:hover .overflow-hidden img {
    transform: scale(1.03);
    filter: saturate(1.1);
}

/* Featured Badge Animation */
.featured-article-card span.bg-renicOrange {
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
    animation: pulseSmall 3s infinite;
}

@keyframes pulseSmall {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================================================
   3. CATEGORY FILTERS
   ========================================================================== */
.category-filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.category-filter-btn:hover {
    border-color: var(--renic-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* = :active state is handled by the nav-link logic or direct bg-navy class in HTML */

/* ==========================================================================
   4. ARTICLE GRID CARDS
   ========================================================================== */
.article-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-grid-card img {
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* The "Read More" link hover */
.article-grid-card a.uppercase {
    position: relative;
    overflow: hidden;
}

.article-grid-card a.uppercase::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--renic-orange);
    transition: width 0.3s ease;
}

.article-grid-card:hover a.uppercase::after {
    width: 100%;
}

/* ==========================================================================
   5. PAGINATION STYLING
   ========================================================================== */
.pagination-btn {
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--renic-navy);
    color: var(--white);
    border-color: var(--renic-navy);
    transform: scale(1.1);
}

/* ==========================================================================
   6. NEWSLETTER LEAD GEN BOX
   ========================================================================== */
.newsletter-box {
    box-shadow: 0 50px 100px -20px rgba(10, 29, 55, 0.2);
}

.newsletter-box input:focus {
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--renic-orange-glow);
}

/* Subtle corner decoration */
.newsletter-decoration {
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   7. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-article-card .p-16 {
        padding: 3rem 2rem !important;
    }
}

@media (max-width: 640px) {
    .article-grid-card h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .newsletter-box {
        padding: 3rem 1.5rem !important;
        border-radius: 2rem !important;
    }
}

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

/* Mobile height adjustment */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
        padding-top: 5rem; /* Space for the sticky navbar */
    }
}


/**
 * PROJECT: RENIC MANAGEMENT SERVICES
 * PAGE: CONTACT US
 * DESCRIPTION: Custom styles for high-conversion contact forms and interactive maps.
 */

/* ==========================================================================
   1. CONTACT HERO REFINEMENTS
   ========================================================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--renic-navy) 0%, #051224 100%);
    position: relative;
    /* Architectural left alignment already handled by flex in HTML */
}

/* Subtle Office Background Overlay */
.contact-hero img {
    mix-blend-mode: overlay;
    filter: brightness(0.5) saturate(0);
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Keeps it professional and subtle */
    z-index: 0;
}

/* ==========================================================================
   2. CONTACT INFO BLOCKS (LEFT SIDE)
   ========================================================================== */
.contact-info-group {
    transition: var(--transition-smooth);
}

/* Custom icon bounce on group hover */
.group:hover .fa-solid {
    animation: iconBounce 0.5s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==========================================================================
   3. PREMIUM FORM STYLING (RIGHT SIDE)
   ========================================================================== */
#contact-form {
    position: relative;
    z-index: 5;
}

/* Input & Textarea Refinements */
#contact-form input, 
#contact-form select, 
#contact-form textarea {
    border: 1.5px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    color: var(--renic-navy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact-form input:focus, 
#contact-form select:focus, 
#contact-form textarea:focus {
    background-color: var(--white);
    border-color: var(--renic-orange);
    box-shadow: 0 0 0 4px var(--renic-orange-glow);
    transform: translateY(-2px);
}

/* Custom Select Dropdown Arrow */
#contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F26522'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Labels with High-End Letter Spacing */
#contact-form label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--renic-navy);
    margin-bottom: 0.5rem;
    display: block;
}

/* Submit Button Elevation */
#contact-form button[type="submit"] {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#contact-form button[type="submit"]:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(242, 101, 34, 0.4);
}

/* ==========================================================================
   4. INTERACTIVE MAP SECTION
   ========================================================================== */
.map-container iframe {
    filter: grayscale(1) contrast(1.1) opacity(0.8);
    transition: filter 1.2s ease, opacity 1s ease;
}

.map-container:hover iframe {
    filter: grayscale(0) contrast(1) opacity(1);
}

/* Floating Label on Map */
.map-label {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-smooth);
}

.map-container:hover .map-label {
    transform: translateY(-5px);
    border-color: var(--renic-orange);
}

/* ==========================================================================
   5. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-hero {
        min-height: 50vh;
        padding-top: 5rem;
    }
}

@media (max-width: 768px) {
    #contact-form {
        padding: 2rem !important; /* Smaller padding on mobile */
        border-radius: 2rem !important;
    }
    
    .map-container {
        height: 400px !important;
    }

    /* Stack grid for info cards on mobile */
    .grid.sm\:grid-cols-2.lg\:grid-cols-1 {
        grid-template-columns: 1fr;
    }
}

/* iOS Autocomplete Background Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}