/* Yapı Otomasyon Sistemleri teması — Bootstrap 5 üstüne marka katmanı (koyu gri + sarı). */
:root {
    --brand: #f2b632;
    --brand-dark: #d99d14;
    --ink: #1f2124;
    --ink-soft: #2b2d31;
    --muted: #6c727a;
    --bg-soft: #f5f6f7;
    --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --brand-text: #8a5d00;
    --bs-body-color: #33363a;
    --bs-link-color: #1f2124;
    --bs-link-hover-color: var(--brand-text);
    --bs-link-color-rgb: 31, 33, 36;
    --bs-link-hover-color-rgb: 138, 93, 0;
}
body { color: var(--bs-body-color); }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { text-decoration: none; }
.narrow { max-width: 820px; }
.section { padding: 4.5rem 0; }
.section-dark { background: var(--ink); color: #d6d8db; }
.section-dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .75rem; }
.lead-text { font-size: 1.1rem; line-height: 1.8; color: #50555b; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--ink); font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-text); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); }

/* Üst bant + menü */
.topbar { background: var(--ink); color: #c4c7cb; font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--brand); }
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); z-index: 1030; }
.site-header .navbar-brand img { height: 50px; width: auto; }
.site-header .nav-link { color: var(--ink); font-weight: 600; padding: .9rem .9rem; }
.site-header .nav-link:hover, .site-header .nav-item.show > .nav-link { color: var(--brand-text); }
@media (min-width: 992px) {
            }

/* Hero */
.hero .carousel-item { min-height: 560px; background-size: cover; background-position: center; background-color: var(--ink); position: relative; }
.hero .carousel-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 21, 23, .88) 0%, rgba(20, 21, 23, .55) 55%, rgba(20, 21, 23, .25) 100%); }
.hero-inner { position: relative; z-index: 2; min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; padding-top: 3rem; padding-bottom: 3rem; }
.hero-inner h1, .hero-inner .h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; }
.hero-inner p { max-width: 560px; font-size: 1.1rem; margin: 1rem 0 1.75rem; color: #e3e5e8; }
.hero-kicker { display: inline-block; background: var(--brand); color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) { .hero .carousel-item, .hero-inner { min-height: 440px; } }

/* Kutular, kartlar */
.value-card { text-align: center; padding: 1rem 1.25rem; }
.value-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--brand); color: var(--ink); margin-bottom: 1rem; }
.value-card p { color: #b8bbc0; margin: 0; }
.service-card { display: block; background: #fff; border: 1px solid #e6e8ea; border-radius: .6rem; overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, .1); border-color: var(--brand); }
.service-card figure { margin: 0; aspect-ratio: 4 / 3; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); }
.service-card:hover .service-title { color: var(--brand-text); }
.cta { background: var(--brand); }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta .eyebrow { color: var(--ink); }
.cta p { max-width: 640px; margin: 1rem auto 0; color: #3a3d42; }

/* İç sayfalar */
.page-header { background: var(--ink) linear-gradient(135deg, var(--ink) 60%, #34373c); color: #fff; padding: 2.75rem 0 2.25rem; border-bottom: 4px solid var(--brand); }
.page-header h1 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-header .breadcrumb { margin: 0; --bs-breadcrumb-divider-color: #9a9ea4; --bs-breadcrumb-item-active-color: var(--brand); }
.page-header .breadcrumb a { color: #d6d8db; }
.pagination { --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-color: var(--ink); }
.page-header .breadcrumb a:hover { color: var(--brand); }
.content-body { line-height: 1.85; }
.content-body video, .content-body img { max-width: 100%; height: auto; border-radius: .5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.side-box { background: var(--bg-soft); border-radius: .6rem; padding: 1.5rem; margin-bottom: 1.5rem; border-top: 3px solid var(--brand); }
.side-list a { display: block; padding: .45rem 0; border-bottom: 1px solid #dfe1e4; color: var(--ink); font-weight: 500; }
.side-list a:hover, .side-list a.active { color: var(--brand-text); }
.logo-card { background: #fff; border: 1px solid #e6e8ea; border-radius: .6rem; padding: 1rem; display: grid; place-items: center; aspect-ratio: 1; }
.logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.contact-list li { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; }
.contact-list .icon { color: var(--brand-text); flex: none; }

/* Footer */
.site-footer { background: var(--ink); color: #aeb1b6; font-size: .95rem; }
.site-footer a { color: #d6d8db; }
.site-footer a:hover { color: var(--brand); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer li .icon { color: var(--brand); margin-right: .3rem; vertical-align: -3px; }
.footer-logo { max-width: 180px; height: auto; }
.footer-bottom { border-top: 1px solid #3a3d42; font-size: .85rem; }
.footer-cookie { color: #d6d8db; }
.floating-call { position: fixed; right: 16px; bottom: 16px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }


/* Erişilebilirlik: görünür odak, atlama bağlantısı, hareket azaltma */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: .4rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } .carousel-item { transition: none !important; } }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Menü + alt menü */
.site-header .nav-link { padding: 1.05rem .95rem; position: relative; }
.site-header .nav-link::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .55rem; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-header .nav-link:hover::after, .site-header .has-sub.is-open > .nav-link::after { transform: scaleX(1); }
.has-sub { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.sub-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-left: -.6rem; position: relative; }
.sub-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
.has-sub.is-open > .sub-toggle::before { transform: translate(-50%, -30%) rotate(225deg); }
.sub-menu { list-style: none; margin: 0; padding: .5rem; display: none; width: 100%; background: #fff; }
.has-sub.is-open > .sub-menu { display: block; }
.sub-menu a { display: block; padding: .7rem 1rem; border-radius: .4rem; color: var(--ink); font-weight: 600; font-size: .95rem; min-height: 44px; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: #fff6dc; color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
@media (min-width: 992px) {
    .sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; min-width: 36rem; max-width: 92vw; padding: 1rem; margin-top: 0; border-top: 3px solid var(--brand); border-radius: 0 0 .75rem .75rem; box-shadow: 0 24px 48px -12px rgba(15, 17, 20, .28); columns: 2; column-gap: .5rem; z-index: 1040; }
    .sub-menu li { break-inside: avoid; }
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
    .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; } /* hover köprüsü */
}

/* Güven şeridi + yumuşak bölüm */
.section-soft { background: var(--bg-soft); }
.trust { background: #fff; border-bottom: 1px solid #e6e8ea; margin-top: -2.2rem; position: relative; z-index: 3; }
.trust .container { background: #fff; border-radius: .75rem; box-shadow: 0 18px 40px -16px rgba(15, 17, 20, .25); border-top: 4px solid var(--brand); padding: 0; transform: translateY(-1.2rem); }
.trust-item { padding: 1.6rem 1rem; border-right: 1px solid #eceef0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--ink); line-height: 1.1; }
.trust-item span { display: block; margin-top: .35rem; color: #50555b; font-size: .9rem; font-weight: 600; }
@media (max-width: 991.98px) { .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid #eceef0; } }
.logo-card { transition: box-shadow .2s, border-color .2s; }
.logo-card:hover { border-color: var(--brand); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.service-card { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.service-card figure img { transition: transform .4s; }
.service-card:hover figure img { transform: scale(1.05); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; opacity: .85; }
body { font-size: 1rem; line-height: 1.65; }

/* Form stilleri */
.site-form { max-width: 720px; margin-top: 1.5rem; }
.form-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-item { display: flex; flex-direction: column; flex-grow: 1; min-width: 200px; }
.form-item label, .form-item span { font-size: .9rem; margin-bottom: .25rem; }
.form-item input, .form-item textarea, .form-item select {
    padding: .5rem .75rem; border: 1px solid #ced4da; border-radius: .375rem; font: inherit;
}
.form-choice { display: block; font-weight: 400; }
.form-error { color: #dc3545; font-size: .8rem; margin-top: .25rem; }
.form-success { background: #d1e7dd; color: #0f5132; padding: .75rem 1rem; border-radius: .375rem; }
.form-submit {
    margin-top: 1rem; padding: .6rem 1.75rem; background: #f2b632; color: #1f2124; font-weight: 600;
    border: 0; border-radius: .375rem; cursor: pointer; font: inherit;
}

/* Çerez Tercih Merkezi (zorunlu bileşen — docs/00-project-rules.md).
   Yeni temalar bu bloğu kendi tasarım diliyle yeniden yazar; sınıf adları ve
   data-* kancaları aynı kalır ki theme.js'teki mantık çalışsın. */
.cookie-consent { position: fixed; inset: auto 0 0; z-index: 1080; }
.cookie-consent[hidden] { display: none; }
.cc-banner { max-width: 1140px; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: #fff; border: 1px solid #dee2e6; border-radius: .75rem; box-shadow: 0 1rem 2.5rem -1rem rgba(0,0,0,.4); padding: 1.25rem; }
.cc-banner[hidden] { display: none; }
.cc-banner-body { flex: 1 1 380px; }
.cc-title { display: block; font-size: 1rem; }
.cc-text { margin: .35rem 0 0; font-size: .875rem; color: #495057; }
.cc-banner-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.cc-btn { min-height: 42px; padding: .6rem 1.25rem; border: 1px solid #dee2e6; border-radius: 2rem; background: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.cc-btn:hover { border-color: #1f2124; }
.cc-btn-accept { background: #1f2124; border-color: #1f2124; color: #fff; }
.cc-modal { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 1rem; }
.cc-modal[hidden] { display: none; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cc-modal-panel { position: relative; width: min(620px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: .75rem; padding: 1.75rem; }
.cc-modal-close { position: absolute; top: .75rem; right: .75rem; width: 38px; height: 38px; border: 1px solid #dee2e6; border-radius: 50%; background: #fff; cursor: pointer; }
.cc-modal-title { margin: 0 0 .5rem; font-size: 1.25rem; }
.cc-modal-lead { font-size: .875rem; color: #495057; }
.cc-cat { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid #e9ecef; }
.cc-cat-info strong { display: block; }
.cc-cat-info span { font-size: .8rem; color: #6c757d; }
.cc-always { font-size: .75rem; font-weight: 600; background: #f1f3f5; border-radius: 2rem; padding: .35rem .75rem; }
.cc-switch { position: relative; width: 48px; height: 26px; flex: 0 0 auto; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-slider { position: absolute; inset: 0; border-radius: 2rem; background: #ced4da; transition: background-color .2s ease; }
.cc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cc-switch input:checked + .cc-slider { background: #1f2124; }
.cc-switch input:checked + .cc-slider::after { transform: translateX(22px); }
.cc-modal-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.cc-modal-policy { display: inline-block; margin-top: 1rem; font-size: .8rem; }
.footer-cookie { border: 0; background: none; padding: 0; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
@media (max-width: 767.98px) {
    .cc-banner { margin: 0; border-radius: .75rem .75rem 0 0; }
    .cc-banner-actions { margin-left: 0; width: 100%; }
    .cc-banner-actions .cc-btn { flex: 1 1 120px; }
}
