/* ===========================================================================
   Juliana Caren, LMHC - Psychotherapy
   Stylesheet
   ---------------------------------------------------------------------------
   Palette, typography, and layout for a calm, warm therapy practice site.
=========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fef5f7;
  --fg: #2c1820;
  --card: #fff8fa;
  --primary: #c94f70;
  --primary-lt: #e8748a;
  --secondary: #f5e0e7;
  --muted: #f7dde5;
  --muted-fg: #8a5762;
  --border: rgba(201, 79, 112, 0.15);
  --radius: 1rem;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow-sm: 0 2px 12px rgba(201, 79, 112, 0.06);
  --shadow-md: 0 4px 20px rgba(201, 79, 112, 0.08);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Reusable pieces ---------------------------------------------------- */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--fg);
}

.tag-primary {
  background: rgba(201, 79, 112, 0.1);
  color: var(--primary);
  border-color: rgba(201, 79, 112, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-lt);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(201, 79, 112, 0.4);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--sans);
}

.section-heading {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--fg);
}

/* --- Navigation --------------------------------------------------------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(255, 248, 250, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--fg);
}

.nav-logo span {
  color: var(--primary);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--fg);
}

#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}

#mobile-menu a:hover {
  color: var(--primary);
}

/* --- Hero --------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--secondary);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(254, 245, 247, 0.93) 0%,
    rgba(254, 245, 247, 0.78) 45%,
    rgba(254, 245, 247, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-heading {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.hero-heading em {
  color: var(--primary);
  font-style: normal;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted-fg);
  max-width: 26rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(201, 79, 112, 0.5);
  animation: bob 2s ease-in-out infinite;
  transition: color 0.2s;
}

.scroll-arrow:hover {
  color: var(--primary);
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* --- About -------------------------------------------------------------- */
#about {
  padding: 6rem 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-img-inset {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 20px rgba(44, 24, 32, 0.12);
}

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

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  color: var(--muted-fg);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

/* --- Specialties -------------------------------------------------------- */
#specialties {
  padding: 6rem 0;
  background: rgba(245, 224, 231, 0.35);
}

.section-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.section-intro .section-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-intro p {
  font-size: 1rem;
  color: var(--muted-fg);
}

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

.spec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.spec-card:hover {
  border-color: rgba(201, 79, 112, 0.3);
  box-shadow: var(--shadow-md);
}

.spec-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(201, 79, 112, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.25s;
}

.spec-card:hover .spec-icon {
  background: rgba(201, 79, 112, 0.2);
}

.spec-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.spec-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.spec-more {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* --- Approach ----------------------------------------------------------- */
#approach {
  padding: 6rem 0;
  background: var(--bg);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.approach-sticky {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.approach-heading {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.approach-sub {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.approach-img {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--secondary);
}

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

.modality-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.modality-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.375rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.modality-card:hover {
  border-color: rgba(201, 79, 112, 0.3);
  box-shadow: var(--shadow-sm);
}

.modality-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(201, 79, 112, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.modality-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

.modality-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

/* --- Process ------------------------------------------------------------ */
#process {
  padding: 6rem 0;
  background: rgba(201, 79, 112, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201, 79, 112, 0.22);
  line-height: 1;
}

.process-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg);
}

.process-desc {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* --- Fees --------------------------------------------------------------- */
#fees {
  padding: 6rem 0;
  background: var(--bg);
}

.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.fees-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fees-heading {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.fees-sub {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.fees-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fee-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fee-label {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}

.fee-amount {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--fg);
}

.fee-duration {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

.insurers-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--fg);
}

.insurers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fee-note {
  background: rgba(201, 79, 112, 0.05);
  border: 1px solid rgba(201, 79, 112, 0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.65;
}

.fee-note strong {
  font-weight: 500;
}

.fee-note a {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Contact ------------------------------------------------------------ */
#contact {
  padding: 6rem 0;
  background: rgba(201, 79, 112, 0.04);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.contact-sub {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* --- Footer ------------------------------------------------------------- */
footer {
  padding: 2.5rem 0;
  background: var(--fg);
  color: rgba(254, 245, 247, 0.55);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-name {
  font-family: var(--serif);
  font-weight: 300;
  color: rgba(254, 245, 247, 0.9);
}

.footer-crisis a {
  color: var(--primary-lt);
  text-decoration: underline;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-content {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img-inset {
    display: none;
  }
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-sticky {
    position: static;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fees-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
  }
  .contact-btns {
    flex-direction: column;
    width: 100%;
  }
  .contact-btns .btn {
    justify-content: center;
  }
}
