* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1e3a5f;
    --secondary: #c9a227;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #444;
    --border: #e0e0e0;
    --radius: 6px;
    --radius-sm: 4px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #f0f1f3;
}

/* Header */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span { color: var(--secondary); }

.header-phone {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.13rem;
    opacity: 0.9;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.header-phone:hover { opacity: 1; }

/* Header Nav — grup menüsü */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.5rem;
}

.header-nav::-webkit-scrollbar { display: none; }

.header-nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.15s;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.header-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.header-nav-link.active {
    color: var(--primary);
    background: var(--secondary);
    font-weight: 600;
}

/* Content Page Header — başlık + breadcrumb bloğu */
.content-page-header {
    padding-bottom: 1rem;
}

.content-page-header h2 {
    margin: 0 0 0.2rem !important;
}

.content-page-header .subtitle {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* Page Header (eski, anasayfa uyumluluğu için) */
.page-header {
    background: white;
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
}

.page-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-separator { color: #ccc; }

/* Layout */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 1.5rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 1px; }

.sidebar-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    font-size: 0.9rem;
}

.sidebar-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.sidebar-menu a.active {
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--secondary);
}

.sidebar-menu .icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.quick-contact-box {
    border: 4px solid var(--secondary);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    color: var(--primary);
}

.quick-contact-box h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: var(--secondary);
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.quick-contact-item:last-child { margin-bottom: 0; }
.quick-contact-item a { color: var(--primary); text-decoration: none; }
.quick-contact-item a:hover { text-decoration: underline; }

.quick-contact-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Content Hero Image */
.content-hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
}

.content-hero-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.quick-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.quick-btn-whatsapp { background: #25d366; color: white; }
.quick-btn-call { background: var(--secondary); color: var(--primary); }
.quick-btn:hover { opacity: 0.9; }

.content-area h2 {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.content-area h2:first-of-type { margin-top: 0; }

.content-area .subtitle {
    font-size: 1rem;
    color: #666;
    padding-bottom: .85rem;
}

.content-area h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 1.5rem 0 0.5rem;
}

.content-area p {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    font-size: 0.95rem;
}

.content-area ul,
.content-area ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
}

.content-area li {
    margin-bottom: 0.35rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.highlight-box {
    background: var(--light);
    border-left: 3px solid var(--secondary);
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.highlight-box h4 {
    color: var(--primary);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Internal link styling */
.content-area a {
    color: var(--primary);
    font-size: 1rem;
}

.content-area a:hover {
    color: var(--accent);
}

/* Related pages */
.related-pages {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.related-pages h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.related-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    color: var(--primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
    border: 1px solid var(--border);
}

.related-link:hover {
    background: white;
    border-color: var(--secondary);
}

/* Form Sidebar */
.form-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.form-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.form-header {
    background: var(--primary);
    padding: 1rem 1.25rem;
    color: white;
}

.form-header h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.form-body { padding: 1.25rem; }

.form-group { margin-bottom: 0.85rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.15s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover { background: #b8941f; }

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.75rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2.5rem 2rem 1rem;
    margin-top: 1.5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.footer-brand p { opacity: 0.8; line-height: 1.7; font-size: 0.9rem; }

.footer-links h4 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; color: var(--secondary); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .page-container {
        grid-template-columns: 1fr;
        max-width: 680px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    .sidebar, .form-sidebar { position: static; }
    .content-area { order: 1; }
    .sidebar { order: 2; }
    .form-sidebar { order: 3; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-container { padding: 0.75rem 1rem; flex-wrap: wrap; }
    .logo { font-size: 1.15rem; }
    .header-phone { font-size: 1.1rem; color:white; opacity: 1; }
    .header-nav {
        order: 3;
        width: 100%;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.15);
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-nav-link { font-size: 0.78rem; padding: 0.35rem 0.6rem; }
    .page-header h1 { font-size: 1.4rem; }
    .page-header { padding: 1.25rem 0 0.75rem; }
    .page-header-container { padding: 0 1rem; }
    .content-area { padding: 1.25rem; }
    .content-area h2 { font-size: 1.2rem; }
    .sidebar-section { padding: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: opacity 0.15s;
}

.sticky-btn:hover { opacity: 0.9; }

.sticky-whatsapp {
    background: #25d366;
    color: white;
}

.sticky-call {
    background: var(--secondary);
    color: var(--primary);
}

.sticky-menu {
    flex: 0 0 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-top: -14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    padding: 0;
}

.sticky-menu .menu-icon {
    font-size: 1.2rem;
}

/* Sayfa Menu Drawer */
.sayfa-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 950;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}

.sayfa-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sayfa-menu-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 960;
    background: white;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
}

.sayfa-menu-drawer.active {
    transform: translateY(0);
}

.sayfa-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.sayfa-menu-header button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sayfa-menu-header button:hover {
    background: var(--light);
}

.sayfa-menu-body {
    padding: 0.75rem 1.25rem 5rem;
}

.sayfa-menu-section {
    margin-bottom: 1rem;
}

.sayfa-menu-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    padding-bottom: 0.4rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.sayfa-menu-section a {
    display: block;
    padding: 0.55rem 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.15s;
}

.sayfa-menu-section a:hover {
    background: var(--light);
    color: var(--primary);
}

@media (max-width: 1200px) {
    .mobile-sticky-bar {
        display: flex;
    }

    /* İçerik alanının altına padding ekle ki sticky bar'ın altında kalmasın */
    body {
        padding-bottom: 70px;
    }
}

@media (min-width: 1201px) {
    .sayfa-menu-overlay,
    .sayfa-menu-drawer {
        display: none !important;
    }
}