/* Ercan Group — ön yüz stilleri */
:root {
    --blue: #1d3b8b;
    --blue-dark: #142a66;
    --red: #ed1c24;
    --red-dark: #c8141b;
    --ink: #1c2333;
    --muted: #5d6679;
    --line: #e4e8f0;
    --bg: #ffffff;
    --bg-alt: #f4f6fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 42, 102, .08);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ---- Header ---------------------------------------------------------- */
.topbar { background: var(--blue-dark); color: #dbe3f7; font-size: 13px; }
.topbar a { color: #fff; }
.topbar-inner { display: flex; gap: 24px; align-items: center; min-height: 38px; }
.topbar-inner span { display: inline-flex; gap: 8px; align-items: center; }
.topbar-addr { margin-left: auto; opacity: .85; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { height: 64px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--ink); font-weight: 500; font-size: 15px;
}
.main-nav ul a:hover { color: var(--red); background: var(--bg-alt); }
.main-nav ul a.active { color: var(--red); }
.lang-switch {
    border: 1.5px solid var(--red); color: var(--red); border-radius: 999px;
    padding: 4px 14px; font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.lang-switch:hover { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--red); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red); }
.link-more:hover { gap: 10px; }

/* ---- Hero slider ----------------------------------------------------- */
.hero { position: relative; height: clamp(320px, 48vw, 620px); overflow: hidden; background: var(--bg-alt); }
.slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity .8s ease; display: flex; align-items: flex-end; padding-bottom: 48px;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide-card {
    max-width: 440px; background: rgba(255,255,255,.94); border-left: 5px solid var(--red);
    padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.slide-card h2 { color: var(--blue); font-size: clamp(24px, 3vw, 36px); margin-bottom: .3em; }
.slider-dots { position: absolute; z-index: 2; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: var(--red); width: 28px; border-radius: 6px; }

/* ---- Sections -------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-size: clamp(24px, 2.6vw, 34px); color: var(--blue-dark); }
.section-title.center { text-align: center; margin-bottom: 32px; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 6px; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.prose p { color: var(--muted); }
.prose h3 { margin-top: 1.4em; color: var(--blue); }
.lead { font-size: 18px; color: var(--ink) !important; font-weight: 500; }

.page-head { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 48px 0 44px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(237,28,36,.25); }
.page-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #b9c6ea; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* ---- Products -------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--red); }
.product-media { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; background: #fff; }
.product-media img { max-height: 100%; width: auto; object-fit: contain; }
.product-card h3 { font-size: 15px; font-weight: 600; padding: 14px 18px 18px; margin: 0; border-top: 1px solid var(--line); }
.no-image { color: #c3cad8; }
.no-image .icon { width: 56px; height: 56px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
}
.chip small { background: var(--bg-alt); border-radius: 999px; padding: 0 7px; font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.active small { background: rgba(255,255,255,.2); color: #fff; }
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.product-detail-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; place-items: center; min-height: 360px; }
.product-detail-media img { max-height: 480px; width: auto; object-fit: contain; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.brand-row a { background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); transition: .2s; }
.brand-row a:hover { transform: translateY(-3px); }
.brand-row img { height: 120px; width: auto; }

/* ---- Posts ----------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-media { aspect-ratio: 16 / 9; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media img.placeholder-logo { width: 40%; height: auto; object-fit: contain; opacity: .7; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body time, .article time { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-body h3 { font-size: 18px; }
.post-body h3 a { color: var(--blue-dark); }
.post-body h3 a:hover { color: var(--red); }
.post-body p { color: var(--muted); font-size: 15px; flex: 1; }
.article-cover { border-radius: var(--radius); margin: 8px 0 24px; width: 100%; }

/* ---- CTA ------------------------------------------------------------- */
.cta { background: linear-gradient(120deg, var(--red), #b3141a); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Forms / contact ------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list strong { display: block; color: var(--blue-dark); }
.info-list div { color: var(--muted); }
.info-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-alt); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form h3 { color: var(--blue-dark); margin: 0; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=file], .form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
    font: inherit; font-size: 15px; background: #fbfcfe; transition: .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,59,139,.12); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 13px; }
.form .check input { margin-top: 4px; accent-color: var(--blue); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.2); }

.flashes { padding-top: 20px; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 15px; }
.alert-success { background: #e8f7ee; color: #146c3a; border: 1px solid #bfe7cf; }
.alert-error { background: #fdecec; color: #a3141a; border: 1px solid #f6c3c5; }

.empty, .empty-state { text-align: center; color: var(--muted); }
.empty-state { padding: 40px 0; }
.empty-state img { margin: 0 auto 20px; opacity: .8; }
.empty-state h1, .empty-state h2 { color: var(--blue-dark); }
.big-code { font-size: 96px; font-weight: 700; color: var(--red); line-height: 1; margin: 0 0 10px; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: #0f1d47; color: #b9c3dd; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; padding: 64px 20px 48px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 16px; height: 80px; width: auto; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer a { color: #dfe5f5; }
.site-footer a:hover { color: #fff; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--red); margin-top: 4px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; text-align: center; }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 1080px) {
    .topbar-addr { display: none; }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px;
        box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 12px; }
    .lang-switch { align-self: flex-start; }
    .about-split, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 56px 0; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hide-sm { display: none !important; }
    .header-inner { min-height: 70px; }
    .brand img { height: 52px; }
    .form-row, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { padding: 48px 16px 32px; gap: 32px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card h3 { font-size: 13px; padding: 10px 12px 12px; }
    .product-media { padding: 10px; }
    .post-grid { grid-template-columns: 1fr; }
    .slide { padding-bottom: 36px; }
    .slide-card { padding: 16px 18px; max-width: 100%; }
    .slide-card p { display: none; }
    .card { padding: 20px; }
    .brand-row img { height: 80px; }
}
