/* ========================================
   BAYPRODES - PUBLIC FRONTEND CSS
   Premium Grant Consultancy Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0A1628;
    --primary-light: #132240;
    --primary-dark: #060e1a;
    --gold: #D4A843;
    --gold-light: #e8c36a;
    --gold-dark: #b8922e;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --green: #27AE60;
    --blue: #3b82f6;
    --red: #dc3545;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-gold: 0 5px 25px rgba(212,168,67,0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,22,40,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10,22,40,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

/* Logo sola kaydırma sadece geniş ekranda */
@media (min-width: 993px) {
    .header-logo { margin-left: -150px; }
    .header-cta { margin-right: -30px; }
}

.header-logo img { width: 220px; height: auto; max-height: none !important; }

.header-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.header-logo .logo-text small {
    font-size: 11px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-nav a {
    color: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--gold);
    background: rgba(212,168,67,0.1);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cta .btn {
    padding: 8px 18px;
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--primary);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content h1 span { color: var(--gold); }

.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.7);
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* ========== SECTIONS ========== */
section { padding: 100px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title h2 span { color: var(--gold); }

.section-title p {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== STATS BAR ========== */
.stats-section {
    background: var(--primary);
    padding: 60px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.stat-item .stat-number .suffix {
    font-size: 28px;
}

.stat-item .stat-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

.stat-item .stat-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ========== SERVICES ========== */
.services-section { background: var(--gray-50); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card .icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

.service-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gold-dark);
}

.service-card .read-more:hover { gap: 10px; }

/* ========== PROCESS ========== */
.process-section { background: var(--white); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 60%, rgba(212,168,67,0.08) 0%, transparent 60%);
}

.cta-section h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    max-width: 550px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

/* ========== BLOG ========== */
.blog-section { background: var(--gray-50); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.blog-card .blog-body {
    padding: 25px;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.blog-card .blog-meta i { color: var(--gold); }

.blog-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--gold); }

.blog-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========== FAQ ========== */
.faq-section { background: var(--white); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--gold); }

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question i {
    color: var(--gold);
    transition: transform 0.3s;
}

.faq-item.active .faq-question { color: var(--gold); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    background: var(--primary);
    color: var(--white);
}

.testimonials-section .section-title h2 { color: var(--white); }
.testimonials-section .section-title p { color: rgba(255,255,255,0.6); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover { background: rgba(255,255,255,0.08); }

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 14px;
}

.testimonial-card .quote {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .client {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .client .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
}

.testimonial-card .client .name {
    font-weight: 600;
    font-size: 14px;
}

.testimonial-card .client .company {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ========== GRANT CALENDAR ========== */
.calendar-section { background: var(--gray-50); }

.grant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.grant-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.grant-card:hover { box-shadow: var(--shadow); }

.grant-card .institution {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(212,168,67,0.1);
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 10px;
}

.grant-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.grant-card .grant-meta {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.grant-card .grant-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.grant-card .grant-meta i { color: var(--gold); font-size: 12px; }

/* ========== FOOTER ========== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p { font-size: 14px; line-height: 1.7; }

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p { font-size: 13px; }
.footer-bottom a { color: var(--gold); }

.footer-legal {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--gold); }

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.page-header .breadcrumb a { color: var(--gold); }

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form { background: var(--white); }

.contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info .info-item .icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(212,168,67,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info .info-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info .info-item p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========== FORM STYLES ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-control:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 15px rgba(212,168,67,0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; }

/* ========== WHATSAPP BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px; height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
    color: var(--white);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    html, body { overflow-x: hidden !important; max-width: 100vw; }
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .header-logo { margin-left: 0 !important; }
    .header-logo img { width: 180px !important; }
    .header-cta { margin-right: 0 !important; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .grant-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
}

/* Body scroll lock when mobile menu is open */
body.menu-open { overflow: hidden !important; height: 100vh; }

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title h2 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .header-inner { height: 65px; }
    .header-logo img { width: 150px !important; }
    .hero-content { padding: 100px 0 60px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .process-steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item .stat-number { font-size: 32px; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .container { padding: 0 15px; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
    .header-cta .btn { padding: 6px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
    .header-logo img { width: 130px !important; }
    .header-inner { height: 55px; }
    .hero-content h1 { font-size: 24px; }
    .section-title h2 { font-size: 24px; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .service-card { padding: 25px; }
    .cta-section h2 { font-size: 24px; }
    .footer-social a { width: 36px; height: 36px; }
}

/* ========== MOBILE MENU ========== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.98);
    z-index: 1001;
    padding: 80px 30px 30px;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav .close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
