/* ==========================================================================
   Clinifix — Custom Styles
   ========================================================================== */

:root {
  --primary-color: #273773;      /* deep navy — headings, logo, nav text */
  --secondary-color: #14919B;    /* teal — buttons, accents, icons */
  --secondary-dark: #107A82;     /* teal hover state */
  --accent-color: #1AB394;       /* lighter teal accent */
  --bg-color: #F5F7FA;           /* light gray section background */
  --bg-white: #FFFFFF;
  --text-color: #333333;
  --text-muted: #6B7280;
  --border-color: #E5E9EE;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-white);
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin: 0;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
}

/* Scroll-reveal animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-custom {
  background-color: var(--secondary-color);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--secondary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 145, 155, 0.35);
}
.btn-primary-custom:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(20, 145, 155, 0.3);
}
.btn-sm-custom {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
#mainNavbar {
  background-color: rgba(255, 255, 255, 0.98);
  padding: 1rem 0;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}
#mainNavbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.08);
  border-bottom: 1px solid var(--border-color);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}
.brand-accent {
  color: var(--secondary-color);
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}
.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}

.login-link {
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}
.login-link:hover {
  color: var(--secondary-color);
}

.nav-actions {
  margin-left: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20px;
    z-index: 0;
    transform: scaleX(-1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.9) 35%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.1) 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.search-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
  backdrop-filter: blur(4px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 200px;
  padding: 0.5rem 0.75rem;
}
.search-field i {
  color: var(--text-muted);
}
.search-input {
  border: none;
  padding: 0.25rem 0;
  box-shadow: none !important;
  flex: 1;
}
.search-input:focus {
  outline: none;
}

.search-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

.category-select {
  border: none;
  color: var(--text-muted);
  flex: 0 0 160px;
  box-shadow: none !important;
  cursor: pointer;
}

.search-btn {
  flex: 0 0 auto;
  border-radius: 10px !important;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-badge i {
  font-size: 1.1rem;
}

/* ==========================================================================
   Browse by Profession
   ========================================================================== */
.professions-section {
  padding: 4rem 0;
}

.section-title-sm {
  font-size: 1.5rem;
  font-weight: 600;
}

.carousel-controls {
  gap: 0.5rem;
}
.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.carousel-btn:hover {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

.profession-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.profession-scroll::-webkit-scrollbar {
  height: 6px;
}
.profession-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.profession-card {
  flex: 0 0 140px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition-fast);
  cursor: pointer;
}
.profession-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(11, 37, 69, 0.1);
  border-color: var(--secondary-color);
}
.profession-icon {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}
.profession-card p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
}

/* ==========================================================================
   Why Choose Clinifix
   ========================================================================== */
.why-section {
  padding: 5rem 0;
  background-color: var(--bg-color);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  display: inline-block;
}
.title-underline {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.why-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
}

.why-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.why-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  padding: 4.5rem 0;
  background-color: var(--bg-white);
}
.cta-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.cta-btn {
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-section {
  background-color: var(--primary-color);
  color: #C7D0DB;
  padding: 3.5rem 0 1.5rem;
}
.footer-section .brand-text {
  color: #fff;
}
.footer-text {
  color: #AEB9C8;
  font-size: 0.9rem;
  max-width: 300px;
}
.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #AEB9C8;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-color);
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.social-links a:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
}
.footer-divider {
  border-color: rgba(255,255,255,0.15);
  margin: 2rem 0 1.25rem;
}
.footer-copy {
  color: #8B96A6;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
  body {
    padding-top: 68px;
  }
  .navbar-nav {
    text-align: center;
    margin-top: 0.5rem;
  }
  .nav-actions {
    justify-content: center;
    margin: 0.75rem 0 0.5rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-section {
    padding: 2.5rem 0 3rem;
    text-align: center;
    min-height: auto;
  }
  .hero-overlay {
    background: rgba(255, 255, 255, 0.92);
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .search-card {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }
  .search-divider {
    display: none;
  }
  .category-select {
    flex: 1 1 auto;
  }
  .search-btn {
    width: 100%;
  }
  .trust-badge {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .cta-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Page-Specific Styles (How It Works, FAQ, Contact)
   ========================================================================== */
.page-hero {
  padding: 8rem 0 3.5rem;
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
  text-align: center;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Active nav link */
.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

/* FAQ accordion overrides */
.faq-group-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  color: var(--primary-color);
  background-color: #fff;
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
  color: var(--secondary-color);
  background-color: rgba(20, 145, 155, 0.06);
}
.accordion-button:focus {
  box-shadow: none;
  border-color: var(--secondary-color);
}
.accordion-body {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact page */
.contact-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
}
.contact-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.contact-list i {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}
.contact-list a:hover {
  color: var(--secondary-color);
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--text-color);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.15rem rgba(20, 145, 155, 0.15);
}

.btn-outline-primary-custom {
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
  background: var(--secondary-color);
  color: #fff;
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 6.5rem 0 2.5rem;
  }
  .page-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Home Content Enhancements
   ========================================================================== */
.section-label {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Who We Serve cards */
.serve-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-fast);
}
.serve-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(11, 37, 69, 0.1);
  border-color: var(--secondary-color);
}
.serve-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
}
.serve-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.serve-list li {
  margin-bottom: 0.65rem;
  padding-left: 1.25rem;
  position: relative;
}
.serve-list li::before {
  content: "✓";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 0.9rem;
  top: 0.05rem;
  font-weight: 700;
}
.serve-list li strong {
  color: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background: #fff;
}
.testimonial-card {
  background: var(--bg-color);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-fast);
}
.testimonial-card:hover {
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.08);
}
.testimonial-card p {
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.quote-icon {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
}
.role {
  font-size: 0.85rem;
  color: var(--text-muted);
}
