/* Visakolog – ABD vize danışmanlığı (39 Turizm)
   Postcard / airmail vernacular: navy ink, Liberty patina, airmail red. */

:root {
    --ink: #14213d;
    --ink-soft: #2c3a58;
    --patina: #4f8f7f;
    --patina-deep: #2f6b5d;
    --patina-wash: #e3efeb;
    --paper: #f3f6f4;
    --white: #ffffff;
    --signal: #c1272d;
    --muted: #556070;
    --line: #d5ddd9;

    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --font-hand: "Caveat", "Comic Sans MS", cursive;

    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.5rem;
    --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
    --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem);

    --wrap: 72rem;
    --radius-s: 6px;
    --radius-m: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body.vk {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--patina-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--patina); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-text { max-width: 46rem; }

.skip {
    position: absolute; left: -999px; top: 0.5rem; z-index: 100;
    background: var(--ink); color: var(--white); padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; padding: 0.7rem 1.4rem;
    border-radius: 999px; border: 2px solid transparent;
    font: 600 var(--step-0)/1 var(--font-body);
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--patina-deep); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-wa { background: var(--patina-deep); color: var(--white); min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--step--1); }
.btn-wa:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(243, 246, 244, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--patina); }
.brand-light .brand-mark { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--patina); }
.brand-name { font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand-light { color: var(--white); }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--patina); }
@media (max-width: 52rem) {
    .head-row { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem; }
    .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 1.25rem; padding-bottom: 0.15rem; }
    .head-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(1rem, 3vw, 2.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-kicker { color: var(--patina-deep); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 11ch; }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2.25rem; }
.hero-facts { list-style: none; padding: 1.25rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.hero-facts strong { color: var(--ink); font-weight: 700; }

/* The postcard: the one loud element on the page. */
.postcard {
    margin: 0;
    padding: 12px;
    border-radius: var(--radius-s);
    background:
        repeating-linear-gradient(135deg,
            var(--signal) 0 18px, var(--white) 18px 30px,
            var(--ink) 30px 48px, var(--white) 48px 60px);
    box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.45);
    transform: rotate(2.5deg);
    animation: card-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(30px) rotate(7deg); }
    to { opacity: 1; transform: rotate(2.5deg); }
}
.pc-inner { background: #fbfcfa; border-radius: 3px; overflow: hidden; }
.pc-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 58% center; }
.pc-strip { position: relative; padding: 1rem 8.5rem 1.1rem 1.25rem; min-height: 5.5rem; }
.pc-note { font: 500 clamp(1.2rem, 1rem + 0.7vw, 1.5rem)/1.2 var(--font-hand); color: #1f3a8a; margin: 0; }
.pc-stamp {
    position: absolute; right: 1.1rem; top: -2.6rem; width: 5.2rem;
    transform: rotate(4deg); filter: drop-shadow(0 4px 6px rgba(20, 33, 61, 0.25));
}
.pc-stamp img { width: 100%; height: auto; }
.pc-postmark {
    position: absolute; right: 4.6rem; top: -1.4rem;
    width: 4.8rem; height: 4.8rem; border-radius: 50%;
    border: 2px solid rgba(193, 39, 45, 0.75); color: rgba(193, 39, 45, 0.85);
    display: grid; place-items: center; text-align: center;
    font: 700 0.6rem/1.25 var(--font-body); letter-spacing: 0.04em;
    transform: rotate(-14deg);
}

@media (max-width: 60rem) {
    .hero-grid { grid-template-columns: 1fr; }
    .postcard { max-width: 34rem; transform: rotate(1.5deg); }
    @keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(4deg); } to { opacity: 1; transform: rotate(1.5deg); } }
}
@media (max-width: 30rem) {
    .pc-strip { padding-right: 6.5rem; }
    .pc-stamp { width: 4.2rem; top: -2.2rem; }
    .pc-postmark { right: 3.6rem; width: 4rem; height: 4rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-title { font-size: var(--step-3); max-width: 22ch; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head .section-title { margin: 0; }
.text-link { font-weight: 600; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 2rem; }
.service { padding: 1.5rem 0 1.25rem; border-top: 2px solid var(--ink); }
.service h3 { font-size: var(--step-2); margin-bottom: 0.35em; }
.service p { color: var(--ink-soft); max-width: 32rem; }
@media (max-width: 44rem) { .services { grid-template-columns: 1fr; } }

/* Promise / motto */
.section-promise { background: var(--patina-wash); }
.promise-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.motto { margin: 0; position: relative; padding-top: 2.5rem; }
.motto::before {
    content: "“"; position: absolute; top: -1.5rem; left: -0.3rem;
    font: 800 7rem/1 var(--font-display); color: var(--patina);
}
.motto p { margin: 0; font: 500 clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem)/1.2 var(--font-hand); color: var(--ink); }
.promise-text p { color: var(--ink-soft); max-width: 36rem; }
@media (max-width: 52rem) { .promise-grid { grid-template-columns: 1fr; } }

/* Process: an actual sequence, drawn as a flight route */
.section-route { background: var(--white); border-block: 1px solid var(--line); }
.route { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.route::before {
    content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.4rem;
    border-top: 2px dashed var(--patina);
}
.route li { counter-increment: step; position: relative; }
.route li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 2.8rem; height: 2.8rem; border-radius: 50%;
    background: var(--ink); color: var(--white);
    font: 700 1.05rem/1 var(--font-display);
    position: relative; margin-bottom: 1rem;
    box-shadow: 0 0 0 6px var(--white);
}
.route li:last-child::before { background: var(--patina-deep); }
.route h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.route p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 56rem) {
    .route { grid-template-columns: 1fr; gap: 0; }
    .route::before { left: 1.4rem; right: auto; top: 1rem; bottom: 1rem; border-top: 0; border-left: 2px dashed var(--patina); }
    .route li { display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1.25rem; padding-bottom: 1.5rem; }
    .route li::before { grid-row: span 2; margin: 0; }
    .route li:last-child { padding-bottom: 0; }
}

/* Trust: ink panel */
.section-ink { background: var(--ink); color: #dfe6ef; }
.section-ink .section-title { color: var(--white); }
.section-ink a { color: #9fd3c3; }
.trust-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.trust-lead { font-size: var(--step-1); max-width: 30rem; }
.trust-list { margin: 0; display: grid; gap: 1.75rem; }
.trust-list div { padding-left: 1.25rem; border-left: 3px solid var(--patina); }
.trust-list dt { font: 700 var(--step-1)/1.2 var(--font-display); color: var(--white); margin-bottom: 0.3rem; }
.trust-list dd { margin: 0; }
@media (max-width: 52rem) { .trust-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.quote { margin: 0; padding: 1.5rem; background: var(--white); border-radius: var(--radius-m); border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 1rem; font-size: var(--step-1); line-height: 1.45; }
.quote figcaption { color: var(--muted); font-size: var(--step--1); }
.quote figcaption strong { color: var(--ink); }
.quote figcaption span { display: block; color: var(--patina-deep); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.75rem; }
.post-card a { display: block; text-decoration: none; color: inherit; }
.post-card img { border-radius: var(--radius-m); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--patina-wash); }
.post-card-body { padding-top: 1rem; }
.post-card h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--patina); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.post-card p { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 0.5rem; }
.post-cat { color: var(--patina-deep) !important; font-weight: 700; font-size: var(--step--1); margin-bottom: 0.35rem !important; }
.post-meta { color: var(--muted); font-size: var(--step--1); display: flex; gap: 1rem; flex-wrap: wrap; }

/* Downloads teaser */
.section-paper { background: var(--patina-wash); }
.downloads-teaser { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.file-list a {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    background: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius-m);
    text-decoration: none; color: var(--ink); border: 1px solid transparent;
}
.file-list a:hover { border-color: var(--patina); }
.file-format { font: 700 0.75rem/1 var(--font-display); color: var(--white); background: var(--signal); padding: 0.4rem 0.5rem; border-radius: 4px; }
.file-title { font-weight: 600; }
.file-size { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 52rem) { .downloads-teaser { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
    font: 700 var(--step-1)/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); max-width: 44rem; padding-bottom: 0.5rem; }
@media (max-width: 52rem) { .faq-wrap { grid-template-columns: 1fr; gap: 1rem; } }

/* Contact */
.section-contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-direct { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; font: 700 var(--step-1)/1.3 var(--font-display); }
.contact-direct a { color: var(--ink); }
.lead-form { display: grid; gap: 1rem; background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-m); }
.lead-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: var(--step--1); }
.lead-form input, .lead-form select, .lead-form textarea {
    font: inherit; font-size: var(--step-0); color: var(--ink);
    width: 100%; padding: 0.7rem 0.85rem;
    background: var(--white); border: 1px solid #b8c3be; border-radius: var(--radius-s);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid rgba(79, 143, 127, 0.35); border-color: var(--patina-deep); }
.lead-form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: var(--step--1); margin: 0; }
/* Response returned by /api/leads (uses the main site's utility classes) */
.form-slot > div { background: var(--patina-wash); border-radius: var(--radius-m); padding: 2rem; text-align: center; }
.form-slot > div h4 { font: 700 var(--step-2)/1.2 var(--font-display); margin: 0.5rem 0; }
.form-slot > div > div { font-size: 1.5rem; color: var(--patina-deep); }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.page-head h1, .article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.page-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; }
.crumbs { display: flex; gap: 0.5rem; font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }

.article-head { padding-top: clamp(2.5rem, 5vw, 4rem); }
.article-cover { margin-top: 2rem; }
.article-cover img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.prose { padding-block: 2.5rem 1rem; font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--patina-deep); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; background: var(--patina-wash); border-left: 4px solid var(--patina); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); }
.prose strong { color: var(--ink); }

.cta-box { background: var(--ink); color: #dfe6ef; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-m); }
.cta-box h2 { color: var(--white); font-size: var(--step-2); }
.cta-box .btn { margin: 0.25rem 0.5rem 0 0; }
.cta-box .btn-primary { background: var(--white); color: var(--ink); }
.cta-box .btn-primary:hover { background: #9fd3c3; color: var(--ink); }
.cta-box .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.cta-box .btn-ghost:hover { background: var(--white); color: var(--ink); }

.download-cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.download-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: var(--white); padding: 1.5rem; border-radius: var(--radius-m); border: 1px solid var(--line); }
.download-icon { width: 3.5rem; height: 4.4rem; border-radius: 4px; background: var(--signal); color: var(--white); display: grid; place-items: end center; padding-bottom: 0.6rem; font: 700 0.8rem/1 var(--font-display); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.download-body h2 { font-size: var(--step-1); margin-bottom: 0.3em; }
.download-body p { margin-bottom: 0.3rem; color: var(--ink-soft); }
@media (max-width: 40rem) { .download-card { grid-template-columns: auto 1fr; } .download-card .btn { grid-column: 1 / -1; } }
.kvkk-note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--patina); border-radius: var(--radius-s); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; max-width: 52rem; }
.kvkk-note h2 { font-size: var(--step-1); margin-bottom: 0.4em; }
.kvkk-note p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.fine-print { color: var(--muted); font-size: var(--step--1); max-width: 46rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #c8d2df; padding: 3.5rem 0 2rem; font-size: var(--step--1); margin-top: 0; }
.site-foot a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.foot-brand p { max-width: 26rem; margin-top: 1rem; }
.foot-title { font: 700 var(--step-0)/1.2 var(--font-display); color: var(--white); margin-bottom: 0.75rem; }
.site-foot address { font-style: normal; margin-bottom: 0.75rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.5rem; padding-top: 1.5rem; color: #9aa7b8; }
.foot-note p { max-width: 52rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

@media print {
    .site-head, .site-foot, .cta-box, .lead-form, .postcard { display: none !important; }
    body.vk { background: #fff; }
}
