/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background-color: #2d4a3e;
  color: #fff;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid #7cb89e;
  outline-offset: 2px;
}

.button:focus-visible {
  outline: 2px solid #7cb89e;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 184, 158, 0.3);
}

.navbar-nav-link:focus-visible,
a.footer-link:focus-visible,
.text-link:focus-visible {
  outline: 2px solid #7cb89e;
  outline-offset: 2px;
  border-radius: 2px;
}

.tabs-tab-link:focus-visible {
  outline: 2px solid #7cb89e;
  outline-offset: -2px;
}

.faqs-question:focus-visible {
  outline: 2px solid #7cb89e;
  outline-offset: 2px;
}

.form-input:focus-visible {
  outline: 2px solid #7cb89e;
  outline-offset: 0;
}

/* ===== TOUCH & INTERACTION ===== */
a, button, input, select, textarea {
  touch-action: manipulation;
}

body.menu-open {
  overflow: hidden;
}

/* ===== UTILITY CLASSES ===== */
.padding-global {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.container-large {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.padding-section-medium {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.padding-section-large {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.padding-section-small {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.padding-top-0 {
  padding-top: 0 !important;
}

.max-width-medium {
  max-width: 40rem;
}

.z-index-1 {
  position: relative;
  z-index: 1;
}

.spacer-small {
  height: 1rem;
}

.spacer-medium {
  height: 2rem;
}

.spacer-xlarge {
  height: 4rem;
}

.spacer-xxlarge {
  height: 5rem;
}

/* ===== COLORS ===== */
.background-color-dark-green {
  background-color: #2d4a3e;
  color: #fff;
}

.background-color-light-green {
  background-color: #e8f0ec;
}

.text-color-dark-green {
  color: #2d4a3e;
}

.text-color-bright-green {
  color: #7cb89e;
}

/* ===== EYEBROW PILL ===== */
.eyebrow-pill {
  display: inline-flex;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  align-items: center;
}

.eyebrow-pill.green-background {
  background-color: #d4e8db;
}

.eyebrow-pill.white-background {
  background-color: #fff;
}

.eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== TYPOGRAPHY ===== */
.heading-style-h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-style-h1.hero {
  color: #fff;
}

.heading-style-h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.heading-style-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.heading-style-h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.heading-style-h6 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-size-regular {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.text-size-medium {
  font-size: 1.125rem;
  line-height: 1.5;
}

.text-weight-bold {
  font-weight: 600;
}

/* ===== BUTTON ===== */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2d4a3e;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.button:hover {
  background-color: #3a5f50;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  background-color: #24382f;
}

input[type="submit"].button {
  min-height: 2.75rem;
  min-width: 7rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo-img {
  width: 40px;
  height: auto;
}

.navbar-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d4a3e;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #444;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.navbar-nav-link:hover {
  color: #2d4a3e;
}

.navbar-nav-link:active {
  color: #2d4a3e;
  opacity: 0.8;
}

.navbar-menu-buttons {
  margin-left: 0.5rem;
}

.navbar-menu-button {
  display: none;
  padding: 0.5rem;
}

.menu-icon {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon-line {
  width: 100%;
  height: 2px;
  background-color: #2d4a3e;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HERO SECTION ===== */
.section-hero {
  position: relative;
  padding-top: 4.5rem;
}

.hero-component {
  display: grid;
  padding-top: 2rem;
}

.hero-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.hero-background-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay-layer.dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
  z-index: 1;
}

.hero-card .max-width-medium {
  position: relative;
  z-index: 2;
}

.background-block-85-percent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 85%;
  background-color: #e8f0ec;
  z-index: 0;
}

/* ===== IMAGE RIGHT TEXT LEFT SECTION ===== */
.section-image-right-text-left {
  position: relative;
}

.image-right-text-left-wrapper {
  position: relative;
}

.image-right-text-left-component {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.image-right-text-left-content {
  padding-right: 1rem;
}

.image-wrapper._100-percent {
  width: 100%;
  position: relative;
  padding-bottom: 120%;
  border-radius: 1rem;
  overflow: hidden;
}

.image-absolute {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-block-horizontal {
  position: absolute;
  top: 3rem;
  bottom: 3rem;
  width: 72rem;
  max-width: calc(100% + 5rem);
  background-color: #e8f0ec;
  border-radius: 1.5rem;
  z-index: 0;
}

.background-block-horizontal.align-left {
  left: -2.5rem;
  right: auto;
}

.background-block-horizontal.align-right {
  right: -2.5rem;
  left: auto;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.testimonial {
  background-color: #f5f9f7;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e0ebe5;
}

.testimonial-name {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: #2d4a3e;
  font-weight: 500;
}

/* ===== IMAGE LEFT TEXT RIGHT SECTION ===== */
.section-image-left-text-right {
  position: relative;
}

.image-left-text-right-wrapper {
  position: relative;
}

.image-left-text-right-component {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.image-left-text-right-content {
  padding-left: 1rem;
}

/* ===== TABS SECTION ===== */
.section-tabs {
  position: relative;
}

.tabs-title-component {
  display: grid;
}

.tabs-title-content-left {
  max-width: 40rem;
}

.tabs-component {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
}

.tabs-tab-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 16rem;
}

.tabs-tab-link {
  text-align: left;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  color: #888;
  transition: all 0.3s ease;
  background: transparent;
  width: 100%;
}

.tabs-tab-link:hover {
  color: #2d4a3e;
}

.tabs-tab-link:active {
  opacity: 0.8;
}

.tabs-tab-link.active {
  background-color: #e8f0ec;
  color: #2d4a3e;
}

.tabs-tab-link .heading-style-h3 {
  margin: 0;
  font-size: 1.25rem;
}

.tabs-content {
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-content-wrapper {
  padding: 1.5rem 0;
}

/* ===== COUNSELLING TYPES ===== */
.section-counselling-types {
  position: relative;
}

.counselling-types-strip {
  background-color: #2d4a3e;
  border-radius: 1.5rem;
  padding: 3rem 0;
  margin: 0 2.5rem;
}

.counselling-types-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.counselling-types-item {
  text-align: center;
  color: #fff;
}

.icon-1x1-medium {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
}

.counselling-types-item .heading-style-h5 {
  color: #fff;
}

/* ===== QUALIFICATIONS ===== */
.section-qualifications {
  position: relative;
}

.grid-2-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.qualifications-list {
  list-style: none;
}

.qualifications-list-item {
  position: relative;
  padding: 0.875rem 0 0.875rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #444;
}

.qualifications-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #7cb89e;
  border-radius: 50%;
}

/* ===== FAQ SECTION ===== */
.faqs-component {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.faqs-content {
  position: sticky;
  top: 6rem;
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faqs-accordion {
  border-bottom: 1px solid rgba(45, 74, 62, 0.15);
}

.faqs-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  gap: 1rem;
  cursor: pointer;
  color: #1a1a1a;
}

.faqs-icon-wrapper {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #2d4a3e;
}

.faqs-accordion.open .faqs-icon-wrapper {
  transform: rotate(180deg);
}

.faqs-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faqs-accordion.open .faqs-answer {
  max-height: 20rem;
  padding-bottom: 1.5rem;
}

.faqs-answer .text-size-regular {
  color: #555;
}

/* ===== CONTACT SECTION ===== */
.section-contact {
  position: relative;
}

.contact-title {
  display: grid;
  margin-bottom: 1rem;
}

.contact-title-left {
  max-width: 40rem;
}

.section-contact .heading-style-h2 {
  color: #fff;
}

.contact-form-wrapper {
  max-width: 40rem;
}

.contact-form-flex {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.12);
}

.text-area {
  min-height: 8rem;
  resize: vertical;
}

.section-contact .button {
  background-color: #7cb89e;
  color: #2d4a3e;
  font-weight: 600;
  align-self: flex-start;
}

.section-contact .button:hover {
  background-color: #8ec5ab;
}

.section-contact .button:active {
  background-color: #6aa88c;
}

.form-label span[aria-hidden="true"] {
  color: #e42f3a;
  margin-left: 0.125rem;
}

.form-success-message {
  background-color: rgba(124, 184, 158, 0.15);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 1rem;
}

.success-text {
  color: #7cb89e;
  font-size: 1rem;
  line-height: 1.6;
}

.form-error-message {
  background-color: rgba(228, 47, 58, 0.15);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 1rem;
}

.error-text {
  color: #e42f3a;
  font-size: 1rem;
}

/* ===== SUBPAGES ===== */
.section-subpage {
  padding-top: 4.5rem;
}

.subpage-content {
  min-height: 60vh;
}

.subpage-text p + .spacer-small + p {
  margin: 0;
}

.max-width-large {
  max-width: 52rem;
}

.text-link {
  color: #2d4a3e;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #3a5f50;
}

/* ===== FOOTER ===== */
.section-footer {
  background-color: #1a2e26;
  color: #fff;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-links-wrap {
  display: flex;
  gap: 6rem;
}

.footer-links-block {
  display: flex;
  flex-direction: column;
}

.footer-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

a.footer-link:hover {
  color: #fff;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navbar-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .navbar-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-menu-button {
    display: block;
  }

  .navbar-menu-button.active .menu-icon-line-top {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-menu-button.active .menu-icon-line-middle {
    opacity: 0;
  }

  .navbar-menu-button.active .menu-icon-line-bottom {
    transform: translateY(-8px) rotate(-45deg);
  }

  .image-right-text-left-component,
  .image-left-text-right-component {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-left-text-right-component .image-wrapper {
    order: -1;
  }

  .image-right-text-left-content,
  .image-left-text-right-content {
    padding: 0;
  }

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

  .tabs-component {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tabs-tab-menu {
    flex-direction: row;
    min-width: auto;
  }

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

  .grid-2-column {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faqs-component {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faqs-content {
    position: static;
  }

  .footer-links-wrap {
    flex-direction: column;
    gap: 2rem;
  }

  .background-block-horizontal {
    display: none;
  }

  .heading-style-h1 {
    font-size: 2.5rem;
  }

  .heading-style-h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .padding-global {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .navbar-container {
    padding: 0 1.25rem;
  }

  .padding-section-large {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-card {
    min-height: 60vh;
    padding: 2rem;
  }

  .heading-style-h1 {
    font-size: 2rem;
  }

  .heading-style-h2 {
    font-size: 1.5rem;
  }

  .image-wrapper._100-percent {
    padding-bottom: 80%;
  }

  .counselling-types-strip {
    margin: 0 1.25rem;
  }

  .counselling-types-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .tabs-tab-menu {
    flex-direction: column;
  }

  .spacer-xxlarge {
    height: 3rem;
  }

  .spacer-xlarge {
    height: 2.5rem;
  }
}

@media (max-width: 479px) {
  .counselling-types-list {
    grid-template-columns: 1fr 1fr;
  }

  .navbar-logo-text {
    font-size: 1rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
