/* ================================================================
   NRI Services Dashboard - Saving Mantra
   Consolidated Styles
================================================================ */

/* ----------------------------------------------------------------
   CSS Variables & Theme Colors
---------------------------------------------------------------- */
:root {
    --cnvs-themecolor: #0aa6a6;
    --cnvs-themecolor-rgb: 10, 166, 166;
    --cnvs-primary: #0aa6a6;
    --cnvs-primary-dark: #088888;
    --cnvs-secondary: #f6955c;
    --cnvs-success: #10b981;
    --cnvs-warning: #f59e0b;
    --cnvs-danger: #ef4444;
    --cnvs-info: #3b82f6;
    
    --cnvs-body-font: 'DM Sans', sans-serif;
    --cnvs-heading-font: 'DM Sans', sans-serif;
    
    --cnvs-bg-light: #f9fafb;
    --cnvs-bg-dark: #111827;
    --cnvs-text-dark: #111827;
    --cnvs-text-muted: #6b7280;
    
    --cnvs-border-radius: 12px;
    --cnvs-card-shadow: 0 10px 40px rgba(0,0,0,.08);
    --cnvs-transition: all 0.3s ease;
}

/* ----------------------------------------------------------------
   Base & Reset
---------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--cnvs-body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--cnvs-text-dark);
    background: #fff;
}

.stretched {
    width: 100%;
    min-height: 100vh;
}

#wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cnvs-heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--cnvs-text-dark);
    margin-bottom: 1rem;
}

.display-3 { font-size: 3.5rem; }
.display-4 { font-size: 2.5rem; }
.lead { font-size: 1.25rem; line-height: 1.8; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--cnvs-text-muted);
}

.text-primary { color: var(--cnvs-primary) !important; }
.text-white { color: #fff !important; }
.text-muted { color: var(--cnvs-text-muted) !important; }

.bg-primary { background-color: var(--cnvs-primary) !important; }
.bg-light { background-color: var(--cnvs-bg-light) !important; }
.bg-dark { background-color: var(--cnvs-bg-dark) !important; }

/* ----------------------------------------------------------------
   Header
---------------------------------------------------------------- */
#header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 999;
    transition: var(--cnvs-transition);
}

#header-wrap {
    padding: 1rem 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#logo img {
    max-height: 50px;
    width: auto;
}

.header-misc {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation */
.primary-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu .menu-link {
    text-decoration: none;
    color: var(--cnvs-text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: var(--cnvs-transition);
}

.primary-menu .menu-link:hover {
    color: var(--cnvs-primary);
}

/* Mobile Menu Toggle */
.primary-menu-trigger {
    display: none;
    cursor: pointer;
}

.cnvs-hamburger {
    background: none;
    border: none;
    padding: 0.5rem;
}

.cnvs-hamburger-inner {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--cnvs-text-dark);
    position: relative;
}

.cnvs-hamburger-inner::before,
.cnvs-hamburger-inner::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: var(--cnvs-text-dark);
    position: absolute;
    transition: var(--cnvs-transition);
}

.cnvs-hamburger-inner::before { top: -7px; }
.cnvs-hamburger-inner::after { bottom: -7px; }

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--cnvs-transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.button-xlarge {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.button-border {
    background: transparent;
    border: 2px solid currentColor;
}

.button.bg-primary {
    background: var(--cnvs-primary);
    color: #fff;
}

.button.bg-primary:hover {
    background: var(--cnvs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10,166,166,0.3);
}

.button-border.border-primary {
    color: var(--cnvs-primary);
    border-color: var(--cnvs-primary);
}

.button-border.border-primary:hover {
    background: var(--cnvs-primary);
    color: #fff;
}

.button.button-border.border-white {
    color: #fff;
    border-color: #fff;
}

.button.button-border.border-white:hover {
    background: #fff;
    color: var(--cnvs-primary);
}

/* ----------------------------------------------------------------
   Container & Grid
---------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

[class*="col-"] {
    padding: 0 1rem;
}

.col-lg-2 { width: 16.66%; }
.col-lg-3 { width: 25%; }
.col-lg-4 { width: 33.33%; }
.col-lg-6 { width: 50%; }
.col-lg-8 { width: 66.66%; }
.col-md-6 { width: 50%; }

/* Spacing Utilities */
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
}

.g-5 > [class*="col-"] {
    margin-bottom: 3rem;
}

.text-center { text-align: center; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

/* ----------------------------------------------------------------
   Hero Section
---------------------------------------------------------------- */
.hero-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8fbfb 0%, #ffffff 100%);
}

.min-vh-75 {
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.kicker {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badges {
    margin-top: 3rem;
}

.trust-item h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.trust-item p {
    font-size: 0.875rem;
    color: var(--cnvs-text-muted);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--cnvs-border-radius);
    box-shadow: var(--cnvs-card-shadow);
}

/* ----------------------------------------------------------------
   Network/Map Section (from map.css)
---------------------------------------------------------------- */
.network {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: start;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.country-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    color: #4b5563;
    margin-top: 2rem;
}

.country-list ul {
    margin: 0;
    padding-left: 18px;
}

.country-list li {
    margin: 6px 0;
}

.country-list a {
    color: var(--cnvs-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Map Wrapper */
.map-wrap {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
}

.map-wrap img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Hotspot Styles */
.hotspot {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.hotspot .dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--cnvs-primary);
    box-shadow: 0 0 0 10px rgba(10,166,166,.22);
    display: block;
    position: relative;
}

.hotspot .dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    box-shadow: 0 0 0 12px rgba(10,166,166,.25);
}

.hotspot.is-active .dot::after {
    animation: pulse 900ms ease-out 1;
}

@keyframes pulse {
    0%   { opacity: .9; transform: translate(-50%, -50%) scale(0.2); }
    70%  { opacity: 0;  transform: translate(-50%, -50%) scale(1.8); }
    100% { opacity: 0;  transform: translate(-50%, -50%) scale(1.8); }
}

.hotspot .tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: #fff;
    color: #111827;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.hotspot:hover .tip,
.hotspot:focus-visible .tip {
    opacity: 1;
}

/* ----------------------------------------------------------------
   Services Section
---------------------------------------------------------------- */
.services-section {
    background: var(--cnvs-bg-light);
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--cnvs-border-radius);
    box-shadow: var(--cnvs-card-shadow);
    transition: var(--cnvs-transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--cnvs-primary) 0%, #088888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--cnvs-text-muted);
}

.service-features i {
    font-size: 1rem;
}

.service-link {
    color: var(--cnvs-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: var(--cnvs-transition);
}

.service-link:hover {
    gap: 0.75rem;
}

/* ----------------------------------------------------------------
   How It Works Section
---------------------------------------------------------------- */
.step-card {
    position: relative;
    padding: 2rem;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--cnvs-primary);
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--cnvs-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step-icon i {
    font-size: 2rem;
    color: var(--cnvs-primary);
}

/* ----------------------------------------------------------------
   Dashboard Preview Section
---------------------------------------------------------------- */
.dashboard-features .feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--cnvs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.feature-content {
    flex: 1;
}

.dashboard-mockup img {
    width: 100%;
    height: auto;
    border-radius: var(--cnvs-border-radius);
    box-shadow: var(--cnvs-card-shadow);
}

/* ----------------------------------------------------------------
   Testimonials Section
---------------------------------------------------------------- */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--cnvs-border-radius);
    box-shadow: var(--cnvs-card-shadow);
    height: 100%;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--cnvs-text-dark);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--cnvs-text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author .text-muted {
    font-size: 0.875rem;
}

/* ----------------------------------------------------------------
   CTA Section
---------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--cnvs-primary) 0%, #088888 100%);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Contact Section
---------------------------------------------------------------- */
.contact-info .contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--cnvs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: #fff;
}

.contact-content h5 {
    margin-bottom: 0.5rem;
    color: var(--cnvs-text-dark);
}

.contact-content p {
    margin-bottom: 0;
    color: var(--cnvs-text-muted);
}

/* Contact Form */
.contact-form {
    background: var(--cnvs-bg-light);
    padding: 2.5rem;
    border-radius: var(--cnvs-border-radius);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--cnvs-transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--cnvs-primary);
    box-shadow: 0 0 0 3px rgba(10,166,166,0.1);
}

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
#footer {
    background: var(--cnvs-bg-dark);
    color: #fff;
    padding-top: 4rem;
}

.footer-widgets-wrap {
    padding-bottom: 3rem;
}

.widget h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--cnvs-transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: #9ca3af;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--cnvs-transition);
}

.social-icons a:hover {
    background: var(--cnvs-primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--cnvs-primary);
}

/* ----------------------------------------------------------------
   Go To Top Button
---------------------------------------------------------------- */
#gotoTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cnvs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--cnvs-transition);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

#gotoTop.show {
    opacity: 1;
    visibility: visible;
}

#gotoTop:hover {
    background: var(--cnvs-primary-dark);
    transform: translateY(-3px);
}

/* ----------------------------------------------------------------
   Responsive Design
---------------------------------------------------------------- */
@media (max-width: 991px) {
    .network {
        grid-template-columns: 1fr;
    }
    
    .primary-menu {
        display: none;
    }
    
    .primary-menu-trigger {
        display: block;
    }
    
    .primary-menu.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .primary-menu.mobile-active ul {
        flex-direction: column;
        gap: 0;
    }
    
    .primary-menu.mobile-active .menu-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .button {
        width: 100%;
    }
    
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-6 {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
    .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
    
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .trust-badges .row {
        text-align: center;
    }
}

/* ----------------------------------------------------------------
   Utility Classes
---------------------------------------------------------------- */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-4 {
    border-radius: var(--cnvs-border-radius);
}

.shadow-lg {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.d-flex {
    display: flex;
}

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-1 { margin-left: 0.25rem; }

/* Dashboard Specific Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    background: var(--cnvs-bg-dark);
    color: #fff;
    padding: 2rem 0;
}

.dashboard-main {
    background: var(--cnvs-bg-light);
    padding: 2rem;
}

.dashboard-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--cnvs-border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cnvs-primary);
}

.stat-label {
    color: var(--cnvs-text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
