/* ============================================================
   SHARED.CSS — Maha Cooper Clinical Psychologist
   ============================================================ */

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

:root {
  --ink: #1C1612;
  --ink-mid: #574F4A;
  --ink-soft: #7A706B;
  --ink-muted: #9E9590;
  --warm-white: #FDFAF6;
  --paper: #F4EDE3;
  --paper-dark: #E8DBCC;
  --terracotta: #BE7D6A;
  --terracotta-pale: #F2E2D8;
  --sage: #617A65;
  --sage-pale: #E8EFE9;
  --line: rgba(28,22,18,0.12);
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(253,250,246,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(28,22,18,0.07);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 400;
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

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

.nav-book {
  padding: 0.55rem 1.4rem !important;
  background: var(--ink) !important;
  color: var(--warm-white) !important;
  border-radius: 4px;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s ease !important;
}

.nav-book:hover {
  background: var(--terracotta) !important;
  color: var(--warm-white) !important;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink);
  padding: 0.3rem;
  cursor: pointer;
  line-height: 1;
}

/* MOBILE MENU */
.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 5vw 2rem;
  gap: 1.2rem;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 28px rgba(28,22,18,0.08);
  pointer-events: none;
}

.nav-mobile.open {
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.55rem 0;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-mobile a:hover { color: var(--ink); }

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.82rem 2rem;
  background: var(--ink);
  color: var(--warm-white);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border: none;
  transition: background 0.2s ease, transform 0.18s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

.btn-text {
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(28,22,18,0.35);
  padding-bottom: 0.12rem;
  transition: color 0.2s, border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-text:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */

.page-header {
  padding: calc(72px + 4.5rem) 5vw 4.5rem;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}

.page-header .section-label { margin-bottom: 1.2rem; }

.page-header h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.page-header h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.page-header > p {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.85;
  font-family: 'DM Sans', sans-serif;
}

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

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 0.75rem;
  display: block;
  font-family: 'DM Sans', sans-serif;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

/* ============================================================
   DIVIDER
   ============================================================ */

.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: none;
}

/* ============================================================
   TWO COLUMN LAYOUT (About — Experience section)
   ============================================================ */

.two-col {
  padding: 6rem 5vw;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 6rem;
  align-items: start;
}

.two-col-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: 'DM Sans', sans-serif;
  padding-top: 0.5rem;
  position: sticky;
  top: 5.5rem;
}

.two-col-content h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.two-col-content h2 em {
  font-style: italic;
  color: var(--terracotta);
}

/* LINE LIST */
.line-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.line-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.line-item:first-child { border-top: 1px solid var(--line); }

.line-item-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.65;
  padding-top: 0.2rem;
  font-family: 'DM Sans', sans-serif;
}

.line-item-detail h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.line-item-detail p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.78;
}

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

footer {
  background: var(--ink);
  color: var(--warm-white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  padding: 4rem 5vw;
  border-bottom: 1px solid rgba(253,250,246,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--warm-white);
  display: block;
  margin-bottom: 0;
}

.footer-tagline {
  font-size: 0.72rem;
  color: rgba(253,250,246,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.footer-nav a {
  color: rgba(253,250,246,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.footer-nav a:hover { color: var(--warm-white); }

.footer-info {
  font-size: 0.88rem;
  color: rgba(253,250,246,0.45);
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
  padding-top: 0.2rem;
}

.footer-bottom {
  padding: 1.5rem 5vw;
  font-size: 0.72rem;
  color: rgba(253,250,246,0.3);
  letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-social a {
  color: var(--warm-white);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(253,250,246,0.25);
  border-radius: 40px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social a:hover {
  background: rgba(253,250,246,0.1);
  border-color: rgba(253,250,246,0.5);
  color: var(--warm-white);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 3px 10px rgba(0,0,0,0.15);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 5vw;
  }

  .two-col-label { position: static; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 5vw;
  }

  .line-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }

  .page-header {
    padding: calc(72px + 3rem) 5vw 3rem;
  }
}

@media (max-width: 768px) {
  #mainNav {
    height: 60px;
    padding: 0 4vw;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .nav-mobile {
    top: 60px;
    padding: 1.2rem 4vw 1.5rem;
  }

  .page-header {
    padding: calc(60px + 2rem) 4vw 2rem;
  }

  .page-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .section-title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }

  .two-col {
    padding: 3rem 4vw;
    gap: 1.5rem;
  }

  .two-col-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
  }

  .line-item {
    padding: 1.2rem 0;
  }

  .btn-primary {
    padding: 0.85rem 1.6rem;
    font-size: 0.86rem;
    min-height: 44px;
  }

  .btn-text {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-top {
    gap: 2rem;
    padding: 2.5rem 4vw;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 4vw;
    gap: 0.8rem;
  }

  .footer-social {
    justify-content: center;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float-tooltip {
    display: none;
  }
}
