/* ============================================
   Ratifier India - Main Stylesheet
   ============================================ */

:root {
  --navy: #0F172A;
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --dark-gray: #334155;
  --text-muted: #64748B;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.text-teal {
  color: var(--teal) !important;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.bg-light-gray {
  background-color: var(--light-gray) !important;
}

/* Buttons */
.btn-teal {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-teal:hover,
.btn-teal:focus {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.btn-outline-teal {
  border: 2px solid var(--teal);
  color: var(--teal);
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-teal:hover,
.btn-outline-teal:focus {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-navy:hover,
.btn-navy:focus {
  background-color: #1E293B;
  border-color: #1E293B;
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy) !important;
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--teal);
}

.nav-link {
  color: var(--dark-gray) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F172A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero-section {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 50%, rgba(20, 184, 166, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge i {
  font-size: 1.5rem;
  color: var(--teal);
}

.hero-badge strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.hero-badge small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Page Hero Banner */
.page-hero {
  padding: calc(var(--header-height) + 50px) 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #2DD4BF, var(--teal));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb-nav {
  margin-top: 1.5rem;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav a:hover {
  color: var(--teal);
}

.breadcrumb-nav span {
  color: var(--teal);
}

/* Cards */
.feature-card,
.why-card,
.service-card,
.benefit-card,
.industry-card,
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover,
.why-card:hover,
.service-card:hover,
.benefit-card:hover,
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.2);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.icon-box i {
  font-size: 1.5rem;
  color: var(--teal);
}

.feature-card:hover .icon-box,
.service-card:hover .icon-box {
  background: var(--teal);
}

.feature-card:hover .icon-box i,
.service-card:hover .icon-box i {
  color: var(--white);
}

.feature-card h3,
.why-card h3,
.service-card h3,
.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-card p,
.why-card p,
.service-card p,
.benefit-card p,
.industry-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.why-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
}

.why-card .icon-box {
  margin: 0 auto 1rem;
}

/* About */
.about-section .about-content {
  max-width: 720px;
}

.about-highlight {
  border-left: 4px solid var(--teal);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Statistics */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 400;
}

/* Timeline / Process */
.process-timeline {
  position: relative;
  padding: 0.5rem 0;
}

.process-steps {
  position: relative;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.step-marker {
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.step-number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35), 0 0 0 1px rgba(20, 184, 166, 0.15);
}

.step-content {
  background: var(--light-gray);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  width: 100%;
  flex: 1;
  transition: var(--transition);
}

.process-step:hover .step-content {
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.process-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Industries */
.industry-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.industry-card i {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.industry-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: rgba(20, 184, 166, 0.2);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.author-info strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rating {
  color: #FBBF24;
  margin-bottom: 1rem;
}

.rating i {
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Accordion */
.faq-section .accordion-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-section .accordion-button {
  font-weight: 500;
  color: var(--navy);
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.faq-section .accordion-button:not(.collapsed) {
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal-dark);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(20, 184, 166, 0.3);
}

.faq-section .accordion-body {
  color: var(--text-muted);
  padding: 0 1.5rem 1.25rem;
}

/* Contact Page */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon i {
  color: var(--teal);
  font-size: 1.1rem;
}

.contact-info-item h5 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-info-item a:hover {
  color: var(--teal);
}

.contact-info-card .icon.mx-auto {
  width: 56px;
  height: 56px;
}

.contact-info-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 60px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--teal);
}

.site-footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.site-footer p {
  font-size: 0.95rem;
  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.75);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--teal);
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--teal);
  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.9rem;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

.float-whatsapp {
  background: #25D366;
}

.float-call {
  background: var(--teal);
}

.back-to-top {
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal);
}

/* Service card number */
.service-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(20, 184, 166, 0.15);
  line-height: 1;
  margin-bottom: -0.5rem;
}

/* Responsive */
@media (min-width: 992px) {
  .process-steps::before {
    content: '';
    position: absolute;
    /* Align line center with step badge center (column gutter + half badge height) */
    top: calc(var(--bs-gutter-y, 1.5rem) * 0.5 + 26px - 1px);
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(
      90deg,
      rgba(20, 184, 166, 0.15) 0%,
      var(--teal) 15%,
      var(--teal) 85%,
      rgba(20, 184, 166, 0.15) 100%
    );
    border-radius: 3px;
    z-index: 1;
  }
}

@media (max-width: 991.98px) {
  .process-timeline {
    padding-left: 0.5rem;
  }

  .process-steps {
    position: relative;
    padding-left: 1.25rem;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--bs-gutter-y, 1.5rem) * 0.5 + 26px);
    bottom: calc(var(--bs-gutter-y, 1.5rem) * 0.5 + 26px);
    left: calc(1.25rem + 26px - 1px);
    width: 3px;
    background: linear-gradient(180deg, var(--teal), rgba(20, 184, 166, 0.25));
    border-radius: 3px;
    z-index: 0;
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .step-marker {
    margin-bottom: 0;
  }

  .step-content {
    flex: 1;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-badge {
    left: 10px;
    bottom: 10px;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-bottom: 60px;
  }

  .hero-badge {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 1rem;
    display: inline-flex;
  }

  .contact-info-card {
    padding: 1.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
