/**
 * LAYOUT.CSS - Layout Components
 * Header, Footer, Navigation, Sections
 * Mobile-First & Performance Optimized
 * @version 2.0
 */

/* ============================================ */
/* SECTIONS */
/* ============================================ */

section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.section-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* ============================================ */
/* HEADER - Sticky Optimized */
/* ============================================ */

.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition-fast);
    will-change: box-shadow;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex-shrink: 0;
    z-index: 2;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .logo img {
        height: 50px;
    }
}

/* ============================================ */
/* NAVIGATION - DESKTOP */
/* ============================================ */

.main-nav {
    display: none;
}

/* Desktop Only */
@media (min-width: 1024px) {
    .main-nav {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 5px;
        margin: 0;
    }
    
    .nav-item {
        position: relative;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 10px 16px;
        color: var(--text-dark);
        font-weight: 500;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
        white-space: nowrap;
    }
    
    .nav-link:hover,
    .nav-item.active .nav-link {
        background-color: var(--bg-light);
        color: var(--accent-500);
    }
    
    /* Dropdown */
    .has-dropdown > .nav-link {
        background: none;
        border: none;
        font: inherit;
        cursor: pointer;
        color: inherit;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 250px;
        background-color: white;
        box-shadow: var(--shadow-xl);
        border-radius: var(--radius-lg);
        list-style: none;
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition-fast);
        z-index: 100;
    }
    
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-link {
        display: block;
        padding: 10px 20px;
        color: var(--text-dark);
        font-size: 0.95rem;
        transition: var(--transition-fast);
    }
    
    .dropdown-link:hover,
    .dropdown-link:focus {
        background-color: var(--bg-light);
        color: var(--accent-500);
        outline: none;
    }
}

/* ============================================ */
/* HEADER CTA */
/* ============================================ */

.header-cta {
    display: none;
}

/* Tablet & Desktop */
@media (min-width: 1024px) {
    .header-cta {
        display: flex;
        align-items: center;
        margin-left: 20px;
        z-index: 2;
    }
    
    .header-cta .btn {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }
    
    .header-cta .btn svg {
        flex-shrink: 0;
    }
}

/* ============================================ */
/* MOBILE MENU TOGGLE */
/* ============================================ */

.mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Desktop */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ============================================ */
/* MOBILE MENU */
/* ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition-fast);
    border-radius: var(--radius-md);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background-color: var(--gray-100);
    color: var(--gray-900);
    outline: none;
}

.mobile-menu-close:active {
    transform: scale(0.95);
}

/* Mobile Nav */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: var(--gray-900);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-nav-link svg {
    flex-shrink: 0;
    color: var(--primary-500);
    width: 20px;
    height: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: var(--gray-50);
    color: var(--primary-600);
    outline: none;
}

.mobile-nav-link:active {
    background-color: var(--gray-100);
}

.mobile-submenu-toggle {
    justify-content: space-between;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--gray-500) !important;
    width: 20px;
    height: 20px;
}

.mobile-nav-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--gray-50);
}

.mobile-nav-item.has-submenu.open .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 16px 12px 48px;
    color: var(--gray-700);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
    background-color: white;
    color: var(--primary-600);
    padding-left: 52px;
    outline: none;
}

.mobile-submenu-link:active {
    background-color: var(--gray-100);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 16px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-menu-footer .btn {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.mobile-menu-footer .btn:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (min-width: 768px) {
    .mobile-menu-content {
        width: 320px;
    }
    
    .mobile-menu-header {
        padding: 20px;
    }
    
    .mobile-nav-link {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .mobile-submenu-link {
        padding: 12px 20px 12px 52px;
        font-size: 0.95rem;
    }
    
    .mobile-menu-footer {
        padding: 20px;
    }
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    max-width: 100%;
}

.footer-brand {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-about {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent-400);
    padding-left: 5px;
    outline: none;
}

.footer-contact {
    list-style: none;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    align-items: flex-start;
    font-size: 0.95rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-400);
    width: 18px;
    height: 18px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a:hover,
.footer-contact-item a:focus {
    color: var(--accent-400);
    outline: none;
}

.footer-contact-item .highlight {
    color: var(--accent-400);
    font-weight: 600;
}

.footer-social {
    margin-top: 16px;
}

.social-media {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-2px);
    outline: 2px solid var(--accent-400);
    outline-offset: 2px;
}

.social-link:active {
    transform: translateY(0);
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.footer-iskur {
    background: linear-gradient(135deg, rgba(59, 91, 219, 0.1), rgba(249, 115, 22, 0.05));
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.iskur-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.iskur-icon {
    flex-shrink: 0;
    color: var(--accent-500);
}

.iskur-icon svg {
    width: 40px;
    height: 40px;
}

.iskur-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: white;
}

.highlight-orange {
    color: var(--accent-500);
}

.iskur-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.875rem;
}

/* Tablet */
@media (min-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-brand {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .footer-about,
    .footer-links a,
    .footer-contact-item,
    .iskur-text p {
        font-size: 1rem;
    }
    
    .footer-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .iskur-content {
        flex-direction: row;
        text-align: left;
    }
    
    .iskur-title {
        font-size: 1.125rem;
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .iskur-content {
        gap: 20px;
    }
    
    .iskur-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ============================================ */
/* FLOATING BUTTONS */
/* ============================================ */

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition-fast);
    color: white;
    -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
    transform: scale(1.1);
    background-color: var(--whatsapp-dark);
    color: white;
    outline: 2px solid var(--whatsapp);
    outline-offset: 4px;
}

.floating-whatsapp:active {
    transform: scale(1.05);
}

.scroll-to-top {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
    z-index: 998;
    color: white;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    transform: translateY(-3px);
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .floating-whatsapp {
        width: 60px;
        height: 60px;
        bottom: 30px;
    }
    
    .floating-whatsapp svg {
        width: 30px;
        height: 30px;
    }
    
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 30px;
    }
    
    .scroll-to-top svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================ */
/* MOBILE STICKY BAR */
/* ============================================ */

.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 10000;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.sticky-btn-call {
    background-color: var(--primary-600);
    color: white;
}

.sticky-btn-call:hover,
.sticky-btn-call:active {
    background-color: var(--primary-700);
    color: white;
}

.sticky-btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.sticky-btn-whatsapp:hover,
.sticky-btn-whatsapp:active {
    background-color: var(--whatsapp-dark);
    color: white;
}

.sticky-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sticky-btn span {
    font-size: 0.85rem;
}

/* Hide on Tablet & Desktop */
@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .floating-whatsapp {
        display: flex;
    }
    
    .scroll-to-top {
        bottom: 100px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .sticky-btn span {
        display: none;
    }
    
    .sticky-btn {
        padding: 16px 10px;
    }
}

/* ============================================ */
/* FOOTER DISCLAIMER - New Section */
/* ============================================ */

.footer-disclaimer {
    display: flex;
    gap: 16px;
    padding: 24px;
    margin-top: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-lg);
}

.disclaimer-icon {
    flex-shrink: 0;
}

.disclaimer-icon svg {
    width: 24px;
    height: 24px;
    color: #f59e0b;
}

.disclaimer-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #78350f;
}

.disclaimer-text strong {
    color: #92400e;
    font-weight: 700;
}

/* Spacing for "Kurumsal" title */
.footer-title-spacing {
    margin-top: 30px;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .footer-disclaimer {
        gap: 20px;
        padding: 28px 32px;
    }
    
    .disclaimer-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .disclaimer-text {
        font-size: 0.9375rem;
    }
}