/* assets/css/style.css */

/* Brand Color Variables */
:root {
  --primary-color: #819CB4;
  --accent-color: #664E8C;
  --dark-color: #363E46;
  --light-bg: #f8f9fa;
}

/* Global Typography & Elements */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-color);
  background-color: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  margin-top: 0;
  margin-bottom: .5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hyphenation Control */
p, h3, h2, h1, div, span, input, p a, ul li {
  -webkit-hyphens: manual !important;
  -moz-hyphens: manual !important;
  -ms-hyphens: manual !important;
  hyphens: manual !important;
}

/* Section Backgrounds */
#hero {
  background-color: var(--dark-color);
  color: #fff;
}

section.bg-light {
  background-color: var(--light-bg);
}

/* Carousel Text */
.carousel-item h1 {
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, .6);
}

/* Sticky Navbar Overrides */
.navbar {
  background-color: #fff !important;
}

.nav-link {
  font-weight: 500;
  margin-left: 1rem;
  margin-right: 1rem;
}

/* Slide-In Animations */
@keyframes slideInLeft {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.6s ease-out forwards;
}

/* Accordion Customization */
.accordion-button {
  font-weight: 500;
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #664E8C;
}

.accordion-body a {
  color: #664E8C;
  text-decoration: underline;
}

.accordion-body a:hover {
  color: #819CB4;
}

/* Pay Section Links */
#pay a {
  color: var(--dark-color);
}

#pay a:hover {
  color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #bbb;
}

footer a {
  color: #bbb;
}

footer a:hover {
  color: #fff;
}

/* Utility Overrides */
.text-light {
  color: #fff !important;
}

.bg-light {
  background-color: var(--light-bg) !important;
}

.object-fit-cover {
  object-fit: cover;
  object-position: center;
}

.text-shadow {
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* Doctor Card Hover Effects */
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animated Reveal */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out forwards;
}

/* Optional staggered delay */
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
/* Add more as needed */

/* Slide-in Animations */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left,
.slide-in-right {
  opacity: 0;
  animation-duration: 2.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* Trigger immediately (optional) */
.slide-in-left {
  animation-name: slideInLeft;
}

.slide-in-right {
  animation-name: slideInRight;
}

/* Purple Section Background */
.bg-purple {
  background-color: #664E8C;
}

/* Optional: lighten text-muted for contrast */
.text-light-emphasis {
  color: #dcdcdc;
}

/* Role Section Background */
.bg-role {
  background-color: #dcdcdc;
}

/* Accent color for icons */
.text-accent {
  color: #664E8C;
}

/* Card enhancements */
.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.card p {
  color: #ddd;
}
