/* =============================================================
   THRESHOLD PSYCHOANALYSIS — styles.css
   Dr. Natallia Khamenka
============================================================= */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ---- Design Tokens ---- */
:root {
  --color-bg-primary:     #FDFBF7;
  --color-bg-sage:        #E6DFD3;
  --color-bg-blush:       #E6DFD3;
  --color-bg-dark:        #1C2A3A;

  --color-text-primary:   #2E251F;
  --color-text-accent:    #1C2A3A;
  --color-text-light:     #FDFBF7;
  --color-text-muted:     #7A7268;

  --color-accent-rose:    #A3B19B;
  --color-accent-blush:   #E6DFD3;
  --color-white:          #FFFFFF;

  --font-display:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;
  --font-utility:  'Oswald', sans-serif;

  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   64px;
  --space-xl:   96px;
  --space-2xl:  128px;

  --max-width: 1200px;
  --section-pad-v: 96px;
}

/* ---- Focus States (Accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--color-accent-rose);
  outline-offset: 3px;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 639px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* =============================================================
   TYPOGRAPHY
============================================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
}

h4, .label-tag {
  font-family: var(--font-utility);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-primary);
}

.label-tag {
  display: block;
  margin-bottom: var(--space-sm);
}

.label-tag--rose {
  color: var(--color-text-accent);
}

.label-tag--rose-sm {
  color: var(--color-text-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.section-heading--light {
  color: #2E251F;
}

.body-copy {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  max-width: 640px;
}

/* =============================================================
   BUTTONS
============================================================= */

.btn-text {
  display: inline-block;
  font-family: var(--font-utility);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.btn-text:hover {
  opacity: 0.75;
}

.btn-text--light {
  color: var(--color-text-light);
}

.btn-booking {
  display: inline-block;
  font-family: var(--font-utility);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-text-primary);
  padding: 14px 32px;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-booking:hover {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* =============================================================
   LOGO
============================================================= */

.logo-block {
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.logo-threshold {
  font-family: var(--font-utility);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  display: block;
}

.logo-rule {
  display: block;
  height: 1px;
  background: var(--color-accent-rose);
  margin: 4px 0;
  width: 100%;
}

.logo-practice {
  font-family: var(--font-utility);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-rose);
  display: block;
  margin-top: 3px;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-primary);
  display: block;
}

/* Footer logo variant */
.logo-block--light .logo-threshold,
.logo-threshold--light {
  color: #2E251F;
}

.logo-block--light .logo-rule,
.logo-rule--light {
  background: #2E251F;
}

.logo-block--light .logo-practice,
.logo-practice--light {
  color: #2E251F;
}

.logo-block--light .logo-name,
.logo-name--light {
  color: #2E251F;
}

/* =============================================================
   HEADER / NAV
============================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 61, 79, 0.12);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ---- Header right group ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.65;
}

.nav-link--cta {
  border-bottom: 1px solid var(--color-accent-rose);
  padding-bottom: 1px;
}

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  opacity: 0.45;
  padding: 2px 3px;
  line-height: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  color: var(--color-accent-rose);
  opacity: 1;
}

.lang-sep {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  opacity: 0.4;
  user-select: none;
}

.lang-switcher--mobile {
  margin-bottom: var(--space-lg);
}

.lang-switcher--mobile .lang-btn {
  font-size: 1rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
  padding: 4px 6px;
}

.lang-switcher--mobile .lang-btn.active {
  opacity: 1;
  color: var(--color-accent-rose);
}

.lang-switcher--mobile .lang-sep {
  font-size: 0.85rem;
}

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

.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay.is-open {
  display: flex;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}

.mobile-nav-close:hover {
  opacity: 0.65;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-text-accent);
}

/* =============================================================
   HERO
============================================================= */

.section-hero {
  background: var(--color-bg-sage);
  padding-top: calc(80px + var(--section-pad-v));
  padding-bottom: var(--section-pad-v);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arch-frame {
  position: relative;
  display: inline-block;
}

.arch-frame::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1.5px solid var(--color-accent-rose);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.6;
  pointer-events: none;
}

.arch-frame img {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

.hero-text-col {
  padding-left: var(--space-sm);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.18;
  color: var(--color-text-accent);
  margin-bottom: var(--space-md);
}

.hero-headline em {
  font-style: italic;
}

.hero-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-primary);
  max-width: 540px;
  margin-bottom: var(--space-md);
}

.hero-cta {
  margin-top: var(--space-xs);
}

/* =============================================================
   ABOUT
============================================================= */

.section-about {
  background: var(--color-bg-primary);
  padding: var(--section-pad-v) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.about-text-col .body-copy:last-of-type {
  margin-bottom: 0;
}

.credentials-label {
  margin-bottom: var(--space-sm);
  padding-top: 4px;
}

.credentials-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.credential-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--color-accent-rose);
  line-height: 1.4;
}

/* =============================================================
   WHY WORK WITH ME
============================================================= */

.section-why {
  background: var(--color-bg-sage);
  padding: var(--section-pad-v) 0;
}

.section-why .section-heading {
  margin-bottom: var(--space-lg);
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
}

.why-item {
  padding: 12px 0 12px var(--space-md);
  border-left: 2px solid var(--color-accent-rose);
  margin-bottom: var(--space-sm);
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-item-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.why-item .body-copy {
  margin-bottom: 0;
}

/* =============================================================
   SPECIALTIES
============================================================= */

.section-specialties {
  background: #A3B19B;
  padding: var(--section-pad-v) 0;
}

.section-specialties .label-tag {
  margin-bottom: var(--space-sm);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  list-style: none;
}

.specialty-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #2E251F;
  padding: 12px 16px 12px 16px;
  border-left: 2px solid #2E251F;
  border-bottom: 1px solid rgba(46, 37, 31, 0.15);
  line-height: 1.4;
}

.approaches-block {
  border-top: 1px solid rgba(210, 224, 232, 0.2);
  padding-top: var(--space-lg);
}

.approaches-block .label-tag--rose-sm {
  margin-bottom: var(--space-sm);
}

.approaches-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin-top: var(--space-sm);
}

.section-specialties .label-tag--rose,
.section-specialties .label-tag--rose-sm {
  color: #2E251F;
}

.approach-tag {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-light);
  border: 1px solid var(--color-accent-blush);
  border-radius: 20px;
  padding: 6px 16px;
  background: transparent;
  transition: background 0.2s ease;
}

.approach-tag:hover {
  background: rgba(210, 224, 232, 0.12);
}

/* =============================================================
   HOW I WORK
============================================================= */

.how-content {
  max-width: 640px;
}

/* =============================================================
   BACKGROUND & TRAINING
============================================================= */

.training-block {
  margin-bottom: var(--space-lg);
}

.training-block:last-child {
  margin-bottom: 0;
}

.training-subheading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: #2E251F;
  margin-bottom: var(--space-sm);
}

.credential-item--light {
  color: #2E251F;
  border-left-color: #2E251F;
}

.specialties-grid--who {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .specialties-grid--who {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .specialties-grid--who {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   BOOK
============================================================= */

.section-book {
  background: var(--color-bg-blush);
  padding: var(--section-pad-v) 0;
}

.book-inner {
  max-width: 640px;
}

.book-body {
  margin-bottom: var(--space-md);
}

.book-note {
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-primary);
  opacity: 0.7;
  line-height: 1.5;
}

/* =============================================================
   CONTACT
============================================================= */

.section-contact {
  background: var(--color-bg-primary);
  padding: var(--section-pad-v) 0;
}

.contact-inner {
  max-width: 640px;
}

.contact-details {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-sm);
  padding: 14px 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.15);
  align-items: baseline;
}

.contact-row:first-child {
  border-top: 1px solid rgba(51, 51, 51, 0.15);
}

.contact-label {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.contact-value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
}

.contact-link {
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  border-bottom-color: var(--color-accent-rose);
}

.contact-link--email {
  border-bottom-color: var(--color-accent-rose);
}

.contact-link--email:hover {
  color: var(--color-accent-rose);
}

/* =============================================================
   FOOTER
============================================================= */

.site-footer {
  background: #A3B19B;
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(46, 37, 31, 0.15);
}

.footer-nav {
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.footer-nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-family: var(--font-utility);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-nav-link:hover {
  opacity: 1;
}

.footer-legal {
  max-width: var(--max-width);
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-legal p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #2E251F;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-utility);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2E251F;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-linkedin:hover {
  opacity: 1;
}

.linkedin-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =============================================================
   RESPONSIVE — TABLET (640px+)
============================================================= */

@media (min-width: 640px) {
  .hamburger {
    display: none;
  }

  .header-right {
    display: flex;
  }

  .credentials-list {
    grid-template-columns: 1fr 1fr;
  }

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

/* =============================================================
   RESPONSIVE — DESKTOP (1024px+)
============================================================= */

@media (min-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================================
   RESPONSIVE — MOBILE (< 640px)
============================================================= */

@media (max-width: 639px) {
  :root {
    --section-pad-v: 56px;
  }

  .header-inner {
    padding: 14px var(--space-sm);
  }

  .hamburger {
    display: flex;
  }

  .header-right {
    display: none;
  }

  /* Hero — stacked */
  .section-hero {
    padding-top: calc(72px + 56px);
    padding-bottom: 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  .hero-photo-col {
    order: -1;
  }

  .arch-frame img {
    width: 260px;
    height: 330px;
  }

  .hero-text-col {
    padding-left: 0;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }

  /* About — stacked */
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .credentials-list {
    grid-template-columns: 1fr;
  }

  /* Specialties — single col */
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  /* Section heading */
  .section-heading {
    font-size: 2.2rem;
  }

  /* Footer */
  .footer-main {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-nav-list {
    gap: var(--space-sm);
  }

  /* Contact rows */
  .contact-row {
    grid-template-columns: 80px 1fr;
  }
}

/* =============================================================
   RESPONSIVE — WIDE (1280px+)
============================================================= */

@media (min-width: 1280px) {
  .hero-inner {
    grid-template-columns: 5fr 7fr;
  }

  .hero-headline {
    font-size: 4rem;
  }
}
