/* ============================================
   Jovian Advisory & Research - Main Stylesheet
   Primary Color: Cobalt Blue (#0047AB)
   ============================================ */

:root {
  --primary: #0047AB;
  --primary-dark: #003580;
  --primary-light: #1a5fc4;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --medium-gray: #e8ecf1;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --shadow: 0 4px 20px rgba(0, 71, 171, 0.12);
  --shadow-hover: 0 8px 30px rgba(0, 71, 171, 0.2);
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
}

/* ---- Base & Typography ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.bg-light-custom {
  background-color: var(--light-gray);
}

/* ---- Buttons ---- */
.btn-primary-custom {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
  padding: 12px 32px;
  font-weight: 500;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 32px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---- Sticky Navigation ---- */
.navbar-custom {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.brand-logo {
  height: 72px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---- Hero Slider ---- */
.hero-slider {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.85) 0%, rgba(0, 53, 128, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 750px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ---- Page Banner ---- */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 120px 0 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1454165804603-c7694aa581b8?w=1920&q=80') center/cover;
  opacity: 0.1;
}

.page-banner h1 {
  font-size: 2.75rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-banner p {
  font-size: 1.15rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 1rem auto 0;
}

.breadcrumb-custom {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-custom a:hover {
  color: var(--white);
}

.breadcrumb-custom span {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.5rem;
}

/* ---- About Section ---- */
.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.about-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-list li i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 71, 171, 0.15);
}

.service-card .icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  transform: scale(1.1);
}

.service-card .icon-box i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Large Service Cards (Services Page) ---- */
.service-card-large {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card-large .card-image {
  height: 220px;
  overflow: hidden;
}

.service-card-large .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-large:hover .card-image img {
  transform: scale(1.05);
}

.service-card-large .card-body {
  padding: 2rem;
}

.service-card-large .icon-badge {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card-large .icon-badge i {
  font-size: 1.5rem;
  color: var(--white);
}

/* ---- Experience / Icon Cards ---- */
.experience-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.experience-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.experience-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.experience-card .counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonial-card .stars {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-card .review-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .client-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

.testimonial-card .client-company {
  color: var(--primary);
  font-size: 0.9rem;
}

/* ---- Contact Info ---- */
.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-info-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---- Contact Form ---- */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form .form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.contact-form .form-control {
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 71, 171, 0.15);
}

.contact-form .form-control.is-invalid {
  border-color: #dc3545;
}

.contact-form .invalid-feedback {
  font-size: 0.85rem;
}

/* ---- Industry Cards ---- */
.industry-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.industry-card .industry-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.industry-card .industry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.industry-card:hover .industry-image img {
  transform: scale(1.08);
}

.industry-card .industry-icon {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  z-index: 2;
}

.industry-card .industry-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.industry-card .card-content {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.industry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.industry-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---- Map Placeholder ---- */
.map-placeholder {
  background: var(--light-gray);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--medium-gray);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.map-placeholder .placeholder-content {
  text-align: center;
  color: var(--text-muted);
}

.map-placeholder .placeholder-content i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* ---- Footer ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.brand-logo-footer {
  height: 60px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--primary-light);
  margin-top: 4px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.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: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Scroll to Top ---- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Business Hours ---- */
.hours-list {
  list-style: none;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--medium-gray);
  font-size: 0.95rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

.contact-info-card .hours-list {
  max-width: 220px;
  margin: 1rem auto 0;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .page-banner h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 767.98px) {
  .brand-logo {
    height: 52px;
    max-width: 300px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .hero-slider {
    height: 70vh;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .page-banner {
    padding: 100px 0 60px;
  }

  .page-banner h1 {
    font-size: 1.85rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}
