/* ==========================================
   İSTANBUL ACİL ÇİLİNGİR - VISION 2026
   LOCKSMITH PROFESSIONAL UI SYSTEM
   Frameworksüz | Saf CSS3 | Full Responsive
   ========================================== */

/* ==========================================
   CSS VARIABLES - LOCKSMITH COLOR SYSTEM
   ========================================== */
:root {
    /* Primary - Güven ve Otorite (Lacivert) */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #020617;
    
    /* Accent - Aciliyet ve Dikkat (Amber/Altın) */
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.3);
    
    /* Text Colors */
    --text: #334155;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #020617;
    
    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Oswald', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: var(--accent);
}

.logo svg {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    padding: 0.5rem;
}

@media (max-width: 991px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .nav-link:hover {
        background: var(--bg-alt);
    }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(245, 158, 11, 0.3);
}

.btn-dark {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-glow) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--text-lighter);
}

/* ==========================================
   MAIN WRAPPER
   ========================================== */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .main-wrapper {
        grid-template-columns: 320px 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.sidebar-title svg {
    color: var(--accent);
}

.location-list,
.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.location-list::-webkit-scrollbar,
.service-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-thumb,
.service-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

.location-link,
.service-link {
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    color: var(--text-dark);
}

.location-link:hover,
.service-link:hover {
    background: var(--primary);
    color: white;
    padding-left: 1.25rem;
}

.location-link.active,
.service-link.active {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.location-back {
    background: var(--primary);
    color: white;
}

.location-back:hover {
    background: var(--primary-light);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--primary);
}

.sidebar-cta h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    margin-bottom: 1rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================
   SERVICES GRID
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    text-align: center;
    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 var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-alt);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================
   ARTICLE CARD
   ========================================== */
.article-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.article-card h2 {
    font-family: var(--font-display);
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.article-card h3 {
    font-family: var(--font-display);
    color: var(--primary-light);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.article-card h4 {
    font-family: var(--font-display);
    color: var(--text-dark);
    margin: 1.25rem 0 0.75rem;
    font-size: 1.2rem;
}

.article-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.article-card ul,
.article-card ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.article-card ul li,
.article-card ol li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-card ul li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.article-card ol {
    counter-reset: item;
}

.article-card ol li {
    counter-increment: item;
}

.article-card ol li::before {
    content: counter(item) ".";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.article-card a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-base);
}

.article-card a:hover {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    text-decoration-color: var(--accent);
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .article-card {
        padding: 2rem 1.5rem;
    }
    
    .article-card h2 {
        font-size: 1.75rem;
    }
    
    .article-card h3 {
        font-size: 1.35rem;
    }
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */
.reviews-section {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.reviews-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.rating-text {
    font-weight: 600;
    color: var(--text-dark);
}

.review-item {
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-header strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.review-stars {
    color: #fbbf24;
}

.review-text {
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-desc {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-contact {
    color: #cbd5e1;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: all var(--transition-base);
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.footer-hours {
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-credits a {
    color: var(--accent);
    font-weight: 600;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* ==========================================
   WHATSAPP FLOAT BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all var(--transition-base);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 2rem;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}