/*========== HOME ==========*/
.home__container {
  min-height: calc(100vh - var(--header-height));
  height: auto; 
  align-content: center;
  row-gap: 2.5rem;
  display: grid;
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.home__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
  width: 100%;
  padding-left: 0.5in;
  min-width: 0;
}

.home__title {
  font-size: 4rem; 
  color: var(--first-color);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.home__subtitle {
  font-size: 1.5rem; 
  color: var(--title-color);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3rem;
  max-width: 600px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.home__subtitle.ta-active {
  font-size: 1.25rem;
}

.home__data .button {
  align-self: flex-start;
  margin-top: 0rem;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

/*========== IMAGE AREA ==========*/
.home__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
  width: 100%;
  padding-left: 0.5in;
  min-width: 0;
}

.home__img {
  width: 100%; 
  max-width: 800px; 
  height: auto;
  object-fit: contain;
}

/*========== MEDIA QUERIES - HOME ==========*/

@media screen and (max-width: 767px) {
  .home__data {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .home__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .home__data .button {
    align-self: center;
  }

  .homeabout__data {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .homeabout__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .homeabout__btn {
    align-self: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 2rem;
    padding-top: 0;
  }
  
  .home__data {
    justify-self: center;
  }

  .home__img {
    width: 100%; 
    max-width: 900px;
  }
}

@media screen and (max-width: 576px) {
  .home__title {
    font-size: 3rem; 
  }
  .home__title.ta-active {
    font-size: 2rem;
    line-height: 1.5;
  }
  .home__subtitle {
    font-size: 1.25rem;
  }
  .home__subtitle.ta-active {
    font-size: 1.1rem;
    line-height: 1.8;
  }
  .home__container {
    height: auto;
    min-height: auto;
    padding: 1rem 0;
  }
}

@media screen and (min-width: 577px) and (max-width: 1060px) {
  .home__title.ta-active {
    font-size: 2.5rem;
  }
}

@media screen and (min-width: 577px) {
  .home__subtitle {
    line-height: 1.7;
  }
}

@media screen and (min-height: 721px) {
  .home__container {
    min-height: 750px;
    height: auto;
  }
}

/*========== OUR PSYCHOLOGIST SECTION ==========*/
.psychologist {
  padding: 5rem 0;
}

.psychologist__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 4rem;
  row-gap: 2.5rem;
}

.psychologist__img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.psychologist__img {
  width: 100%;
  max-width: 480px;
  height: 480px;
  object-fit: cover;
  object-position: top;
  border-radius: 1.5rem;
  box-shadow: 0 12px 40px rgba(6, 156, 84, 0.15);
}

.psychologist__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.psychologist__label-wrapper {
  margin-bottom: 0.75rem;
}

.psychologist__label {
  display: inline-block;
  background-color: rgba(6, 156, 84, 0.1);
  color: var(--first-color);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.psychologist__name {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 1.25rem 0;
  line-height: 1.15;
}

.psychologist__desc {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.psychologist__btn {
  align-self: flex-start;
}

/*========== MEDIA QUERIES - PSYCHOLOGIST ==========*/

@media screen and (max-width: 768px) {
  .psychologist__container {
    grid-template-columns: 1fr;
  }

  .psychologist__img-wrapper {
    order: -1;
  }

  .psychologist__img {
    max-width: 360px;
    height: 360px;
  }

  .psychologist__name {
    font-size: 1.85rem;
  }

  .psychologist__data {
    align-items: center;
    text-align: center;
  }

  .psychologist__desc {
    text-align: center;
  }

  .psychologist__btn {
    align-self: center;
  }
}

@media screen and (max-width: 480px) {
  .psychologist {
    padding: 3rem 0;
  }

  .psychologist__img {
    max-width: 280px;
    height: 280px;
  }

  .psychologist__name {
    font-size: 1.5rem;
  }

  .psychologist__desc {
    font-size: 0.95rem;
  }
}

/*========== HOME ABOUT US SECTION ==========*/

.homeabout {
  padding: 5rem 0;
}

.homeabout__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 4rem;
  row-gap: 2.5rem;
}

.homeabout__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0.5in;
}

.homeabout__label-wrapper {
  margin-bottom: 0.75rem;
}

.homeabout__label {
  display: inline-block;
  background-color: rgba(6, 156, 84, 0.1);
  color: var(--first-color);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.homeabout__desc {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.homeabout__btn {
  align-self: flex-start;
}

.homeabout__img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.homeabout__img {
  width: 100%;
  max-width: 650px;
  height: auto;
  object-fit: contain;
}

/*========== MEDIA QUERIES - HOME ABOUT ==========*/

@media screen and (max-width: 768px) {
  .homeabout__container {
    grid-template-columns: 1fr;
  }

  .homeabout__img-wrapper {
    order: -1;
  }

  .homeabout__data {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .homeabout__desc {
    text-align: center;
  }

  .homeabout__btn {
    align-self: center;
  }
}

@media screen and (max-width: 480px) {
  .homeabout {
    padding: 3rem 0;
  }

  .homeabout__desc {
    font-size: 0.95rem;
  }
}

/*========== OUR SERVICES SECTION ==========*/

.homeservices {
  padding: 5rem 0;
}

.homeservices__header {
  text-align: center;
  margin-bottom: 3rem;
}

.homeservices__label {
  display: inline-block;
  background-color: rgba(6, 156, 84, 0.1);
  color: var(--first-color);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.homeservices__subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0;
}

.homeservices__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.homeservices__card {
  background: var(--container-color);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.homeservices__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(6, 156, 84, 0.15);
}

.homeservices__img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background-color: #ffffff;
  display: block;
}

.homeservices__body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.homeservices__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.homeservices__readmore {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-end;
  transition: column-gap 0.3s;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.homeservices__readmore:hover {
  column-gap: 0.5rem;
}

.homeservices__readmore i {
  font-size: 1rem;
}

.homeservices__body--no-btn {
  justify-content: center;
}

/*========== MEDIA QUERIES - SERVICES ==========*/
@media screen and (max-width: 1024px) {
  .homeservices__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .homeservices__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .homeservices__subtitle {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 480px) {
  .homeservices {
    padding: 3rem 0;
  }

  .homeservices__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .homeservices__subtitle {
    font-size: 1.5rem;
  }

  .homeservices__img {
    height: 120px;
  }
}

/*========== HOME CONTACT SECTION ==========*/
.homecontact {
  padding: 4rem 0;
  background-color: var(--body-color);
}

.homecontact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 0.5in;
}

.homecontact__text {
  flex: 1;
  min-width: 260px;
}

.homecontact__lets {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--first-color);
  margin: 0 0 0.25rem 0;
}

.homecontact__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 1rem 0;
}

.homecontact__desc {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.8;
  margin: 0 0 0.75rem 0;
  max-width: 680px;
}

.homecontact__note {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.8;
  margin: 0;
  max-width: 680px;
}

.homecontact__note strong {
  color: var(--title-color);
  font-weight: 600;
}

.homecontact__btn-wrapper {
  flex-shrink: 0;
  padding-right: 0.5in;
}

.homecontact__btn {
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .homecontact__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  .homecontact__btn-wrapper {
    width: 100%;
    padding-right: 0;
  }

  .homecontact__btn {
    display: block;
    text-align: center;
  }

  .homecontact__lets {
    font-size: 1.25rem;
  }

  .homecontact__heading {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .homecontact {
    padding: 3rem 0;
  }

  .homecontact__lets {
    font-size: 1.1rem;
  }

  .homecontact__heading {
    font-size: 1.25rem;
  }

  .homecontact__desc,
  .homecontact__note {
    font-size: 0.875rem;
  }
}

/*========== FLOATING ACTION BUTTONS ==========*/
.fab-call,
.fab-whatsapp {
  position: fixed;
  bottom: 3rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  z-index: var(--z-fixed);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.fab-call {
  left: 1.5rem;
  background: rgba(6, 156, 84, 0.75);
  color: #fff;
}

.fab-whatsapp {
  right: 1.5rem;
  background: rgba(37, 211, 102, 0.8);
  color: #fff;
}

.fab-call:hover,
.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
}

.scrolltop {
  display: none !important;
}

/*========== FOOTER ==========*/
.footer {
  background-color: var(--first-color);
  color: #fff;
  padding-top: 2rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

.footer__logo {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.footer__logo-img {
  height: 75px;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.footer__logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
  white-space: nowrap;
}

html.lang-ta .footer__logo-text {
  line-height: 1.8;
}

.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  column-gap: 0.6rem;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.footer__contact-link:hover {
  color: #fff;
}

.footer__contact-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__social {
  display: flex;
  column-gap: 0.85rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.footer__social-link:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.03em;
}

.footer__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  margin: 0.25rem 0 1.25rem 0;
  max-width: 420px;
}

.footer__address {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.9;
}

.footer__map-wrapper {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid rgba(255,255,255,0.25);
}

.footer__map {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}

.footer__directions-btn {
  display: inline-flex;
  align-items: center;
  column-gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.35);
  align-self: flex-start;
}

.footer__directions-btn:hover {
  background: rgba(255,255,255,0.28);
}

.footer__bottom {
  background-color: rgba(0,0,0,0.18);
  padding: 1rem 0;
  text-align: center;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

@media screen and (max-width: 576px) {
  .footer__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }
}

.footer__copy-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer__copy-link:hover {
  text-decoration: underline;
}

/*========== FOOTER ICON COLOURS ==========*/
.footer__icon--call      { background: #1a73e8; }
.footer__icon--whatsapp  { background: #25D366; }
.footer__icon--mail      { background: #EA4335; }

.footer__social-link--fb    { background: #1877F2; }
.footer__social-link--insta { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer__social-link--yt    { background: #FF0000; }

/*========== FOOTER LAYOUT ==========*/
.footer__left {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  grid-template-rows: auto auto;
  column-gap: 2rem;
  row-gap: 0.5rem;
  align-items: start;
}

.footer__intro {
  grid-column: 1;
  grid-row: 1;
}

.footer__subgrid {
  grid-column: 1;
  grid-row: 2;
  display: block;
}

.footer__left > .footer__col {
  grid-column: 2;
  grid-row: 2;
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__right .footer__map-wrapper {
  flex: 1;
}

.footer__right .footer__map {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/*========== FOOTER RESPONSIVE ==========*/
@media screen and (max-width: 900px) {
  .footer__container {
    grid-template-columns: 1fr;
  }

  .footer__left {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .footer__right .footer__map {
    height: 220px;
  }
}

@media screen and (max-width: 600px) {
  .footer__left {
    grid-template-columns: 1fr;
  }

  .footer__logo-text {
    white-space: normal;
    font-size: 1rem;
  }

  .footer__intro,
  .footer__subgrid {
    grid-column: 1;
    grid-row: auto;
  }

  .footer__left > .footer__col {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.25rem;
  }

  .footer__right .footer__map {
    height: 220px;
  }
}

/*========== 2560x1440 LARGE DESKTOP SCALING ==========*/
@media screen and (min-width: 2560px) {
  .home__title {
    font-size: 5.5rem;
  }

  .home__subtitle {
    font-size: 2rem;
    max-width: 800px;
  }

  .home__img {
    max-width: 1200px;
  }

  .psychologist__img {
    max-width: 640px;
    height: 640px;
  }

  .psychologist__name {
    font-size: 3rem;
  }

  .psychologist__desc {
    font-size: 1.25rem;
    max-width: 680px;
  }

  .homeabout__desc {
    font-size: 1.25rem;
    max-width: 680px;
  }

  .homeabout__img {
    max-width: 850px;
  }

  .homeservices__subtitle {
    font-size: 2.75rem;
  }

  .homeservices__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }

  .homeservices__img {
    height: 210px;
  }

  .homeservices__name {
    font-size: 1.05rem;
  }

  .homecontact__lets {
    font-size: 2rem;
  }

  .homecontact__heading {
    font-size: 2.25rem;
  }

  .homecontact__desc,
  .homecontact__note {
    font-size: 1.15rem;
    max-width: 900px;
  }

  .footer__logo-img {
    height: 95px;
  }

  .footer__logo-text {
    font-size: 1.5rem;
  }

  .footer__col-title {
    font-size: 1.4rem;
  }

  .footer__tagline,
  .footer__address,
  .footer__contact-link {
    font-size: 1.05rem;
  }

  .footer__right .footer__map,
  .footer__map {
    height: 260px;
  }
}

/*========== PSYCHOLOGIST READ MORE MODAL ==========*/
.psych-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 40, 24, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.psych-modal-overlay.psych-modal-open {
    display: flex;
}

.psych-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(251, 254, 253, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(6, 156, 84, 0.25);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(6, 156, 84, 0.35);
    padding: 2.5rem;
    animation: psychModalPop 0.3s ease;
}

@keyframes psychModalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.psych-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(6, 156, 84, 0.1);
    color: var(--title-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.psych-modal__close:hover {
    background: rgba(6, 156, 84, 0.2);
}

.psych-modal__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--title-color);
    margin: 0 0 1.25rem 0;
}

.psych-modal__heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--first-color);
    margin: 1.5rem 0 0.75rem 0;
}

.psych-modal__text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0 0 1rem 0;
}

.psych-modal__quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    background: rgba(6, 156, 84, 0.06);
    border-left: 4px solid var(--first-color);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
}

.psych-modal__list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.psych-modal__list li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.psychologist__btn {
    border: none;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.psychologist__btn:focus {
    outline: none;
}

@media screen and (max-width: 600px) {
    .psych-modal {
        padding: 1.75rem;
        max-height: 90vh;
    }
    .psych-modal__title {
        font-size: 1.4rem;
    }
}