/* ============================================================
   GHKEYLA THERAPIST LLC — Main Stylesheet
   Palette: Muted Sage + Warm Gold + Cream
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2937;
  background-color: #FAF7F0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #7D9B76;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 1000;
  transition: top 0.2s ease;
}

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

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E0D5;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: #1F2937;
  letter-spacing: 0.02em;
}

.nav__brand-text {
  font-family: Georgia, 'Times New Roman', serif;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4B5563;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #7D9B76;
  transition: width 0.25s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #1F2937;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #C9A96E;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: #B8944F;
  transform: scale(1.06);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1F2937;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, #F0F5EF 0%, #FAF7F0 55%, #EDE7D8 100%);
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #1F2937;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #4B5563;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero__divider {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, #C9A96E 0%, #7D9B76 100%);
  margin: 0 auto 36px;
  border-radius: 2px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 40px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: #7D9B76;
  color: #FFFFFF;
  border-color: #7D9B76;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #5E7A58;
  border-color: #5E7A58;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(125, 155, 118, 0.3);
}

.btn--outline {
  background: transparent;
  color: #4B5563;
  border-color: #C9A96E;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: #C9A96E;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn--gold {
  background: #C9A96E;
  color: #FFFFFF;
  border-color: #C9A96E;
  width: 100%;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #B8944F;
  border-color: #B8944F;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
}

/* --- Section Titles --- */
.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: #4B5563;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Services --- */
.services {
  padding: 100px 32px;
  background: #FFFFFF;
}

.services__header {
  margin-bottom: 60px;
}

.services__icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.service-icon__circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #F0F5EF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.service-icon:hover .service-icon__circle {
  background: #E0EBDE;
  transform: scale(1.08);
  border-color: #7D9B76;
}

.service-icon__label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1F2937;
}

.services__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  background: #FAF7F0;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #E5E0D5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: #C9A96E;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.75;
}

/* --- About --- */
.about {
  padding: 100px 32px;
  background: #F0F5EF;
}

.about__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about__heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 24px;
}

.about__underline {
  width: 180px;
  height: 10px;
  margin: 0 auto 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 10'%3E%3Cpath d='M6 6 Q45 -2 90 6 Q135 14 174 6' fill='none' stroke='%23C9A96E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.about__text {
  font-size: 1.0625rem;
  color: #4B5563;
  line-height: 1.85;
  margin-bottom: 36px;
}

.about__strengths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 40px;
  background: #FFFFFF;
  color: #5E7A58;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid #7D9B76;
  letter-spacing: 0.01em;
}

/* --- Stats --- */
.stats {
  background: #FAF7F0;
  border-top: 1px solid #E5E0D5;
  border-bottom: 1px solid #E5E0D5;
}

.stats__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid #E5E0D5;
}

.stats__item:last-child {
  border-right: none;
}

.stats__number {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #7D9B76;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 12px;
  background: #F0F5EF;
  margin-bottom: 10px;
  min-width: 90px;
}

.stats__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Contact --- */
.contact {
  padding: 100px 32px;
  background: #FFFFFF;
}

.contact__card {
  max-width: 560px;
  margin: 0 auto;
  padding: 52px 44px;
  border-radius: 24px;
  background: #FAF7F0;
  border: 1px solid #E5E0D5;
  position: relative;
}

.contact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #C9A96E 0px, #C9A96E 8px, #7D9B76 8px, #7D9B76 12px, transparent 12px, transparent 16px);
  border-radius: 0 0 4px 4px;
}

.contact__heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin-bottom: 12px;
  margin-top: 8px;
}

.contact__form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F2937;
}

.form-group__input,
.form-group__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #E5E0D5;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1F2937;
  background: #FFFFFF;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
  color: #9CA3AF;
}

.form-group__input:focus,
.form-group__textarea:focus {
  border-color: #7D9B76;
  box-shadow: 0 0 0 3px rgba(125, 155, 118, 0.15);
}

.form-group__input.error,
.form-group__textarea.error {
  border-color: #DC2626;
}

.form-group__error {
  font-size: 0.8125rem;
  color: #DC2626;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-group__error.visible {
  opacity: 1;
}

.contact__success {
  margin-top: 24px;
  padding: 16px 20px;
  background: #F0F5EF;
  border-radius: 12px;
  color: #5E7A58;
  font-weight: 600;
  text-align: center;
  font-size: 0.9375rem;
}

.contact__success[hidden] {
  display: none;
}

/* --- Footer --- */
.footer {
  padding: 48px 32px 32px;
  background: #1F2937;
  color: #FFFFFF;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 24px;
}

.footer__link {
  font-size: 0.9375rem;
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #C9A96E;
}

.footer__copy {
  font-size: 0.8125rem;
  color: #6B7280;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #7D9B76;
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 50;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #5E7A58;
  transform: translateY(-2px);
}

.back-to-top[hidden] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* --- Scroll Fade-Up --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Legal Pages --- */
.legal {
  padding: 120px 32px 80px;
  background: #FAF7F0;
  min-height: 100vh;
}

.legal__container {
  max-width: 780px;
  margin: 0 auto;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #7D9B76;
  margin-bottom: 36px;
  transition: color 0.2s ease;
}

.legal__back:hover,
.legal__back:focus-visible {
  color: #5E7A58;
}

.legal__content h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}

.legal__content .legal__date {
  font-size: 0.9375rem;
  color: #9CA3AF;
  margin-bottom: 36px;
}

.legal__content h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1F2937;
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal__content h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal__content p {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal__content ul,
.legal__content ol {
  margin: 0 0 16px 24px;
  color: #4B5563;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal__content li {
  margin-bottom: 8px;
}

.legal__content strong {
  color: #1F2937;
}

.legal__content address {
  font-style: normal;
  color: #4B5563;
  line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .services__details {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .services__icons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
  }

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

  .stats__item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FAF7F0;
    flex-direction: column;
    padding: 28px 32px;
    gap: 20px;
    border-bottom: 1px solid #E5E0D5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

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

  .services {
    padding: 72px 24px;
  }

  .about {
    padding: 72px 24px;
  }

  .contact {
    padding: 72px 24px;
  }

  .contact__card {
    padding: 36px 24px;
  }

  .footer__links {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stats__item {
    padding: 28px 16px;
  }

  .stats__number {
    font-size: 1.75rem;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .services__icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .hero__title {
    font-size: 2rem;
  }

  .about__strengths {
    flex-direction: column;
    align-items: center;
  }

  .contact__card::before {
    width: 80px;
  }
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid #7D9B76;
  outline-offset: 2px;
}

/* --- 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;
  }
}
