/* =============================================
   shared.css — Psikolog Gözde Nur Özdemir
   Ortak: reset, değişkenler, cursor, nav,
          hamburger, mobil overlay, footer, reveal
   ============================================= */

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

:root {
  --cream: #faf6f1;
  --blush: #f0e4d8;
  --rose: #d4a5a5;
  --sage: #a8b8a8;
  --mist: #c5cfd8;
  --lavender: #c4b8d0;
  --warm-brown: #8a6f5e;
  --dark: #3d3530;
  --text: #5a4d44;
  /* Koyulaştırıldı: krem zemin üzerinde WCAG kontrast (≈4.5:1+) */
  --light-text: #6d625c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--warm-brown);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--warm-brown);
}

/* ── Nav (yalnızca üst çubuk — footer’daki <nav class="footer-sitelinks"> sabitlenmesin) ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: multiply;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 40px; list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--warm-brown);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--warm-brown); }
.nav-cta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-brown);
  text-decoration: none;
  border: 1px solid var(--warm-brown);
  padding: 10px 22px;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--warm-brown); color: white; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--dark);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Overlay ── */
.nav-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 150;
  padding: 90px 36px 48px;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay li { list-style: none; border-bottom: 1px solid var(--blush); }
.nav-mobile-overlay li a {
  display: block;
  padding: 18px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--dark);
  text-decoration: none;
}
.nav-mobile-overlay li a.active { color: var(--warm-brown); }
.nav-mobile-cta-btn {
  display: inline-block;
  margin-top: 32px;
  background: var(--warm-brown);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .08em;
  text-align: center;
}

/* ── Footer (4-sütunlu tam versiyon) ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.72);
  padding: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: white;
  margin-bottom: 16px;
}
.footer-brand-desc { font-size: 0.82rem; line-height: 1.7; }
.footer-sitelinks {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  /* Semantik <nav>; üst bar stilleri #navbar ile sınırlı — burada sabitleme yok */
  position: static;
  z-index: auto;
  display: block;
  mix-blend-mode: normal;
}
.footer-sitelinks-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.footer-sitelinks ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-sitelinks a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-sitelinks a:hover { color: #fff; }
.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  font-weight: 600;
  font-family: inherit;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.88); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; }

/* ── Responsive ── */
@media(max-width:900px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  #navbar {
    padding: 20px 24px;
    background: rgba(250,246,241,.95);
    backdrop-filter: blur(16px);
  }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  footer { padding: 48px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
