/* Yildirim Hafriyat - site styles */

:root {
    --navy: #181544;
    --navy-dark: #100e30;
    --red: #af1a20;
    --red-bright: #d4232a;
    --text: #2b2d3a;
    --muted: #6b6e7f;
    --line: #e4e5ec;
    --bg-muted: #f5f6f9;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(24, 21, 68, .08);
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-bright); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.brand img { height: 64px; width: auto; }

.site-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-nav a.active { color: var(--white); background: var(--red); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* Buttons and links */

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: .98rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-bright); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }
.link-back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.link-back::before { content: "← "; }

.eyebrow {
    margin: 0 0 .5em;
    color: var(--red);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Hero */

.hero {
    position: relative;
    background-size: cover;
    background-position: center right;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 14, 48, .92) 0%, rgba(16, 14, 48, .75) 45%, rgba(16, 14, 48, .15) 100%);
}

.hero-inner {
    position: relative;
    padding: 110px 20px 120px;
}

.hero h1 { color: var(--white); max-width: 680px; }
.hero .eyebrow { color: #ff8a8f; }
.hero-text { max-width: 560px; font-size: 1.08rem; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 14, 48, .9), rgba(16, 14, 48, .55));
}

.page-hero .container { position: relative; padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .82); }

/* Stats */

.stats { background: var(--navy); color: var(--white); border-top: 3px solid var(--red); }

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

.stat { padding: 28px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.stat strong { display: block; font-size: 2rem; line-height: 1.1; }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* Sections */

.section { padding: 80px 0; }
.section-muted { background: var(--bg-muted); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-head h2 { margin: 0; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split-wide { grid-template-columns: 1.2fr 1fr; }

.prose p { font-size: 1.05rem; }

.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }

.service-list, .service-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-grid { grid-template-columns: repeat(4, 1fr); margin-top: 24px; gap: 16px; }

.service-list li, .service-grid li {
    padding: 14px 16px 14px 40px;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 500;
    color: var(--navy);
}

.service-list li::before, .service-grid li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 2px;
    background: var(--red);
}

/* Cards */

.feature-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--text);
}

.feature-card img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.feature-body { padding: 36px; align-self: center; }
.feature-card:hover { color: var(--text); }
.feature-card:hover .link-arrow { color: var(--red-bright); }

.badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(175, 26, 32, .1);
    color: var(--red);
    font-size: .8rem;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    transition: box-shadow .25s, transform .25s;
}

.project-card:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-3px); }

.project-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-muted); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }

.project-body { padding: 18px 20px 20px; }
.project-body h3 { margin-bottom: .3em; }
.project-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.project-year { color: var(--red); font-size: .82rem; font-weight: 700; }

/* CTA */

.cta { background: var(--red); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.cta h2 { color: var(--white); margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta .btn-primary { background: var(--white); color: var(--red); }
.cta .btn-primary:hover { background: var(--navy); color: var(--white); }

/* Tables */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.table-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.table-card + .table-card { margin-top: 32px; }
.two-col .table-card + .table-card { margin-top: 0; }
.table-card h2 { font-size: 1.35rem; }

.table-scroll { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-muted);
    color: var(--navy);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:hover { background: #fafbfd; }
.data-table tfoot td { font-weight: 700; color: var(--navy); border-bottom: 0; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table .col-year { width: 70px; color: var(--red); font-weight: 700; }

.table-link { font-weight: 600; }
.photo-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    vertical-align: middle;
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--bg-muted); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

.empty { color: var(--muted); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 9, 30, .94);
}

.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }

.lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; bottom: 20px; color: rgba(255, 255, 255, .7); font-size: .9rem; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
.contact-cards { display: grid; gap: 16px; align-content: start; }

.contact-card {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    background: var(--white);
}

.contact-card p { margin: 0; font-size: 1.05rem; font-weight: 500; color: var(--navy); }
.contact-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.map-wrap { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Forms */

.narrow { max-width: 780px; }

.form-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field-full { grid-column: 1 / -1; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cfd1dc;
    border-radius: 6px;
    font: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(24, 21, 68, .12);
}

.captcha-row { flex-direction: row; align-items: flex-end; gap: 16px; }
.captcha-row img { border: 1px solid var(--line); border-radius: 6px; height: 46px; width: auto; }
.captcha-row .field { flex: 1; max-width: 260px; }

.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #e8f6ee; color: #1d6b3d; border: 1px solid #bfe5cd; }
.alert-error { background: #fdecec; color: var(--red); border: 1px solid #f5c6c8; }

/* Footer */

.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .7); font-size: .95rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.footer-logo { height: 56px; width: auto; margin-bottom: 16px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--white); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.site-footer .footer-hidden-link { color: var(--navy-dark); font-size: 1px; }

/* Responsive */

@media (max-width: 980px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .split-wide, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-card { grid-template-columns: 1fr; }
    .feature-card img { min-height: 220px; max-height: 320px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }

    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        cursor: pointer;
    }

    .nav-toggle-label span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, .1);
        padding: 8px 20px 16px;
    }

    .site-nav ul { flex-direction: column; }
    .site-nav a { padding: 12px 14px; }
    .nav-toggle:checked ~ .site-nav { display: block; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
    .header-inner { min-height: 68px; }
    .brand img { height: 50px; }
    .hero-inner { padding: 72px 20px 80px; }
    .hero::before { background: rgba(16, 14, 48, .82); }
    .section { padding: 56px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
    .card-grid, .service-list, .service-grid, .form-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .feature-body, .table-card, .form-card { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 4px; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
    .lb-prev { left: 16px; }
    .lb-next { right: 16px; }
}
