@import url("./reset.css");

@import url("https://fonts.googleapis.com/css?family=Inter:regular,500,600,700&display=swap");

@font-face {
  font-family: 'Quintessential-Regular';
  src: url('../Fonts/Headings/Quintessential-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OpenSans-Variable';
  src: url('../Fonts/Body Text/OpenSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat-Variable';
  src: url('../Fonts/Subheadings/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
}

/* ************COMMON************ */

.logo {
  font-family: 'Quintessential-Regular', serif;
  font-size: 1.9rem;
  font-style: italic;
  font-weight: normal;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
  color: #FFFFFF;
  text-decoration: none;
  gap: 0.1rem;
}

.logo__line {
  display: block;
}

.logo .footer__logo {
  font-size: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'OpenSans-Variable', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #FFFFFF;
  background-color: #0C3869;
}


[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #FFFFFF;
  background-color: #C2AFEC;
}

.button:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  transform: translateY(-2px);
}

.title {
  font-family: 'Quintessential-Regular', serif;
  font-size: 3.5rem;
  font-weight: normal;
  font-style: italic;
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* ************HEADER************ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
  color: #FFFFFF;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

/* Hamburger Menu Icon */
.icon-menu {
  display: none;
  position: relative;
  width: 1.875rem;
  height: 1.125rem;
  cursor: pointer;
  z-index: 1200;
  background: transparent;
  border: none;
  padding: 0;
  pointer-events: auto;
}

.icon-menu span,
.icon-menu::before,
.icon-menu::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 0.125rem;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.icon-menu span {
  top: calc(50% - 0.0625rem);
}

.icon-menu::before {
  top: 0;
}

.icon-menu::after {
  bottom: 0;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background-color: #000000 !important;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: auto;
  background-color: #000000 !important;
}

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: 5rem 0.938rem 3rem 0.938rem;
  overflow-y: auto;
  background-color: transparent;
  box-sizing: border-box;
}

.mobile-menu__logo {
  text-align: center;
  margin-bottom: 2rem;
}

.mobile-menu__logo-link {
  display: inline-block;
  text-decoration: none;
  font-family: 'Quintessential-Regular', serif;
  font-style: italic;
}

.mobile-menu__logo .logo__line {
  display: block;
  color: #FFFFFF;
  font-size: 2.5rem;
  line-height: 1.4;
  font-family: 'Quintessential-Regular', serif;
  font-style: italic;
}

.mobile-menu__logo img {
  max-width: 200px;
  height: auto;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding-top: 1rem;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.mobile-menu__item {
  margin-bottom: 1.563rem;
}

.mobile-menu__item:last-child {
  margin-bottom: 0;
}

.mobile-menu__link {
  font-size: 1.5rem;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.mobile-menu__button {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-menu__book-button {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 2px solid #C2AFEC;
  border-radius: 30px;
  color: #FFFFFF;
  text-decoration: none;
  min-width: 20rem;
  font-size: 1.125rem;
  transition: all 0.3s;
}

.mobile-menu__book-button:hover {
  background-color: #C2AFEC;
  color: #000000;
}

/* Hamburger icon animation when menu is open */
body.menu-open .icon-menu span {
  width: 0;
}

body.menu-open .icon-menu::before {
  top: calc(50% - 0.0625rem);
  transform: rotate(-45deg);
}

body.menu-open .icon-menu::after {
  bottom: calc(50% - 0.0625rem);
  transform: rotate(45deg);
}

body.menu-open {
  overflow: hidden;
}


.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #C2AFEC;
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  background-color: transparent;
}

.actions-header__button:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  border-color: #FCF3FA;
  transform: translateY(-2px);
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  outline: none !important;
}

/* Fix homepage gap between hero and content */
.page__main + .page__about {
  margin-top: -1px !important;
  padding-top: 0 !important;
  border-top: none !important;
  outline: none !important;
  transform: translateY(-1px);
  position: relative;
  z-index: 1;
}

/* *****************HOME**************** */

.main {
  background: url("../img/home/hero_placeholder.jpg") center / cover no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  /* padding-top: 5.75rem; */
  overflow: hidden;
  margin-bottom: -1px !important;
  padding-bottom: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

/* Add dim overlay to hero sections - dimmed blue for better text readability */
.main::before,
.main_about::before,
.main_services::before,
.main_contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 101vh;
  bottom: -50px;
  background: linear-gradient(
    to bottom,
    rgba(12, 56, 105, 0) 0%,
    rgba(12, 56, 105, 0.1) 30%,
    rgba(12, 56, 105, 0.15) 60%,
    rgba(12, 56, 105, 0.70) 80%,
    rgba(12, 56, 105, 1) 100%
  ); /* Gradient overlay from 70% at top to 100% at bottom, extending below */
  z-index: 1;
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(12, 56, 105, 0) 0%,
    rgba(12, 56, 105, 0.1) 30%,
    rgba(12, 56, 105, 0.5) 70%,
    rgba(12, 56, 105, 0.7) 100%
  );
  min-height: 101vh;
  backdrop-filter: blur(0px);
  transition: background 0.1s ease;
}

/* Ensure hero container is above overlay */
.main__container,
.main__container_pages {
  position: relative;
  z-index: 2;
}

.scroll__indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}

.scroll__text {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #21BFEA;
  margin-bottom: 1rem;
  font-weight: 600;
}

.scroll__arrow {
  font-size: 2rem;
  color: #FFFFFF;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.main__caption {
  font-family: 'Montserrat-Variable', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #21BFEA;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.main__title {
  font-family: 'Quintessential-Regular', serif;
  font-size: 5.5rem;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.main__text {
  font-family: 'OpenSans-Variable', sans-serif;
  font-weight: 300;
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #FFFFFF;
  background-color: #C2AFEC;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.main__button:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  transform: translateY(-2px);
}

.outro_home {
  background: url("../Website-Images/Home/CTA.jpeg") center / cover no-repeat;
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.outro_home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1;
}

.outro__container {
  position: relative;
  z-index: 2;
}

/* ************ABOUT**************** */

.main_about {
  background: url("../Website-Images/About/About-Hero.png") center / cover no-repeat;
  background-attachment: fixed;
  padding-top: 5.75rem;
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.about__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding-top: 2rem;
  padding-bottom: 8.75rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

/* Home page about container - add 50px bottom padding */
.page__about .about__container {
  padding-bottom: 50px;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
  flex-shrink: 0;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  font-family: 'Quintessential-Regular', serif;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about__text {
  font-family: 'OpenSans-Variable', sans-serif;
  font-weight: 300;
  max-width: 100%;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
  text-align: left;
}

.about__button {
  text-align: center;
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.about__video {
  margin: 2rem auto;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
}

.about__video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Modern browsers - 16:9 aspect ratio */
  padding-bottom: 56.25%; /* Fallback for older browsers (9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: #000;
}

@supports (aspect-ratio: 16 / 9) {
  .about__video-wrapper {
    padding-bottom: 0;
    height: auto;
  }
}

.about__video-wrapper video,
.about__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  filter: grayscale(0%) !important; /* Ensure video is in full color */
}

.about__video-wrapper video {
  object-fit: contain; /* Maintain video aspect ratio without cropping */
}

.about__video .video__placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #8A64DB, #C2AFEC);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  position: relative;
  box-shadow: 0 4px 20px rgba(194, 175, 236, 0.3);
}

.about__video .video__play-button {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.about__video .video__play-button:hover {
  opacity: 1;
}

.about__video .video__text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
}

.outro_about {
  background: url("../Website-Images/About/CTA copy.jpeg") center / cover no-repeat;
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.outro_about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1;
}

/* **************SERVICES**************** */

.main_services {
  background: url("../Website-Images/Services/Services - Hero.jpeg") center / cover no-repeat;
  background-attachment: fixed;
  padding-top: 5.75rem;
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.services {
  background-color: #000000;
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.services__title {
  font-family: 'Quintessential-Regular', serif;
  font-weight: normal;
  font-style: italic;
  text-align: center;
  margin-bottom: 5rem;
}

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

.item-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  text-align: center;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-family: 'Quintessential-Regular', serif;
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

.item-services__text {
  font-family: 'OpenSans-Variable', sans-serif;
  font-weight: 300;
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #C2AFEC;
  color: #C2AFEC;
}

.item-services__button:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  border-color: #FCF3FA;
  transform: translateY(-2px);
}

.outro_services {
  background: url("../Website-Images/Services/CTA.png") center / cover no-repeat;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

/* ************TESTIMONIALS**************** */

.testimonials {
  background-color: #000000;
  padding: 20px 0 8.75rem 0;
}

.testimonials__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials__caption {
  font-family: 'Montserrat-Variable', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: #21BFEA;
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.testimonials__carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0;
}

.testimonials__carousel {
  position: relative;
  width: 100%;
  min-height: 200px;
}

/* Text-only testimonials for homepage */
.testimonials__text-only {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial__text-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial__text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #FFFFFF;
  margin: 0;
  font-style: italic;
}

.testimonial__text strong {
  font-style: normal;
  color: #21BFEA;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 1rem;
}

.testimonials__link {
  text-align: center;
  margin-top: 2rem;
}

.testimonials__view-all {
  font-size: 1.1rem;
  font-weight: 600;
  color: #C2AFEC;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.testimonials__view-all:hover {
  color: #FCF3FA;
  transform: translateX(5px);
}

/* Hide header on testimonials page */
body.hide-header .header {
  display: none;
}

/* Stacked testimonials layout for About page */
.testimonials__stacked {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial__item-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial__item-stacked .testimonial__video {
  width: 100%;
  max-width: 315px;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial__item-stacked .testimonial__video iframe,
.testimonial__item-stacked .testimonial__video video {
  width: 315px;
  height: 560px;
  border: none;
  border-radius: 12px;
  filter: grayscale(0%) !important;
}

.testimonial__item {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial__item.active {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  flex-shrink: 0;
  border: 3px solid rgba(194, 175, 236, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__video {
  width: 300px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.video__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8A64DB, #C2AFEC);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  position: relative;
}

.video__play-button {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.video__text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.testimonial__content {
  max-width: 600px;
}

.testimonial__quote {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #FFFFFF;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial__author {
  font-size: 1rem;
  font-weight: 600;
  color: #21BFEA;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonials__carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem;
}

.testimonials__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 2rem auto 0;
  padding: 0;
}

.testimonials__prev,
.testimonials__next {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.testimonials__prev:hover,
.testimonials__next:hover {
  opacity: 0.7;
}

.testimonials__prev:focus,
.testimonials__next:focus,
.testimonials__prev:active,
.testimonials__next:active {
  outline: none;
  border: none;
}

.testimonials__dots {
  display: flex;
  gap: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #C2AFEC;
  transform: scale(1.2);
}

/* ************TESTIMONIAL (OLD)**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  font-family: 'Quintessential-Regular', serif;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.outro__text {
  font-family: 'OpenSans-Variable', sans-serif;
  font-weight: 300;
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
  background-color: #000000;
  color: #FFFFFF;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 90rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
  color: #FFFFFF;
}

.footer__logo {
  justify-self: center;
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
  color: #FFFFFF;
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid rgba(48, 58, 77, 0.4);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../Website-Images/Contact/Contact-Hero.jpg") center / cover no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ensure proper scaling on all devices */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact__title {
  font-family: 'Quintessential-Regular', serif;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 48px;
  line-height: 110%;
  font-size: 40px;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #FFFFFF;
  font-family: 'OpenSans-Variable', sans-serif;
  font-weight: 300;
  transition: color 0.3s ease;
}

.contact__link:hover {
  color: #C2AFEC;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

/* ****************FORM STYLES**************** */

.session__form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #FFFFFF;
  font-size: 1rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #C2AFEC;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: #FCF3FA;
  background-color: rgba(255, 255, 255, 0.2);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form__group select option {
  background-color: #0C3869;
  color: #FFFFFF;
}

.form__submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Thank you message styles */
.thank-you-message {
  background: linear-gradient(135deg, #C2AFEC, #8A64DB);
  color: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(194, 175, 236, 0.3);
  animation: slideIn 0.5s ease-out;
}

.thank-you-message h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
  font-weight: 600;
}

.thank-you-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced scroll behavior */
html {
  scroll-behavior: smooth;
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: #C2AFEC;
  border-radius: 64px;
  transition: all 0.3s ease;
}

.item-pricing__button:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  transform: translateY(-2px);
}

.team {
  background-color: #e1e4eb;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: #C2AFEC;
  border-radius: 100px;
  display: inline-block;
  transition: all 0.3s ease;
}

.gallery_active:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  transform: scale(1.05);
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #C2AFEC;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #C2AFEC;
  border-radius: 64px;
  transition: all 0.3s ease;
}

.resources__button:hover {
  background-color: #FCF3FA;
  color: #0C3869;
  border-color: #FCF3FA;
  transform: translateY(-2px);
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .page__main + .page__about {
    margin-top: -1px !important;
    padding-top: 0 !important;
    transform: translateY(-1px);
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  /* Fix gaps on tablet and desktop */
  .page__main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .page__main + .page__about {
    margin-top: -1px !important;
    padding-top: 0 !important;
  }
  
  .main,
  .main_about,
  .main_services,
  .main_contact {
    margin-bottom: -1px !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

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

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    font-size: 12px;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 47.999rem) {
  /* Show hamburger icon on mobile */
  .icon-menu {
    display: block;
  }

  /* Hide desktop menu on mobile */
  .menu__body {
    display: none;
  }
  .main__title {
    font-size: 3.5rem;
  }

  .testimonials {
    padding: 40px 0 2rem 0;
  }

  .testimonials__carousel-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  .testimonials__carousel {
    max-width: 100%;
  }

  .testimonial__item {
    padding: 1.5rem;
  }
  
  .testimonials__prev,
  .testimonials__next {
    font-size: 2.5rem;
  }
  
  .testimonial__image {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .testimonial__quote {
    font-size: 1rem;
  }

  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }


  .contact__container {
    flex-direction: column;
    padding-top: 2rem;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .contact__form {
    padding: 1.5rem;
    margin-top: 1rem;
  }

  .form__group {
    margin-bottom: 1rem;
  }

  .form__group input,
  .form__group select,
  .form__group textarea {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Additional mobile improvements */
  .main__button,
  .about__button,
  .outro__button,
  .form__submit {
    min-height: 44px; /* iOS touch target minimum */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .testimonials__prev,
  .testimonials__next {
    min-width: 44px;
    min-height: 44px;
  }

  .dot {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about__video {
    margin: 1.5rem auto;
    width: 100%;
  }

  .about__video .video__placeholder {
    height: 250px;
  }

  .about__video .video__play-button {
    font-size: 2.5rem;
  }

  .about__video .video__text {
    font-size: 0.9rem;
  }



  .actions-header__button {
    padding: 0.75rem;
  }

  .main__container {
    padding-top: 5.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 101vh;
    height: 100%;
  }

  .main__container_pages {
    padding-top: 5.75rem;
  }

  /* Mobile hero image adjustments */
  .main,
  .main_about,
  .main_services,
  .main_contact {
    min-height: 100vh;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll !important; /* Fix mobile background bug */
    background-repeat: no-repeat;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    outline: none !important;
    /* Prevent excessive zoom on mobile */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
  }
  
  /* Prevent distortion on very small screens */
  @media (max-width: 360px) {
    .main,
    .main_about,
    .main_services,
    .main_contact {
      background-size: cover;
      background-position: center top;
      /* Use contain as fallback if cover causes too much zoom */
      background-size: cover;
    }
  }

  .main__title {
    font-family: 'Quintessential-Regular', serif;
    font-size: 2.875rem;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .title {
    font-family: 'Quintessential-Regular', serif;
    font-size: 2rem;
    font-style: italic;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .about__title .title h2{
    text-align: center;
    font-size: 3rem;
  }

  .about__text {
    text-align: center;
  }

  .about__image {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
  }

  /* Ensure seamless flow from hero to next sections */
  .page__about,
  .page__services,
  .page__testimonials,
  .page__outro {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    outline: none !important;
  }

  /* Fix homepage gap between hero and content */
  .page__main {
    margin-bottom: -1px !important;
    padding-bottom: 0 !important;
  }
  
  .page__main + .page__about {
    margin-top: -1px !important;
    padding-top: 0 !important;
  }

  .about__image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
  }

  .about__container {
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 2rem;
    text-align: center;
    max-width: 800px;
  }

  .services__container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Home page services container - add 50px top padding on mobile */
  .page__services .services__container {
    padding-top: 50px;
  }

  .services__row {
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
  }

  .item-services__image {
    max-width: 100%;
    height: 250px;
  }

  .item-services__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonials {
    padding: 1rem 0 2rem 0;
  }

  .testimonials__container {
    padding: 0 1rem;
  }

  .testimonial__item {
    padding: 1rem;
  }

  .testimonial__video {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
  }

  .testimonial__item-stacked .testimonial__video {
    max-width: 100%;
    height: auto;
  }

  .testimonial__item-stacked .testimonial__video iframe {
    width: 100%;
    max-width: 315px;
    height: auto;
    aspect-ratio: 315 / 560;
    filter: grayscale(0%) !important;
  }

  .testimonials__stacked {
    gap: 2rem;
  }

  /* Text-only testimonials mobile */
  .testimonials__text-only {
    gap: 1.5rem;
  }

  .testimonial__text-item {
    padding: 1.5rem;
  }

  .testimonial__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .testimonial__quote {
    font-size: 1rem;
    line-height: 1.5;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }
  
  /* Mobile outro background image adjustments */
  .outro_home,
  .outro_about,
  .outro_services {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
  }

  .logo {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }

  .services-page__img {
    order: -1;
  }

  .services-page__content {
    order: 1;
  }

  .services-page__item:not(:last-child) {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(48, 58, 77, 0.4);
  }

  .services-page__title {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  .reviews__row {
    grid-template-columns: 1fr;
  }

  .team__row {
    grid-template-columns: 1fr;
  }

  .gallery__row {
    grid-template-columns: 1fr;
  }

  .resources__container {
    grid-template-columns: 1fr;
  }

  /* Extra small mobile improvements */
  .main__title {
    font-family: 'Quintessential-Regular', serif;
    font-size: 2.5rem;
    font-style: italic;
  }

  .title {
    font-family: 'Quintessential-Regular', serif;
    font-size: 1.5rem;
    font-style: italic;
  }

  .main__container {
    padding-top: 5.75rem;
  }

  /* Extra small mobile hero adjustments */
  .main,
  .main_about,
  .main_services,
  .main_contact {
    min-height: 50vh;
    background-attachment: scroll !important; /* Fix mobile background bug */
  }

  .main__container_pages {
    padding-top: 6rem;
  }

  .about__container,
  .services__container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  /* Home page services container - add 50px top padding on extra small mobile */
  .page__services .services__container {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .testimonials {
    padding: 1rem 0 2rem 0;
    padding-top: 40px !important;
  }

  .testimonials__carousel{
    width: 100% !important;
  }


  .contact__container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .form__group input,
  .form__group select,
  .form__group textarea {
    padding: 1rem;
  }
}