/* BilsemMerkezi — www.bilsemmerkezi.com.tr
 *
 * A faithful rebuild of the current bilsemmerkezi.online design, without WordPress. Every colour
 * below was read off the rendered page with a browser, not guessed: topbar #414b4f, header #efefef,
 * hero photo under an rgba(0,122,255,.54) wash, the four service tiles #6ad61d / #ea9d2a /
 * #1482e2 / #e53dd1, headings #1e73be, body and footer #273044.
 *
 * The one deliberate departure is the typeface: Montserrat and Open Sans are replaced throughout by
 * Andika, self-hosted in the two weights it ships. No framework, no build step, no external request. */

@font-face {
  font-family: 'Andika';
  src: url('../brand/fonts/andika/andika_400_latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Turkish lives here: ş Ş ğ Ğ İ are all Latin Extended-A. */
@font-face {
  font-family: 'Andika';
  src: url('../brand/fonts/andika/andika_400_latin_ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Andika';
  src: url('../brand/fonts/andika/andika_700_latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Andika';
  src: url('../brand/fonts/andika/andika_700_latin_ext.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --topbar: #414b4f;
  --header: #efefef;
  --ink: #273044;
  --heading: #1e73be;
  --gold: #eab830;
  --tile-live: #6ad61d;
  --tile-app: #ea9d2a;
  --tile-publications: #1482e2;
  --tile-programs: #e53dd1;
  --line: #e2e6ee;
  --wrap: 1170px;
}

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

body {
  margin: 0;
  font-family: 'Andika', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;          /* the live site's body size */
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

.wrap { width: min(100% - 36px, var(--wrap)); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
/* companion to assets/js/site.js: no drag-to-desktop copy of the pictures */
img { -webkit-user-drag: none; user-select: none; }
a { color: var(--heading); }

/* ---------- top bar ---------- */
.topbar { background: var(--topbar); color: #fff; font-size: .82rem; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  align-items: center; justify-content: center;
  min-height: 38px; padding-block: 5px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.topbar-social { display: inline-flex; gap: 14px; }

/* ---------- header ----------
 * Desktop keeps the live site's row of uppercase links with the gold underline and a hover
 * dropdown. Below 900px the links collapse behind a toggle: the previous behaviour left the
 * Hakkımızda submenu permanently expanded and the navigation 284px tall on a 390px screen.
 */
.site-header { background: var(--header); position: relative; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 109px; padding-block: 14px;
}
.brand { display: inline-flex; }
.brand img { width: 280px; height: auto; display: block; }

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

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid #cfd4dd; border-radius: 4px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle-lines { display: grid; gap: 4px; width: 22px; }
.nav-toggle-lines span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] { background: #fff; border-color: var(--heading); color: var(--heading); }

.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: inline-block; padding: 10px 12px;
  color: #3f4756; text-decoration: none;
  font-weight: 700; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover { color: var(--heading); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.primary-nav li { position: relative; }
.menu-parent { display: inline-flex; align-items: center; }
.submenu-toggle {
  display: none;                       /* desktop opens the submenu on hover */
  width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: #3f4756;
}
.submenu-toggle svg { width: 20px; height: 20px; fill: currentColor; transition: transform .2s ease; }
.has-sub.is-open > .menu-parent > .submenu-toggle svg { transform: rotate(180deg); }

.primary-nav .sub {
  position: absolute; left: 0; top: 100%; z-index: 30;
  display: none; min-width: 250px;
  margin: 0; padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(22, 48, 92, .14);
}
.primary-nav li:hover > .sub,
.primary-nav li:focus-within > .sub { display: block; }
.primary-nav .sub a {
  display: block; padding: 9px 18px;
  border-bottom: 0; font-size: .82rem; text-transform: none; white-space: nowrap;
}
.primary-nav .sub a:hover { background: #f4f7fd; }

@media (max-width: 900px) {
  /* the bar carried three stacked lines on a phone; the phone number stays,
     the opening hours and the address move to the footer where there is room for them */
  .topbar .wrap { flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
  .topbar-item:nth-child(2), .topbar-item:nth-child(3) { display: none; }
  .topbar-social { display: none; }

  /* the logo and the toggle must share one row, not wrap onto two */
  .site-header .wrap { min-height: 72px; gap: 12px; flex-wrap: wrap; }
  .site-header .brand { margin-right: auto; }
  .brand img { width: min(190px, 52vw); }
  .nav-toggle { display: inline-flex; }

  /* the menu becomes a panel under the header, closed until asked for */
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    display: none;
    max-height: calc(100vh - 120px); overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(23, 35, 55, .18);
  }
  .site-header.is-menu-open .primary-nav { display: block; }

  .primary-nav > ul { display: block; width: min(100% - 36px, var(--wrap)); margin-inline: auto; padding: 6px 0 14px; }
  .primary-nav > ul > li + li { border-top: 1px solid var(--line); }
  .primary-nav > ul > li > a,
  .menu-parent > a {
    display: block; padding: 15px 2px; border-bottom: 0; font-size: .92rem;
  }
  .primary-nav a[aria-current="page"] { color: var(--heading); border-bottom: 0; }

  .menu-parent { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .menu-parent > a { flex: 1 1 auto; }
  .submenu-toggle { display: inline-flex; flex: none; }

  /* the submenu is collapsed here; it used to be forced open, which caused the sprawl */
  .primary-nav .sub {
    position: static; display: none; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 10px 14px;
  }
  .primary-nav li:hover > .sub,
  .primary-nav li:focus-within > .sub { display: none; }
  /* must out-specify the :focus-within rule above — a pseudo-class counts as a class, so
     (0,3,1) there beats a bare (0,3,0) here and the tapped submenu would stay shut */
  .primary-nav .has-sub.is-open > .sub { display: block; }
  .primary-nav .sub a { padding: 12px 2px; font-size: .88rem; }

  body.is-menu-open { overflow: hidden; }
}

/* ---------- hero: the three-slide rotator ----------
 * Measured off the live slider rather than invented: no colour wash over the photographs, and each
 * slide carries its own treatment — slide 1 white uppercase, slide 2 #ffcc00 at 45px in a hand
 * style, slide 3 black on a white band. The hand face is Andika here, since Andika is the only
 * typeface this site uses.
 */
.hero {
  position: relative;
  overflow: hidden;
  /* The live slider is a fixed 900px stage; matched here, and only shortened once the viewport is
     too small for it to make sense. */
  min-height: 900px;
  background: #dfe3e6;
}
@media (max-width: 900px) { .hero { min-height: 540px; } }
@media (max-width: 560px) { .hero { min-height: 420px; } }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  /* The headline sits near the top of the stage, not centred: 91px below the stage on the live site. */
  align-items: start;
  padding-top: 91px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s ease, visibility 0s linear .85s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .85s ease; }
.hero-slide-1 { background-image: url('../img/hero-1.jpg'); }
.hero-slide-2 { background-image: url('../img/hero-2.jpg'); background-position: center right; }
.hero-slide-3 { background-image: url('../img/hero-3.jpg'); }

.hero-text { font-weight: 400; line-height: 1.45; }
.hero-slide.is-active .hero-text { animation: heroTextIn .8s .12s ease both; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* slide 1 — white, uppercase, a centred block sitting in the left third */
.hero-slide-1 .hero-text {
  /* Measured off the live slide at 1440: 521px wide, 20px, starting at the container's left edge. */
  max-width: 521px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(.95rem, .8rem + .5vw, 1.25rem);
  letter-spacing: .01em;
}
/* slide 2 — the hand-written yellow line */
.hero-slide-2 .hero-text {
  /* Each of the two authored lines must hold on one line, as it does on the live slider; the
     measure is set by the longer of them (41 characters) rather than by a round number. */
  max-width: 46ch;
  color: #ffcc00;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.85rem);   /* 45px on the live slide at 1280 */
  line-height: 1.5;
}
/* slide 3 — black on the white band that runs behind it */
.hero-slide-3 .hero-text {
  color: #000;
  text-align: center;
  font-size: clamp(1.1rem, .95rem + 1.25vw, 1.95rem);  /* 31px on the live slide at 1280 */
  background: rgba(255, 255, 255, .88);
  padding: 10px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active .hero-text { animation: none; }
}

.button {
  display: inline-block; padding: 13px 28px;
  border: 2px solid transparent; border-radius: 4px;
  font-weight: 700; font-size: .88rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none;
}
.button-gold { background: var(--gold); color: #33280a; }
.button-gold:hover { background: #d3a41f; }
.button-outline { border-color: #fff; color: #fff; }
.button-outline:hover { background: #fff; color: var(--ink); }

/* ---------- the four homepage service tiles, edge to edge ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile {
  min-height: 420px; padding: 44px 34px;
  color: #fff; text-decoration: none;
  display: flex; flex-direction: column; gap: 34px;
}
.tile h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; }
.tile svg {
  width: 64px; height: 64px;
  fill: none; stroke: #fff; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  color: #fff;                      /* the solid parts (note heads, palette dots) use currentColor */
}
.tile-live { background: var(--tile-live); }
.tile-app { background: var(--tile-app); }
.tile-publications { background: var(--tile-publications); }
.tile-programs { background: var(--tile-programs); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  /* Stacked full-height tiles cost about 2000px of scrolling on a phone. One row each, icon beside
     the name, keeps all four on roughly one screen without losing anything. */
  .tiles { grid-template-columns: 1fr; }
  .tile {
    min-height: 0; padding: 18px 20px;
    display: grid; grid-template-columns: 46px 1fr; grid-template-areas: "icon name";
    align-items: center; gap: 2px 16px;
  }
  .tile h3 { grid-area: name; font-size: 1.05rem; }
  .tile svg { grid-area: icon; width: 40px; height: 40px; align-self: center; }
}

/* ---------- sections ---------- */
section[id] { scroll-margin-top: 20px; }
.band { padding-block: 66px; }
/* Section rhythm measured against the live page landmark by landmark: Mustafa Hoca at 1574, the
 * trio at 2546, the news at 2902. These paddings are what close those gaps. */
.band-doodle {
  background: #fff url('../img/doodle-bg.jpg') center/cover no-repeat;
  padding-block: 107px 135px;
}
.band-trio { padding-block: 0 119px; }
.band-news { padding-block: 66px 123px; }
.band-tint { background: #f7f9fc; }

.section-title {
  color: var(--heading);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}
.section-title-center { text-align: center; }
/* the gold rule with a notch that sits under the centred headings */
.ornament { width: 78px; height: 12px; margin: 14px auto 34px; display: block; }
.ornament path { stroke: var(--gold); stroke-width: 2; fill: none; }

.prose > * + * { margin-top: 15px; }
.prose p { max-width: 74ch; }
/* inside a document the measure is the container, as on the live pages */
.document .prose p, .document .prose li { max-width: none; }

.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.trio { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.trio h2 { color: var(--ink); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-bottom: 14px; }

.portrait { justify-self: center; max-width: 330px; }

.strip { padding-block: 34px 109px; }   /* the 75px the wordmark strip owes the trio below it */
.strip img { margin-inline: auto; width: min(450px, 76%); }

/* ---------- news ---------- */
.news { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.news article { display: flex; flex-direction: column; }
.news img { width: 100%; aspect-ratio: 370 / 193; object-fit: cover; }
.news h3 { margin-top: 18px; font-size: 1.05rem; color: var(--ink); text-transform: uppercase; }
.news p { margin-top: 12px; font-size: .92rem; }
.news .rule { width: 34px; height: 3px; margin-top: 18px; background: var(--tile-publications); }
.news .by { margin-top: 12px; font-size: .84rem; color: #6d7688; }

/* ---------- contact ---------- */
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 14px; align-items: baseline; }
.facts .label { flex: 0 0 auto; min-width: 96px; font-weight: 700; color: var(--heading); font-size: .88rem; text-transform: uppercase; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; }
.panel h3 { color: var(--heading); font-size: 1.15rem; }
.panel ul { margin-top: 14px; padding-left: 20px; }
.panel li + li { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c6cede; padding-block: 54px 0; font-size: .9rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.1fr 1.4fr 1.1fr minmax(210px, .7fr); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.site-footer h4 {
  color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #c6cede; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.quick li { border-bottom: 1px solid rgba(255,255,255,.13); }
.quick a {
  display: block; padding: 11px 0 11px 16px; position: relative;
  font-size: .84rem; letter-spacing: .04em; text-transform: uppercase;
}
.quick a::before { content: '\203A'; position: absolute; left: 0; color: var(--gold); }
.contact-list li + li { margin-top: 14px; }

/* Measured off the live footer: 45px circles, 10px apart, on one row, each turning the brand gold
 * on hover rather than lightening. They must never wrap — four at 45px need 210px, so the column
 * below is given that as a floor. */
.social-round { display: flex; flex-wrap: nowrap; gap: 10px; }
.social-round a {
  width: 45px; height: 45px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.social-round svg { width: 20px; height: 20px; fill: #fff; }
.social-facebook { background: #3b5998; }
.social-twitter { background: #1da1f2; }
.social-instagram { background: #c32aa3; }
.social-youtube { background: #2c75e4; }
.social-round a:hover { background: var(--gold); }

.colophon {
  margin-top: 42px; padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: .82rem; color: #97a2b8;
}
.colophon img { width: 92px; }

/* ---------- first-party WhatsApp handoff ----------
 * One restrained launcher; no automatic popup, pulse, badge, third-party script or touch-based
 * availability guess. Desktop prioritises a phone-readable QR route.
 */
.contact-dock {
  position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 80;
  display: grid; justify-items: end; gap: 12px; pointer-events: none;
}
.contact-launcher {
  position: relative; z-index: 3; display: inline-flex; align-items: center;
  height: 52px; min-width: 52px; padding: 0; overflow: hidden; border: 0; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 7px 22px rgba(24,79,49,.24);
  cursor: pointer; font: inherit; opacity: 0; visibility: hidden; transform: translateY(10px);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s, background .18s ease;
}
.contact-dock.is-visible:not(.is-footer-near) .contact-launcher {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .24s ease, transform .24s ease, background .18s ease;
}
.contact-launcher:hover, .contact-launcher[aria-expanded="true"] { background: #1eb955; }
.contact-launcher-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; }
.contact-launcher-icon svg { width: 28px; height: 28px; fill: currentColor; }
.contact-launcher-label {
  max-width: 0; padding-right: 0; overflow: hidden; white-space: nowrap; font-size: .86rem;
  font-weight: 700; transition: max-width .26s ease, padding-right .26s ease;
}
.contact-launcher:hover .contact-launcher-label,
.contact-launcher:focus-visible .contact-launcher-label,
.contact-launcher[aria-expanded="true"] .contact-launcher-label { max-width: 220px; padding-right: 18px; }
.contact-backdrop { display: none; }
.contact-panel {
  position: absolute; right: 0; bottom: 64px; z-index: 2; width: min(332px, calc(100vw - 36px));
  max-height: calc(100dvh - 104px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid #dfe5ee; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 20px 54px rgba(22,48,92,.22); pointer-events: auto;
}
.contact-panel[hidden], .contact-backdrop[hidden], [data-website-auth][hidden], [data-website-auth-error][hidden] { display: none !important; }
.contact-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 17px 13px; border-bottom: 1px solid var(--line); }
.contact-panel-heading { min-width: 0; }
.contact-kicker, .document .contact-kicker { margin: 0 0 2px; color: #128c4d; font-size: .72rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.contact-panel .contact-title { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.32; }
.contact-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #697286; cursor: pointer; }
.contact-close:hover { background: #f2f5f9; color: var(--ink); }
.contact-close svg { width: 19px; height: 19px; fill: currentColor; }
.contact-panel-body { padding: 16px; }
.contact-panel p { margin: 0; }
.contact-qr-block { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 14px; align-items: center; }
.contact-qr { display: block; width: 128px; height: 128px; padding: 5px; border: 1px solid #e1e7ef; border-radius: 12px; background: #fff; }
.contact-qr-block.has-error .contact-qr { display: none; }
.contact-route-title { margin: 0 0 7px; color: var(--ink); font-size: .92rem; line-height: 1.38; }
.contact-route-text { color: #697286; font-size: .77rem; line-height: 1.55; }
.contact-mobile-only { display: none !important; }
.contact-mobile-note { margin-top: 8px !important; color: #788195; font-size: .76rem; line-height: 1.5; }
.contact-action-list { display: grid; gap: 3px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact-action { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.contact-action:hover { background: #f3f7fb; }
.contact-action.is-copied { background: #edf8f1; }
.contact-action-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #edf8f1; color: #128c4d; }
.contact-action-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-action-copy { min-width: 0; }
.contact-action strong { display: block; color: inherit; font-size: .84rem; line-height: 1.35; }
.contact-action small { display: -webkit-box; margin-top: 2px; overflow: hidden; color: #737d90; font-size: .72rem; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.contact-primary { min-height: 50px; padding: 9px 12px; background: #25d366; color: #fff; }
.contact-primary:hover { background: #1eb955; }
.contact-primary .contact-action-icon { background: rgba(255,255,255,.18); color: #fff; }
.contact-primary small { color: rgba(255,255,255,.86); }
.contact-alternatives { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact-alternatives-title { margin-bottom: 5px !important; color: #818a9c; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-alternative-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 3px; }
.contact-alternative-actions .contact-action { align-items: flex-start; }
.contact-copy-status { min-height: 1.25em; margin-top: 8px !important; color: #128c4d; font-size: .72rem; line-height: 1.4; }
@media (max-width: 640px) {
  body.contact-sheet-open { overflow: hidden; }
  .contact-dock { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .contact-launcher { height: 50px; min-width: 50px; }
  .contact-launcher-icon { width: 50px; height: 50px; }
  .contact-launcher-label { display: none; }
  .contact-backdrop { position: fixed; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(20,30,46,.22); pointer-events: auto; }
  .contact-panel { position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: auto; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); border-radius: 18px; }
  .contact-desktop-only { display: none !important; }
  .contact-mobile-only { display: block !important; }
  .contact-action.contact-mobile-only { display: flex !important; }
  .contact-dock.is-open .contact-launcher { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(8px); }
  .contact-panel-body { padding: 15px; }
  .contact-alternative-actions { grid-template-columns: minmax(0,1fr); }
}
/* A media query adds no specificity, so this must match the .contact-dock.is-visible rule above,
   which is (0,3,1); a bare .contact-launcher at (0,1,0) loses and the launcher keeps animating. */
@media (prefers-reduced-motion: reduce) {
  .contact-launcher,
  .contact-launcher-label,
  .contact-dock.is-visible:not(.is-footer-near) .contact-launcher { transition: none; }
}

/* ---------- inner pages ----------
 * Measured off /hakkimizda/: no banner, a 36px #273044 title on white, and two 570px columns in the
 * 1170px container with a 30px gutter — text on the left, the page's photograph on the right.
 */
.document { padding-block: 46px 66px; }
/* The band most inner pages carry: full bleed, 165px tall, a centred 50px white uppercase title.
 * Its colour is per page on the live site, so each page passes its own through --band. Hakkımızda
 * and İletişim have no band at all and use .page-title instead. */
.page-banner {
  background: var(--band, #dd1818);
  min-height: 165px;
  display: grid;
  place-items: center;
  padding: 26px 18px;
}
.page-banner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 2.4vw, 3.125rem);    /* lands on 50px at 1280, as measured */
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 700px) { .page-banner { min-height: 120px; } }

.page-title {
  margin-bottom: 26px;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 700;
}
.page-body { display: grid; gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.page-body.is-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page-body { grid-template-columns: minmax(0, 1fr); } }
.page-media img { width: 100%; }
.page-media img + img { margin-top: 24px; }
.page-gallery { margin-top: 34px; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.page-gallery img { width: 100%; border: 1px solid var(--line); }

/* ---------- SSS accordion ----------
 * Native <details>: no script, keyboard-operable, and it still folds with JavaScript off.
 */
.faq-group {
  margin-top: 40px; margin-bottom: 14px;
  color: var(--heading); font-size: 1.15rem;
}
.faq-group:first-of-type { margin-top: 26px; }
.faq { border-top: 1px solid var(--line); }   /* the live accordion runs the container width */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 0;
  font-weight: 700;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--heading); }
.faq summary::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] > summary { color: var(--heading); }
.faq-answer { padding: 0 44px 18px 0; }
.faq-answer p { margin-top: 0; }
.faq-answer p + p { margin-top: 12px; }
.faq-answer ul { margin-top: 12px; padding-left: 22px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- article pages ----------
 * The live article runs an 838px column under the red band; the archive is the same card grid the
 * home page uses. */
.article .wrap { width: min(100% - 36px, 838px); }
.article-title { margin-bottom: 10px; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem); color: var(--ink); }
.article-meta { margin-bottom: 22px; font-size: .84rem; color: #8a93a6; }
.article-lead { width: 100%; margin-bottom: 24px; }
.article-figure { width: 100%; max-width: 520px; margin: 22px 0; }
.article h3 { margin-top: 28px; font-size: 1.1rem; color: var(--heading); }
.article p { margin-top: 13px; }
.article ul { margin-top: 14px; padding-left: 22px; }
.article li + li { margin-top: 7px; }
.article-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags span {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .76rem; color: #6b7488;
}
/* the İstanbul directory table: wide content must scroll inside its own box, never the page */
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.table-wrap td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) { background: #f7f9fc; }
.article-back { margin-top: 30px; }
.article-back a { color: var(--heading); text-decoration: none; font-weight: 700; }
.news h3 a { color: inherit; text-decoration: none; }
.news h3 a:hover { color: var(--heading); }

/* ---------- contact page ----------
 * The live page has no title: an eyebrow, a two-tone heading, the contact rows as a two-up grid of
 * coloured line icons separated by rules, the map beneath — all in the left column, with the
 * enquiry form in the right.
 */
.contact-page { padding-block: 40px 66px; }
.contact-grid { display: grid; gap: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

.ci-eyebrow { color: var(--heading); font-size: .82rem; margin-bottom: 16px; }
.ci-heading {
  margin-bottom: 26px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.72rem);
  font-weight: 700; color: var(--ink);
}
.ci-heading span { color: var(--heading); }

.ci-row {
  display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 17px 0; border-top: 1px solid var(--line);
}
.ci-row:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .ci-row { grid-template-columns: minmax(0, 1fr); } }

.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-item > div { display: grid; gap: 2px; min-width: 0; }
.ci {
  flex: none; width: 26px; height: 26px; margin-top: 1px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ci-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.ci-value { color: #6b7488; word-break: break-word; }
.ci-value a { color: #6b7488; text-decoration: none; }
.ci-value a:hover { color: var(--heading); text-decoration: underline; }

.map-frame { margin-top: 26px; width: 100%; aspect-ratio: 16 / 11; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }


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

/* The header's own small-screen rules live with the header, above. This block kept only the hero,
   and used to stack the header into a column — which is what put the logo and the toggle on
   separate rows once the toggle existed. */
@media (max-width: 900px) {
  .hero { min-height: 460px; }
}

/* The generated no-JavaScript fallback. Inert whenever the contact script runs. */
.contact-noscript {
  background: #fff8e1; border-bottom: 1px solid #f0d999;
  padding: 12px 18px; font-size: .88rem; color: var(--ink);
}
.contact-noscript ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; }
.contact-noscript li { padding-left: 0; }

/* Android shell (BilsemAndroidPlay): no account links, no package or checkout links. */
.in-app .header-auth,
.in-app .app-band,
.in-app a[href^="paketler"],
.in-app a[href^="satin-al"],
.in-app li:has(> a[href^="paketler"]),
.in-app a[href="indir.html"],
.in-app li:has(> a[href="indir.html"]) {
  display: none !important;
}



/* ---------- account buttons in the header (docs/DECISIONS.md D-2026-09-16-02) ----------
 * Giriş Yap and Ücretsiz Üye Ol replace the small top-bar links. site.js fills their addresses from
 * /api/session exactly as before; they stay hidden until it has. Below 900px they take a full-width
 * row under the logo and the menu toggle. */
.header-auth { display: flex; align-items: center; gap: 10px; margin-left: 18px; flex: none; }
.header-auth a {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
}
.header-auth-login { color: var(--heading); background: #fff; border: 2px solid var(--heading); }
.header-auth-login:hover { color: #fff; background: var(--heading); }
.header-auth-signup { color: #fff; background: #e31b23; border: 2px solid #e31b23; box-shadow: 0 8px 18px rgba(227,27,35,.25); }
.header-auth-signup:hover { color: #fff; background: #bd151b; border-color: #bd151b; }
.header-auth-error { color: #5d6777; font-size: .82rem; }
/* a signed-in visitor has no use for Giriş Yap / Ücretsiz Üye Ol */
.is-authenticated .header-auth { display: none !important; }
@media (max-width: 900px) {
  .header-auth { order: 3; flex: 1 1 100%; margin: 0 0 4px; }
  .header-auth a { flex: 1 1 0; }
}

/* ---------- app band on the home page (docs/DECISIONS.md D-2026-09-16-01) ----------
 * Student application and Veli Paneli, the install and sign-up actions, and the two free offers.
 * Hidden inside the native shells together with the other account and package links. */
.app-band { background: linear-gradient(180deg, #eaf3ff 0%, #f7fbff 100%); border-bottom: 1px solid #dbe6f5; }
.app-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; padding-block: 44px; }
/* the intro is an island like the offer cards; both left-column islands share one column width */
.app-band-intro {
  display: flex; flex-direction: column; justify-content: center; padding: 24px; background: #fff;
  border: 2px solid #c9d8f2; border-radius: 22px; box-shadow: 0 14px 32px rgba(40,30,96,.10);
}
.app-band-intro .app-band-kicker { align-self: flex-start; }
.app-band-kicker {
  display: inline-flex; align-items: center; color: var(--heading); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; background: #fff; border: 1px solid #cfe0f5;
  border-radius: 999px; padding: 6px 12px;
}
.app-band h2 { margin: 14px 0 10px; color: #1b2a44; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.app-band-student { color: #c34a5e; }
.app-band-parent { color: var(--heading); }
.app-band-lead { color: #4a5568; font-size: 1.02rem; line-height: 1.6; margin: 0 0 18px; }
.app-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* same size, radius, weight and shadow as the offer buttons (.app-offer-cta) */
.app-band-actions a {
  flex: 1 1 210px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font-weight: 800; font-size: 1rem; text-decoration: none;
}
.app-band-install { color: #fff; background: #c34a5e; box-shadow: 0 8px 18px rgba(40,30,96,.18); }
.app-band-install:hover { color: #fff; background: #98263a; }
.app-band-install-parent { background: var(--heading); }
.app-band-install-parent:hover { background: #15588f; }
.app-band-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; grid-column: 2; grid-row: 1; }
.app-card { background: #fff; border: 2px solid #dbe6f5; border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px rgba(30,60,110,.08); }
.app-card-student { border-color: #c34a5e; box-shadow: 0 14px 34px rgba(195,74,94,.12); }
.app-card-parent { border-color: var(--heading); box-shadow: 0 14px 34px rgba(30,115,190,.16); }
.app-card-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; color: #fff;
}
.app-card-student .app-card-tag { background: #c34a5e; }
.app-card-parent .app-card-tag { background: var(--heading); }
.app-card h3 { margin: 10px 0 10px; color: #1b2a44; font-size: 1.12rem; }
.app-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.app-card li { position: relative; padding-left: 22px; color: #3d4757; font-size: .92rem; line-height: 1.45; }
.app-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #249b45; font-weight: 900; }
.app-offers { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.app-offer {
  --offer: #6c5ce7; --offer-line: #b9a6ff; --offer-soft: #eeeaff;
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  border: 2px solid var(--offer-line); border-radius: 22px; padding: 24px; color: #22233b; background: #fff;
  box-shadow: 0 14px 32px rgba(40,30,96,.10);
}
.app-offer::after { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; top: -60px; border-radius: 50%; background: var(--offer-soft); }
.app-offer > * { position: relative; z-index: 1; }
/* pastel cards in the student-app card style: Seviye Tespit #6a6df2, Uygulama Demosu #b5179e on #fff0f7 */
.app-offer-exam { --offer: #6a6df2; --offer-line: #c3c4fa; --offer-soft: #ecebff; }
.app-offer-demo { --offer: #b5179e; --offer-line: #f5c6dc; --offer-soft: #fff0f7; }
.app-offer-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--offer-soft); display: grid; place-items: center; font-size: 2rem; }
.app-offer h3 { margin: 4px 0 6px; color: #22233b; font-size: clamp(1.2rem, 4.6vw, 1.55rem); line-height: 1.15; white-space: nowrap; }
.app-offer p { margin: 0; color: #4b5263; font-size: .98rem; line-height: 1.5; }
.app-offer-cta {
  grid-column: 1 / -1; justify-self: start; margin-top: 10px; background: var(--offer); color: #fff;
  font-weight: 800; text-decoration: none; border-radius: 12px; padding: 12px 20px; font-size: 1rem;
  box-shadow: 0 8px 18px rgba(40,30,96,.18);
}
.app-offer-cta:hover { color: #fff; filter: brightness(.92); }
.app-offer-badge { display: none; }
@media (max-width: 900px) {
  .app-band .wrap { grid-template-columns: 1fr; padding-block: 30px; }
  .app-band h2 { white-space: normal; font-size: clamp(1.35rem, 5.4vw, 1.9rem); }
  .app-offers { grid-template-columns: 1fr; grid-row: auto; }
  .app-band-cards { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
  .app-band-cards { grid-template-columns: 1fr; }
  .app-band-actions a, .app-offer-cta { width: 100%; justify-self: stretch; text-align: center; }
}

/* ---------- "Hesabınız hazır" card on the purchase page (docs/DECISIONS.md D-2026-09-16-04) ---------- */
.app-install-card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  width: min(100% - 36px, 1020px); margin: 32px auto 0; padding: 24px;
  background: linear-gradient(180deg, #eaf3ff, #fff); border: 1px solid #cfe0f5; border-radius: 20px;
  box-shadow: 0 14px 34px rgba(30,60,110,.1);
}
.app-install-card[hidden] { display: none; }
.app-install-card img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 22px rgba(23,35,55,.16); }
.app-install-card h2 { margin: 0 0 6px; color: #1b2a44; font-size: 1.45rem; }
.app-install-card p { margin: 0 0 14px; color: #4a5568; line-height: 1.55; }
.app-install-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app-install-actions a { min-height: 48px; display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.app-install-primary { color: #fff; background: #c34a5e; box-shadow: 0 10px 22px rgba(195,74,94,.25); }
.app-install-primary:hover { color: #fff; background: #98263a; }
.app-install-secondary { color: var(--heading); background: #fff; border: 2px solid var(--heading); }
.in-app .app-install-card { display: none !important; }
@media (max-width: 560px) {
  .app-install-card { grid-template-columns: 1fr; text-align: center; }
  .app-install-card img { margin: 0 auto; }
  .app-install-actions a { width: 100%; justify-content: center; }
}

/* ---------- install recommendation before the free exam and demo (docs/DECISIONS.md D-2026-09-16-05) ---------- */
.install-prompt[hidden] { display: none; }
.install-prompt-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(20,30,46,.5); }
.install-prompt-dialog {
  position: fixed; left: 50%; top: 50%; z-index: 96; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 26px 24px 22px; border-radius: 20px; background: #fff; color: #1b2a44;
  box-shadow: 0 26px 70px rgba(0,0,0,.25); outline: none;
}
.install-prompt-dialog img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(23,35,55,.15); }
.install-prompt-dialog h2 { margin: 14px 0 6px; font-size: 1.35rem; line-height: 1.2; }
.install-prompt-dialog p { margin: 0 0 16px; color: #4a5568; line-height: 1.55; }
.install-prompt-dialog ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; }
.install-prompt-dialog li { position: relative; padding-left: 22px; color: #3d4757; font-size: .93rem; }
.install-prompt-dialog li::before { content: "✓"; position: absolute; left: 0; color: #249b45; font-weight: 900; }
.install-prompt-actions { display: grid; gap: 10px; }
.install-prompt-actions a {
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 700; text-decoration: none;
}
.install-prompt-install { color: #fff; background: #c34a5e; box-shadow: 0 10px 22px rgba(195,74,94,.25); }
.install-prompt-install:hover { color: #fff; background: #98263a; }
.install-prompt-continue { color: var(--heading); background: #fff; border: 2px solid var(--heading); }
.install-prompt-close {
  position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: none;
  color: #7b8097; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
body.install-prompt-open { overflow: hidden; }
