/* ===================================================
   PSYCHOTHERAPY PRACTICE – STYLE SHEET
   Color palette:
     Sage green  #A8BDA0    Cream       #FAF6F0
     Muted teal  #6B9E9B    Deep teal   #4A7C79
     Dark text   #3A3A3A    Light text   #F5F5F5
     Accent warm #D4A574    Overlay      rgba(42,62,52,.55)
   =================================================== */

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

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

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: #3A3A3A;
  background: #FAF6F0;
  line-height: 1.7;
  overflow-x: hidden;
}

html.page-leaving body {
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.page-leaving body {
    transition: none;
  }
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.3; }

a { color: #4A7C79; text-decoration: none; transition: color .25s; }
a:hover { color: #6B9E9B; }

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

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

.btn {
  display: inline-block; padding: .85rem 2rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.btn-primary { background: #3F6F6C; color: #fff; }
.btn-primary:hover {
  background: #4A7C79; color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,124,121,.35);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(250,246,240,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: background .3s;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  width: 90%; max-width: 1100px; margin: 0 auto; height: 72px;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 600; color: #3A3A3A; white-space: nowrap;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 1.6rem;
}
.nav-link {
  font-size: .95rem; font-weight: 500; color: #3A3A3A;
  position: relative; padding: .25rem 0;
}
.nav-link:hover,
.nav-link.active {
  color: #3A3A3A;
}
.nav-page-link {
  font-size: .95rem; font-weight: 500; color: #3A3A3A;
  position: relative; padding: .25rem 0;
  display: inline-block;
  background: none;
  border: none;
  box-shadow: none;
}
.nav-page-link:hover,
.nav-page-link.active {
  color: #3A3A3A;
}
.nav-utility-item {
  display: flex; align-items: center;
}
.nav-media-item {
  margin-left: .6rem; padding-left: 1rem;
  border-left: 1px solid rgba(58,58,58,.12);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: #6B9E9B; transition: width .3s;
}
.nav-page-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: #6B9E9B; transition: width .3s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-page-link:hover::after,
.nav-page-link.active::after { width: 100%; }

/* Language toggle */
.lang-toggle {
  background: none; border: 1.5px solid #6B9E9B; border-radius: 4px;
  padding: .25rem .6rem; cursor: pointer; font-size: .85rem;
  font-family: inherit; color: #3A3A3A; display: flex; align-items: center; gap: .3rem;
  position: relative; z-index: 1200;
}
.lang-option { opacity: .45; transition: opacity .2s; font-weight: 600; cursor: pointer; pointer-events: auto; }
.lang-option.active { opacity: 1; color: #4A7C79; }
.lang-separator { opacity: .3; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px; z-index: 1100;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px; background: #3A3A3A;
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?w=1600&q=80') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(42,62,52,.62) 0%,
    rgba(74,124,121,.50) 50%,
    rgba(42,62,52,.68) 100%
  );
}
.hero-content {
  position: relative; z-index: 1; color: #F5F5F5;
  max-width: 700px; padding: 2rem 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .6rem; }
.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem); opacity: .9;
  margin-bottom: 2rem; font-weight: 300;
}
.hero-hours {
  background: rgba(255,255,255,.12); border-radius: 8px;
  padding: .8rem 1.4rem; display: inline-block; margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}
.hero-hours p:first-child { font-weight: 600; margin-bottom: .2rem; }

/* ---------- SECTIONS GENERAL ---------- */
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem); text-align: center;
  margin-bottom: .6rem; color: #3A3A3A;
}
.section-subtitle {
  text-align: center; color: #6B9E9B; margin-bottom: 3rem; font-size: 1.05rem;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: #A8BDA0; margin: .8rem auto 0; border-radius: 2px;
}

/* ---------- ABOUT ---------- */
.about { background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem;
  align-items: center; margin-top: 2.5rem;
}
.about-image img {
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.1);
  object-fit: cover; width: 100%; max-height: 480px;
}
.about-text h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.about-credentials { color: #6B9E9B; font-weight: 500; margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; }

/* ---------- SERVICES ---------- */
.services { background: #FAF6F0; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.service-card {
  background: #fff; border-radius: 12px; padding: 2rem 1.5rem;
  text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.service-icon {
  width: 4rem; height: 4rem; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107,158,155,.14), rgba(168,189,160,.18));
  color: #163634;
}
.service-icon .icon-svg {
  width: 2rem; height: 2rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.service-card p { font-size: .95rem; color: #555; }

/* ---------- MEDIA PAGE ---------- */
.media-header {
  position: relative; min-height: 38vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  background: url('https://images.unsplash.com/photo-1476231682828-37e571bc172f?w=1600&q=80') center/cover no-repeat;
}
.media-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(42,62,52,.65) 0%, rgba(74,124,121,.55) 100%);
}
.media-header-content {
  position: relative; z-index: 1; color: #F5F5F5;
  max-width: 650px; padding: 6rem 1.5rem 3rem;
}
.media-header-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5rem;
}
.media-header-content p {
  font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .88; font-weight: 300;
}

.media-section { background: #FAF6F0; }

.media-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; font-size: .95rem; color: #4A7C79;
  margin-bottom: 2rem; transition: color .25s;
}
.media-back:hover { color: #6B9E9B; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.media-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border-radius: 10px;
  background: #fff; color: #3A3A3A;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.media-card:hover {
  border-color: #A8BDA0;
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
  transform: translateY(-3px);
}
.media-card-type {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(107,158,155,.12);
  color: #0F1F1D;
}
.media-card-type .icon-svg { width: 1.25rem; height: 1.25rem; }
.media-card-body { min-width: 0; }
.media-card-source {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: #6B9E9B;
}
.media-card-body h3 {
  font-size: 1rem; font-weight: 600; margin: .25rem 0 .3rem;
  line-height: 1.35;
}
.media-card-date { font-size: .82rem; color: #777; }

/* ---------- NATURE DIVIDER ---------- */
.nature-divider {
  position: relative; padding: 4rem 1.5rem; text-align: center;
  background: url('https://images.unsplash.com/photo-1476231682828-37e571bc172f?w=1600&q=80') center/cover no-repeat;
  background-attachment: fixed;
}
.nature-overlay {
  position: absolute; inset: 0; background: rgba(42,62,52,.6);
}
.nature-quote {
  position: relative; z-index: 1; color: #F5F5F5;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic; max-width: 600px; margin: 0 auto;
}
.nature-author {
  position: relative; z-index: 1; color: rgba(245,245,245,.75);
  margin-top: .5rem; font-size: .95rem;
}

/* ---------- PRICES ---------- */
.prices { background: #fff; }
.price-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.price-card {
  position: relative; background: #FAF6F0; border-radius: 12px;
  padding: 2rem 1.5rem; text-align: center;
  border: 2px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.price-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.price-card.featured {
  border-color: #6B9E9B;
  background: linear-gradient(170deg, #f0f7f6 0%, #FAF6F0 100%);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #3F6F6C; color: #fff; font-size: .78rem; font-weight: 600;
  padding: .25rem .9rem; border-radius: 20px;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.price-duration { color: #888; font-size: .9rem; margin-bottom: .8rem; }
.price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 700; color: #4A7C79; margin-bottom: .8rem;
}
.price-note { font-size: .9rem; color: #666; }
.prices-note {
  text-align: center; margin-top: 2.5rem; color: #888;
  font-size: .92rem; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ---------- CONTACT ---------- */
.contact { background: #FAF6F0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; margin-top: 2.5rem;
}
.contact-info h3,
.contact-form-wrapper h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.2rem;
}
.contact-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0; margin-top: .05rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(107,158,155,.12);
  color: #0F1F1D;
}
.contact-icon .icon-svg {
  width: 1.25rem; height: 1.25rem;
}
.icon-svg {
  display: block;
}
.contact-item strong { display: block; margin-bottom: .15rem; }
.contact-item p { margin: 0; }
.contact-note { margin-top: 1.5rem; color: #888; font-size: .92rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 500; margin-bottom: .35rem; font-size: .95rem; }
.form-group input,
.form-group textarea {
  font-family: inherit; font-size: 1rem; padding: .75rem 1rem;
  border: 1.5px solid #d0d0d0; border-radius: 8px;
  background: #fff; transition: border-color .25s, box-shadow .25s;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: #6B9E9B;
  box-shadow: 0 0 0 3px rgba(107,158,155,.18);
}
.form-group textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* ---------- FOOTER ---------- */
.footer {
  background: #3A3A3A; color: rgba(255,255,255,.7); text-align: center;
  padding: 2.5rem 1rem; font-size: .9rem;
}
.footer-note { margin-top: .5rem; font-size: .82rem; opacity: .6; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE: Tablet & below ---------- */
@media (max-width: 768px) {
  html { scroll-padding-top: 64px; }
  .nav-container { height: 64px; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
    background: rgba(250,246,240,.98);
    backdrop-filter: blur(12px);
    flex-direction: column; align-items: flex-start;
    padding: 5rem 2rem 2rem; gap: 1.4rem;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 20px rgba(0,0,0,.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-utility-item {
    width: 100%;
  }
  .nav-media-item {
    margin-left: 0; padding-left: 0; padding-top: .4rem;
    border-left: none; border-top: 1px solid rgba(58,58,58,.12);
  }
  .nav-media-item .nav-link,
  .nav-media-item .nav-page-link {
    width: 100%; display: inline-flex; justify-content: flex-start;
  }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image { order: -1; max-width: 320px; margin: 0 auto; }

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

  .nature-divider { background-attachment: scroll; }
}

/* ---------- RESPONSIVE: Small mobile ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .price-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; text-align: center; }
}
