/*
 * layout.css - design tokens and the shared layout (PRONDI-UI-5, DESIGN.md "Calm precision").
 *
 * Hand-written plain CSS. It is NOT compiled from _sass. It loads last in Views/Shared/_Layout.cshtml, so it wins
 * over the legacy template styles. Everything here is own-origin (no third-party URL, KVKK).
 *
 * Contents: 1 tokens, 2 base, 3 focus and skip link, 4 buttons, 5 header and nav, 6 CTA band and footer, 7 Home, 8 About and Projects,
 * 9 Goeksper and Otosorgu product pages, 10 Contact, 11 reduced motion (it stays last: it must win over the page rules above).
 * Token names and values are the ones in DESIGN.md sections 4 to 6. No raw hex outside section 1.
 */

/* 1. Tokens ------------------------------------------------------------- */
:root {
    /* colour (DESIGN.md section 4) */
    --color-primary: #272F65;
    --color-primary-hover: #1C2350;
    --color-primary-contrast: #FFFFFF;
    --color-navy-900: #141A3D;
    --color-accent: #55BEC2;
    --color-link: #1F4FA8;
    --color-accent-strong: #0F6F76;
    --color-accent-tint: #E6F6F7;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F5F7FB;
    --color-text: #1A1F3D;
    --color-text-muted: #565B75;
    --color-placeholder: #666D8A;
    --color-on-dark: #FFFFFF;
    --color-on-dark-muted: #B7BCD6;
    --color-border: #DFE3EE;
    --color-border-strong: #8A91AB;
    --color-focus: #1F5FBF;
    --color-focus-on-dark: #7FD6DA;
    --color-success: #166B4A;
    --color-success-bg: #E8F5EE;
    --color-warning: #8A4B08;
    --color-warning-bg: #FDF1D8;
    --color-danger: #B42318;
    --color-danger-bg: #FDECEA;
    --color-info: #1F5FBF;
    --color-info-bg: #E4EEFD;

    /* type (section 5); sizes drop at 768 px, see the media query below */
    --font-sans: "Yorkten", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
    --fs-display: 3.5rem;
    --lh-display: 1.08;
    --fs-h1: 2.75rem;
    --lh-h1: 1.12;
    --fs-h2: 2rem;
    --lh-h2: 1.2;
    --fs-h3: 1.375rem;
    --lh-h3: 1.3;
    --fs-lead: 1.1875rem;
    --lh-lead: 1.55;
    --fs-body: 1rem;
    --lh-body: 1.6;
    --fs-small: 0.875rem;
    --lh-small: 1.5;
    --fs-eyebrow: 0.8125rem;

    /* spacing (section 6) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --section-pad: var(--space-9);

    /* radius and shadow (section 6) */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-1: 0 1px 2px rgba(20, 26, 61, .06), 0 1px 1px rgba(20, 26, 61, .04);
    --shadow-2: 0 8px 24px rgba(20, 26, 61, .10);
    --shadow-3: 0 16px 48px rgba(20, 26, 61, .16);

    /* z-index scale */
    --z-base: 0;
    --z-header: 100;
    --z-drawer: 200;
    --z-dialog: 300;

    /* layout (section 7) */
    --container: 1200px;
    --gutter: var(--space-5);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Legacy template tokens now point at the new ones. The page bodies (UI-6 to UI-10) still read them;
       each is removed when the last page stops using it. */
    --themedarkblue: var(--color-primary);
    --themeblue: var(--color-accent);
    --graydark: var(--color-text-muted);
}

@media (max-width: 767.98px) {
    :root {
        --fs-display: 2.25rem;
        --lh-display: 1.12;
        --fs-h1: 2rem;
        --lh-h1: 1.15;
        --fs-h2: 1.625rem;
        --lh-h2: 1.25;
        --fs-h3: 1.25rem;
        --fs-lead: 1.0625rem;
        --section-pad: var(--space-7);
        --header-h: 64px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --gutter: var(--space-4);
    }
}

/* 2. Base --------------------------------------------------------------- */
html {
    /* The closed mobile drawer sits off-screen; without this a phone browser widens the layout viewport to fit it. */
    overflow-x: hidden;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--color-text);
    background: var(--color-surface);
}

body[bodytype="inside"] {
    padding-top: var(--header-h);
}

[id] {
    scroll-margin-top: 88px;
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    font-family: var(--font-sans);
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: 700;
}

h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 600;
}

h4 {
    line-height: var(--lh-h3);
}

p {
    text-wrap: pretty;
}

strong, b {
    font-weight: 700;
}

img {
    max-width: 100%;
}

.site-container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.eyebrow {
    display: block;
    margin: 0 0 var(--space-3);
    font-size: var(--fs-eyebrow);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-accent-strong);
}

.eyebrow--on-dark {
    color: var(--color-accent);
}

/* The "< word />" bracket motif of the brand. */
.code-accent::before,
.code-accent::after {
    font-family: var(--font-mono);
    color: var(--color-accent);
}

.code-accent::before {
    content: "<";
    margin-right: .2em;
}

.code-accent::after {
    content: "/>";
    margin-left: .2em;
}

/* 3. Focus and skip link ------------------------------------------------ */
/* The template CSS sets a:focus and :focus to outline 0; these rules restore a visible ring for keyboard focus. */
html :focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Bootstrap's .form-control:focus (0,2,0) resets outline and beats the rule above, so form fields need their own. */
.form-control:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--color-focus-on-dark);
}

.skip-link {
    position: fixed;
    top: var(--space-2);
    left: var(--space-2);
    z-index: calc(var(--z-dialog) + 1);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-3);
    transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline-color: var(--color-focus);
}

#main-content:focus {
    outline: none;
}

/* 4. Buttons (DESIGN.md 8.1) -------------------------------------------- */
.p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-5);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out,
        box-shadow 150ms ease-out, transform 150ms ease-out;
}

.p-btn [class^="feather-"],
.p-btn [class*=" feather-"] {
    font-size: 16px;
    line-height: 1;
}

.p-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.p-btn:active {
    transform: none;
    box-shadow: none;
}

.p-btn[disabled],
.p-btn[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.p-btn--lg {
    min-height: 52px;
    padding: 0 var(--space-6);
}

.p-btn--lg [class^="feather-"],
.p-btn--lg [class*=" feather-"] {
    font-size: 20px;
}

.p-btn--primary {
    background: var(--color-primary);
    color: var(--color-primary-contrast);
}

.p-btn--primary:hover {
    background: var(--color-primary-hover);
    color: var(--color-primary-contrast);
}

.p-btn--secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.p-btn--secondary:hover {
    background: var(--color-accent-tint);
    color: var(--color-primary);
}

.p-btn--on-dark {
    background: var(--color-accent);
    color: var(--color-navy-900);
}

.p-btn--on-dark:hover {
    background: var(--color-accent);
    color: var(--color-navy-900);
}

.p-btn--outline-dark {
    background: transparent;
    border-color: var(--color-on-dark);
    color: var(--color-on-dark);
}

.p-btn--outline-dark:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--color-on-dark);
}

/* 5. Header and navigation (DESIGN.md 8.2) ------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: var(--header-h);
    background: var(--color-primary);
    color: var(--color-on-dark);
    transition: box-shadow 200ms ease-out;
}

.site-header[sticky="on"] {
    box-shadow: var(--shadow-2);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    height: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.site-header__logo,
.site-nav__logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    border-radius: var(--radius-sm);
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 32px;
}

.site-nav__logo img {
    display: block;
    width: auto;
    height: 30px;
}

.site-nav {
    overscroll-behavior: contain;
    display: flex;
    align-items: center;
    flex: 1;
    gap: var(--space-5);
}

.site-nav__head {
    display: none;
}

.site-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--color-on-dark);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

/* 2 px accent underline: current page always, other links on hover (transform only). */
.site-nav__list a::after {
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 6px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms var(--ease);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav__list a[aria-current="page"] {
    font-weight: 600;
}

.site-nav__cta {
    flex: none;
    white-space: nowrap;
}

.site-header__toggle,
.site-nav__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-on-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease-out;
}

.site-header__toggle:hover,
.site-nav__close:hover {
    background: rgba(255, 255, 255, .1);
}

.site-overlay {
    display: none;
}

/* Below lg the nav becomes a right-side drawer. */
@media (max-width: 991.98px) {
    .site-header__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-overlay {
        position: fixed;
        inset: 0;
        z-index: calc(var(--z-drawer) - 1);
        display: block;
        background: rgba(20, 26, 61, .6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 200ms ease-out, visibility 0s linear 200ms;
    }

    .site-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        transition: opacity 200ms ease-out, visibility 0s;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-drawer);
        flex-direction: column;
        align-items: stretch;
        flex: none;
        gap: var(--space-4);
        width: min(320px, 88vw);
        padding: 0 var(--space-5) var(--space-5);
        overflow-y: auto;
        background: var(--color-primary);
        box-shadow: var(--shadow-3);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 300ms var(--ease), visibility 0s linear 300ms;
    }

    .site-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 300ms var(--ease), visibility 0s;
    }

    .site-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--header-h);
        flex: none;
    }

    .site-nav__close {
        display: inline-flex;
        margin-right: calc(-1 * var(--space-2));
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex: 1;
        gap: 0;
    }

    .site-nav__list a {
        display: flex;
        width: 100%;
        min-height: 48px;
        padding: 0 var(--space-4);
        font-size: 1.0625rem;
    }

    .site-nav__list a::after {
        top: 8px;
        right: auto;
        bottom: 8px;
        left: 0;
        width: 3px;
        height: auto;
        transform: scaleY(0);
        transform-origin: center top;
    }

    .site-nav__list a:hover::after,
    .site-nav__list a[aria-current="page"]::after {
        transform: scaleY(1);
    }

    .site-nav__list a[aria-current="page"] {
        background: rgba(255, 255, 255, .08);
    }

    .site-nav__cta {
        width: 100%;
    }

    html.nav-locked {
        overflow: hidden;
    }
}

/* 6. CTA band and footer (DESIGN.md 8.3, 19 rows 06 and 07) -------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-pad);
    background: var(--color-primary);
    color: var(--color-on-dark);
}

.cta-band::after {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: min(900px, 58%);
    aspect-ratio: 9 / 4;
    background: url("../contents/footer-banner.svg") no-repeat right top / 100% auto;
    content: "";
    pointer-events: none;
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
}

.cta-band__text {
    max-width: 30rem;
}

.cta-band h2 {
    margin: 0;
    color: var(--color-on-dark);
}

.cta-band p {
    margin: var(--space-3) 0 0;
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
    color: var(--color-on-dark-muted);
}

.site-footer {
    background: var(--color-primary);
    color: var(--color-on-dark-muted);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
}

.cta-band + .site-footer__main {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__main {
    padding-block: var(--space-8);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: var(--space-7) var(--space-8);
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 32px;
}

.site-footer p {
    margin: 0;
    max-width: 34rem;
}

.site-footer__title {
    margin: 0 0 var(--space-4);
    color: var(--color-on-dark);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li + li {
    margin-top: var(--space-1);
}

.site-footer a:not(.p-btn) {
    color: var(--color-on-dark-muted);
    text-decoration: none;
}

.site-footer__list a,
.site-footer__bar a {
    display: inline-block;
    padding: var(--space-1) 0;
}

@media (max-width: 991.98px) {
    .site-footer__list a,
    .site-footer__bar a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.site-footer a:not(.p-btn):hover {
    color: var(--color-on-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius-full);
    color: var(--color-on-dark);
    font-size: 18px;
    transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.site-footer__socials a:not(.p-btn):hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.site-footer__contact [class^="feather-"] {
    flex: none;
    margin-top: 3px;
    color: var(--color-accent);
    font-size: 16px;
}

.site-footer__bar {
    background: var(--color-navy-900);
    padding-block: var(--space-4);
}

.site-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-5);
}

.site-footer__bar ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .site-footer__main {
        padding-block: var(--space-7);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .cta-band::after {
        opacity: .35;
    }

    .cta-band .p-btn {
        width: 100%;
    }
}

/* 7. Home page (PRONDI-UI-6) -------------------------------------------- */
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding-block: var(--space-9);
    overflow: hidden;
    background: var(--color-navy-900);
    color: var(--color-on-dark);
}

/* Navy duotone photo: the photo sits at low opacity, a navy-900 gradient keeps the text side dark. */
.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .4;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--color-navy-900) 0%, var(--color-navy-900) 35%, rgba(20, 26, 61, .6) 100%);
    content: "";
}

.home-hero .site-container {
    position: relative;
}

.home-hero__content {
    max-width: 44rem;
}

.home-hero__title {
    margin: 0 0 var(--space-5);
    color: var(--color-on-dark);
    font-size: var(--fs-display);
    line-height: var(--lh-display);
    letter-spacing: -.02em;
}

.home-hero__lead {
    max-width: 38rem;
    margin: 0 0 var(--space-6);
    color: var(--color-on-dark);
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.home-section {
    padding-block: var(--section-pad);
    background: var(--color-surface);
}

.home-section--alt {
    background: var(--color-surface-alt);
}

.home-section h2 {
    margin: 0 0 var(--space-6);
}

.home-lead {
    max-width: 65ch;
    margin: 0;
    color: var(--color-text);
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
}

/* Bold/light title pairing (DESIGN.md section 5, weight 300 for the light half). */
.home-section .home-title-pair {
    margin-bottom: var(--space-5);
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    font-weight: 300;
}

.home-title-pair strong {
    font-weight: 700;
}

.home-about {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

/* Motto lines: set close together as one quote, with an accent rule. */
.home-motto {
    margin: 0;
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    border-left: 3px solid var(--color-accent-strong);
    color: var(--color-primary);
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 500;
}

.home-motto p {
    margin: 0;
}

.home-motto p + p {
    margin-top: var(--space-1);
}

.home-motto strong {
    display: inline-block;
    margin-top: var(--space-3);
}

.home-cards {
    display: grid;
    gap: var(--gutter);
}

.home-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-1);
    transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}

/* Only cards that are links lift on hover (DESIGN.md 8.4). */
.home-card--product {
    position: relative;
}

.home-card--product:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-accent-strong) 40%, transparent);
    box-shadow: var(--shadow-2);
}

.home-card h3 {
    margin: 0 0 var(--space-2);
}

.home-card p {
    max-width: 65ch;
    margin: 0;
    color: var(--color-text-muted);
}

.home-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-full);
    background: var(--color-accent-tint);
    color: var(--color-accent-strong);
    font-size: 24px;
    line-height: 1;
}

.home-card__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
    margin-bottom: var(--space-5);
}

/* Text link with a right arrow, pinned to the card bottom so cards in a row line up. */
.home-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    position: static; /* legacy CSS sets a { position: relative }; the stretched ::after must anchor to the card */
    min-height: 44px;
    margin-top: auto;
    padding-top: var(--space-4);
    color: var(--color-accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.home-card__link:hover,
.home-card--product:hover .home-card__link {
    color: var(--color-accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Stretched link: the whole card is one target; the focus ring is drawn around the card. */
.home-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}

.home-card__link:focus-visible {
    outline: none;
}

.home-card__link:focus-visible::after {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.home-card__link [class^="feather-"] {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .home-about {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .home-cards--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        min-height: 0;
        padding-block: var(--space-8);
    }

    .home-hero::before {
        background: linear-gradient(180deg, var(--color-navy-900) 0%, rgba(20, 26, 61, .86) 100%);
    }

    .home-hero__actions .p-btn {
        width: 100%;
    }

    .home-cards--2 {
        grid-template-columns: 1fr;
    }

    .home-card {
        padding: var(--space-5);
    }

    .home-title-pair {
        font-size: var(--fs-h2);
        line-height: var(--lh-h2);
    }
}

/* 8. About and Projects (PRONDI-UI-7) ------------------------------------ */
/* Page head: a quiet band with the one h1 of the page. */
.page-head {
    padding-block: var(--space-8) var(--space-7);
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-head h1 {
    margin: 0;
}

/* Card title that is an h2 (Projects has no section heading above the cards). */
.home-section .home-card__title {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 600;
}

/* Content sections alternate surface and surface-alt instead of hairline dividers. */
.about-section {
    padding-block: var(--section-pad);
    background: var(--color-surface);
}

.about-section--alt {
    background: var(--color-surface-alt);
}

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
}

.about-split--reverse .about-media {
    order: -1;
}

.about-text h2 {
    margin: 0 0 var(--space-4);
}

.about-text p {
    max-width: 65ch;
    margin: 0;
    color: var(--color-text-muted);
}

.about-text p + p {
    margin-top: var(--space-4);
}

.about-text .about-lead {
    margin-bottom: var(--space-5);
    color: var(--color-primary);
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
    font-weight: 500;
}

.about-media img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin-inline: auto;
}

/* Bullet list with the 6 px square marker (DESIGN.md 8.8). */
.about-list {
    max-width: 65ch;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-text-muted);
}

.about-list li {
    position: relative;
    padding-left: var(--space-5);
}

.about-list li + li {
    margin-top: var(--space-3);
}

.about-list li::before {
    position: absolute;
    top: .7em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-accent-strong);
    content: "";
}

.about-actions {
    margin-top: var(--space-6);
}

/* Values: plain icon + h3 + sentence blocks on the band, no card borders (DESIGN.md 8.4). */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7) var(--gutter);
    margin: var(--space-8) 0 0;
    padding: 0;
    list-style: none;
}

.about-values h3 {
    margin: 0 0 var(--space-2);
}

.about-values p {
    max-width: 65ch;
    margin: 0;
    color: var(--color-text-muted);
}

@media (max-width: 991.98px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about-split--reverse .about-media {
        order: 0;
    }

    .about-media img {
        max-width: 320px;
    }

    .about-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: var(--space-7);
    }
}

@media (max-width: 767.98px) {
    .page-head {
        padding-block: var(--space-7) var(--space-6);
    }
}

@media (max-width: 575.98px) {
    .about-values {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about-actions .p-btn {
        width: 100%;
    }
}

/* 9. Goeksper and Otosorgu product pages (PRONDI-UI-8) ------------------- */
/* Hero: the page head with a text column and one illustration; it reuses .about-split, .about-text and .about-media. */
.page-head--product {
    padding-block: var(--space-8);
}

.page-head--product h1 {
    margin: 0 0 var(--space-5);
}

.page-head--product .about-media img {
    max-width: 400px;
}

/* Numbered steps: a primary circle with the number, text beside it. */
.product-steps {
    max-width: 65ch;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: product-step;
    color: var(--color-text-muted);
}

.product-steps li {
    position: relative;
    min-height: 40px;
    padding-left: 56px;
    counter-increment: product-step;
}

.product-steps li + li {
    margin-top: var(--space-4);
}

.product-steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-primary-contrast);
    font-weight: 600;
    line-height: 1;
    content: counter(product-step);
}

.product-steps strong {
    color: var(--color-text);
}

.about-text .product-note {
    margin-top: var(--space-5);
}

/* Cards that hold vision, mission and goals: not links, so no hover lift. */
.product-card .about-list {
    width: 100%;
}

.product-card p + p {
    margin-top: var(--space-3);
}

/* Heading column on the left, running text or list on the right. */
.product-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--space-8);
    align-items: start;
}

.product-split .about-text h2 {
    margin: 0;
}

@media (min-width: 992px) {
    .about-values--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .product-split {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .page-head--product .about-media img {
        max-width: 280px;
    }
}

@media (max-width: 767.98px) {
    .page-head--product {
        padding-block: var(--space-7);
    }
}

/* 10. Contact page (PRONDI-UI-9) ------------------------------------------ */
/* Details on the left, form card on the right from lg; one column below. It reuses .page-head and .about-section. */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: var(--space-8);
    align-items: start;
}

.contact-details__title {
    margin: 0 0 var(--space-6);
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-item + .contact-item {
    margin-top: var(--space-5);
}

.contact-item__icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-accent-tint);
    color: var(--color-accent-strong);
    font-size: 20px;
    line-height: 1;
}

.contact-item__body {
    min-width: 0;
    padding-top: var(--space-1);
}

.contact-item__body h3 {
    margin: 0 0 var(--space-1);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 600;
}

.contact-item__link {
    display: inline-block;
    padding-block: var(--space-1);
    color: var(--color-link);
    font-size: var(--fs-lead);
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: .2em;
    overflow-wrap: anywhere;
    transition: color 150ms ease-out;
}

.contact-item__link:hover {
    color: var(--color-primary);
}

.contact-address {
    margin: 0;
    max-width: 36ch;
    color: var(--color-text-muted);
    font-style: normal;
}

/* Form card */
.contact-card {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-1);
}

.contact-card h2 {
    margin: 0 0 var(--space-5);
}

.contact-form .form-field + .form-field {
    margin-top: var(--space-5);
}

.contact-form label {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--color-text);
    font-weight: 500;
}

.form-required {
    color: var(--color-danger);
}

.contact-form .form-control {
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    box-shadow: none;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 144px;
    resize: vertical;
}

.contact-form .form-control::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
}

.contact-form .form-control:focus {
    border-color: var(--color-focus);
    box-shadow: none;
}

.contact-form .form-control[aria-invalid="true"] {
    border-width: 1.5px;
    border-color: var(--color-danger);
    padding: calc(var(--space-3) - .5px) calc(var(--space-4) - .5px);
}

.contact-form .form-control[readonly] {
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}

.form-error {
    display: none;
    align-items: flex-start;
    gap: var(--space-2);
    margin: var(--space-2) 0 0;
    color: var(--color-danger);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
}

.form-error.is-visible {
    display: flex;
}

.form-error i {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1;
}

/* Alert region: always in the DOM (never display:none), so announcements work; it only gets a box once it has a state. */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin: 0;
}

.form-alert[hidden] {
    display: none;
}

.form-alert--danger,
.form-alert--info,
.form-alert--success {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.form-alert--danger {
    border-color: var(--color-danger);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.form-alert--info {
    border-color: var(--color-info);
    background: var(--color-info-bg);
    color: var(--color-info);
}

.form-alert--success {
    margin-bottom: 0;
    border-color: var(--color-success);
    background: var(--color-success-bg);
    color: var(--color-success);
}

.form-alert > i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 20px;
    line-height: 1;
}

.form-alert__body {
    min-width: 0;
}

.form-alert__body p {
    margin: 0;
}

.form-alert__title {
    font-weight: 600;
}

.form-alert__body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-alert__body li + li {
    margin-top: var(--space-1);
}

.form-alert__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.contact-submit {
    margin-top: var(--space-6);
}

/* Sending: the loader icon spins (transform only); the button stays focusable. */
.contact-submit[aria-disabled="true"] {
    opacity: .7;
    cursor: progress;
}

.contact-submit.is-loading i {
    animation: contact-spin 1s linear infinite;
}

@keyframes contact-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }
}

@media (max-width: 575.98px) {
    .contact-card {
        padding: var(--space-5);
    }

    .contact-submit {
        width: 100%;
    }
}

/* 11. Legal pages: KVKK and Privacy (PRONDI-UI-10, DESIGN.md 8.9) -------- */
/* Plain frame: one 72ch column on the surface, no hero, no entrance motion. The legal text itself is not styled beyond type. */
:root {
    /* About 72ch of the 17 px legal text; shared so the h1 lines up with the column. */
    --legal-w: 51.5rem;
}

.page-head--legal h1 {
    max-width: var(--legal-w);
    margin-inline: auto;
    font-size: 2rem;
    line-height: 1.2;
}

.legal-page {
    padding-block: var(--space-8);
}

.legal {
    max-width: var(--legal-w);
    margin-inline: auto;
    color: var(--color-text);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.legal p {
    margin: 0 0 var(--space-4);
    text-wrap: wrap;
}

.legal .form-alert__body p {
    margin: 0;
}

.legal ul {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-5);
}

.legal li + li {
    margin-top: var(--space-2);
}

.legal a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* State notice above the text (no key, invalid link, already approved). */
.legal__notice {
    margin-bottom: var(--space-6);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.legal__notice .form-alert__body p + p {
    margin-top: var(--space-1);
}

/* Approval area below the text. */
.legal__approval {
    margin-top: var(--space-7);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-alt);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.legal__approval-note[hidden] {
    display: none;
}

.legal__approval-note {
    margin-bottom: var(--space-5);
}

/* Stays rendered when empty (live region): no box, no gap, so screen readers announce the first message. */
.legal__result:empty {
    margin-bottom: 0;
}

.legal__result {
    margin-bottom: var(--space-5);
}

.legal__result .form-alert {
    margin-bottom: 0;
}

/* After a successful approval the button is hidden, so the panel is the last element in the card. */
.legal__submit[hidden] + .legal__result,
.legal__approval-note[hidden] + .legal__result {
    margin-bottom: 0;
}

.legal__submit[hidden] {
    display: none;
}

.legal__submit[aria-disabled="true"] {
    opacity: .7;
    cursor: progress;
}

.legal__submit.is-loading i {
    animation: contact-spin 1s linear infinite;
}

@media (max-width: 575.98px) {
    .legal-page {
        padding-block: var(--space-7);
    }

    .legal {
        font-size: var(--fs-body);
    }

    .legal__approval {
        padding: var(--space-5);
    }

    .legal__submit {
        width: 100%;
    }
}

@media print {
    .site-header,
    .site-footer,
    .skip-link,
    .legal__approval,
    .legal__notice {
        display: none !important;
    }

    body[bodytype="inside"] {
        padding-top: 0;
    }

    .page-head {
        background: none;
        border: 0;
    }

    .page-head h1,
    .legal {
        color: #000;
    }
}

/* 12. Reduced motion (DESIGN.md section 9) ------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .legal__submit.is-loading i {
        animation: none;
    }

    .contact-item__link {
        transition: none !important;
    }

    .contact-submit.is-loading i {
        animation: none;
    }

    .site-header,
    .site-nav,
    .site-overlay,
    .site-nav__list a::after,
    .site-header__toggle,
    .site-nav__close,
    .site-footer__socials a,
    .p-btn,
    .home-card {
        transition: none !important;
    }

    .home-card--product:hover,
    .p-btn:hover {
        transform: none;
    }

    .site-nav__list a::after {
        transform: none;
    }

    .site-nav__list a:not(:hover):not([aria-current="page"])::after {
        opacity: 0;
    }
}
