/* ==========================================================================
   SM Bespoke Care — site.css
   Brand: deep purple #432D7E / mid purple #735FA9, pulled from logo
   Type: Poppins (headings) + Inter (body)
   ========================================================================== */

:root{
  --purple-dark:   #432D7E;
  --purple:        #56399C;
  --purple-light:  #735FA9;
  --purple-tint:   #F4F1FA;
  --purple-tint-2: #EAE4F5;
  --cream:         #FDFCFA;
  --ink:           #2B2438;
  --ink-soft:      #5C5468;
  --white:         #FFFFFF;

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

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(67, 45, 126, 0.10);
  --shadow-soft: 0 4px 16px rgba(67, 45, 126, 0.08);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5{
  font-family: var(--font-heading);
  color: var(--purple-dark);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1{ font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3{ font-size: 1.15rem; }

p{ margin-bottom: 1.1em; color: var(--ink-soft); }

a{ color: var(--purple-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover{ color: var(--purple-light); }

.eyebrow{
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.9em;
}

.lead{ font-size: 1.1rem; color: var(--ink-soft); }

/* ---- Buttons (nice solid block buttons, as requested) ---- */
.btn-block-primary,
.btn-block-outline,
.btn-block-white,
.btn-block-outline-white{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.9rem;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-block-primary{
  background: var(--purple-dark);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-block-primary:hover{
  background: var(--purple-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-block-outline{
  background: transparent;
  color: var(--purple-dark);
  border-color: var(--purple-dark);
}
.btn-block-outline:hover{
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block-white{
  background: var(--white);
  color: var(--purple-dark);
  box-shadow: var(--shadow-soft);
}
.btn-block-white:hover{
  background: var(--purple-tint);
  color: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-block-outline-white{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-block-outline-white:hover{
  background: var(--white);
  color: var(--purple-dark);
  transform: translateY(-2px);
}

/* ---- Topbar ---- */
.topbar{
  background: var(--purple-dark);
  color: rgba(255,255,255,0.92);
  font-size: 0.86rem;
  padding: 0.5rem 0;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.topbar-contact{ display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar a{ color: rgba(255,255,255,0.92); }
.topbar a:hover{ color: var(--white); text-decoration: underline; }
.topbar i{ margin-right: 0.35em; color: var(--purple-light); }
.topbar-address i{ color: var(--purple-light); margin-right: 0.35em; }

/* ---- Header / Nav ---- */
.site-header{
  background: var(--white);
  box-shadow: 0 2px 14px rgba(67,45,126,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar{ padding: 0.85rem 0; }
.logo{ height: 56px; width: auto; }

.navbar-nav .nav-link{
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0.55rem;
  padding: 0.5rem 0.2rem !important;
  position: relative;
  text-transform: uppercase;
}
.navbar-nav .nav-link:hover{ color: var(--purple-dark); }
.navbar-nav .nav-link.active{ color: var(--purple-dark); }

.nav-link.btn-contact{
  background: var(--purple-dark);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem !important;
  border-radius: 50px;
  margin-left: 0.6rem;
}
.nav-link.btn-contact:hover{ background: var(--purple-light); }

/* ---- Hero ---- */
.hero{
  padding: 7.5rem 0 4rem;
  background: linear-gradient(180deg, var(--purple-tint) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.hero-contact{ display: flex; gap: 1.6rem; flex-wrap: wrap; font-weight: 500; }
.hero-contact i{ color: var(--purple-light); margin-right: 0.4em; }

.hero-image-wrap{ position: relative; }
.hero-image{
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-badge{
  position: absolute;
  left: -1.2rem;
  bottom: -1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--purple-dark);
  max-width: 240px;
}
.hero-badge i{ color: var(--purple-light); font-size: 1.3rem; }

/* ---- Trust strip ---- */
.trust-strip{ padding: 2.2rem 0; }
.trust-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.4rem;
}
.trust-item{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-dark);
  justify-content: center;
  text-align: center;
}
.trust-item i{ color: var(--purple-light); font-size: 1.4rem; }

/* ---- Sections ---- */
.section{ padding: 4.5rem 0; }
.section-tint{ background: var(--purple-tint); }
.section-heading{ max-width: 680px; margin: 0 auto 3rem; text-align: center; }

.rounded-photo{
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---- Service cards ---- */
.service-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid transparent;
  text-align: center;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-top-color: var(--purple-light);
}
.service-card i{
  font-size: 1.8rem;
  color: var(--purple-light);
  margin-bottom: 0.9rem;
  display: block;
}
.service-card h3{ margin-bottom: 0.4em; }
.service-card p{ font-size: 0.93rem; margin-bottom: 0; }

/* ---- Why-choose-us banner ---- */
.why-banner{
  position: relative;
  padding: 5.5rem 0;
  background: url('https://images.unsplash.com/photo-1569508926450-cd832544c4ae?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.why-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(67,45,126,0.93), rgba(115,95,169,0.88));
}
.why-content{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.why-content i{ font-size: 2.4rem; margin-bottom: 1rem; }
.why-content h2{ color: var(--white); }
.why-content p{ color: rgba(255,255,255,0.9); }

/* ---- Areas covered ---- */
.areas-grid{ display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; }
.area-chip{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--white);
  border: 1px solid var(--purple-tint-2);
  color: var(--purple-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.area-chip i{ color: var(--purple-light); }

/* ---- CTA ---- */
.cta-section{ padding: 0 0 5rem; }
.cta-box{
  background: linear-gradient(120deg, var(--purple-dark), var(--purple-light));
  border-radius: var(--radius-lg);
  padding: 3rem 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-text h2{ color: var(--white); margin-bottom: 0.3em; }
.cta-text p{ color: rgba(255,255,255,0.9); margin-bottom: 0; }
.cta-actions{ display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer{
  background: var(--purple-dark);
  color: rgba(255,255,255,0.82);
  padding: 4rem 0 0;
}
.footer-logo{ height: 48px; width: auto; }
.site-footer h4{
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.1em;
}
.site-footer .tagline{ color: var(--white); font-weight: 500; }
.site-footer .credentials{ font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-links{ list-style: none; padding: 0; margin: 0; }
.footer-links li{ margin-bottom: 0.7em; }
.footer-links a{ color: rgba(255,255,255,0.8); }
.footer-links a:hover{ color: var(--white); }
.footer-links li:not(:has(a)){ color: rgba(255,255,255,0.8); }

.contact-info{ list-style: none; padding: 0; margin: 0; }
.contact-info li{ margin-bottom: 0.8em; color: rgba(255,255,255,0.85); }
.contact-info a{ color: rgba(255,255,255,0.85); }
.contact-info a:hover{ color: var(--white); }
.contact-info i{ width: 18px; color: var(--purple-light); margin-right: 0.4em; }

.footer-bottom{
  margin-top: 2.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a{ color: rgba(255,255,255,0.85); }
.footer-bottom a:hover{ color: var(--white); }

/* ---- Scroll reveal (paired with site.js) ---- */
[data-animate]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-animate]{ opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px){
  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .navbar-collapse{ padding-top: 1rem; }
  .nav-link.btn-contact{ display: inline-block; margin-top: 0.5rem; }
  .topbar-inner{ justify-content: center; text-align: center; }
}

@media (max-width: 575.98px){
  .trust-grid{ grid-template-columns: 1fr; }
  .hero-badge{ position: static; margin-top: 1rem; max-width: none; }
  .cta-box{ text-align: center; justify-content: center; }
  .why-banner{ padding: 4rem 0; }
}
footer p {
    color: white;
}
/* ---- Inner page header ---- */
.page-header{
  padding: 3.4rem 0 3rem;
  background: linear-gradient(120deg, var(--purple-dark), var(--purple-light));
  text-align: center;
}
.page-header h1{ color: var(--white); margin-bottom: 0.3em; }
.page-header .lead{ color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* ---- Section header w/ underline (used on inner pages) ---- */
.section-header{ text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.section-header .underline{
  width: 60px;
  height: 3px;
  background: var(--purple-light);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}
.section-light{ background: var(--purple-tint); }

/* ---- Contact details list (Contact Us page) ---- */
.contact-details{ display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item{ display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon{
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-info-text h4{ margin-bottom: 0.2em; font-size: 1rem; }
.contact-info-text p{ margin-bottom: 0; }

.social-contact h3{ font-size: 1.05rem; }
.social-buttons{ display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--purple-tint);
  color: var(--purple-dark);
}
.social-btn:hover{ background: var(--purple-dark); color: var(--white); }

/* ---- Info box (callouts) ---- */
.info-box{
  background: var(--white);
  border-left: 4px solid var(--purple-light);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.info-box h4{ font-size: 1rem; margin-bottom: 0.5em; display: flex; align-items: center; gap: 0.5em; }
.info-box h4 i{ color: var(--purple-light); }
.info-box p{ margin-bottom: 0.6em; font-size: 0.94rem; }
.info-box p:last-child{ margin-bottom: 0; }

/* ---- Contact form ---- */
.contact-form{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.contact-form h3{ margin-bottom: 0.3em; }
.form-group{ margin-bottom: 1.2rem; }
.form-group label{
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--purple-dark);
  margin-bottom: 0.4em;
}
.form-control{
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--purple-tint-2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus{
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(115,95,169,0.18);
  background: var(--white);
}
textarea.form-control{ resize: vertical; min-height: 130px; }
.form-check{ display: flex; align-items: flex-start; gap: 0.6rem; }
.form-check-input{ margin-top: 0.3rem; flex: none; }
.form-check-label{ font-size: 0.88rem; color: var(--ink-soft); font-weight: 400; font-family: var(--font-body); }

.alert{
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.94rem;
  margin-bottom: 1.4rem;
}
.alert-success{ background: #EAF6EC; color: #256029; border: 1px solid #BEE3C4; }
.alert-danger{ background: #FBEAEA; color: #8A2E2E; border: 1px solid #F0C4C4; }

/* ---- Check list (About / Services commitments) ---- */
.check-list{ list-style: none; padding: 0; margin: 0; }
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin-bottom: 0.9em;
  color: var(--ink-soft);
}
.check-list i{ color: var(--purple-light); margin-top: 0.25em; }

/* ---- Team cards (About Us) ---- */
.team-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
}
.team-card .team-role{
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.6em;
}

/* ---- Vacancy card ---- */
.vacancy-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vacancy-card-header{
  background: linear-gradient(120deg, var(--purple-dark), var(--purple-light));
  color: var(--white);
  padding: 2rem 2.2rem;
}
.vacancy-card-header h2{ color: var(--white); margin-bottom: 0.2em; }
.vacancy-card-header p{ color: rgba(255,255,255,0.9); margin-bottom: 0; }
.vacancy-card-body{ padding: 2.2rem; }

.job-meta{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 1.6rem 0 2rem;
}
@media(max-width:767px){
    .job-meta {
        grid-template-columns: 1fr;
    }
}
.job-meta-item{
  background: var(--purple-tint);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.job-meta-item span{
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.3em;
}
.job-meta-item strong{ color: var(--purple-dark); font-size: 0.95rem; }

.benefit-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.benefit-item{
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.benefit-item i{ color: var(--purple-light); }
@media(max-width:767px){
    .topbar-address {
        display: none;
    }
}

/* ---- Staff portal: document cards ---- */
.document-card{
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
}
.document-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--purple-tint-2);
}
.document-icon{
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--purple-tint);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.document-info{ flex: 1; min-width: 0; }
.document-info h3{
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.15em;
  overflow-wrap: break-word;
}
.document-type{
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--purple-light);
}
.document-download{ flex: none; color: var(--purple-tint-2); font-size: 1rem; }
.document-card:hover .document-download{ color: var(--purple-light); }

/* ---- Staff portal: empty state ---- */
.coming-soon{
  text-align: center;
  max-width: 460px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background: var(--purple-tint);
  border-radius: var(--radius-lg);
}
.coming-soon i{ font-size: 2.4rem; color: var(--purple-light); margin-bottom: 1rem; }
.coming-soon h2{ margin-bottom: 0.4em; }
.coming-soon p{ margin-bottom: 0; }
.page-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  text-align: left;
}
.page-header-inner h1{ margin-bottom: 0.2em; }
.page-header-inner .lead{ margin-bottom: 0; }
/* ---- Cookie consent banner ---- */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--purple-dark);
  color: rgba(255,255,255,0.92);
  padding: 1.1rem 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 1050;
  box-shadow: 0 -6px 24px rgba(43,36,56,0.25);
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner p{
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
}
.cookie-banner a{ color: var(--white); text-decoration: underline; }
.cookie-banner-actions{ display: flex; gap: 0.8rem; flex-wrap: wrap; flex: none; }

@media (max-width: 575.98px){
  .cookie-banner-inner{ text-align: center; justify-content: center; }
  .cookie-banner-actions{ justify-content: center; width: 100%; }
}
/* ---- Privacy policy / long-form prose pages ---- */
.policy-content h2{
  font-size: 1.3rem;
  margin-top: 2.2rem;
  margin-bottom: 0.6em;
}
.policy-content h2:first-of-type{ margin-top: 0.5rem; }
.policy-content p{ margin-bottom: 1.1em; }
.policy-content a{ text-decoration: underline; }
.policy-content .text-muted{ color: var(--ink-soft); font-size: 0.9rem; }