/* =============================================
   AYHASAR CMS — Frontend Stil Dosyası
   Modern, profesyonel kurumsal danışmanlık tasarımı
   ============================================= */

:root {
    --primary: #0d3b66;
    --primary-dark: #08284a;
    --primary-light: #1a5697;
    --accent: #f4a261;
    --accent-dark: #e08c47;
    --text: #2b2d42;
    --text-light: #6c757d;
    --bg-light: #f8f9fb;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(13, 59, 102, 0.06);
    --shadow-md: 0 6px 20px rgba(13, 59, 102, 0.10);
    --shadow-lg: 0 12px 40px rgba(13, 59, 102, 0.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* === Top Bar === */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    padding: 10px 0;
}
.topbar i { color: var(--accent); margin-right: 6px; }
.topbar-social a {
    color: rgba(255,255,255,0.7);
    margin-left: 14px;
    font-size: 1rem;
}
.topbar-social a:hover { color: var(--accent); }

/* === Navbar === */
.main-navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 18px 0;
    transition: padding 0.3s;
}
.main-navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    color: var(--primary) !important;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 12px;
    min-width: 240px;
}
.dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
}
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

.btn-quote {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-quote:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* === Buttons === */
.btn { font-weight: 600; padding: 12px 28px; border-radius: 50px; transition: 0.3s; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline-light { border-width: 2px; }
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

/* === Statik Hero (slider tanımlı değilse) === */
.hero {
    padding: 140px 0 90px;
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}
.hero .btn-outline-light {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.hero .btn-outline-light:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

/* === Slider Hero === */
.hero-slider {
    position: relative;
    height: 50vh;
    min-height: 400px;
}
.hero-slider .carousel-inner, .hero-slider .carousel-item {
    height: 100%;
}
.slider-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}
.carousel-item.active .slider-bg {
    transform: scale(1);
}
.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8, 40, 74, 0.9) 0%, rgba(13, 59, 102, 0.7) 100%);
}
.hero-slider .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    text-align: center;
}
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.carousel-item.active .animate-slide-up {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0;
    transition: 0.3s;
}
.hero-slider:hover .carousel-control-prev, .hero-slider:hover .carousel-control-next {
    opacity: 1;
}
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover {
    background: var(--accent);
}

.hero-badge {
    display: inline-block;
    background: rgba(244,162,97,0.2);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(244,162,97,0.3);
}

/* === Section Common === */
section.section { padding: 90px 0; }
.section-bg-light { background: var(--bg-light); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: block;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* === Service Cards === */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    transition: 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 22px;
    transition: 0.4s;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: rotate(-8deg) scale(1.05);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--text-light); margin-bottom: 18px; }
.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-link:hover { color: var(--accent); gap: 12px; }

/* === About Preview === */
.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-wrapper img { display: block; width: 100%; }
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--accent);
    color: var(--white);
    padding: 20px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.experience-badge .num { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.experience-badge .lbl { font-size: 0.85rem; }
.about-features { list-style: none; padding: 0; margin: 28px 0 0; }
.about-features li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-weight: 500;
}
.about-features li::before {
    content: '\F26B';
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0; top: 8px;
    color: var(--accent);
    font-size: 1.2rem;
}

/* === Counter Section === */
.counter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 70px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.counter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(244,162,97,0.1) 0%, transparent 50%);
}
.counter-item { text-align: center; position: relative; z-index: 2; }
.counter-item .num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}
.counter-item .lbl {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* === News Cards === */
.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.4s;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.news-card-img {
    aspect-ratio: 16/10;
    background: var(--bg-light);
    overflow: hidden;
    position: relative;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 26px; }
.news-card-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.news-card h3 { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.4; }
.news-card h3 a { color: var(--primary); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { color: var(--text-light); margin-bottom: 0; }

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    border-radius: 24px;
    margin: 0 0 90px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 40%);
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.92); margin-bottom: 28px; font-size: 1.1rem; position: relative; }
.cta-section .btn { background: var(--white); color: var(--primary); position: relative; }
.cta-section .btn:hover { background: var(--primary-dark); color: var(--white); }

/* === Page Hero (Inner Pages) === */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
    position: relative;
}
.page-hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 12px; }
.page-hero .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
    background: transparent;
}
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.85);
}
.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* === Forms === */
.form-control, .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13,59,102,0.08);
}
.form-label { font-weight: 600; color: var(--primary); margin-bottom: 8px; }

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.info-box {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--border);
    height: 100%;
    transition: 0.3s;
}
.info-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.info-box h4 { font-size: 1.1rem; margin-bottom: 8px; }
.info-box p { color: var(--text-light); margin: 0; }

/* === Article Content === */
.article-content { font-size: 1.05rem; color: var(--text); }
.article-content p { margin-bottom: 18px; }
.article-content h4 { margin-top: 28px; margin-bottom: 14px; color: var(--primary); }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 22px; }
.article-content ul li { margin-bottom: 8px; }

/* === Gallery === */
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: 0.3s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '\F4F1';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--accent);
    color: var(--white);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
}
.gallery-item:hover::after { transform: translate(-50%, -50%) scale(1); }

/* === Footer === */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
    margin-top: 0;
}
.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 14px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-about { font-size: 0.95rem; line-height: 1.8; margin-bottom: 22px; }
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact i { color: var(--accent); margin-right: 10px; }
.footer-social a {
    display: inline-flex;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 10px;
    margin-right: 8px;
    align-items: center; justify-content: center;
    font-size: 1rem;
}
.footer-social a:hover { background: var(--accent); }

/* === Reusable link lists on light backgrounds (e.g. sidebar cards) === */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 10px; font-size: 0.95rem; }
.related-list a { color: var(--text); font-weight: 500; }
.related-list a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}
.footer-bottom a { color: var(--accent); }

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { background: #1ebe5a; color: var(--white); transform: scale(1.08); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
}

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 100px; right: 24px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); color: var(--white); }

/* === Teklif Form & UI === */
.quote-form-wrap {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.form-step {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}
.form-step h5 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(244,162,97,0.1);
    color: var(--accent);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }

/* === Responsive === */
@media (max-width: 991px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding: 80px 0 100px; }
    .hero h1 { font-size: 2.4rem; }
    section.section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .navbar-nav .nav-link.active::after { display: none; }
}
@media (max-width: 575px) {
    .hero h1 { font-size: 2rem; }
    .counter-item .num { font-size: 2.5rem; }
}
