/*
  Melissa Mashaba - Clinical Psychologist
  Color Palette: #ffdede, #e6d7d4, #cab8b4
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --pink-light: #ffdede;
  --beige: #e6d7d4;
  --mauve: #cab8b4;
  --mauve-dark: #a8948f;
  --text-dark: #3d2c2c;
  --text-body: #5a4545;
  --text-light: #8a7070;
  --white: #ffffff;
  --off-white: #fdf8f7;
  --shadow: 0 4px 20px rgba(61, 44, 44, 0.08);
  --shadow-lg: 0 8px 40px rgba(61, 44, 44, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--white);
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.4em; margin-bottom: 15px; }
h3 { font-size: 1.5em; margin-bottom: 10px; }
h4 { font-size: 1.3em; margin-bottom: 8px; }

p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

a {
  color: var(--mauve-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:active, a:focus {
  color: var(--text-dark);
  outline: none;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 90px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto 40px;
}

.required {
  color: #c97070;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--mauve); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mauve-dark); }


/*---------------------------------------
   PRE LOADER
-----------------------------------------*/

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
}

.spinner {
  border: 1px solid transparent;
  border-radius: 3px;
  position: relative;
}

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -22px;
  margin-left: -22px;
  border-radius: 50%;
  border: 2px solid var(--beige);
  border-top-color: var(--mauve-dark);
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}


/*---------------------------------------
   NAVIGATION
-----------------------------------------*/

.navbar-default {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  margin-bottom: 0;
  padding: 12px 0;
  box-shadow: none;
  transition: var(--transition);
  z-index: 9999;
}

.navbar-default.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(61, 44, 44, 0.08);
  padding: 8px 0;
}

.navbar-default .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 22px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.navbar-default .navbar-brand:hover {
  color: var(--mauve-dark);
}

.navbar-default .navbar-nav li a {
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 15px 18px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--mauve-dark);
  background: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--mauve-dark);
  background: transparent;
}

.navbar-default .navbar-nav li.appointment-btn {
  padding-left: 10px;
}

.navbar-default .navbar-nav li.appointment-btn a {
  background: var(--mauve);
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  padding: 10px 24px;
  margin-top: 5px;
}

.navbar-default .navbar-nav li.appointment-btn a:hover {
  background: var(--mauve-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(202, 184, 180, 0.4);
}

.navbar-default .navbar-toggle {
  border: none;
  padding-top: 10px;
}

.navbar-default .navbar-toggle .icon-bar {
  background: var(--text-dark);
  border-color: transparent;
  width: 24px;
  height: 2px;
  margin-bottom: 5px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: transparent;
}

.navbar-default .navbar-collapse {
  border-color: transparent;
}


/*---------------------------------------
   HERO
-----------------------------------------*/

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--beige) 50%, var(--mauve) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(255, 222, 222, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-credentials {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.7;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--text-dark);
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.15;
}

.hero-text {
  font-size: 17px;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.btn-primary {
  background: var(--mauve);
  border: 2px solid var(--mauve);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--mauve-dark);
  border-color: var(--mauve-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 184, 180, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-dark);
  border-radius: 50px;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  letter-spacing: 0.5px;
  margin-left: 10px;
  transition: var(--transition);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--text-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 44, 44, 0.2);
}


/*---------------------------------------
   ABOUT
-----------------------------------------*/

#about {
  background: var(--white);
}

.about-image {
  position: relative;
  padding: 20px;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 80%;
  background: var(--pink-light);
  border-radius: var(--radius);
  z-index: 0;
}

.about-image img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.about-info {
  padding-left: 20px;
}

.about-info h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.about-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

.about-info h4 {
  color: var(--mauve-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Expertise Section */
.expertise-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--beige);
}

.expertise-section h3 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.expertise-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(230, 215, 212, 0.5);
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list li .fa {
  color: var(--mauve);
  margin-right: 10px;
  font-size: 12px;
}


/*---------------------------------------
   APPROACH
-----------------------------------------*/

#approach h2 {
  position: relative;
  padding-bottom: 15px;
}

#approach h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

#approach p strong {
  color: var(--text-dark);
  font-weight: 600;
}


/*---------------------------------------
   SERVICES
-----------------------------------------*/

#services h2 {
  position: relative;
  padding-bottom: 15px;
}

#services h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(230, 215, 212, 0.6);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  margin-bottom: 30px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mauve);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--pink-light), var(--off-white));
  border-color: var(--mauve);
}

.service-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--mauve-dark);
  font-size: 28px;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--mauve);
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: 10px;
}


/*---------------------------------------
   FEES
-----------------------------------------*/

#fees h2 {
  position: relative;
  padding-bottom: 15px;
}

#fees h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

.fee-card {
  background: var(--white);
  border: 1px solid rgba(230, 215, 212, 0.6);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  margin-bottom: 30px;
}

.fee-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mauve);
}

.fee-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.8em;
  font-weight: 700;
  color: var(--mauve-dark);
  margin: 15px 0 5px;
}

.fee-duration {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
}

.fee-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.fee-details li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(230, 215, 212, 0.4);
}

.fee-details li:last-child {
  border-bottom: none;
}

.fee-details li .fa {
  color: var(--mauve);
  margin-right: 10px;
  font-size: 12px;
}

.medical-aid-note {
  background: var(--pink-light);
  border-radius: var(--radius);
  padding: 30px 40px;
  margin-top: 30px;
  text-align: left;
}

.medical-aid-note h4 {
  color: var(--text-dark);
  margin-bottom: 10px;
}

.medical-aid-note h4 .fa {
  color: var(--mauve-dark);
  margin-right: 8px;
}

.medical-aid-note p {
  font-size: 14px;
  margin-bottom: 0;
}


/*---------------------------------------
   CONTACT
-----------------------------------------*/

#contact {
  background: var(--white);
}

#contact h2 {
  position: relative;
  padding-bottom: 15px;
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

.contact-info-block {
  padding-right: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(230, 215, 212, 0.5);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item > .fa {
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: var(--pink-light);
  color: var(--mauve-dark);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h5 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.contact-item p {
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-item a {
  color: var(--mauve-dark);
  font-size: 14px;
}

.contact-item a:hover {
  color: var(--text-dark);
}

.contact-form-wrapper {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-wrapper h3 {
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

#contact label {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

#contact .form-control {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 8px;
  box-shadow: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  transition: var(--transition);
  color: var(--text-dark);
}

#contact .form-control:focus {
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(202, 184, 180, 0.15);
  outline: none;
}

#contact input.form-control,
#contact select.form-control {
  height: 48px;
}

#contact textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

#contact .btn-primary.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 5px;
}

#response-message {
  margin-top: 15px;
}

#response-message .alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

#response-message .alert-error {
  background: #ffeaea;
  color: #c62828;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}


/*---------------------------------------
   FOOTER
-----------------------------------------*/

footer {
  background: var(--text-dark);
  padding: 60px 0 20px;
}

footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--mauve);
}

footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

footer a:hover {
  color: var(--pink-light);
}

footer .fa {
  color: var(--mauve);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.credentials-small {
  font-size: 13px !important;
  opacity: 0.5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  font-size: 14px;
  display: inline-block;
  padding: 2px 0;
}

.footer-links li a:hover {
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.5;
  margin: 0;
}

.footer-block {
  margin-bottom: 30px;
}


/*---------------------------------------
   WHATSAPP FLOAT
-----------------------------------------*/

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 999;
  text-decoration: none;
}

.whatsapp-float i {
  width: 56px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
  flex-shrink: 0;
}

.whatsapp-label {
  background: var(--white);
  color: #25D366;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-right: 10px;
  white-space: nowrap;
  transition: var(--transition);
}

.whatsapp-float:hover i {
  background: #1ebe5d;
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .whatsapp-label {
  color: #1ebe5d;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/*---------------------------------------
   BACK TO TOP
-----------------------------------------*/

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: var(--mauve);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--mauve-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}


/*---------------------------------------
   RESPONSIVE
-----------------------------------------*/

@media only screen and (max-width: 1200px) {
  h1 { font-size: 2.8em; }
  h2 { font-size: 2.1em; }
  .hero h1 { font-size: 3em; }
}

@media only screen and (max-width: 992px) {
  .section-padding { padding: 60px 0; }
  h1 { font-size: 2.4em; }
  h2 { font-size: 1.9em; }
  .hero h1 { font-size: 2.6em; }
  .hero { min-height: auto; padding: 120px 0 80px; }

  .about-image {
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-info {
    padding-left: 0;
  }

  .contact-info-block {
    padding-right: 0;
    margin-bottom: 40px;
  }
}

@media only screen and (max-width: 767px) {
  .section-padding { padding: 50px 0; }

  h1 { font-size: 2em; }
  h2 { font-size: 1.7em; }
  h3 { font-size: 1.3em; }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2em;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-credentials {
    font-size: 11px;
  }

  .btn-primary,
  .btn-outline {
    display: block;
    margin: 8px auto;
    width: 80%;
    text-align: center;
  }

  .btn-outline {
    margin-left: auto;
  }

  .navbar-default {
    background: rgba(255, 255, 255, 0.98);
  }

  .navbar-default .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--beige);
    padding: 10px 0;
    max-height: 400px;
  }

  .navbar-default .navbar-nav li a {
    padding: 10px 20px;
  }

  .navbar-default .navbar-nav li.appointment-btn {
    padding-left: 15px;
    padding-bottom: 10px;
  }

  .navbar-default .navbar-nav li.appointment-btn a {
    display: inline-block;
    margin-top: 5px;
  }

  .about-image::before {
    width: 70%;
    height: 70%;
  }

  .service-card {
    margin-bottom: 20px;
  }

  .fee-card {
    margin-bottom: 20px;
  }

  .contact-form-wrapper {
    padding: 25px;
  }

  .medical-aid-note {
    padding: 20px 25px;
  }

  .expertise-section {
    margin-top: 40px;
    padding-top: 30px;
  }

  footer {
    padding-top: 40px;
    text-align: center;
  }

  footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

@media only screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.7em;
  }

  h2 {
    font-size: 1.5em;
  }

  .fee-price {
    font-size: 2.2em;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
