/* ==========================================================================
   Uplife — uplife.com.tr
   One stylesheet, no framework. Palette is taken from the site's own assets:
   the old theme's navy (#051557) and the warm sand in the header photograph.
   ========================================================================== */

:root {
  --navy-900: #071431;
  --navy-800: #0b1b3f;
  --navy-700: #12295c;
  --navy-500: #24407f;

  --gold-500: #c69152;
  --gold-400: #d7a869;
  --gold-100: #f3e6d3;

  --ink:      #16202e;
  --ink-soft: #4a5768;
  --line:     #e4e7ec;
  --paper:    #ffffff;
  --paper-2:  #f6f4f1;

  --wrap: 1180px;
  --pad:  clamp(20px, 5vw, 40px);

  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(7, 20, 49, .06), 0 4px 14px rgba(7, 20, 49, .06);
  --shadow-md: 0 10px 30px rgba(7, 20, 49, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 18px;
  font-size: 15px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
  letter-spacing: .01em;
}
.topbar__in {
  display: flex; align-items: center; gap: 18px;
  min-height: 42px; flex-wrap: wrap;
}
.topbar__hours { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(215, 168, 105, .7);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(215, 168, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 168, 105, 0); }
}
.topbar__sep { flex: 1 1 auto; }
.topbar__link { text-decoration: none; transition: color .2s var(--ease); }
.topbar__link:hover { color: var(--gold-400); }

/* ------------------------------------------------------------------ header */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hdr.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }

.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.hdr__logo { flex: none; }
.hdr__logo img { width: 148px; height: auto; }

/* French labels ("PAGE D'ACCUEIL", "HÔPITAUX SOUS CONTRAT") are far longer than
   the Turkish ones, so the desktop nav has to breathe with the viewport rather
   than sit on fixed gaps — otherwise /fr/ overflows the page horizontally. */
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); min-width: 0; }
.nav__list { display: flex; gap: clamp(13px, 1.6vw, 26px); list-style: none; margin: 0; padding: 0; min-width: 0; }

.nav__link {
  position: relative;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-decoration: none; color: var(--navy-800); white-space: nowrap;
  padding: 6px 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--navy-700); }

.langs { display: flex; align-items: center; gap: 3px; padding-left: clamp(11px, 1.4vw, 22px); border-left: 1px solid var(--line); flex: none; }
.langs__item {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  text-decoration: none; color: var(--ink-soft);
  padding: 5px clamp(7px, .8vw, 9px); border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.langs__item:hover { background: var(--paper-2); color: var(--navy-800); }
.langs__item.is-on { background: var(--navy-800); color: #fff; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 11px;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; height: 2px; background: var(--navy-800); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%; z-index: -2;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 20, 49, .88) 0%, rgba(7, 20, 49, .55) 46%, rgba(7, 20, 49, .18) 100%),
    linear-gradient(to top, rgba(7, 20, 49, .5), transparent 45%);
}
.hero__in {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(56px, 9vw, 96px);
  color: #fff;
}
.hero__title {
  font: 400 clamp(38px, 6.4vw, 76px)/1.05 var(--serif);
  margin: 6px 0 0;
  letter-spacing: -.015em;
  text-wrap: balance;
  max-width: 14ch;
}
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vw, 36px); }

.hero__down {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--gold-500); color: #fff; }
.btn--gold:hover { background: var(--gold-400); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--full  { width: 100%; font-family: var(--sans); }

/* ---------------------------------------------------------------- sections */

.sec { padding-block: clamp(64px, 9vw, 116px); }
.sec--alt { background: var(--paper-2); }

.sec__head { margin-bottom: clamp(32px, 5vw, 52px); }

.eyebrow {
  margin: 0;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow--light { color: var(--gold-400); }

.sec__title {
  font: 400 clamp(30px, 4.4vw, 46px)/1.15 var(--serif);
  margin: 10px 0 0; letter-spacing: -.01em; color: var(--navy-800);
  text-wrap: balance;
}
.sec__title--light { color: #fff; }

/* ------------------------------------------------------------------- prose */

/* The about section carries no heading of its own: the hero already states
   "— Uplife / Hakkımızda" as the page's h1, and repeating it directly below
   read as a duplicate. */
.sec--about { padding-top: clamp(52px, 7vw, 88px); }

.prose { max-width: 74ch; }
.prose p { margin: 0 0 22px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose__lead {
  font-size: clamp(19px, 2.1vw, 22px); line-height: 1.6;
  color: var(--ink); font-weight: 500;
  padding-left: 20px; border-left: 3px solid var(--gold-500);
}

/* ------------------------------------------------------------------- cards */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--5 { grid-template-columns: repeat(3, 1fr); }

.card__in {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.card__in:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-100); }

/* The card art is supplied as logos on their own background, already at the
   box's 383:266 ratio. `contain` guarantees a logo is never clipped even if
   the box rounds to a different ratio. */
.card__media { display: block; aspect-ratio: 383 / 266; overflow: hidden; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
a.card__in:hover .card__media img { transform: scale(1.05); }

.card__body { display: block; padding: 20px 22px 24px; }
.card__name {
  display: block; font: 600 18px/1.35 var(--serif); color: var(--navy-800);
  text-wrap: balance;
}
.card__spec {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-500);
}

/* ----------------------------------------------------------------- contact */

.sec--contact { background: var(--navy-800); color: rgba(255, 255, 255, .82); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }

.contact__h {
  font: 600 20px/1.3 var(--serif); color: #fff; margin: 0 0 22px;
}

.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.contact__list svg { flex: none; margin-top: 4px; color: var(--gold-400); }
.contact__list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(215, 168, 105, .5); }
.contact__list a:hover { border-color: var(--gold-400); }

.contact__form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  padding: clamp(22px, 3vw, 34px);
}

.form { display: grid; gap: 14px; }
.form__field {
  width: 100%; padding: 14px 16px;
  font: 400 16px/1.5 var(--sans); color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 2px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form__field::placeholder { color: rgba(255, 255, 255, .5); }
.form__field:focus { outline: none; border-color: var(--gold-400); background: rgba(255, 255, 255, .1); }
.form__field--area { resize: vertical; min-height: 140px; }

.hp { position: absolute; left: -9999px; }

.note { margin: 0 0 16px; padding: 12px 16px; border-radius: 2px; font-size: 15px; }
.note--ok  { background: rgba(215, 168, 105, .16); border: 1px solid var(--gold-500); color: #fff; }
.note--bad { background: rgba(255, 120, 120, .14); border: 1px solid rgba(255, 140, 140, .6); color: #fff; }

/* ------------------------------------------------------------------ footer */

.foot { background: var(--navy-900); color: rgba(255, 255, 255, .62); padding-block: clamp(44px, 6vw, 66px); font-size: 15px; }
.foot__logo { width: 132px; height: auto; margin-bottom: 30px; }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.foot__addr { margin: 0; line-height: 1.6; }
.foot__link { text-decoration: none; transition: color .2s var(--ease); }
.foot__link:hover { color: #fff; }
.foot__link--plain { cursor: default; }
.foot__link.is-on { color: #fff; }
.foot__copy { margin: 26px 0 0; font-size: 14px; color: rgba(255, 255, 255, .45); }

/* -------------------------------------------------------------- whatsapp */

.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
  transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.08); }

/* ------------------------------------------------------------------- 404 */

.nf__in { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 80px; }
.nf__title { font: 400 clamp(32px, 5vw, 52px)/1.1 var(--serif); color: var(--navy-800); margin: 10px 0 12px; }
.nf__text { color: var(--ink-soft); margin: 0 0 28px; max-width: 46ch; }

/* --------------------------------------------------------------- reveals */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  /* The nav becomes a drawer here, not at 900px: that is the width at which the
     longest label set (French) stops fitting next to the logo. */
  .cards--3, .cards--5 { grid-template-columns: repeat(2, 1fr); }

  .burger { display: block; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 92px 28px 40px;
    background: var(--paper);
    box-shadow: -20px 0 50px rgba(7, 20, 49, .18);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__link { display: block; padding: 16px 0; font-size: 14px; }
  .nav__link::after { display: none; }
  .langs { margin-top: 24px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }

  body.is-locked { overflow: hidden; }
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .topbar__link:last-child { display: none; }
}

@media (max-width: 620px) {
  .cards--3, .cards--5 { grid-template-columns: 1fr; }
  .hero__acts .btn { flex: 1 1 100%; }
  .prose__lead { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
