:root {
    --primary: #e31e24;
    --primary-dark: #b7181d;
    --dark: #1f1f1f;
    --gray: #6c757d;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; color: #333; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-danger { color: var(--primary); border-color: var(--primary); }
.btn-outline-danger:hover { background: var(--primary); border-color: var(--primary); }

/* Header */
header { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000; }
.site-menu { gap: 1.5rem; }
.site-menu > li { position: relative; }
.site-menu li a { font-weight: 500; padding: .5rem 0; display: block; }
.site-menu li.active > a, .site-menu li:hover > a { color: var(--primary); }
.get-offer { font-weight: 600; border-radius: 50px; padding: .5rem 1.25rem; }

/* Basit alt menü */
.site-menu .submenu {
    position: absolute !important;
    top: calc(100% + 4px);
    left: 0;
    min-width: 240px;
    width: max-content;
    max-width: min(360px, 90vw);
    margin: 0 !important;
    padding: .5rem 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    border-radius: .25rem;
    display: none;
    z-index: 1001;
}
.site-menu > li.has-submenu:hover > .submenu,
.site-menu > li.has-submenu:focus-within > .submenu {
    display: block;
}
.site-menu .submenu li { margin: 0; display: block; }
.site-menu .submenu li a {
    padding: .55rem 1.25rem;
    white-space: nowrap;
    color: var(--dark);
    font-weight: 500;
}
.site-menu .submenu li a:hover { color: var(--primary); background: rgba(227,30,36,.04); }

/* Mega menü — header genişliğinde */
.mega-menu-item { position: static !important; }
.mega-menu-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    width: 100%;
    background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.1);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: .3s; z-index: 999;
}
.mega-menu .title { color: var(--dark); font-weight: 600; margin-bottom: .5rem; white-space: nowrap; }
.mega-menu ul li a { font-size: .875rem; color: var(--gray); padding: .2rem 0; display: block; }

/* Slider */
.home-slider { position: relative; overflow: hidden; }
.home-slider .ratio { min-height: 500px; }
.home-slider .slide-background { object-fit: cover; }
.home-slider .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%);
    display: flex; align-items: center;
}
.home-slider .content .title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.home-slider .content .subtitle { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .5rem; }
.home-slider .pagination { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; }
.home-certificates { position: absolute; bottom: 0; right: 0; left: 0; z-index: 5; padding-bottom: 1rem; }
.home-certificates .certificate img { height: 50px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }

/* About */
.home-about .subtitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.home-about .title { font-size: 2rem; font-weight: 700; }
.home-about .image .overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center; border-radius: .5rem;
}
.home-about .image .icon { font-size: 3rem; color: #fff; }
.home-about .stat-item .number { font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.home-about .stat-item .symbol { font-size: 1.5rem; color: var(--primary); }
.home-about .stat-item .title { font-size: .875rem; color: var(--gray); margin-top: .5rem; }

/* Services home */
.home-services { background: #f8f9fa; padding-bottom: 4rem; }
.home-services .swiper-head .title { font-size: 1.75rem; font-weight: 700; }
.home-service-item { background: #fff; border-radius: .5rem; min-height: 220px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.home-service-item .title { font-weight: 700; font-size: 1.1rem; }
.home-service-item .read-more { color: var(--primary); font-weight: 600; font-size: .875rem; }
.outline-btn { border: 2px solid var(--primary); color: var(--primary); padding: .5rem 1.5rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; }

/* CTA blocks */
.others .catalog, .others .certificates {
    background: var(--dark); color: #fff; border-radius: .5rem; min-height: 140px;
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.others .catalog .title, .others .certificates .title { font-size: 1.5rem; font-weight: 700; }
.others .download-btn, .others .icon {
    background: var(--primary); color: #fff; padding: 1rem 1.5rem;
    border-radius: 50px; font-weight: 600; white-space: nowrap;
}

/* Footer */
footer { background: var(--dark); color: #fff; }
.footer-menu { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.footer-menu a { color: #fff; }
.footer-menu a:hover { color: var(--primary); }
.footer-contacts .title { font-weight: 700; margin-bottom: .5rem; color: var(--primary); }
.footer-contacts a, .footer-contacts address { color: rgba(255,255,255,.75); font-style: normal; display: block; }
.quick-contact-form { background: rgba(255,255,255,.05); padding: 1.5rem; border-radius: .5rem; }
.quick-contact-form .title { font-weight: 700; font-size: 1.25rem; }
.footer-social { list-style: none; padding: 0; display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,.7); font-size: .875rem; }

/* Products */
.product-card { border: 1px solid #eee; border-radius: .5rem; padding: 1rem; transition: .3s; }
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-3px); }

/* Widgets */
.floating-actions {
    position: fixed; right: 20px; bottom: 20px; z-index: 998;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.floating-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 50px; color: #fff !important;
    text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.2);
    font-weight: 600; font-size: .875rem; transition: .2s;
    white-space: nowrap;
}
.floating-btn:hover { transform: translateY(-2px); color: #fff !important; }
.floating-btn .fi { font-size: 1.25rem; line-height: 1; }
.floating-btn.whatsapp-btn { background: #25d366; }
.floating-btn.phone-btn { background: var(--primary); }
.floating-btn.quote-btn { background: var(--dark); }
.whatsapp-hint {
    position: fixed; right: 20px; bottom: 200px; z-index: 997; max-width: 260px;
}
.whatsapp-hint .hint-card {
    background: #fff; border-radius: 12px; padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.12); border: 1px solid #eee;
}
.whatsapp-hint .hint-title { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.whatsapp-hint .hint-text { font-size: .8rem; color: #666; margin: 0; }

@media (max-width: 767px) {
    .floating-btn span { display: none; }
    .floating-btn { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
}

.page-header .title, .page-header h1 { font-weight: 700; }

/* Zengin içerik (editör çıktısı) */
.page-content, .content {
    line-height: 1.75;
    font-size: 1rem;
    color: #333;
}
.page-content > * + *, .content > * + * { margin-top: 1rem; }
.page-content h1, .content h1 { font-size: 2rem; font-weight: 700; margin-top: 2rem; }
.page-content h2, .content h2 { font-size: 1.625rem; font-weight: 700; margin-top: 1.75rem; }
.page-content h3, .content h3 { font-size: 1.375rem; font-weight: 600; margin-top: 1.5rem; }
.page-content h4, .content h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.25rem; }
.page-content p, .content p { margin-bottom: 0; }
.page-content ul, .page-content ol, .content ul, .content ol { padding-left: 1.5rem; margin-bottom: 0; }
.page-content li + li, .content li + li { margin-top: .35rem; }
.page-content blockquote, .content blockquote {
    border-left: 4px solid var(--primary);
    padding: .75rem 1rem;
    background: #f8f9fa;
    color: #555;
    margin: 1.5rem 0;
}
.page-content img, .content img { max-width: 100%; height: auto; border-radius: .375rem; }
.page-content table, .content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content th, .page-content td, .content th, .content td {
    border: 1px solid #dee2e6;
    padding: .625rem .75rem;
    text-align: left;
}
.page-content th, .content th { background: #f8f9fa; font-weight: 600; }
.page-content a, .content a { color: var(--primary); text-decoration: underline; }
.page-content hr, .content hr { margin: 2rem 0; border-color: #dee2e6; }
.page-content pre, .content pre {
    background: #1f1f1f;
    color: #f8f9fa;
    padding: 1rem;
    border-radius: .375rem;
    overflow-x: auto;
}
.page-content iframe, .content iframe { max-width: 100%; border-radius: .375rem; }
.page-content .text-center, .content .text-center { text-align: center; }
.page-content .text-right, .content .text-right { text-align: right; }

/* Product gallery */
.product-gallery__stage {
    position: relative;
}
.product-gallery__main {
    min-height: 320px;
    padding: 1.25rem;
    overflow: hidden;
}
.product-gallery__main img {
    max-height: 420px;
    width: auto;
    object-fit: contain;
}
.product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    color: #222;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.product-gallery__nav:hover {
    background: var(--primary);
    color: #fff;
}
.product-gallery__nav--prev { left: .75rem; }
.product-gallery__nav--next { right: .75rem; }
.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}
.product-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: .375rem;
    background: #f8f9fa;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: border-color .2s, opacity .2s;
}
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-gallery__thumb:hover { border-color: #adb5bd; }
.product-gallery__thumb.is-active { border-color: var(--primary); }

@media (max-width: 991px) {
    .home-slider .ratio { min-height: 350px; }
    .mega-menu { display: none !important; }
}

@media (max-width: 768px) {
    .home-slider .ratio.has-mobile-image {
        --bs-aspect-ratio: 100%;
        min-height: 0;
    }
    .home-slider .has-mobile-image .content .title {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
}

/* Header topbar & social icons */
.header-topbar { background: var(--dark); color: rgba(255,255,255,.85); font-size: .875rem; }
.header-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.header-topbar a:hover { color: #fff; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    transition: .2s;
}
.social-icon:hover { background: var(--primary); color: #fff; }
footer .social-icon { background: rgba(255,255,255,.08); }
footer .social-icon:hover { background: var(--primary); }

.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    border-top: 1px solid #eee;
}

/* Media nav */
.media-nav .nav-link.active { background: var(--primary); color: #fff; }

