/* =========================================================
   Seyrantepe Barbaros Öğrenci Yurdu — Modern Stylesheet
   ========================================================= */

:root {
  --navy-900: #0b2038;
  --navy-800: #0e2a47;
  --navy-700: #143a63;
  --navy-600: #1c4f85;
  --blue-500: #2f74c0;
  --blue-100: #e7f0fb;
  --gold-500: #e6a83b;
  --gold-600: #d1922a;
  --wa: #25d366;

  --ink: #16222e;
  --muted: #5b6b7a;
  --line: #e5eaf0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(14, 42, 71, .06);
  --shadow-md: 0 14px 40px rgba(14, 42, 71, .12);
  --shadow-lg: 0 30px 70px rgba(11, 32, 56, .22);

  --container: 1160px;
  --ff-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: var(--ff-head); line-height: 1.15; letter-spacing: -.02em; margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad);
  font-family: var(--ff-head); font-weight: 700; font-size: .98rem;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--sm { --pad: 9px 18px; font-size: .9rem; }
.btn--primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 10px 24px rgba(230,168,59,.32); }
.btn--primary:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #073b25; box-shadow: 0 10px 24px rgba(37,211,102,.3); }
.btn--wa:hover { transform: translateY(-2px); filter: brightness(.97); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cdd9e6; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar__contact { display: flex; gap: 20px; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: #fff; font-family: var(--ff-head); font-weight: 800; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--ff-head); font-size: 1.02rem; color: var(--navy-800); }
.brand__text small { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { font-weight: 600; font-size: .95rem; color: var(--navy-800); position: relative; }
.nav > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-500); transition: width .22s ease;
}
.nav > a:not(.nav__cta):hover::after,
.nav > a.is-active:not(.nav__cta)::after { width: 100%; }
.nav > a.is-active:not(.nav__cta) { color: var(--navy-600); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2.5px; width: 100%; background: var(--navy-800); border-radius: 3px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("whatsapp.jpeg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(120deg, rgba(11,32,56,.94) 0%, rgba(14,42,71,.82) 45%, rgba(20,58,99,.55) 100%);
}
.hero__content { padding-block: clamp(70px, 12vw, 140px); max-width: 720px; }
.hero__eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: .78rem; color: var(--gold-500);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px; border-radius: 999px; margin: 0 0 22px;
}
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
.hero__title span { color: var(--gold-500); }
.hero__lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: #dce6f1; margin: 22px 0 32px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 38px; margin: 48px 0 0; padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stats strong { display: block; font-family: var(--ff-head); font-size: 2rem; font-weight: 800; color: #fff; }
.hero__stats span { color: #b9c8d8; font-size: .9rem; }

/* ---------- Strip ---------- */
.strip { margin-top: -34px; position: relative; z-index: 5; }
.strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-md);
}
.strip__item { display: flex; align-items: center; gap: 14px; padding: 6px 8px; }
.strip__item + .strip__item { border-left: 1px solid var(--line); padding-left: 20px; }
.strip__icon { font-size: 1.7rem; }
.strip__item strong { display: block; font-family: var(--ff-head); color: var(--navy-800); font-size: 1rem; }
.strip__item p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  font-family: var(--ff-head); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .8rem; color: var(--blue-500); margin: 0 0 12px;
}
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy-800); }
.section__sub { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; right: -14px; bottom: -18px; background: #fff; border-radius: var(--radius-sm);
  padding: 16px 22px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.about__badge strong { display: block; font-family: var(--ff-head); color: var(--navy-800); }
.about__badge span { font-size: .84rem; color: var(--gold-600); font-weight: 600; }
.about__text .section__title { text-align: left; }
.about__text p { color: var(--muted); }
.about__text em { color: var(--navy-700); font-style: italic; }

.ticklist { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-500); font-size: .78rem; font-weight: 800;
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 16/10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 24px 24px 28px; }
.card__body h3 { color: var(--navy-800); font-size: 1.22rem; margin-bottom: 10px; }
.card__body p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Reasons ---------- */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reasons li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.reasons li:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.reasons__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-100), #fff); font-size: 1.5rem; margin-bottom: 14px;
  border: 1px solid var(--line);
}
.reasons h3 { color: var(--navy-800); font-size: 1.12rem; }
.reasons p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
  padding-block: clamp(44px, 7vw, 68px);
}
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta p { margin: 10px 0 0; color: #cdd9e6; max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.gallery__item { border-radius: var(--radius-sm); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11,32,56,.45); color: #fff; font-size: 1.4rem; opacity: 0; transition: opacity .25s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover img { transform: scale(1.07); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact__info .section__title, .contact__info .section__sub { text-align: left; }
.contact__info .section__sub { margin-left: 0; }
.contact__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; }
.contact__ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); font-size: 1.25rem;
}
.contact__list strong { font-family: var(--ff-head); color: var(--navy-800); display: block; }
.contact__list p { margin: 2px 0 0; color: var(--muted); }
.contact__list a:hover { color: var(--blue-500); }
.contact__quick { display: flex; gap: 14px; flex-wrap: wrap; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 420px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b9c8d8; }
.footer__inner { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; padding-block: 48px; }
.footer__brand { display: flex; gap: 16px; max-width: 420px; }
.footer__brand strong { color: #fff; font-family: var(--ff-head); }
.footer__brand p { margin: 6px 0 0; font-size: .92rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer__nav a { font-weight: 600; }
.footer__nav a:hover, .footer__legal a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .cards, .reasons { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(odd) { border-left: 0; padding-left: 8px; }
  .about__media img { aspect-ratio: 16/10; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 22px;
    transform: translateY(-140%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-md); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > a::after { display: none; }
  .nav__cta { margin-top: 14px; border: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 560px) {
  .cards, .reasons, .strip__grid { grid-template-columns: 1fr; }
  .strip__item + .strip__item { border-left: 0; padding-left: 8px; }
  .hero__stats { gap: 24px; }
  .hero__stats li { flex: 1 1 40%; }
  .about__badge { right: 10px; }
  .footer__inner { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
}

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