/* Konak Ankara Erkek Öğrenci Yurdu — site stylesheet
   Mobile-first. Colours come from the logo (purple #492fb1, navy #1b1143). */

:root {
  --brand: #492fb1;
  --brand-dark: #3a2491;
  --ink: #1b1143;
  --text: #2a2540;
  --muted: #5d5873;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --soft: #f1eefa;
  --line: #e6e2ee;
  --accent: #f2b544;
  --call: #15803d;
  --call-dark: #116a32;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 17, 67, .06), 0 8px 24px rgba(27, 17, 67, .08);
  --container: 1160px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { background: var(--call-dark); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .35em .9em; border-radius: 999px;
  background: #fff4dc; color: #6b4a00; font-weight: 700; font-size: .9rem;
}
.badge::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(242,181,68,.3); }
.eyebrow { display: block; color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .04em; margin-bottom: .5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: var(--ink); }
.brand-sub { font-size: .78rem; color: var(--muted); font-weight: 600; }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle-label {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  border-radius: 12px; cursor: pointer;
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent); }
.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
.nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(27, 17, 67, .1);
  padding: 8px var(--gutter) 20px;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.site-nav .btn { width: 100%; }

/* Current page highlight: body class matches nav link class */
.page-home .nav-home,
.page-hakkimizda .nav-hakkimizda,
.page-hizmetlerimiz .nav-hizmetlerimiz,
.page-galeri .nav-galeri,
.page-iletisim .nav-iletisim { color: var(--brand); }

@media (min-width: 960px) {
  .nav-toggle-label { display: none; }
  .site-nav, .nav-toggle:checked ~ .site-nav {
    display: flex; align-items: center; gap: 20px;
    position: static; background: none; border: 0; box-shadow: none; padding: 0; margin: 0;
  }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 12px; font-size: .98rem; border-radius: 999px; }
  .site-nav li a:hover { background: var(--soft); }
  .site-nav .btn { width: auto; min-height: 44px; padding: .5em 1.1em; }
  .page-home .nav-home,
  .page-hakkimizda .nav-hakkimizda,
  .page-hizmetlerimiz .nav-hizmetlerimiz,
  .page-galeri .nav-galeri,
  .page-iletisim .nav-iletisim { background: var(--soft); }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 24px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-media .card-body { padding: 22px 24px 24px; }
.card-media .card-body > :last-child { margin-bottom: 0; }
.more { font-weight: 700; text-decoration: none; }
.card a.more::after { content: " →"; }
.after-list { margin-top: 1em; }

/* ---------- Home: hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(73, 47, 177, .16), transparent 60%),
    linear-gradient(180deg, #f4f1fc 0%, var(--bg) 100%);
  padding: 40px 0 56px;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin: 16px 0 12px; }
.hero h1 .h1-sub { display: block; font-size: .5em; color: var(--brand); font-weight: 700; margin-top: .35em; letter-spacing: 0; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-bottom: 24px; }
.hero-media { position: relative; }
.hero-media .main {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 24px; box-shadow: 0 24px 48px rgba(27, 17, 67, .18);
}
.hero-media .chip {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow); font-weight: 700; color: var(--ink); font-size: .95rem;
}
.hero-media .chip strong { display: block; font-size: 1.35rem; color: var(--brand); line-height: 1; }
.hero-media .chip span { font-weight: 600; color: var(--muted); font-size: .85rem; line-height: 1.25; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-media .main { aspect-ratio: 4 / 5; }
  .hero-media .chip { left: -28px; bottom: 36px; padding: 14px 18px; }
}

/* ---------- Home: quick facts ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.facts li {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.35;
}
.facts .icon { color: var(--call); margin-top: 1px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } .facts li { padding: 18px; font-size: 1rem; } }

/* ---------- Home: location ---------- */
.location { background: var(--ink); color: #dcd7f0; }
.location h2, .location h3 { color: #fff; }
.location .section-head p { color: #c9c3e3; }
.location .eyebrow { color: var(--accent); }
.location-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.dist-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 22px; }
.dist-card h3 { color: var(--ink); display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dist-card h3 .icon { color: var(--brand); }
.dist-list { list-style: none; margin: 0; padding: 0; }
.dist-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dist-list li:first-child { border-top: 0; }
.dist-place { line-height: 1.35; }
.dist-place strong { display: block; color: var(--ink); }
.dist-place span { color: var(--muted); font-size: .92rem; }
.dist-time {
  flex: none; min-width: 74px; text-align: center;
  background: var(--soft); color: var(--brand); font-weight: 800;
  border-radius: 999px; padding: .3em .8em; font-size: .95rem;
}
.dist-highlights { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.dist-highlights div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 16px; }
.dist-highlights strong { display: block; color: var(--accent); font-size: 1.6rem; line-height: 1.1; }
.dist-highlights span { color: #fff; font-weight: 600; font-size: .95rem; }
.location .btn-row { margin-top: 28px; }
.location-note { margin-top: 16px; font-size: .95rem; color: #c9c3e3; }

/* ---------- Home: about split ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.photo-pair img:last-child { margin-top: 36px; }
.split .big-quote { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* ---------- Photo strip (CSS scroll-snap carousel) ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}
.strip a { scroll-snap-align: start; display: block; border-radius: var(--radius); overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.strip a:hover img { transform: scale(1.03); }
@media (min-width: 640px) { .strip { grid-auto-columns: 40%; } }
@media (min-width: 960px) { .strip { grid-auto-columns: calc((100% - 3 * 14px) / 4); margin: 0; padding: 4px 0 16px; } }
.strip-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.strip-head h2 { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%);
  color: #e9e5fa; border-radius: 24px; padding: 36px 24px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; margin-top: 8px; }
@media (min-width: 768px) { .cta-band { padding: 56px; } }

/* ---------- Sub-page header ---------- */
.page-hero {
  background: linear-gradient(180deg, #f4f1fc 0%, var(--bg) 100%);
  padding: 28px 0 40px;
}
.page-hero h1 { margin: 8px 0 12px; }
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
@media (min-width: 768px) { .page-hero { padding: 40px 0 56px; } }

/* ---------- Hakkımızda ---------- */
.about-text { font-size: 1.05rem; }
.about-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow); }
.about-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 900px) { .about-layout { grid-template-columns: 1.4fr 1fr !important; } }
.mv-card h2 { font-size: 1.4rem; }
.mv-card { border-top: 4px solid var(--brand); }

/* ---------- Hizmetlerimiz ---------- */
.service-card h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.service-card h2 .icon { color: var(--brand); width: 1.4em; height: 1.4em; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 8px 0 8px 30px; border-top: 1px solid var(--line); line-height: 1.45; }
.check-list li:first-child { border-top: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--call) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.photo-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-row img:first-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .photo-row { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 21 / 9; }
  .photo-row img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .photo-row img:first-child { grid-column: 1; grid-row: 1 / span 2; }
}

/* ---------- Galeri ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips a {
  display: inline-block; padding: .45em 1em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.gallery-section { padding-top: 16px; padding-bottom: 32px; }
.gallery-section h2 { display: flex; align-items: baseline; gap: 10px; }
.gallery-section h2 small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* ---------- İletişim ---------- */
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--soft); color: var(--brand); margin-bottom: 8px;
}
.contact-card .icon-wrap .icon { width: 24px; height: 24px; }
.contact-card h2 { font-size: 1.15rem; margin: 0; }
.contact-card .value { font-size: 1.2rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-card .value a { color: inherit; text-decoration: none; }
.contact-card .btn-row { margin-top: 10px; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------- Prose (KVKK) ---------- */
.prose { max-width: 78ch; }
.prose li { margin-bottom: .5em; }
.prose p, .prose li { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c3e3; padding: 56px 0 96px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #c9c3e3; }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 4px; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 12px; letter-spacing: .02em; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--accent); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.social a:hover { background: rgba(255,255,255,.18); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 8px; font-size: .88rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 960px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
  position: fixed; z-index: 60;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--call); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(21, 128, 61, .35), 0 2px 6px rgba(0, 0, 0, .15);
}
.call-fab:hover { background: var(--call-dark); color: #fff; }
.call-fab .icon { width: 22px; height: 22px; }
@media (min-width: 960px) { .call-fab { display: none; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound .btn-row { justify-content: center; }
