/* enkaenerji.com.tr — public site */

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
    font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent;
    padding: .75rem 1.4rem; border-radius: var(--radius-full); transition: .2s ease;
    line-height: 1; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn i { width: 1.1em; height: 1.1em; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    display: flex; align-items: center;
    /* İki renkli (turuncu↔mavi) gradient, koyu zemin — logo daima renkli ve okunur durur */
    background:
        radial-gradient(460px 150px at 0% 50%, rgba(255,117,31,.30), transparent 72%),
        radial-gradient(460px 150px at 100% 50%, rgba(56,182,255,.28), transparent 72%),
        linear-gradient(90deg, #0e0e15, #16161f 50%, #0e0e15);
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand__img { height: 56px; width: auto; display: block; }
.brand--footer .brand__img { height: 58px; }
@media (max-width: 600px) { .brand__img { height: 44px; } }
.brand__txt { display: flex; flex-direction: column; gap: 2px; line-height: 1; font-weight: 800; letter-spacing: .07em; user-select: none; }
.brand__txt .l1 { font-size: .82rem; color: #fff; }
.brand__txt .l2 { font-size: .82rem; color: var(--brand-orange, #ff751f); }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a {
    padding: .5rem .85rem; border-radius: var(--radius-full); font-weight: 600;
    color: rgba(255,255,255,.82); transition: .15s;
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; background: rgba(255,255,255,.13); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: #fff; padding: .4rem; }
.icon-btn { background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-full); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.icon-btn:hover { border-color: #fff; color: #fff; }

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        background: #14141d; border-bottom: 1px solid rgba(255,255,255,.1); padding: .75rem;
        transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
    }
    body.nav-open .main-nav { transform: translateY(0); }
    .main-nav a { padding: .85rem 1rem; }
    .header-cta-desktop { display: none; }
}

/* ===== Hero (animated) ===== */
.hero {
    position: relative; overflow: hidden; background: var(--ink); color: #fff;
    padding: clamp(4rem, 12vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
    isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__glow {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1;
    animation: floaty 9s ease-in-out infinite;
}
.hero__glow--o { width: 460px; height: 460px; background: var(--brand-orange); top: -120px; right: -80px; }
.hero__glow--b { width: 420px; height: 420px; background: var(--brand-blue); bottom: -140px; left: -60px; animation-delay: -4s; }
.hero__grid {
    position: absolute; inset: 0; z-index: -2; opacity: .12;
    background-image: linear-gradient(var(--brand-blue) 1px, transparent 1px), linear-gradient(90deg, var(--brand-blue) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 75%);
}
@keyframes floaty { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(28px) scale(1.06); } }

.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__badge {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem;
    background: var(--brand-orange); color: #fff; border-radius: var(--radius-full);
    font-weight: 700; font-size: .8rem; letter-spacing: .04em; margin-bottom: 1.2rem;
    animation: rise .6s .05s both;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .98; margin-bottom: .4rem;
    text-transform: uppercase; letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--brand-orange); }
.hero h1 .line { display: block; animation: rise .7s both; }
.hero h1 .line:nth-child(2) { animation-delay: .12s; color: var(--brand-blue); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c9cfdb; max-width: 40ch; margin: 1.2rem 0 1.8rem; animation: rise .7s .25s both; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; animation: rise .7s .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* Hero görsel: animasyonlu enerji halkası + kıvılcım */
.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.energy-ring { width: min(360px, 80%); aspect-ratio: 1; position: relative; }
.energy-ring span {
    position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent;
}
.energy-ring span:nth-child(1) { border-top-color: var(--brand-orange); animation: spin 6s linear infinite; }
.energy-ring span:nth-child(2) { inset: 14%; border-right-color: var(--brand-blue); animation: spin 4s linear infinite reverse; }
.energy-ring span:nth-child(3) { inset: 28%; border-bottom-color: var(--brand-orange); animation: spin 8s linear infinite; }
.energy-core {
    position: absolute; inset: 38%; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--brand-orange), var(--brand-orange-600));
    display: grid; place-items: center; box-shadow: 0 0 60px rgba(255,117,31,.6);
    animation: pulse 2.4s ease-in-out infinite;
}
.energy-core i { width: 38%; height: 38%; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.hero__stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; animation: rise .7s .5s both; }
.hero__stats b { display: block; font-size: 1.9rem; color: var(--brand-blue); }
.hero__stats span { color: #aeb6c4; font-size: .9rem; }

@media (max-width: 820px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__art { order: -1; min-height: 220px; }
    .energy-ring { width: 220px; }
}

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem,5vw,3rem); }
.section-head .eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: .4rem; }
.section-head p { color: var(--text-muted); }

/* ===== Service cards ===== */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.6rem; transition: .25s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card__icon {
    width: 54px; height: 54px; border-radius: var(--radius); display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-600));
    color: #fff; margin-bottom: 1rem; box-shadow: var(--shadow-brand);
}
.card__icon i { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.card__more { color: var(--primary); font-weight: 700; font-size: .9rem; margin-top: .9rem; display: inline-flex; gap: .3rem; align-items: center; }

/* ===== Project / reference cards ===== */
.ref-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: .25s;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ref-card__img { aspect-ratio: 16/10; background: var(--bg-subtle); position: relative; overflow: hidden; }
.ref-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ref-card__ph {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: var(--brand-blue);
    font-weight: 900; font-size: 1.6rem; letter-spacing: .04em; text-align: center; padding: 1rem;
}
.ref-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.ref-card__city { color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ref-card h3 { font-size: 1.15rem; margin: .2rem 0 .5rem; }
.ref-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ===== Logo strip ===== */
.logos { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.logos span {
    padding: .6rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-full);
    color: var(--text-muted); font-weight: 700; background: var(--surface);
}

/* ===== CTA banner ===== */
.cta-banner {
    background: linear-gradient(120deg, var(--ink), var(--ink-3)); color: #fff;
    border-radius: var(--radius-xl); padding: clamp(2.2rem,5vw,3.6rem); text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; width: 320px; height: 320px; background: var(--brand-orange); filter: blur(80px); opacity: .4; top: -120px; right: -60px; }
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); position: relative; }
.cta-banner p { color: #c9cfdb; position: relative; margin-bottom: 1.6rem; }

/* ===== About ===== */
.prose { max-width: 760px; }
.prose p { color: var(--text-muted); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 700px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; background: var(--surface); }
.vm-card .card__icon { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-600)); box-shadow: 0 12px 30px rgba(56,182,255,.3); }

/* ===== Page hero (inner) ===== */
.page-hero { background: var(--ink); color: #fff; padding: clamp(3rem,8vw,5rem) 0 clamp(2.5rem,6vw,4rem); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 300px; height: 300px; background: var(--brand-orange); filter: blur(90px); opacity: .35; top: -120px; right: 8%; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); position: relative; }
.page-hero p { color: #c9cfdb; position: relative; max-width: 50ch; }
.breadcrumb { color: #9aa3b2; font-size: .85rem; margin-bottom: .8rem; position: relative; }
.breadcrumb a:hover { color: var(--brand-orange); }

/* ===== Service detail ===== */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } }
.side-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + 1rem); }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover, .side-list a.is-active { background: var(--bg-subtle); color: var(--primary); }

/* ===== Contact / forms ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: .8rem .9rem; border: 1px solid var(--border-strong); border-radius: var(--radius);
    font: inherit; background: var(--surface); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.field .err { color: var(--danger); font-size: .82rem; margin-top: .25rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--bg-subtle); color: var(--primary); }
.info-list b { display: block; }
.info-list span { color: var(--text-muted); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); margin-top: 1.5rem; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 1rem; }
.seg label { padding: .55rem 1.1rem; cursor: pointer; font-weight: 600; color: var(--text-muted); }
.seg input { position: absolute; opacity: 0; }
.seg input:checked + label { background: var(--primary); color: #fff; }

/* ===== Katalog ===== */
.katalog-frame { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--ink); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c9cfdb; padding: clamp(3rem,6vw,4rem) 0 1.5rem; }
.site-footer a:hover { color: var(--brand-orange); }
.footer-top { display: flex; justify-content: flex-end; }
.footer-card {
    width: min(100%, 400px);
    background: linear-gradient(155deg, #1b1c27, #101016);
    border: 1px solid #2a2b3a; border-radius: var(--radius-lg);
    padding: 1.7rem 1.9rem; box-shadow: var(--shadow-lg);
}
.footer-card .brand { margin-bottom: 1.15rem; }
.footer-card__unvan { color: #fff; font-weight: 600; line-height: 1.45; margin: 0 0 1.2rem; }
.footer-contact { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .75rem; font-size: .92rem; }
.footer-contact li, .footer-contact a { display: flex; align-items: flex-start; gap: .65rem; color: #c9cfdb; }
.footer-contact i { width: 1.05em; height: 1.05em; color: var(--brand-orange); flex: 0 0 auto; margin-top: 3px; }
.footer-contact a:hover { color: var(--brand-orange); }
.footer-bottom { border-top: 1px solid #23242f; margin-top: 2.5rem; padding-top: 1.3rem; display: flex; justify-content: flex-end; font-size: .85rem; color: #8b93a4; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border: 1px solid #2b2c39; border-radius: var(--radius-full); display: grid; place-items: center; }
.social a:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
@media (max-width: 760px) { .footer-card { width: 100%; } }

/* ===== Flash ===== */
.flash { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 100;
    display: flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg); font-weight: 600; animation: rise .4s both; max-width: 92vw; }
.flash--success { background: var(--success); color: #fff; }
.flash--error { background: var(--danger); color: #fff; }
.flash--info { background: var(--info); color: #fff; }
.flash i { width: 1.2em; height: 1.2em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Proje detay (modal + sayfa ortak) ===== */
.container--narrow { max-width: 860px; }
.ref-card[data-proj] { cursor: pointer; }

.pd__title { margin: 0 0 .5rem; font-size: 1.6rem; }
.pd__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.pd__chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: var(--radius-full);
    background: var(--bg-subtle); color: var(--text-muted); font-size: .82rem; font-weight: 600;
}
.pd__chip i { width: 1em; height: 1em; }
.pd__chip--cat { background: var(--primary); color: #fff; }
.pd-gallery { margin-bottom: 1.5rem; }
.pd-main { aspect-ratio: 16/10; background: var(--bg-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
.pd-thumb {
    width: 84px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--radius);
    overflow: hidden; cursor: pointer; background: var(--bg-subtle); transition: border-color .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--primary); }
.pd__body { color: var(--text-muted); }
.pd__body p { margin: 0 0 .8rem; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13,13,18,.66); backdrop-filter: blur(2px); animation: fade .2s both; }
.modal__panel {
    position: relative; z-index: 1; width: min(820px, 100%); max-height: 90vh; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 1.8rem; animation: rise .28s both;
}
.modal__close {
    position: sticky; top: 0; float: right; margin: -.5rem -.5rem 0 0;
    width: 40px; height: 40px; border: none; border-radius: var(--radius-full); cursor: pointer;
    background: var(--bg-subtle); color: var(--text); display: grid; place-items: center;
}
.modal__close:hover { background: var(--border); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== E-posta imzası sayfası ===== */
.sig-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.25rem; }
.sig-form .field { flex: 1; min-width: 220px; margin-bottom: 0; }
.sig-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sig-preview { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; overflow-x: auto; }
.sig-howto { margin-top: 1.75rem; }
.sig-howto ol { padding-left: 1.2rem; color: var(--text-muted); line-height: 1.85; }
.sig-howto li { margin-bottom: .25rem; }
