/* BBS Home Care - styled after Nurseplus reference */
:root {
  --purple: #5c058c;
  --pink: #d30f7d;
  --pink-dark: #b00d6a;
  --orange: #e77c27;
  --text: #323232;
  --text-light: #666;
  --white: #ffffff;
  --gray-bg: #f7f7f7;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple); }

.grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--header-height);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

#logo img, #logo svg { height: 50px; width: auto; }

#main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a.nav-link {
  display: block;
  padding: 1.5rem 0.9rem;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.main-nav > ul > li > a.nav-link:hover { color: var(--pink); }

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  list-style: none;
  border-top: 3px solid var(--pink);
  z-index: 100;
}

.main-nav .dropdown:hover .dropdown-menu { display: block; }

.main-nav .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.main-nav .dropdown-menu a:hover {
  background: var(--gray-bg);
  color: var(--pink);
}

.sm-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--pink);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.sm-btn:hover { background: var(--pink-dark); color: var(--white) !important; }

#menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  position: relative;
}

.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

#mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  overflow-y: auto;
  z-index: 999;
  padding: 1rem;
}

#mobile-nav.open { display: block; }

#mobile-nav ul { list-style: none; }

#mobile-nav > div > ul > li > a,
#mobile-nav .mobile-submenu a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text);
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

#mobile-nav .mobile-submenu { padding-left: 1rem; display: none; }
#mobile-nav .has-submenu.open .mobile-submenu { display: block; }

.user-menu { margin-top: 1rem; border-top: 2px solid var(--pink); padding-top: 1rem; }
.user-menu a.register { color: var(--purple); font-weight: 700; }

/* Hero Banner */
.main-banner {
  position: relative;
  min-height: 520px;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
}

.banner-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92, 5, 140, 0.75) 0%, rgba(211, 15, 125, 0.55) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.banner-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0 6rem;
}

.headline h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
}

.headline h5 {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.5;
}

/* Search Form */
.inline-search {
  margin-top: 2rem;
  max-width: 900px;
}

.inline-search .form {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.inline-search dl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  margin: 0;
}

/* Horizontal search bars (home, jobs) */
.inline-search dl:not(.form-stack) {
  align-items: flex-end;
}

/* Stacked forms (contact, etc.) */
.inline-search dl.form-stack {
  flex-direction: column;
  align-items: stretch;
}

.inline-search dd {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.inline-search dl.form-stack dd {
  flex: none;
  width: 100%;
  min-width: 0;
}

.inline-search label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.inline-search input, .inline-search select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}

.inline-search input:focus, .inline-search select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(211, 15, 125, 0.15);
}

.btn__search {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 120px;
}

.btn__search:hover { background: var(--pink-dark); }

/* General Content Sections */
.gen-content {
  padding: 4rem 0;
}

.gen-content.boxed { background: var(--gray-bg); }

.content-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-item.reverse .figure-wrapper { order: -1; }

.content-img img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.content-info h2 {
  color: var(--purple);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.content-info h3 {
  color: var(--pink);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-info p { margin-bottom: 1rem; color: var(--text); }

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--pink);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 0.5rem;
}

.btn-primary:hover { background: var(--pink-dark); }

/* Care Roles */
.disciplines {
  padding: 4rem 0;
  background: var(--white);
}

.disciplines header h2 {
  color: var(--pink);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.disc__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.disc__card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.disc__card:hover { transform: translateY(-4px); }

.disc__img { position: relative; overflow: hidden; }

.disc__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.disc__card:hover .disc__img img { transform: scale(1.05); }

.disc__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2.5rem 1.25rem 1.25rem;
  color: var(--white);
}

.disc__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.disc__info .view-more {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.disc__info .view-more:hover { color: var(--pink); border-color: var(--pink); }

/* Recruitment Process */
.process-section {
  padding: 4rem 0;
  background: var(--gray-bg);
}

.process-section .layout-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.img-feature img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.process-section h2 { color: var(--purple); font-size: 2rem; margin-bottom: 0.5rem; }
.process-section h4 { color: var(--pink); font-size: 1.1rem; margin-bottom: 2rem; font-weight: 600; }

.process-steps {
  list-style: none;
  counter-reset: step;
}

.process-steps li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.process-steps li:last-child { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.process-steps h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.process-steps p {
  font-size: 14px;
  color: var(--text-light);
}

/* Clients CTA */
.clients-cta {
  padding: 4rem 0;
  background: var(--white);
}

.clients-cta .content-item { align-items: center; }

.clients-cta h2 {
  color: var(--purple);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Split Cards */
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.split-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.split-card:hover img { transform: scale(1.05); }

.split-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(92, 5, 140, 0.85));
}

.split-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: var(--white);
}

.split-card-content .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.split-card-content h3 {
  font-size: 1.4rem;
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background: var(--gray-bg);
}

.testimonials h2 {
  text-align: center;
  color: var(--purple);
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 2rem;
  text-align: center;
}

.quote-icon {
  color: var(--orange);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.quote-body {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.quote-title .info--title {
  display: block;
  font-weight: 700;
  color: var(--purple);
}

.quote-title .info--subtitle {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active { background: var(--pink); }

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--purple);
  z-index: 2;
}

.slider-arrows.prev { left: -20px; }
.slider-arrows.next { right: -20px; }

/* Footer */
footer {
  background: var(--purple);
  color: var(--white);
  padding: 3rem 0 0;
}

footer a { color: rgba(255, 255, 255, 0.9); }
footer a:hover { color: var(--white); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

.contact-wrapper h2 {
  font-size: 1.5rem;
  margin: 1rem 0;
  font-weight: 600;
}

.contact-wrapper .btn-primary { background: var(--pink); }

.nav-wrapper .h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.nav-wrapper ul { list-style: none; }

.nav-wrapper ul li { margin-bottom: 0.5rem; }

.nav-wrapper ul a { font-size: 14px; }

.outer-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
}

.footer-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
}

.footer-notice .copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.footer-notice .copyright a:hover {
  color: var(--pink);
}

.nav-bottom ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.5rem;
}

/* Inner pages */
.page-hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }

.page-content {
  padding: 3rem 0;
  min-height: 400px;
}

.page-content h2 { color: var(--purple); margin: 1.5rem 0 0.75rem; }
.page-content p { margin-bottom: 1rem; }

/* Login / register */
.auth-page {
  padding-bottom: 3rem;
}

.auth-hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  padding: 2.75rem 0;
  text-align: center;
}

.auth-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.auth-hero p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
}

.auth-body {
  padding: 2rem 0 0;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-form .form-field {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  display: block;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(91, 45, 130, 0.15);
}

.auth-form .btn-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--pink);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-form .btn-submit:hover {
  background: var(--purple);
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.auth-footer a {
  color: var(--pink);
  font-weight: 600;
}

.auth-note {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 13px;
}

.auth-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 14px;
}

.auth-standalone {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-light, #f8f9fa);
}

.auth-standalone .auth-card {
  width: 100%;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.auth-form-row .form-field {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .disc__wrapper { grid-template-columns: repeat(2, 1fr); }
  .content-item, .process-section .layout-column { grid-template-columns: 1fr; }
  .content-item.reverse .figure-wrapper { order: 0; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #main-nav { display: none; }
  #menu-trigger { display: block; }
  .disc__wrapper { grid-template-columns: 1fr; }
  .split-cards { grid-template-columns: 1fr; }
  .inline-search dl:not(.form-stack) { flex-direction: column; align-items: stretch; }
  .auth-form-row { grid-template-columns: 1fr; }
  .btn__search { width: 100%; }
  .slider-arrows { display: none; }
  .main-banner { min-height: 450px; }
}
