/* ===================================
   FINVISTA ANALYTICS - RESPONSIVE CSS
   Mobile-First Responsive Design
   =================================== */

/* ===== BASE RESPONSIVE FIXES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== CONTAINER RESPONSIVE ===== */
.container,
.rr-container-1410,
.rr-container-1350 {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 1300px) {
  .header-nav {
    display: none;
  }
  
  .header-offfcanvas {
    display: block !important;
  }
  
  .header-cta {
    display: none;
  }
}

@media (max-width: 991px) {
  .header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .header-area .header-top {
    display: none;
  }
  
  .header-area .header-main-inner {
    height: 70px;
    padding: 0 10px;
  }
  
  .header-logo img,
  .header-logo .logo-text {
    font-size: 22px !important;
  }
}

@media (max-width: 575px) {
  .header-area .header-main-inner {
    height: 60px;
  }
  
  .header-logo img,
  .header-logo .logo-text {
    font-size: 18px !important;
  }
  
  .side-toggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
}

/* ===== MOBILE MENU IMPROVEMENTS ===== */
.side-info {
  width: 100%;
  max-width: 400px;
  padding: 25px 20px;
}

@media (max-width: 575px) {
  .side-info {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
  }
  
  .offset-widget-box {
    margin-top: 25px;
  }
  
  .offset-widget-box .title {
    font-size: 20px;
  }
}

/* ===== HERO SECTION RESPONSIVE ===== */
.hero-area {
  margin-top: 110px;
  padding: 15px 15px 0;
}

@media (max-width: 991px) {
  .hero-area {
    margin-top: 70px;
    padding: 10px 10px 0;
    min-height: auto !important;
  }
  
  .hero-slide {
    min-height: 500px !important;
    padding: 80px 0 60px !important;
  }
  
  .hero-content {
    max-width: 100% !important;
    margin-right: 0 !important;
    padding: 0 15px;
  }
  
  .hero-content .hero-title {
    font-size: 36px !important;
    line-height: 1.3 !important;
  }
  
  .hero-content .text {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  
  .hero-badge {
    display: none !important;
  }
  
  .hero-nav {
    bottom: 20px !important;
  }
  
  .hero-nav-btn {
    width: 45px !important;
    height: 45px !important;
  }
}

@media (max-width: 767px) {
  .hero-area {
    margin-top: 60px;
    padding: 5px 5px 0;
  }
  
  .hero-area-inner {
    border-radius: 15px !important;
  }
  
  .hero-slide {
    min-height: 450px !important;
    padding: 60px 0 50px !important;
  }
  
  .hero-content .hero-title {
    font-size: 28px !important;
    margin: 15px 0 !important;
  }
  
  .hero-content .hero-subtitle {
    font-size: 12px !important;
    letter-spacing: 1px !important;
  }
  
  .hero-content .text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .hero-content .btn-wrapper {
    margin-top: 25px !important;
  }
  
  .hero-content .rr-btn {
    padding: 14px 24px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .hero-slide {
    min-height: 400px !important;
    padding: 50px 0 40px !important;
  }
  
  .hero-content .hero-title {
    font-size: 24px !important;
  }
  
  .hero-content .text {
    font-size: 13px !important;
  }
}

/* ===== STOCK TICKER RESPONSIVE ===== */
.stock-ticker-wrapper {
  padding: 10px 0 !important;
}

@media (max-width: 767px) {
  .stock-ticker-wrapper {
    padding: 8px 0 !important;
  }
  
  .ticker-item {
    margin-right: 30px !important;
    font-size: 12px !important;
  }
  
  .stock-ticker-wrapper::before,
  .stock-ticker-wrapper::after {
    width: 50px !important;
  }
}

/* ===== PREMIUM FEATURES RESPONSIVE ===== */
.premium-features-area {
  padding: 80px 0 60px !important;
}

@media (max-width: 991px) {
  .premium-features-area {
    padding: 60px 0 40px !important;
  }
  
  .premium-title {
    font-size: 32px !important;
  }
  
  .premium-text {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }
  
  .numbered-features-wrapper-right {
    padding-left: 0 !important;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .premium-features-area {
    padding: 50px 0 30px !important;
  }
  
  .premium-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  
  .section-tag {
    padding: 8px 15px !important;
    font-size: 12px !important;
    margin-bottom: 20px !important;
  }
  
  .numbered-feature-box {
    padding: 20px !important;
    flex-direction: column;
    gap: 15px !important;
  }
  
  .feature-number {
    width: 50px !important;
    height: 50px !important;
  }
  
  .number-text {
    font-size: 20px !important;
  }
  
  .feature-title {
    font-size: 18px !important;
  }
  
  .feature-description {
    font-size: 14px !important;
  }
  
  .feature-svg-icon {
    width: 45px !important;
    height: 45px !important;
  }
}

/* ===== REASONS SECTION RESPONSIVE ===== */
.reasons-choose-area {
  padding: 60px 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 991px) {
  .reasons-choose-area {
    padding: 50px 0 !important;
  }
  
  .section-title-new {
    font-size: 30px !important;
  }
}

@media (max-width: 767px) {
  .reasons-choose-area {
    padding: 40px 0 !important;
  }
  
  .section-title-new {
    font-size: 24px !important;
  }
  
  .reason-card-inner {
    padding: 20px !important;
  }
  
  .reason-icon-wrapper {
    width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  
  .reason-icon {
    font-size: 28px !important;
  }
  
  .risk-call-icon {
    width: 30px !important;
    height: 30px !important;
  }
  
  .reason-title {
    font-size: 18px !important;
  }
  
  .reason-description {
    font-size: 14px !important;
  }
  
  .reason-number {
    font-size: 40px !important;
  }
}

/* ===== PACKAGES SECTION RESPONSIVE ===== */
.packages-minimal-area {
  padding: 60px 0 !important;
}

@media (max-width: 991px) {
  .packages-minimal-area {
    padding: 50px 0 !important;
  }
  
  .section-title-new-packages {
    font-size: 32px !important;
  }
  
  .section-subtitle-packages {
    font-size: 22px !important;
  }
}

@media (max-width: 767px) {
  .packages-minimal-area {
    padding: 40px 0 !important;
  }
  
  .section-title-new-packages {
    font-size: 26px !important;
  }
  
  .section-subtitle-packages {
    font-size: 18px !important;
  }
  
  .packages-header {
    margin-bottom: 30px !important;
  }
  
  .package-name-card {
    padding: 35px 20px 30px !important;
  }
  
  .package-number {
    font-size: 40px !important;
    top: -10px !important;
  }
  
  .package-icon-wrapper {
    width: 70px !important;
    height: 70px !important;
  }
  
  .package-icon {
    font-size: 35px !important;
  }
  
  .package-name-text {
    font-size: 20px !important;
  }
  
  .recommended-tag {
    font-size: 10px !important;
    padding: 5px 12px !important;
  }
}

/* ===== EXPERT GUIDANCE / CONTACT FORM RESPONSIVE ===== */
.expert-guidance-area {
  padding: 60px 0 !important;
}

@media (max-width: 991px) {
  .expert-guidance-area {
    padding: 50px 0 !important;
  }
  
  .info-title {
    font-size: 32px !important;
  }
  
  .info-description {
    font-size: 16px !important;
  }
  
  .form-card {
    padding: 30px 25px !important;
    margin-top: 40px;
  }
  
  .form-title {
    font-size: 26px !important;
  }
}

@media (max-width: 767px) {
  .expert-guidance-area {
    padding: 40px 0 !important;
  }
  
  .info-badge {
    padding: 8px 16px !important;
    font-size: 12px !important;
    margin-bottom: 20px !important;
  }
  
  .info-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  
  .info-description {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
  
  .benefits-list {
    margin-bottom: 20px !important;
  }
  
  .benefit-item {
    margin-bottom: 12px !important;
  }
  
  .benefit-icon {
    width: 28px !important;
    height: 28px !important;
    margin-right: 12px !important;
  }
  
  .benefit-item span {
    font-size: 14px !important;
  }
  
  .feature-badges {
    gap: 10px !important;
  }
  
  .feature-badge {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  
  .form-card {
    padding: 25px 20px !important;
    border-radius: 20px !important;
  }
  
  .form-title {
    font-size: 22px !important;
  }
  
  .form-subtitle {
    font-size: 14px !important;
  }
  
  .expert-form .form-row {
    margin-bottom: 15px !important;
  }
  
  .expert-form label {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
  
  .expert-form input,
  .expert-form .form-select {
    padding: 12px 15px !important;
    font-size: 14px !important;
  }
  
  .submit-btn {
    padding: 14px 25px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .info-title {
    font-size: 22px !important;
  }
  
  .form-card {
    padding: 20px 15px !important;
  }
  
  .form-title {
    font-size: 20px !important;
  }
}

/* ===== FOOTER RESPONSIVE ===== */
.footer-widget-wrapper {
  padding-top: 80px !important;
  padding-bottom: 60px !important;
  gap: 40px 30px !important;
}

@media (max-width: 991px) {
  .footer-widget-wrapper {
    grid-template-columns: 1fr 1fr !important;
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }
  
  .footer-widget-wrapper > *:before {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .footer-widget-wrapper {
    grid-template-columns: 1fr !important;
    padding-top: 50px !important;
    padding-bottom: 30px !important;
    gap: 30px !important;
  }
  
  .footer-logo span,
  .footer-logo .logo-text {
    font-size: 22px !important;
  }
  
  .footer-text .text {
    font-size: 14px !important;
  }
  
  .footer-widget-title {
    font-size: 18px !important;
  }
  
  .footer-nav-list li a,
  .footer-meta-list li {
    font-size: 14px !important;
  }
  
  .footer-social {
    gap: 5px !important;
  }
  
  .footer-social a {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .footer-widget-wrapper {
    padding-top: 40px !important;
    padding-bottom: 25px !important;
    gap: 25px !important;
  }
}

/* ===== COPYRIGHT AREA RESPONSIVE ===== */
.copyright-area-inner {
  padding: 20px 0 !important;
  flex-direction: column;
  text-align: center;
}

@media (max-width: 767px) {
  .copyright-text .text {
    font-size: 13px !important;
  }
}

/* ===== LOADER RESPONSIVE ===== */
@media (max-width: 767px) {
  .loader-wrap .loader-wrap-heading .load-text {
    font-size: 24px !important;
    letter-spacing: 1px !important;
  }
  
  .loader-graph-container svg {
    transform: scale(0.6);
  }
}

@media (max-width: 480px) {
  .loader-wrap .loader-wrap-heading .load-text {
    font-size: 20px !important;
    letter-spacing: 0.5px !important;
  }
}

/* ===== SCROLL TO TOP BUTTON RESPONSIVE ===== */
.progress-wrap {
  width: 45px !important;
  height: 45px !important;
  right: 15px !important;
  bottom: 15px !important;
}

.progress-wrap::after {
  width: 45px !important;
  height: 45px !important;
  line-height: 45px !important;
  font-size: 16px !important;
}

/* ===== SECTION SPACING RESPONSIVE ===== */
.section-spacing {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

@media (max-width: 991px) {
  .section-spacing {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

@media (max-width: 767px) {
  .section-spacing {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}

/* ===== BUTTONS RESPONSIVE ===== */
.rr-btn {
  padding: 14px 28px !important;
  font-size: 14px !important;
}

@media (max-width: 767px) {
  .rr-btn {
    padding: 12px 22px !important;
    font-size: 13px !important;
  }
}

/* ===== TEXT SIZE RESPONSIVE UTILITIES ===== */
@media (max-width: 991px) {
  .text {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 767px) {
  .text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* ===== GRID RESPONSIVE FIXES ===== */
.row {
  margin-left: -10px;
  margin-right: -10px;
}

.row > * {
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 767px) {
  .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .row > * {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .g-3, .g-4 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
  }
}

/* ===== SVG AND CHART BACKGROUNDS RESPONSIVE ===== */
.hero-stock-chart-bg,
.footer-stock-chart-bg {
  opacity: 0.25 !important;
}

@media (max-width: 767px) {
  .hero-stock-chart-bg,
  .footer-stock-chart-bg {
    opacity: 0.15 !important;
  }
  
  .hero-stock-chart-bg svg,
  .footer-stock-chart-bg svg {
    transform: scale(1.5) translateX(10%);
  }
}

/* ===== ANIMATED BACKGROUNDS RESPONSIVE ===== */
@media (max-width: 767px) {
  .bg-shape,
  .bg-animated-shape {
    display: none !important;
  }
  
  .packages-bg-animation::before {
    display: none !important;
  }
}

/* ===== SIDE INFO / OFFCANVAS MENU RESPONSIVE ===== */
.side-info {
  width: 100% !important;
  max-width: 350px;
}

@media (max-width: 400px) {
  .side-info {
    max-width: 100% !important;
    padding: 20px 15px !important;
  }
  
  .offset-logo {
    width: 100px !important;
  }
  
  .mobile-menu.mean-container .mean-nav ul li a {
    font-size: 16px !important;
    padding: 12px 0 !important;
  }
  
  .offset-widget-box .contact-item .text {
    font-size: 13px !important;
  }
}

/* ===== TABLE RESPONSIVE ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== FORM RESPONSIVE ===== */
input, 
select, 
textarea {
  max-width: 100%;
  font-size: 16px !important; /* Prevents zoom on iOS */
}

@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    padding: 12px 15px !important;
    border-radius: 10px !important;
  }
}

/* ===== IMAGE RESPONSIVE ===== */
.thumb img,
.main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== SWIPER / SLIDER RESPONSIVE ===== */
.swiper-slide {
  width: 100%;
}

.slider-button-prev,
.slider-button-next {
  display: none;
}

@media (min-width: 992px) {
  .slider-button-prev,
  .slider-button-next {
    display: flex;
  }
}

/* ===== FIX HORIZONTAL SCROLL ===== */
.hero-area-inner,
section,
main,
header,
footer {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ===== TOUCH DEVICE IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
  .rr-btn:hover,
  .package-name-card:hover,
  .reason-card:hover,
  .numbered-feature-box:hover {
    transform: none !important;
  }
  
  a, button {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* ===== LANDSCAPE PHONE FIX ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slide {
    min-height: auto !important;
    padding: 40px 0 30px !important;
  }
  
  .hero-content .hero-title {
    font-size: 24px !important;
  }
  
  .loader-wrap {
    padding: 20px;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header-area,
  .footer-area,
  .progress-wrap,
  .loader-wrap {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
}
