/* ============================================
   Mirenvo Inc — Corporate Website Styles
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark-soft);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Navbar ---- */
#mainNav {
  padding: 1rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#mainNav.scrolled {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--white);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: var(--dark);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
  }

  .btn-nav {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* ---- Hero ---- */
.hero-section {
  margin-top: 0;
}

.hero-slide {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(37, 99, 235, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
  max-width: 720px;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-content .lead {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-btns .btn-outline-light:hover {
  background: var(--white);
  color: var(--dark);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* ---- Feature Cards (overlap hero) ---- */
.feature-cards {
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.feature-card-img {
  height: 160px;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.05);
}

.feature-card-body {
  padding: 1.5rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

/* ---- Section utilities ---- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  color: var(--gray-500);
}

/* ---- About ---- */
.about-section {
  background: var(--white);
}

.about-images {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 45%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--white);
}

.experience-badge {
  position: absolute;
  top: 20px;
  left: -10px;
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.exp-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.about-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.about-point i {
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.about-point h6 {
  margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
  .about-img-secondary {
    display: none;
  }

  .experience-badge {
    left: 10px;
    top: 10px;
  }
}

/* ---- Services ---- */
.services-section {
  background: var(--gray-100);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h5 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}

/* ---- Products ---- */
.products-section {
  background: var(--white);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h5 {
  margin-bottom: 0.5rem;
}

.product-body > p {
  color: var(--gray-500);
  font-size: 0.9rem;
  flex: 1;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.product-features li {
  font-size: 0.85rem;
  color: var(--gray-700);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---- Process ---- */
.process-section {
  background: var(--gray-100);
}

.process-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.process-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ---- Stats ---- */
.stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: var(--white);
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonials-section {
  background: #f0f7ff;
}

.testimonial-carousel .carousel-inner {
  padding-bottom: 0.5rem;
}

.testimonial-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Speech bubble */
.testimonial-bubble {
  position: relative;
  background: var(--white);
  border: 1px solid #a0c4ff;
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
  flex: 1;
}

.testimonial-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #4a5568;
  text-align: left;
}

/* Bubble tail — border triangle */
.testimonial-bubble::before {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 32px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid #a0c4ff;
  z-index: 1;
}

/* Bubble tail — fill triangle */
.testimonial-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 33px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--white);
  z-index: 2;
}

/* Author row — aligned with bubble tail */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-left: 12px;
}

.author-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.author-info h6 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.testimonial-indicators {
  position: static;
  margin-top: 2rem;
  margin-bottom: 0;
}

.testimonial-indicators [data-bs-target] {
  background-color: #a0c4ff;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  opacity: 1;
  margin: 0 5px;
  transition: background-color var(--transition), transform var(--transition);
}

.testimonial-indicators .active {
  background-color: var(--primary);
  transform: scale(1.15);
}

@media (max-width: 767.98px) {
  .testimonial-bubble {
    margin-bottom: 1.25rem;
  }

  .testimonial-item {
    margin-bottom: 0.5rem;
  }
}

/* ---- Contact ---- */
.contact-section {
  background: var(--gray-100);
}

.contact-info-list {
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-info-item a {
  color: var(--primary);
  font-weight: 500;
}

.contact-info-item a:hover {
  color: var(--primary-dark);
}

.contact-info-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h4 {
  margin-bottom: 1.5rem;
}

.form-control,
.form-select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.65rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer h6 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* ---- Bootstrap overrides ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.text-primary {
  color: var(--primary) !important;
}
