/* TuranOkul — editorial education identity */

:root {
    color-scheme: light;
    --paper: #f7f5ef;
    --paper-deep: #efede5;
    --white: #fffefa;
    --ink: #172536;
    --ink-soft: #34465a;
    --muted: #687582;
    --line: #deded5;
    --line-strong: #c9c9bd;
    --blue: #244b68;
    --blue-deep: #18364e;
    --orange: #c45d3d;
    --orange-soft: #f4e6de;
    --sage: #dce5dc;
    --sage-deep: #466b5b;
    --shadow: 0 18px 45px rgba(23, 37, 54, .07);
    --radius: 5px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: var(--white);
    background: var(--blue);
}

a { color: var(--blue); }

a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
    border-radius: 3px;
}

.text-secondary { color: var(--muted) !important; }

.container {
    max-width: 1160px;
}

.navbar {
    min-height: 82px;
    padding-block: .85rem !important;
    background: rgba(255, 254, 250, .96) !important;
    border-bottom: 1px solid var(--line);
}

.navbar .container {
    gap: 1.5rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin: 0;
    color: var(--ink) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.035em;
}

.navbar-brand img {
    width: auto;
    height: 42px;
    margin: 0 !important;
    object-fit: contain;
}

.nav-link-quiet {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-link-quiet:hover {
    color: var(--orange);
    text-decoration: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .22rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.lang-switch a {
    min-width: 2.5rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.lang-switch a.active {
    color: var(--white);
    background: var(--blue);
}

/* Hero: editorial layout with a quiet architectural grid */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    background:
        linear-gradient(rgba(36, 75, 104, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 75, 104, .045) 1px, transparent 1px),
        var(--paper-deep);
    background-size: 42px 42px;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    position: absolute;
    top: 0;
    right: max(4vw, calc((100vw - 1160px) / 2));
    width: 1px;
    height: 100%;
    background: rgba(36, 75, 104, .12);
    content: "";
}

.hero > .container {
    position: relative;
    z-index: 1;
    padding-top: clamp(3rem, 4vw, 5.5rem) !important;
    padding-bottom: clamp(3rem, 4vw, 5.5rem) !important;
}

.eyebrow,
.kicker {
    margin-bottom: .9rem;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--orange);
}

.eyebrow::before {
    width: 27px;
    height: 2px;
    background: currentColor;
    content: "";
}

.kicker { color: var(--orange); }

.hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6.1vw, 5.55rem);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: .99;
}

.hero h1 span {
    display: block;
    margin-top: .18em;
    color: var(--blue);
    font-style: italic;
    font-weight: 400;
}

.hero .lead {
    max-width: 650px;
    margin-top: 1.65rem;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.5vw, 1.17rem);
    line-height: 1.8;
}

.hero .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.35rem !important;
    border-radius: 3px;
    font-size: .88rem;
    font-weight: 750;
    white-space: normal;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.hero .btn:hover,
.closing-panel .btn:hover {
    transform: translateY(-2px);
}

.btn-brand {
    color: var(--white);
    background: var(--orange);
    border: 1px solid var(--orange);
    box-shadow: 0 8px 18px rgba(196, 93, 61, .15);
}

.btn-brand:hover {
    color: var(--white);
    background: #a94c31;
    border-color: #a94c31;
}

.hero .btn-outline-light {
    color: var(--blue);
    border: 1px solid var(--line-strong);
    background: rgba(255, 254, 250, .55);
}

.hero .btn-outline-light:hover {
    color: var(--white);
    border-color: var(--blue);
    background: var(--blue);
}

.hero-note {
    max-width: 570px;
    margin-top: 1.5rem !important;
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.6;
}

/* The four-stage exam flow becomes a printed workflow sheet */
.flow-card {
    position: relative;
    max-width: 440px;
    margin-left: auto;
    padding: 1.7rem 1.8rem 1.4rem;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.flow-card::after {
    position: absolute;
    right: 16px;
    bottom: -9px;
    left: 16px;
    height: 9px;
    border: 1px solid var(--line);
    border-top: 0;
    background: #e9e6dc;
    content: "";
    z-index: -1;
}

.flow-title {
    margin: 0 0 1rem;
    color: var(--orange);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.flow-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.flow-steps li {
    display: grid;
    grid-template-columns: 2.35rem 1fr;
    gap: .8rem;
    align-items: center;
    min-height: 58px;
    padding: .6rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .91rem;
    font-weight: 650;
}

.flow-steps li:last-child { border-bottom: 0; }

.flow-num {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid #b9c9d2;
    border-radius: 50%;
    color: var(--blue);
    background: #f1f5f5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .95rem;
    font-weight: 700;
}

.flow-caption {
    margin: .9rem 0 0;
    padding-top: .8rem;
    border-top: 1px dashed var(--line-strong);
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.5;
}

/* Shared section rhythm */
main section {
    position: relative;
}

main > section:not(.surface):not(.pb-5) {
    background: var(--paper);
}

main > section.py-5,
main > section.surface {
    padding-top: clamp(4rem, 7vw, 6rem) !important;
    padding-bottom: clamp(4rem, 7vw, 6rem) !important;
}

main > section.surface {
    background: var(--sage);
    border-block: 1px solid #d2ddd2;
}

.section-title {
    max-width: 780px;
    margin-bottom: 1.2rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 4vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.08;
}

main section .fs-5 {
    max-width: 930px;
    color: var(--ink-soft) !important;
    font-size: 1.06rem !important;
    line-height: 1.85;
}

main section .text-secondary {
    line-height: 1.75;
}

/* Cards: flatter, more typographic, less template-like */
.card-soft {
    position: relative;
    height: 100%;
    padding: 1.55rem 1.55rem 1.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 5px 18px rgba(23, 37, 54, .035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-soft:hover {
    transform: translateY(-4px);
    border-color: #b8c8c9;
    box-shadow: var(--shadow);
}

.card-soft h3 {
    margin: 0 0 .65rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.card-soft p {
    margin-bottom: 0;
    color: var(--muted) !important;
    font-size: .91rem;
    line-height: 1.7;
}

/* MVP section: warm paper cards on a muted sage field */
.surface .card-soft {
    border-color: rgba(70, 107, 91, .2);
    background: rgba(255, 254, 250, .92);
}

.surface .card-soft h3 { color: var(--blue-deep); }

.chip {
    display: inline-flex;
    align-items: center;
    margin: 0 .35rem .55rem 0;
    padding: .42rem .8rem;
    border: 1px solid #c8d6ca;
    border-radius: 3px;
    color: var(--sage-deep);
    background: #f6f8f2;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Partnership lists */
.check {
    margin: .3rem 0 0;
    padding: 0;
    list-style: none;
}

.check li {
    position: relative;
    padding: .62rem 0 .62rem 1.8rem;
    border-bottom: 1px solid #ecebe4;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

.check li:last-child { border-bottom: 0; }

.check li::before {
    position: absolute;
    top: .72rem;
    left: 0;
    display: grid;
    width: 1.1rem;
    height: 1.1rem;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--sage-deep);
    content: "✓";
    font-size: .65rem;
    font-weight: 900;
}

/* Numbered partnership steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    min-height: 105px;
    padding: 1.05rem 1rem 1rem 3.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.55;
    counter-increment: step;
}

.steps li::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--orange);
    content: counter(step, decimal-leading-zero);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .72rem;
    font-weight: 700;
}

/* Roadmap as a vertical editorial timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: .35rem;
    bottom: 1rem;
    left: 7px;
    width: 1px;
    background: #a9bdb0;
    content: "";
}

.timeline li {
    position: relative;
    padding: 0 0 2rem 2.5rem;
}

.timeline li::before {
    position: absolute;
    top: .3rem;
    left: 0;
    width: 15px;
    height: 15px;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 1px var(--orange);
    content: "";
}

.surface .timeline li::before {
    border-color: var(--sage);
}

.timeline small {
    display: inline-block;
    margin-bottom: .35rem;
    color: var(--orange);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.timeline h3 {
    margin: 0 0 .35rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.timeline p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.7;
}

/* Honest project-status note */
.notice {
    position: relative;
    max-width: 1000px;
    margin-inline: auto;
    padding: 1.6rem 1.8rem 1.65rem;
    border: 1px solid #e1c9a9;
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    background: #fbf2e8;
}

.notice h3 {
    margin: 0 0 .65rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.notice ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #6c6258;
    font-size: .88rem;
    line-height: 1.75;
}

.notice li + li { margin-top: .3rem; }

/* Closing invitation */
.closing-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.6rem) !important;
    border-radius: 4px;
    color: var(--white);
    background:
        linear-gradient(115deg, rgba(24, 54, 78, .98), rgba(36, 75, 104, .96)),
        var(--blue-deep);
    box-shadow: var(--shadow);
}

.closing-panel::after {
    position: absolute;
    top: -95px;
    right: -55px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025);
    content: "";
    pointer-events: none;
}

.closing-panel > .row {
    position: relative;
    z-index: 1;
}

.closing-panel .eyebrow { color: #e9a88f; }

.closing-panel h2 {
    max-width: 700px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.closing-panel p:not(.eyebrow) {
    max-width: 680px;
    color: #d6e0e8;
    font-size: .98rem;
    line-height: 1.75;
}

.closing-panel .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1rem;
    border-radius: 3px;
    font-size: .86rem;
    font-weight: 750;
    transition: transform .2s ease, background .2s ease;
}

.closing-panel .btn-outline-light {
    color: var(--white);
    border-color: rgba(255,255,255,.45);
}

.closing-panel .btn-outline-light:hover {
    color: var(--blue-deep);
    background: var(--white);
}

/* Footer */
footer {
    padding-top: 2.1rem !important;
    padding-bottom: 2.1rem !important;
    border-top: 1px solid var(--line);
    background: #eeece4;
}

footer .container > .d-flex {
    align-items: center;
}

footer strong {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

footer .text-secondary { color: var(--muted) !important; }

footer a {
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}

footer a:hover {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.disclaimer {
    max-width: 900px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.65;
}

/* Motion is restrained and disabled when requested by the visitor */
@media (prefers-reduced-motion: no-preference) {
    .hero .col-lg-7,
    .hero .col-lg-5 {
        animation: rise-in .65s ease both;
    }

    .hero .col-lg-5 { animation-delay: .1s; }

    @keyframes rise-in {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 767.98px) {
    .navbar { min-height: 72px; }
    .navbar .container { flex-wrap: wrap; }
    .navbar-brand { font-size: 1.2rem; }
    .navbar-brand img { height: 36px; }
    .hero::before { display: none; }
    .hero > .container {
        padding-top: 3.8rem !important;
        padding-bottom: 4rem !important;
    }
    .hero h1 {
        max-width: 620px;
        font-size: clamp(2.8rem, 11vw, 4.4rem);
    }
    .flow-card {
        max-width: none;
        margin: .8rem .2rem 0;
        transform: none;
    }
    main > section.py-5,
    main > section.surface {
        padding-top: 3.7rem !important;
        padding-bottom: 3.7rem !important;
    }
    .closing-panel { border-radius: 3px; }
}

@media (max-width: 575.98px) {
    body { font-size: 15px; }
    .navbar .container { gap: .8rem; }
    .navbar-brand { gap: .55rem; }
    .nav-link-quiet { display: none !important; }
    .hero h1 { font-size: clamp(2.55rem, 12vw, 3.65rem); }
    .hero .lead { font-size: 1rem; }
    .hero .btn { width: 100%; }
    .flow-card { padding: 1.35rem 1.25rem 1.15rem; }
    .section-title { font-size: 2.25rem; }
    .card-soft { padding: 1.3rem; }
    .notice { padding: 1.3rem; }
    footer .container > .d-flex { align-items: flex-start; }
    footer .d-flex.flex-wrap { gap: .65rem 1rem !important; }
}

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