/* İkra Kababıyık — sworn translator & localization specialist
   Palette: unbleached paper, warm ink, claret, pine, ochre. */

:root {
    --paper: #F4EFE6;
    --paper-soft: #FBF8F2;
    --paper-deep: #EAE2D4;
    --ink: #191612;
    --ink-70: #4E483F;
    --ink-45: #837B6E;
    --line: #DCD3C3;
    --claret: #7A2B38;
    --claret-deep: #571C26;
    --pine: #1E4A43;
    --pine-soft: #2C6459;
    --ochre: #B5822A;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

    --wrap: 1220px;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --nav-h: 76px;
}

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

body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Paper grain — the one texture, kept below 4% so it never reads as noise. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

::selection { background: var(--claret); color: var(--paper-soft); }

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--claret);
    outline-offset: 3px;
}

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

/* ---------- Type ---------- */

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 96;
}

.display {
    font-size: clamp(2.75rem, 1.4rem + 6vw, 5.25rem);
    text-wrap: balance;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.display em {
    font-style: italic;
    color: var(--claret);
    font-variation-settings: 'opsz' 144;
}

.section-title {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
    max-width: 16ch;
    text-wrap: balance;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ochre);
    display: block;
    text-wrap: balance;
}

.lede {
    font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.62;
    color: var(--ink-70);
    max-width: 52ch;
}

.prose p {
    color: var(--ink-70);
    max-width: 62ch;
}

.prose p + p { margin-top: 1.35rem; }

/* ---------- Layout ---------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head .eyebrow { margin-bottom: 1rem; }

.rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

/* ---------- Skip link ---------- */

.skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    transform: translateY(-120%);
    z-index: 200;
    background: var(--claret);
    color: var(--paper-soft);
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(244, 239, 230, 0.78);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand .mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--claret);
    color: var(--paper-soft);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    flex: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.nav-links a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-70);
    padding-block: 0.35rem;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover { color: var(--claret); border-bottom-color: var(--claret); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.lang a {
    text-decoration: none;
    color: var(--ink-45);
    padding: 0.3rem 0.45rem;
    transition: color 0.2s ease;
}

.lang a:hover { color: var(--ink); }
.lang a[aria-current='page'] { color: var(--claret); font-weight: 600; }
.lang span { color: var(--line); }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    place-items: center;
}

.menu-toggle svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */

.hero {
    padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem);
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}

.hero .eyebrow { margin-bottom: 1.4rem; }
.hero .display { margin-bottom: 1.6rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

/* Credentials panel */

.panel {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.panel-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-45);
    margin-bottom: 1.1rem;
}

.pairs { display: grid; gap: 0.1rem; }

.pairs li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line);
}

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

.pairs .pair {
    font-family: var(--mono);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.pairs .pair b { color: var(--claret); font-weight: 500; }

.pairs .note {
    font-size: 0.8rem;
    color: var(--ink-45);
    text-align: right;
}

.stamp {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stamp-seal {
    flex: none;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1.5px solid var(--claret);
    border-radius: 50%;
    color: var(--claret);
    font-family: var(--mono);
    font-size: 0.5rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-7deg);
    opacity: 0.9;
}

.stamp-text { font-size: 0.85rem; color: var(--ink-70); }
.stamp-text strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid var(--claret);
    background: var(--claret);
    color: var(--paper-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--claret-deep); border-color: var(--claret-deep); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Trust strip ---------- */

.strip {
    border-block: 1px solid var(--line);
    background: var(--paper-deep);
}

.strip ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip li {
    padding: 1.75rem 1.5rem;
    border-left: 1px solid var(--line);
}

.strip li:first-child { border-left: 0; padding-left: 0; }

.strip .k {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-45);
    margin-bottom: 0.4rem;
    display: block;
}

.strip .v {
    display: block;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ---------- About ---------- */

.about .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-aside { align-self: start; }

@media (min-width: 901px) {
    .about-aside { position: sticky; top: calc(var(--nav-h) + 3rem); }
}

.about .panel { margin-top: 2.5rem; }

/* ---------- Services ---------- */

.services-list { border-top: 1px solid var(--line); }

.service {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease;
}

.service:hover { background: color-mix(in srgb, var(--paper-soft) 70%, transparent); }

.service-no {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ochre);
    letter-spacing: 0.06em;
    padding-top: 0.45rem;
}

.service h3 {
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
    transition: color 0.25s ease;
}

.service:hover h3 { color: var(--claret); }

.service ul {
    columns: 2;
    column-gap: 2.5rem;
}

.service ul li {
    font-size: 0.925rem;
    color: var(--ink-70);
    padding-left: 1.1rem;
    margin-bottom: 0.6rem;
    position: relative;
    break-inside: avoid;
}

.service ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 5px;
    height: 1px;
    background: var(--claret);
}

/* ---------- Localization band ---------- */

.localization {
    background: var(--pine);
    color: var(--paper-soft);
}

.localization .eyebrow { color: #C9A25A; }
.localization h2 { max-width: 20ch; }
.localization .lede { color: rgba(251, 248, 242, 0.72); }

.localization .section-head {
    align-items: start;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.formats li {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(251, 248, 242, 0.24);
    color: rgba(251, 248, 242, 0.88);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.formats li:hover {
    background: var(--paper-soft);
    border-color: var(--paper-soft);
    color: var(--pine);
}

.localization-foot {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(251, 248, 242, 0.18);
    font-size: 0.95rem;
    color: rgba(251, 248, 242, 0.8);
}

/* ---------- Contact ---------- */

.contact .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact-list { margin-top: 2.25rem; }

.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }

.contact-list a,
.contact-list .row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0.25rem;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.contact-list a:hover { color: var(--claret); padding-left: 0.75rem; }

.contact-list svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--claret);
}

.contact-list .label {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-45);
    margin-left: auto;
}

.wa {
    margin-top: 1.75rem;
    border-color: var(--pine);
    background: var(--pine);
    color: var(--paper-soft);
}

.wa:hover { background: var(--pine-soft); border-color: var(--pine-soft); }

/* Form */

.form { padding: clamp(1.75rem, 3.5vw, 2.75rem); }

.field { margin-bottom: 1.5rem; }

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-45);
    margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--sans);
    font-size: 0.975rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    appearance: none;
    transition: border-color 0.2s ease;
}

.field textarea { resize: vertical; min-height: 6.5rem; }

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23837B6E' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.2rem center;
    background-size: 0.7rem;
    padding-right: 1.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--claret);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-45); opacity: 0.7; }

.form .btn { width: 100%; justify-content: center; }

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-45);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Footer ---------- */

.footer {
    background: var(--ink);
    color: rgba(244, 239, 230, 0.7);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 2.5rem;
}

.footer h2 {
    font-size: 1.5rem;
    color: var(--paper);
    margin-bottom: 0.6rem;
}

.footer h3 {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 239, 230, 0.45);
    margin-bottom: 1rem;
}

.footer a { text-decoration: none; transition: color 0.2s ease; }
.footer .lang a[aria-current='page'] { color: var(--paper); }
.footer a:hover { color: var(--paper); }
.footer li { margin-bottom: 0.55rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(244, 239, 230, 0.14);
    font-size: 0.8rem;
    color: rgba(244, 239, 230, 0.45);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .strip ul { grid-template-columns: repeat(2, 1fr); }
    .strip li:nth-child(3) { border-left: 0; padding-left: 0; }
    .strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem var(--gutter) 1.5rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .nav-links.is-open { display: flex; }

    .nav-links a {
        padding-block: 0.9rem;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .nav-links a:hover { border-bottom-color: var(--line); }

    .menu-toggle { display: grid; }

    .hero .wrap,
    .about .wrap,
    .contact .wrap,
    .section-head,
    .footer-grid { grid-template-columns: minmax(0, 1fr); }

    .section-head { align-items: start; }
    .service { grid-template-columns: 2.25rem minmax(0, 1fr); }
    .service ul { grid-column: 2; columns: 1; }
    .footer-grid { gap: 2.5rem; }
}

@media (max-width: 560px) {
    .nav-right { gap: 0.6rem; }
    .lang a { padding: 0.3rem 0.25rem; }

    .strip ul { grid-template-columns: minmax(0, 1fr); }
    .strip li { border-left: 0; padding-inline: 0; }
    .strip li + li { border-top: 1px solid var(--line); }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .brand-name { display: none; }
}
