/* ---------------------------------------------------------
   Gelişim Evde — premium calm editorial redesign
   Preserved structure, content and interactions.
--------------------------------------------------------- */

:root {
  --paper: #faf9f6;
  --paper-2: #f3f2ef;
  --surface: #ffffff;
  --border: #e8e6e2;
  --border-strong: #ddd8ce;

  --ink: #1f2937;
  /* Text greys are tuned for >=4.5:1 on the paper background; the old
     #6b7280 / #9ca3af pair failed contrast on every eyebrow and caption. */
  --muted: #5b6470;
  --faint: #6b7280;

  --forest: #8f9f91;
  --forest-2: #788a79;
  /* Readable variants of the brand sage. --forest stays for fills, borders
     and icons; --forest-ink carries accent text on paper; --forest-strong is
     the deepest tone that white text can sit on at 4.5:1 (the old #8f9f91
     button only reached 2.8:1). */
  --forest-ink: #5c6e5e;
  --forest-strong: #66786a;
  --accent: #dde2d7;
  --accent-soft: #e3e9dc;
  --accent-deep: #46564a;
  --secondary: #c9d1c2;
  --success: #7a9e7e;

  --stamp: #8f9f91;
  --stamp-2: #788a79;
  --gold: #b5b99b;

  --cream: #fdfbf5;
  --cream-2: #f8f4ea;
  --cream-border: #eae3d4;

  --font-display: "Bricolage Grotesque", "Instrument Sans", -apple-system, sans-serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;

  --container: 1180px;
  --radius: 22px;
  --radius-sm: 16px;
  --radius-btn: 999px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #f7f3eb 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 300;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------- Layout helpers ---------------- */

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}
.section-heading--tight { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 10px; }

/* Eyebrows read as a margin note, not a corporate label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* A short rule before the label, the way a printed sidenote is marked. */
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.12;
  font-weight: 800;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
  margin: 16px 0 0;
}

.em {
  font-style: italic;
  color: var(--forest-ink);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.04);
}
.btn:active { transform: scale(0.97) translateY(1px); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.btn:has(.btn-icon:first-child) { padding: 8px 20px 8px 8px; }
.btn:has(.btn-icon:last-child) { padding: 8px 8px 8px 20px; }

.btn-primary {
  background: var(--forest-strong);
  color: #fff;
  border-color: var(--forest-strong);
}
.btn-primary .btn-icon { background: rgba(255, 255, 255, 0.24); }
.btn-primary:hover {
  background: var(--forest-ink);
  border-color: var(--forest-ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(120, 138, 121, 0.44);
}

.btn-plain {
  padding: 14px 24px;
  background: var(--forest-strong);
  color: #fff;
  border-color: var(--forest-strong);
}
.btn-plain:hover { background: var(--forest-ink); border-color: var(--forest-ink); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  padding: 14px 24px;
}
.btn-ghost:hover {
  border-color: var(--forest);
  color: var(--forest-ink);
  box-shadow: 0 10px 26px -16px rgba(31, 41, 55, 0.22);
}

.btn-ghost-invert {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  padding: 14px 24px;
  box-shadow: none;
}
.btn-ghost-invert:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------------- Nav: flat editorial bar, not a floating glass pill ---------------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 24px;
  background: rgba(250, 249, 246, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 230, 226, 0.8);
  box-shadow: 0 10px 34px rgba(31, 41, 55, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-right: auto;
  color: var(--ink);
}
.nav-logo-icon {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; gap: 2px; }
.nav-brand-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-ink);
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}
/* Matches the wordmark drawn inside logo.jpeg: same thin geometric font,
   tracking and brown, so the live text reads as one piece with the icon. */
.nav-wordmark-logo {
  font-family: 'Jost', 'Century Gothic', var(--font-display), sans-serif;
  font-weight: 300;
  color: #A68571;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-cta .btn-icon { width: 24px; height: 24px; }

/* Small round social icon buttons, shared by the desktop header, the mobile
   menu and (with the existing text-link row) the footer. */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { color: var(--forest-ink); border-color: var(--forest); background: rgba(120, 138, 121, 0.08); }

.nav-mobile-socials { display: flex; gap: 10px; padding: 14px 2px 4px; }
/* Both .nav-mobile a (padding/border-bottom) and .nav-mobile a:last-child
   (the "Randevu Al" pill — the Instagram link ends up last-child of this
   row, its own parent, so it matches that selector too) outrank the bare
   .social-icon rule by specificity. Reassert the round-button box at equal
   specificity to :last-child so it isn't padded/filled like the CTA. */
.nav-mobile .nav-mobile-socials .social-icon {
  margin-top: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-weight: 400;
}
.nav-mobile .nav-mobile-socials .social-icon:hover { color: var(--forest-ink); border-color: var(--forest); background: rgba(120, 138, 121, 0.08); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a { transition: color 0.15s ease; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--forest-ink); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px 24px;
  background: var(--paper);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 34px -18px rgba(31, 41, 55, 0.22);
}
.nav-mobile a {
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
}
.nav-mobile a:last-child {
  margin-top: 10px;
  padding: 14px 20px;
  border-bottom: none;
  border-radius: var(--radius-btn);
  background: var(--forest-strong);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.nav-mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------- Hero: cinematic looping video ---------------- */

.hero-cinematic {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Each page sets --hero-bg to its own poster/photo dominant tone, so the
     first paint is a matching colour under the scrim rather than white. */
  background-color: var(--hero-bg, #7d7166);
}

/* Blur-up placeholder. Each page inlines a ~32px preview of its own hero
   frame as --hero-lqip, so it paints with the HTML itself: on a slow
   connection the visitor sees a soft version of the real scene instead of a
   flat colour block, and the poster/photo above simply covers it once decoded.
   Sits below the media wraps (z-index -3) and above the background colour. */
.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -4;
  background-image: var(--hero-lqip, none);
  background-size: cover;
  background-position: 50% 38%;
  filter: blur(28px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}
/* main.js adds this once the hero video reports real frame data
   (loadeddata/playing), so the blur-up placeholder clears on actual
   readiness instead of a fixed timer. */
.hero-cinematic.is-media-ready::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic::before { transition: none; }
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap video { animation: none; }
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap img { animation: none; }
}

.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(10, 10, 8, 0.38);
}
.hero-cinematic-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 8, 6, 0.76) 0%, rgba(6, 8, 6, 0.14) 42%, rgba(6, 8, 6, 0.3) 100%);
}

.hero-cinematic-content {
  position: relative;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 24px 96px;
  color: #fff;
}

.hero-copy { max-width: 960px; margin: 0 auto; text-align: center; }
.eyebrow--onvideo { color: #fff; opacity: 0.85; }
.eyebrow--onvideo::before { background: rgba(255, 255, 255, 0.75); }

.hero-cinematic-content h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero-cinematic-content h1 .em { color: #f7e3da; }

.hero-sub--onvideo {
  margin: 26px auto 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: min(46ch, 100%);
  line-height: 1.6;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-cinematic .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(120, 138, 121, 0.45); }

.hero-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-reveal.d1 { animation-delay: 0.05s; }
.hero-reveal.d2 { animation-delay: 0.22s; }
.hero-reveal.d3 { animation-delay: 0.4s; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { animation: none; opacity: 1; transform: none; }
}

.nav-wrap {
  animation: navFadeIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-wrap { animation: none; }
}

@media (max-width: 900px) {
  .hero-cinematic-content { padding: 108px 20px 72px; }
  .hero-copy { max-width: none; }
}
@media (max-width: 700px) {
  .hero-cinematic-content { padding: 108px 20px 72px; }
  .hero-video-wrap video { object-position: 50% 30%; }
  .hero-image-wrap img { object-position: 50% 30%; }
  /* Keep the placeholder framed like the media it stands in for. */
  .hero-cinematic::before { background-position: 50% 30%; }
}

/* ---------------- Page hero (interior pages) ---------------- */

.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.55);
}
.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.08;
  max-width: 18ch;
}
.page-hero .section-sub { font-size: 17px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--forest-ink); }
.breadcrumb-sep { color: var(--faint); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.page-hero--split .section-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.page-hero--split .page-hero-media {
  background: var(--surface);
  padding: 10px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 36px -24px rgba(31, 41, 55, 0.24);
}
.page-hero--split .page-hero-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
@media (max-width: 860px) {
  .page-hero--split .section-inner { grid-template-columns: 1fr; }
  .page-hero--split .page-hero-media { order: -1; }
  .page-hero--split .page-hero-media img { height: 200px; }
}

/* ---------------- Reasons: a small index, not an icon grid ---------------- */

.reasons { padding: 84px 0; border-bottom: 1px solid var(--border); }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.reason {
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  box-shadow: 0 18px 40px -28px rgba(31, 41, 55, 0.34);
}
.reason-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(120, 138, 121, 0.14);
  color: var(--forest);
}
.reason h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.01em; }
.reason p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

@media (max-width: 780px) {
  .reasons-grid { grid-template-columns: 1fr; gap: 16px; }
  .reason { padding: 24px; }
}

/* ---------------- Programs (home): numbered index + framed detail panel ---------------- */

.programs { padding: 84px 0; border-bottom: 1px solid var(--border); }
.programs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.programs-head h2 { max-width: 26ch; }
.programs-head .btn { flex-shrink: 0; }

.programs-tabs { margin-top: 48px; }

/* -- index: mobile-first as a stacked list of accordion-style triggers -- */
.programs-index { display: flex; flex-direction: column; }
.program-index-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 6px;
  background: none;
  border: none;
  border-top: 1px solid var(--border-strong);
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}
.programs-index .program-index-btn:last-child { border-bottom: 1px solid var(--border-strong); }
.program-index-btn:not(.is-active):hover { background: rgba(28, 43, 32, 0.035); }
.program-index-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--faint);
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.program-index-btn.is-active .program-index-num { color: var(--forest-ink); }
.program-index-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.program-index-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  transition: color 0.2s ease;
}
.program-index-btn.is-active .program-index-title { color: var(--forest-ink); }
.program-index-meta { font-size: 12.5px; color: var(--faint); }
.program-index-chev { color: var(--faint); flex-shrink: 0; transition: transform 0.25s ease; }
.program-index-btn.is-active .program-index-chev { transform: rotate(180deg); }

/* -- panels: single active panel, soft fade + rise on switch -- */
.programs-panels { margin-top: 8px; }
.program-panel { display: none; }
.program-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: programPanelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes programPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.program-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 38px -20px rgba(28, 43, 32, 0.38);
  /* Each panel sets --media-bg to its photo's dominant tone, so the frame
     shows a matching colour for the split second before the image paints
     instead of a white flash. */
  background-color: var(--media-bg, #9b8b7b);
}
.program-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.program-content h3 { font-size: 25px; margin-bottom: 14px; letter-spacing: -0.01em; }
.program-desc { color: var(--muted); font-size: 15.5px; line-height: 1.68; max-width: 56ch; margin: 0 0 22px; }
.program-stats { display: flex; gap: 32px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); margin-bottom: 22px; }
.program-stat { display: flex; flex-direction: column; gap: 5px; }
.program-stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; }
.program-stat strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.program-suitable { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; max-width: 58ch; }
.program-suitable strong { color: var(--ink); }
.program-outcomes { margin: 0 0 28px; }

@media (prefers-reduced-motion: reduce) {
  .program-panel.is-active { animation: none; }
}

/* -- mobile: real accordion. main.js moves each panel directly under its own
      trigger and swaps the tab roles for accordion roles, so opening a program
      expands it in place instead of scrolling the page to a shared panel. -- */
@media (max-width: 768px) {
  .programs-tabs.is-accordion .programs-panels { display: none; }
  .programs-tabs.is-accordion .programs-index { border-bottom: 1px solid var(--border-strong); }
  .programs-tabs.is-accordion .program-index-btn { padding: 20px 4px; }
  .programs-tabs.is-accordion .program-panel.is-active {
    padding: 2px 4px 28px;
    gap: 20px;
    animation: programAccordionIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* Open item's trigger row (number + title + chevron) reads as a slightly
     darker strip, so it's obvious at a glance which program is expanded —
     the media/content panel underneath stays plain. */
  .programs-tabs.is-accordion .program-index-btn.is-active {
    background: rgba(70, 86, 74, 0.16);
  }
}
@keyframes programAccordionIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .programs-tabs.is-accordion .program-panel.is-active { animation: none; }
}

/* -- tablet: index becomes a compact 2-up grid above the panel -- */
@media (min-width: 769px) and (max-width: 979px) {
  .programs-index { display: grid; grid-template-columns: 1fr 1fr; }
  .program-index-btn { border-top: 1px solid var(--border-strong); }
  .programs-index .program-index-btn:nth-child(odd) { border-right: 1px solid var(--border-strong); }
  .programs-index .program-index-btn:last-child,
  .programs-index .program-index-btn:nth-last-child(2) { border-bottom: 1px solid var(--border-strong); }
  .program-panel.is-active { flex-direction: row; align-items: stretch; gap: 44px; }
  .program-media { flex: 0 0 42%; aspect-ratio: 3 / 4; }
  .program-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* -- desktop: true split, index left / framed detail right -- */
@media (min-width: 980px) {
  .programs-tabs { display: grid; grid-template-columns: 340px 1fr; column-gap: 64px; align-items: start; }
  .program-index-chev { display: none; }
  .program-index-btn { padding: 24px 14px; border-radius: var(--radius-sm); }
  .program-index-btn.is-active {
    background: linear-gradient(90deg, rgba(120, 138, 121, 0.1) 0%, rgba(120, 138, 121, 0.04) 100%);
    border-left: 3px solid var(--forest);
    padding-left: 14px;
    margin-left: -3px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.06);
  }
  .program-panel.is-active { flex-direction: row; gap: 52px; }
  .program-media { flex: 0 0 44%; aspect-ratio: 3 / 4; }
  .program-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4px 0; }
}

.programs-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.programs-cta p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 48ch; }
.programs-cta .btn { flex-shrink: 0; }
@media (max-width: 780px) {
  .programs-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Steps: dated journal entries ---------------- */

.steps { padding: 84px 0; border-bottom: 1px solid var(--border); background: var(--cream); }
.steps h2 { max-width: 22ch; }
.steps-row {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step {
  position: relative;
  padding: 0 26px 0 0;
  padding-left: 26px;
}
.step:first-child { padding-left: 0; }

/* Timeline connector. Each step draws the segment that reaches the next
   marker; together they read as one continuous bar of a single colour and
   thickness the full length of the row, rather than a per-step track. */
.step::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 70px;          /* padding-left (26) + marker width (44) */
  right: -26px;        /* into the next column, up to its marker */
  height: 2px;
  background: var(--forest-strong);
}
.step:first-child::before { left: 44px; }
.step:last-child::before { display: none; }

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  /* Opaque so the connector passes behind, not through, the marker. */
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--forest-ink);
  letter-spacing: -0.01em;
  margin-bottom: 13px;
  line-height: 1;
  transition: background-color 0.35s ease-out, border-color 0.35s ease-out, color 0.35s ease-out;
}
.step.is-reached .step-num {
  background: var(--forest-strong);
  border-color: var(--forest-strong);
  color: #fff;
}
/* Staggered so a row that enters the viewport at once still reads as progress. */
.step:nth-child(2) .step-num { transition-delay: 0.12s; }
.step:nth-child(3) .step-num { transition-delay: 0.24s; }
.step:nth-child(4) .step-num { transition-delay: 0.36s; }
.step:nth-child(5) .step-num { transition-delay: 0.48s; }

.step h3 { font-size: 16.5px; margin-bottom: 9px; font-weight: 700; letter-spacing: -0.005em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

@media (max-width: 980px) and (min-width: 561px) {
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .step:nth-child(3), .step:nth-child(5) { padding-left: 0; }
  .step:nth-child(3)::before { left: 44px; }
  /* Only the first step of each pair reaches a neighbour. */
  .step:nth-child(even)::before,
  .step:nth-child(5)::before { display: none; }
}
@media (max-width: 560px) {
  .steps-row { grid-template-columns: 1fr; gap: 24px; }
  /* Vertical rail: the marker moves into a left gutter and the copy sits
     beside it, so the line runs between markers instead of through text. */
  .step, .step:first-child { padding: 0 0 0 60px; }
  .step-num { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .step h3 { margin-top: 11px; }
  .step::before {
    top: 44px;
    bottom: -24px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }
  /* .step:first-child::before carries left:44px from the desktop rule above
     (higher specificity than the generic .step::before here), which would
     otherwise pull step 01's rail off the marker's centre — pin it back to
     the shared 21px centre line explicitly. */
  .step:first-child::before { top: 44px; left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .step .step-num {
    background: var(--forest-strong);
    border-color: var(--forest-strong);
    color: #fff;
    transition: none;
    transition-delay: 0s;
  }
}

/* ---------------- Split image/text feature ---------------- */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  min-height: 480px;
}
.feature-split--reverse .feature-media { order: 2; }
.feature-split--reverse .feature-copy { order: 1; }
.feature-media { overflow: hidden; background: var(--paper-2); }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; min-height: 320px; filter: saturate(0.94); }
.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}
.feature-copy h2 { margin-bottom: 20px; max-width: none; }
.feature-copy p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 46ch; margin: 0 0 16px; }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.feature-list svg { flex-shrink: 0; margin-top: 3px; color: var(--forest); }

@media (max-width: 860px) {
  .feature-split, .feature-split--reverse { grid-template-columns: 1fr; }
  .feature-media img, .feature-media video { min-height: 260px; }
  .feature-copy { padding: 44px 24px; order: 2 !important; }
  .feature-split--reverse .feature-media { order: 1 !important; }
}

/* ---------------- Advantages grid ---------------- */

.advantages { padding: 72px 0 84px; border-bottom: 1px solid var(--border); }
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: var(--forest-2);
  flex-shrink: 0;
}
.advantage-card h3 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: -0.005em; }
.advantage-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .advantage-grid { grid-template-columns: 1fr; }
}

/* -- audience list: numbered, editorial, no icons -- */
.feature-split--audience {
  grid-template-columns: 0.82fr 1.18fr;
  background: linear-gradient(175deg, var(--paper-2) 0%, var(--paper) 100%);
}
.feature-split--audience .feature-copy { padding: 72px 64px 72px 56px; }
.feature-split--audience .feature-media img,
.feature-split--audience .feature-media video { filter: saturate(0.9); }

.audience-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}
.audience-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 24px 14px;
  margin: 0 -14px;
  border-top: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.audience-row:first-child { border-top: none; }
.audience-row:hover { background: rgba(120, 138, 121, 0.07); }
.audience-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--forest-ink);
  line-height: 1.7;
}
.audience-row p {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.68;
  max-width: 58ch;
}

@media (max-width: 860px) {
  .feature-split--audience { grid-template-columns: 1fr; }
  .feature-split--audience .feature-copy { padding: 44px 24px; }
}
@media (max-width: 480px) {
  .audience-row { grid-template-columns: 28px 1fr; gap: 12px; padding: 20px 8px; margin: 0 -8px; }
  .audience-num { font-size: 16px; }
}

/* ---------------- Team teaser (home) ---------------- */

.team-teaser { padding: 72px 0; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%); }
.team-teaser-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.team-teaser-avatars { display: flex; flex-shrink: 0; }
.team-teaser-avatars img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper-2);
  box-shadow: 0 2px 8px rgba(28, 43, 32, 0.18);
  filter: saturate(0.9);
}
.team-teaser-avatars img + img { margin-left: -20px; }
.team-teaser-inner h2 { font-size: 26px; }
.team-teaser-inner .section-sub { margin-top: 7px; }
.team-teaser-inner .btn { margin-left: auto; }

/* ---------------- Testimonials: quotes sit on their own cream card ---------------- */

.testimonials { padding: 84px 0; border-bottom: 1px solid var(--border); }
.testimonial-grid {
  /* Masonry via multi-column flow: a short quote no longer leaves a hole
     under itself waiting for the next grid row — the following card simply
     stacks against it. Card heights stay content-driven. */
  columns: 2;
  column-gap: 24px;
}
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Cards must never be sliced across the column break. */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 24px;
  padding: 30px 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--cream-border);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  box-shadow: 0 16px 36px -30px rgba(31, 41, 55, 0.3);
}
.testimonial-card:last-child { margin-bottom: 0; }
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 1;
  color: var(--accent);
  pointer-events: none;
}
.testimonial-quote {
  position: relative;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17.5px;
  line-height: 1.7;
  font-family: var(--font-display);
  /* Every card is clamped to the same line count so the grid rows stay
     even; the full text opens in place via the toggle below. */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonial-quote.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.testimonial-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--forest-ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.testimonial-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.testimonial-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.testimonial-toggle:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
.testimonial-toggle[hidden] { display: none; }
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--secondary);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testimonial-meta-text { display: flex; flex-direction: column; gap: 2px; }
.testimonial-meta strong { color: var(--ink); font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  .testimonial-toggle::after { transition: none; }
}

@media (max-width: 780px) {
  .team-teaser-inner { flex-direction: column; align-items: flex-start; }
  .team-teaser-inner .btn { margin-left: 0; }
  .testimonial-grid { columns: 1; }
}

/* ---------------- Instagram feed ---------------- */

.instagram-feed { padding: 84px 0; border-bottom: 1px solid var(--border); background: var(--paper); }
.instagram-feed .section-sub a { color: var(--forest-ink); font-weight: 600; }
.instagram-embed {
  margin-top: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  /* Whatever height the embedded widget renders at, it never spills past
     this card's rounded edges or widens the page. */
  overflow: hidden;
  background: var(--surface);
}
/* :not([hidden]) keeps this from outranking the iframe's [hidden] attribute
   (a plain element-selector display:block would otherwise beat the UA's
   [hidden]{display:none} on specificity and force it visible). */
.instagram-embed iframe:not([hidden]) {
  display: block;
  width: 100%;
  height: 460px;
  border: none;
}
.instagram-embed-fallback:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 24px;
  text-align: center;
  color: var(--faint);
}
.instagram-embed-fallback .icon-instagram { width: 30px; height: 30px; color: var(--forest); }
.instagram-embed-fallback p { margin: 0; font-size: 15px; }
@media (max-width: 640px) {
  .instagram-embed iframe { height: 640px; }
}

/* ---------------- Services index page ---------------- */

.svc-index { padding: 68px 0 40px; }
.svc-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}
.svc-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  box-shadow: 0 20px 42px -30px rgba(31, 41, 55, 0.35);
  margin-bottom: 18px;
}
.svc-row:last-child { margin-bottom: 0; }
.svc-row-icon {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--forest-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(120, 138, 121, 0.14);
}
.svc-row h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.svc-row p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.svc-row-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.svc-row-tags span {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest-ink);
  border: 1px solid var(--forest-ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.svc-row .feature-list { margin: 16px 0 0; }
.svc-row .feature-list li { color: var(--ink); }

@media (max-width: 780px) {
  .svc-row { grid-template-columns: 1fr; padding: 24px; }
}

.svc-faq {
  padding: 68px 0 96px;
  border-top: 1px solid var(--border);
}
.svc-faq h2 { max-width: none; }
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 18px 35px -28px rgba(31, 41, 55, 0.28);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; flex-shrink: 0; color: var(--faint); }
.faq-item[open] { border-color: var(--forest); }
.faq-item[open] summary { color: var(--forest-ink); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------------- İletişim (contact) page ---------------- */

.contact-options-section { padding: 24px 0 68px; }
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
.contact-hero-copy h1 { font-size: clamp(30px, 4.2vw, 44px); max-width: 12ch; }
.contact-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.contact-hero-panel {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  box-shadow: 0 20px 42px -30px rgba(31, 41, 55, 0.38);
}
.contact-hero-panel p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.contact-highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-highlights li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.contact-highlights li:first-child { padding-top: 0; border-top: none; }
.contact-highlights li::before {
  content: "•";
  color: var(--forest);
  font-size: 18px;
  line-height: 1;
}
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
a.contact-option:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: 0 16px 30px -20px rgba(31, 41, 55, 0.24);
}
.contact-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--stamp);
  flex-shrink: 0;
}
.contact-option-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; }
.contact-option-value { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--ink); word-break: break-word; }

@media (max-width: 980px) {
  .contact-options { grid-template-columns: repeat(2, 1fr); }
  .contact-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .contact-options { grid-template-columns: 1fr; }
  .contact-hero-actions { flex-direction: column; align-items: flex-start; }
}

/* -- contact CTA -- */
.contact-form-section { padding: 0 0 88px; }
.contact-form-head { margin-bottom: 36px; }
.contact-form-head h2 { max-width: 22ch; }
.contact-form-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.form-note { margin: 18px 0 0; font-size: 13px; color: var(--faint); max-width: 40ch; }

/* -- map placeholder -- */
.map-section { padding: 0 0 88px; }
.map-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.map-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--stamp);
  margin-bottom: 10px;
}
.map-placeholder h3 { font-size: 19px; font-weight: 700; }
.map-placeholder p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------- Uzmanlar (specialists) page ---------------- */

.uzman-section { padding: 20px 0 40px; }

.uzman-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}
.uzman-col { display: flex; flex-direction: column; gap: 18px; }
.uzman-card {
  display: block;
  position: relative;
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px -24px rgba(31, 41, 55, 0.36);
}
.uzman-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.4s ease;
}
/* Hover zoom lives with the other pointer-only micro-interactions below. */
.uzman-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 43, 32, 0.9) 0%, rgba(28, 43, 32, 0.42) 48%, rgba(28, 43, 32, 0.05) 78%);
}
.uzman-bio {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 22px 24px;
}
.uzman-bio h3 { font-family: var(--font-sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; font-weight: 700; }
.uzman-bio p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest-ink);
}
.read-more:hover { color: var(--stamp-2); }

.read-more--standalone {
  display: flex;
  margin-top: 0;
  padding: 14px 2px 0;
  border-top: 1px solid var(--border-strong);
  justify-content: space-between;
  font-size: 14.5px;
}
.read-more svg { flex-shrink: 0; }
.uzman-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 26px 28px;
  color: #fff;
}
.uzman-quote-mark { color: rgba(255, 255, 255, 0.55); margin-bottom: 10px; }
.uzman-quote {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}
.uzman-card-figcaption { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.uzman-card-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.uzman-card-role { color: rgba(255, 255, 255, 0.72); font-size: 13.5px; }

@media (max-width: 780px) {
  .uzman-grid { grid-template-columns: 1fr; }
  .uzman-card { height: 380px; }
}

.uzman-col:nth-child(2) [data-reveal] { transition-delay: 0.12s; }

.mini-cta { background: linear-gradient(135deg, var(--forest-ink) 0%, var(--forest-strong) 100%); color: #fff; padding: 60px 0; text-align: center; }
.mini-cta h2 { color: #fff; max-width: none; }
.mini-cta p { color: rgba(255, 255, 255, 0.8); margin: 12px auto 26px; max-width: 52ch; font-size: 16px; line-height: 1.6; }

/* ---------------- Uzman detail page ---------------- */

.detail-back { padding: 20px 0 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--forest-ink); }

.uzman-detail-hero { padding: 24px 0 40px; }
.uzman-detail-hero-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}
/* Portrait sits on an offset sage block so it has depth without a hard
   drop-shadow; both specialist pages share the same 4:5 crop. */
.uzman-detail-photo {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--accent-soft);
  box-shadow: 0 18px 40px -28px rgba(31, 41, 55, 0.32);
}
.uzman-detail-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }

.uzman-detail-photo-frame {
  position: relative;
  isolation: isolate;
}
.uzman-detail-photo-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px -18px -18px 20px;
  border-radius: 18px;
  background: var(--accent-soft);
}
.uzman-detail-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.uzman-detail-intro { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 56ch; margin: 0 0 28px; }
.uzman-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.btn-instagram {
  background: transparent;
  color: var(--ink);
  border-color: rgba(143, 159, 145, 0.5);
  padding: 8px 22px;
  min-height: 44px;
}
.btn-instagram:hover {
  background: rgba(143, 159, 145, 0.14);
  border-color: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -18px rgba(31, 41, 55, 0.2);
}
.uzman-instagram-handle {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 24px;
}

@media (max-width: 780px) {
  .uzman-detail-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  /* Full width on phones, but never so wide the 4:5 crop eats the screen */
  .uzman-detail-photo-frame { max-width: 340px; }
  .uzman-detail-photo-frame::before { inset: 16px -12px -12px 16px; }
  .uzman-cta-group { width: 100%; }
  .uzman-cta-group .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .uzman-detail-photo-frame { max-width: none; margin-right: 12px; }
}

.uzman-detail-body { padding: 20px 0 80px; }
.detail-prose { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; }
.detail-prose p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.7; }

.detail-section-title {
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 56px 0 28px;
  max-width: none;
}

.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.detail-two-col .detail-section-title { margin-top: 0; }
@media (max-width: 780px) {
  .detail-two-col { grid-template-columns: 1fr; gap: 8px; }
}

.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-list span {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-ink);
  border: 1px solid var(--forest-ink);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(120, 138, 121, 0.08);
}

.detail-gallery {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.detail-photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
@media (max-width: 780px) {
  .detail-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .detail-gallery { grid-template-columns: 1fr; }
}

/* ---------------- Contact / CTA (home) ---------------- */

.contact { padding: 96px 0; background: linear-gradient(135deg, var(--forest-ink) 0%, var(--forest-strong) 100%); color: #fff; }
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}
.contact h2 { color: #fff; max-width: 16ch; }
.contact-copy p { color: rgba(255, 255, 255, 0.8); font-size: 16px; line-height: 1.65; max-width: 46ch; margin: 18px 0 0; }
.contact-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 28px;
}
.contact-field { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.contact-field:last-child { border-bottom: none; }
.contact-field-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
}
.contact-field-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.contact-field-value { font-size: 15.5px; font-weight: 600; }
.contact-field-value.placeholder { font-weight: 500; color: rgba(255,255,255,0.75); font-style: italic; }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */

/* The generous bottom padding keeps the floating WhatsApp button from
   sitting on top of the last footer line when the page is scrolled home. */
.footer { padding: 72px 0 96px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.65fr 0.65fr 0.85fr;
  gap: 32px;
}
.footer-brand-block { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.footer-about { margin: 0; color: var(--faint); font-size: 14px; line-height: 1.62; max-width: 40ch; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-socials a {
  color: var(--forest-ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-col h3 { font-family: var(--font-sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 11px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--forest-ink); }
.icon-instagram {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.footer-social-link { display: flex; align-items: center; gap: 8px; }
.footer-social-link svg { flex-shrink: 0; color: var(--faint); transition: color 0.15s ease; }
.footer-social-link:hover svg { color: var(--forest); }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------------- Observations list (realistic, no promises) ---------------- */

.observation-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.observation-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.observation-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--forest);
}
.observation-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .observation-grid { grid-template-columns: 1fr; }
}

.observations-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
  color: var(--faint);
  font-size: 14px;
  font-style: italic;
  max-width: 60ch;
}

/* ---------------- Scroll reveal ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Floating WhatsApp button ----------------
   Pure CSS/HTML — no script, no extra requests. Sits below the sticky nav
   in the stacking order so an open mobile menu is never covered. */

.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest-strong);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 30px -12px rgba(31, 41, 55, 0.45);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-fab svg { width: 27px; height: 27px; }
.wa-fab:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(31, 41, 55, 0.5);
}
.wa-fab:focus-visible {
  outline: 3px solid var(--forest-ink);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  /* Still a comfortable thumb target (>=48px) without crowding the content. */
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-fab svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: background 0.18s ease; }
  .wa-fab:hover { transform: none; }
}

/* ---------------- Section rhythm (home) ----------------
   Alternating grounds so the page reads in blocks: hero (dark) → reasons
   (cream) → programs (white) → steps (cream) → testimonials (white) →
   team teaser (cream) → contact (dark). Flat colour changes only. */

.page-home .reasons { background: var(--cream); }
.programs { background: var(--surface); }
.testimonials { background: var(--surface); }
.team-teaser { background: var(--cream); }

/* ---------------- Micro-interactions ----------------
   Hover affordances only where a pointer can actually hover, and only on
   transform/opacity/colour so nothing triggers layout. */

@media (hover: hover) and (pointer: fine) {
  .reason,
  .testimonial-card,
  .advantage-card,
  .observation-card,
  .svc-row,
  .uzman-card,
  .contact-hero-panel,
  .contact-card {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s ease-out,
                box-shadow 0.28s ease-out,
                border-color 0.28s ease-out;
  }
  .reason:hover,
  .testimonial-card:hover,
  .advantage-card:hover,
  .observation-card:hover,
  .svc-row:hover,
  .uzman-card:hover,
  .contact-hero-panel:hover {
    transform: translateY(-5px);
    border-color: var(--forest);
    box-shadow: 0 26px 50px -26px rgba(31, 41, 55, 0.42);
  }
  .testimonial-card:hover { border-color: var(--secondary); }
  /* On the dark contact ground the border lifts instead of deepening. */
  .contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.45);
  }

  /* Card media: the frame already clips, so only the picture moves. */
  .program-media img,
  .uzman-card img {
    transition: transform 0.4s ease-out;
  }
  .program-media:hover img,
  .uzman-card:hover img { transform: scale(1.045); }

  /* Button arrows lean toward where they lead. */
  .btn .btn-icon { transition: transform 0.24s ease-out; }
  .btn:hover .btn-icon { transform: translateX(3px); }

  /* Nav links grow a rule from left to right. */
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 1.5px;
    background: var(--forest-ink);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease-out;
  }
  .nav-links a:hover::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reason, .testimonial-card, .advantage-card, .observation-card,
  .svc-row, .uzman-card, .contact-hero-panel, .contact-card,
  .program-media img, .uzman-card img, .btn .btn-icon, .nav-links a::after {
    transition: none;
  }
  .reason:hover, .testimonial-card:hover, .advantage-card:hover,
  .observation-card:hover, .svc-row:hover, .uzman-card:hover,
  .contact-hero-panel:hover, .contact-card:hover { transform: none; }
  .program-media:hover img, .uzman-card:hover img { transform: none; }
  .btn:hover .btn-icon { transform: none; }
}

/* ---------------- Selection ---------------- */

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
