/* =========================================================
   Esin Coşkun — Uzman Diyetisyen | Sinematik Tek Sayfa Site
   ========================================================= */

:root {
  --cream: #faf6f0;
  --cream-2: #f2ece1;
  --ink: #2b2a24;
  --ink-soft: #55534a;
  --sage: #7c8f6e;
  --sage-dark: #5c6e4f;
  --terracotta: #c17a54;
  --gold: #cfa96e;
  --line: rgba(43, 42, 36, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}

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

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--cream);
  letter-spacing: 0.04em;
  opacity: 0;
}

/* ---------- Wipe / film transition layer ---------- */
.wipe-layer {
  position: fixed;
  inset: 0;
  background: var(--sage-dark);
  z-index: 500;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 900;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

/* ---------- Nav ---------- */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#mainNav.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.9rem;
}
#mainNav.scrolled .nav-logo { color: var(--ink); }
#mainNav.scrolled #navToggle span { background: var(--ink); }
#mainNav.scrolled #navToggle.active span { background: #fff; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.nav-logo span { font-style: italic; opacity: 0.7; }

#navLinks {
  display: flex;
  gap: 1.7rem;
  align-items: center;
}
#navLinks a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
#navLinks a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
#navLinks a:hover::after,
#navLinks a.active::after { width: 100%; }
#navLinks a.active { color: var(--gold); }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta::after { display: none; }

#navToggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 850;
}
#navToggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* ---------- Scene base ---------- */
.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 6vw, 6rem);
  overflow: hidden;
}

.scene-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
}

/* ---------- Hero ---------- */
#hero { padding: 5.5rem clamp(1.5rem, 6vw, 6rem) 6.5rem; background: var(--ink); }
.scene-bg { position: absolute; inset: 0; z-index: 0; }
.bg-layer {
  position: absolute; inset: -10%;
  background-size: cover;
  background-position: center;
}
.layer-1 {
  background: radial-gradient(circle at 30% 20%, #3d4a34 0%, var(--ink) 65%);
}
.layer-2 {
  background: radial-gradient(circle at 75% 80%, rgba(207,169,110,0.25), transparent 55%);
}
/* Fotoğrafın belirginliği buradaki opacity değeriyle ayarlanır */
.layer-photo {
  inset: 0 auto 0 0;
  width: max(77vh, 48vw);
  background-image: url("../assets/arka-plan.jpg");
  background-position: left top;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 92%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 92%);
}
.bg-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hero-content { text-align: center; color: var(--cream); text-shadow: 0 1px 18px rgba(20, 20, 16, 0.55); }
.hero-portrait {
  width: clamp(130px, 24vh, 210px);
  aspect-ratio: 1;
  margin: 0 auto 1.4rem;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), rgba(207, 169, 110, 0.25));
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.65);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.eyebrow.center { text-align: center; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero-title span { display: inline-block; padding-bottom: 0.12em; }

.hero-sub {
  margin: 1.1rem auto 2rem;
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(250,246,240,0.92);
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.btn.small { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost {
  border: 1px solid rgba(250,246,240,0.4);
  color: inherit;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  border: 1px solid var(--sage-dark);
  color: var(--sage-dark);
}
.btn-outline:hover { background: var(--sage-dark); color: var(--cream); }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(250,246,240,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px; height: 40px;
  background: rgba(250,246,240,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ---------- Two column scenes ---------- */
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1.1fr 0.9fr; }
.two-col.reverse .col-media { order: 2; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-title.center { text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }

.body-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
  max-width: 34rem;
}
.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-row li { display: flex; flex-direction: column; }
.stat-row strong { font-family: var(--font-display); font-size: 1.3rem; }
.stat-row span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }

.portrait-frame { position: relative; }
/* Instagram satır içi stil verdiği için !important gerekiyor */
.portrait-frame .instagram-media {
  position: relative;
  z-index: 2;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
}
.frame-accent {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  z-index: 1;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.expertise-card {
  background: var(--cream-2);
  padding: 2.2rem 1.8rem;
  border-radius: 16px;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.expertise-card:hover { transform: translateY(-8px); background: #fff; box-shadow: 0 20px 40px -20px rgba(43,42,36,0.2); }
.card-icon {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}
.expertise-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.6rem; }
.expertise-card p { color: var(--ink-soft); font-size: 0.95rem; }
.expertise-card.featured,
.expertise-card.featured:hover { background: var(--sage-dark); color: var(--cream); }
.expertise-card.featured .card-icon { color: var(--gold); }
.expertise-card.featured .card-icon span {
  margin-left: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.expertise-card.featured p { color: rgba(250, 246, 240, 0.9); }

/* ---------- Academic / thesis card ---------- */
.thesis-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 2.6rem;
  position: relative;
}
.thesis-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.thesis-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 1.2rem 0 1rem;
  color: var(--cream);
}
.thesis-meta { color: rgba(250,246,240,0.7); font-size: 0.9rem; }

/* ---------- Services ---------- */
.services-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row h3 { font-family: var(--font-display); font-size: 1.3rem; }
.service-row p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.8rem;
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: 0.8rem 1.5rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 34px -20px rgba(43, 42, 36, 0.45);
  transition: transform 0.4s var(--ease);
}
.reviews-summary:hover { transform: translateY(-3px); }
.google-g { flex: none; width: 24px; height: 24px; }
.reviews-summary strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.reviews-count { font-size: 0.9rem; color: var(--ink-soft); }
.stars { color: #e5a823; letter-spacing: 0.08em; }
.testimonial-track {
  column-count: 2;
  column-gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--cream-2);
  padding: 1.9rem;
  border-radius: 16px;
}
.testimonial p { margin: 0.7rem 0 1.2rem; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.testimonial cite { font-family: var(--font-display); font-size: 1.05rem; font-style: normal; }
.testimonial cite small { margin-left: 0.4rem; font-family: var(--font-body); font-size: 0.75rem; color: var(--ink-soft); }
.reviews-more { margin-top: 0.5rem; text-align: center; }

/* ---------- Contact ---------- */
.scene-final { background: var(--sage-dark); color: var(--cream); }
.scene-final .bg-layer.layer-final {
  background: radial-gradient(circle at 20% 20%, rgba(207,169,110,0.25), transparent 60%);
}
.scene-final .eyebrow { color: var(--gold); }
.scene-final .section-title { color: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.2rem;
  margin: 3rem 0;
}
.contact-item {
  background: rgba(250,246,240,0.08);
  border: 1px solid rgba(250,246,240,0.15);
  border-radius: 14px;
  padding: 1.6rem;
  transition: background 0.3s, transform 0.3s;
}
.contact-item:hover { background: rgba(250,246,240,0.16); transform: translateY(-4px); }
.contact-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250,246,240,0.55); margin-bottom: 0.4rem; }
.contact-value { font-family: var(--font-display); font-size: 1.05rem; overflow-wrap: anywhere; }

.contact-form {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row input, .contact-form textarea {
  flex: 1;
  min-width: 200px;
  background: rgba(250,246,240,0.08);
  border: 1px solid rgba(250,246,240,0.2);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--cream);
  font-family: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(250,246,240,0.5); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.8rem; color: rgba(250,246,240,0.7); }

.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,246,240,0.15);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250,246,240,0.7);
  width: 100%;
}

/* ---------- Chapter nav (film-reel style section indicator) ---------- */
.chapter-nav {
  position: fixed;
  right: clamp(1.2rem, 2.5vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.chapter-nav a {
  position: relative;
  display: block;
  padding: 3px;
}
.chapter-nav .dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #8f8d80;
  box-shadow: 0 0 0 1px rgba(250, 246, 240, 0.6);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.chapter-nav em {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.96);
  color: var(--ink);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
  pointer-events: none;
}
.chapter-nav a:hover em { opacity: 1; transform: translate(0, -50%); }
.chapter-nav a.active .dot {
  background: var(--terracotta);
  transform: scale(1.5);
}

/* ---------- Therapies section ---------- */
.scene-therapies {
  background: var(--cream-2);
}
.scene-therapies .bg-layer.layer-therapies {
  background: radial-gradient(circle at 85% 15%, rgba(193,122,84,0.14), transparent 55%);
}
.therapies-intro {
  max-width: 42rem;
  margin: 0 auto 1rem;
}
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
/* Üst dolgu yüzde olarak verildi: cihazın görünen alanı kart genişliğiyle orantılı kalır */
.therapy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 74%;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  box-shadow: 0 30px 60px -35px rgba(43,42,36,0.45);
}
.therapy-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.therapy-body {
  position: relative;
  flex: 1;
  padding: 4.5rem 2.4rem 2.4rem;
  background: linear-gradient(to bottom, rgba(43,42,36,0), rgba(43,42,36,0.84) 4.5rem, rgba(43,42,36,0.94) 100%);
}
.therapy-icon {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.therapy-icon svg { width: 100%; height: 100%; }
.therapy-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.therapy-body > p {
  color: rgba(250,246,240,0.92);
  font-size: 0.98rem;
  margin-bottom: 1.3rem;
}
.therapy-points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.therapy-points li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: rgba(250,246,240,0.92);
}
.therapy-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.therapy-cta {
  margin-top: 3.5rem;
  text-align: center;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.therapy-cta p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* ---------- Reveal animation base states (GSAP controls the rest) ---------- */
.reveal-up, .reveal-line { opacity: 0; }

/* ---------- Scrolled nav colours (desktop only: the mobile menu panel stays dark) ---------- */
@media (min-width: 901px) {
  #mainNav.scrolled #navLinks a { color: var(--ink); }
  #mainNav.scrolled #navLinks a.active { color: var(--sage-dark); }
  #mainNav.scrolled .nav-cta { border-color: var(--sage-dark); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-media { order: 0; }
  .service-row { grid-template-columns: 1fr; gap: 0.4rem; }

  #navLinks {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  #navLinks.open { transform: translateX(0); }
  #navToggle { display: flex; }

  .chapter-nav { display: none; }

  .layer-photo {
    width: 100%;
    opacity: 0.38;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .testimonial-track { column-count: 1; }
  .reviews-summary { padding: 0.7rem 1.1rem; gap: 0.4rem 0.55rem; }
  .reviews-count { font-size: 0.82rem; white-space: nowrap; }
}

@media (max-height: 700px) {
  .scroll-cue { display: none; }
}
