/* =========================================================
   Arkun Elektrik Otomasyon — Temel Stil
   Renkler logodan alınmıştır: mavi #2F6EB3, turuncu #E9A447
   ========================================================= */

:root {
    --primary: #2F6EB3;
    --primary-dark: #1F4F86;
    --primary-darker: #12355C;
    --primary-light: #E8F0FA;
    --accent: #F5B400;
    --accent-dark: #D9A000;
    --accent-light: #FDF3E4;

    --text: #1B2533;
    --text-muted: #5B6778;
    --border: #E3E8EF;
    --bg: #FFFFFF;
    --bg-soft: #F5F8FC;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(18, 53, 92, .08);
    --shadow-lg: 0 20px 50px rgba(18, 53, 92, .16);
    --container: 1200px;
    --header-h: 84px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: currentColor; }

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

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.5em; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; line-height: 1;
    border: 2px solid transparent; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(47,110,179,.3); }
.btn--accent { background: var(--accent); color: var(--primary-darker); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 20px rgba(245,180,0,.35); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--primary-light); color: var(--primary-darker); }

/* ---------- Ortak ---------- */
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-dark); margin-bottom: .8rem;
    padding-left: 28px; position: relative;
}
.eyebrow::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 18px; height: 3px; background: var(--accent); border-radius: 2px;
}
.eyebrow--light { color: var(--accent); }

.section { padding: 96px 0; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { padding-left: 0; }
.section__head .eyebrow::before { display: none; }
.section__head--row {
    max-width: none; display: flex; align-items: flex-end;
    justify-content: space-between; gap: 24px; text-align: left;
}
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.section__lead { color: var(--text-muted); font-size: 1.05rem; }

.icon-box {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary); font-size: 26px;
    transition: background .25s, color .25s;
}
.icon-box--accent { background: rgba(245,180,0,.18); color: var(--accent); }
.icon-box--sm { width: 44px; height: 44px; font-size: 20px; }

.tag {
    display: inline-block; font-size: .75rem; font-weight: 600;
    padding: .3em .8em; border-radius: 999px;
    background: var(--accent-light); color: var(--accent-dark);
}

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-darker); color: rgba(255,255,255,.8); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 16px; }
.topbar__info, .topbar__right { display: flex; align-items: center; gap: 24px; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent); }
.topbar svg { color: var(--accent); }
.topbar__lang { font-weight: 700; border: 1px solid rgba(255,255,255,.3); padding: 2px 8px; border-radius: 4px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
    display: block; padding: 8px 14px; font-weight: 600; font-size: .95rem;
    color: var(--text); position: relative;
}
.nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 3px; border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 2px; background: var(--primary); transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
    padding: 110px 0 120px;
}
.hero__grid {
    position: absolute; inset: 0; opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%);
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,180,0,.35), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero__title span { color: var(--accent); }
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px); border-radius: var(--radius); padding: 12px;
}
.hero__card-item { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 10px; transition: background .2s; }
.hero__card-item:hover { background: rgba(255,255,255,.08); }
.hero__card-item + .hero__card-item { border-top: 1px solid rgba(255,255,255,.12); }
.hero__card-item strong { display: block; font-size: 1.05rem; }
.hero__card-item span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ---------- Sayaçlar ---------- */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats__inner {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 32px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat strong::after { content: "+"; color: var(--accent); }
.stat strong[data-suffix]::after { content: none; }
.stat span { color: var(--text-muted); font-weight: 500; }

/* ---------- Hakkımızda ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__visual {
    aspect-ratio: 1 / 1; border-radius: 24px; color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
    display: flex; align-items: center; justify-content: center;
}
.about__visual svg { width: 70%; height: 70%; }
.about__badge {
    position: absolute; right: -24px; bottom: 32px;
    background: var(--accent); color: var(--primary-darker);
    padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__badge strong { display: block; font-size: 1.25rem; }
.about__badge span { font-size: .9rem; }
.about__content > p { color: var(--text-muted); }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 24px 0 32px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 500; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 1px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Hizmetler ---------- */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover .icon-box { background: var(--primary); color: #fff; }
.card h3 { font-size: 1.2rem; margin-top: 22px; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card__link { font-weight: 600; font-size: .9rem; color: var(--accent-dark); }

/* ---------- Süreç ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); }
.step__num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--primary); opacity: .18; line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.step:not(:last-child)::after {
    content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-weight: 700; font-size: 1.2rem; z-index: 1;
}

/* ---------- Projeler ---------- */
.projects { background: var(--bg-soft); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; position: relative; }
.project__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(18,53,92,.5)); }
/* Yer tutucu görseller — gerçek fotoğraflarla değiştirin: background-image: url(...) */
.project__img--1 { background-image: linear-gradient(135deg, #2F6EB3, #12355C); }
.project__img--2 { background-image: linear-gradient(135deg, #3E7FC4, #1F4F86); }
.project__img--3 { background-image: linear-gradient(135deg, #F5B400, #1F4F86); }
.project__body { padding: 24px; }
.project__body h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.project__body p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ---------- Referanslar ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-item {
    height: 96px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-weight: 600; font-size: .9rem;
    filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s, border-color .2s;
}
.logo-item:hover { filter: none; opacity: 1; border-color: var(--primary); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- İletişim ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--text-muted); }
.contact__list { display: grid; gap: 20px; margin-top: 32px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list strong { display: block; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.contact__list span, .contact__list a { font-weight: 600; color: var(--text); }
.contact__list a:hover { color: var(--primary); }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 18px; }
.form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form input:not([type="checkbox"]), .form select, .form textarea {
    width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(47,110,179,.12);
}
.form .is-invalid { border-color: #C0392B !important; }
.form textarea { resize: vertical; }
.form__check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-bottom: 22px !important; }
.form__check input { margin-top: 4px; accent-color: var(--primary); }
.form__status { margin: 14px 0 0; font-size: .9rem; text-align: center; }
.form__status.is-success { color: #2F7D4F; }
.form__status.is-error { color: #C0392B; }

/* ---------- Footer ---------- */
.footer { background: var(--primary-darker); color: rgba(255,255,255,.7); padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer__logo { background: #fff; display: inline-block; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.footer__logo img { height: 44px; width: auto; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px; gap: 16px; }

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent); color: var(--primary-darker); font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; }

/* ---------- Kaydırma animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav__list { gap: 0; }
    .nav__link { padding: 8px 10px; }
    .cards, .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step:nth-child(2)::after { display: none; }
    .logos { grid-template-columns: repeat(3, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .header__logo img { height: 42px; }
    .burger { display: block; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        background: #fff; padding: 24px 20px; overflow-y: auto;
        transform: translateX(100%); transition: transform .3s ease;
    }
    .nav.is-open { transform: none; }
    .nav__list { flex-direction: column; }
    .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
    .nav__link::after { display: none; }
    body.menu-open { overflow: hidden; }

    .hero { padding: 80px 0 100px; }
    .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
    .about__media { max-width: 440px; }
    .about__badge { right: 16px; }
    .stats__inner { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .section { padding: 72px 0; }
}

@media (max-width: 640px) {
    .topbar__right span, .topbar__info a:last-child { display: none; }
    .cards, .projects__grid, .steps, .checklist, .form__row { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .logos { grid-template-columns: repeat(2, 1fr); }
    .section__head--row { flex-direction: column; align-items: flex-start; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
    .form { padding: 24px; }
    .stat strong { font-size: 2rem; }
}
