/* ===================================
   ANTALYA BOYA USTASI - CSS
   Modern, Responsive, SEO-Friendly
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --text: #34495e;
    --success: #25D366;
    --gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.header.scrolled {
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.8;
}

/* Navigation */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-menu > ul > li > a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 4px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.06);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 8px 16px;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(231, 76, 60, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

.dropdown-menu a.active {
    background: rgba(231, 76, 60, 0.12);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text);
    margin: 0 8px;
}

/* Hero Section */
.service-hero {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.service-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.service-hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.8) 0%, rgba(192, 57, 43, 0.8) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease-out;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
}

.slide-content .hero-buttons {
    animation: fadeIn 1.5s ease-out;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Trust Badges on Slider */
.trust-badges {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-badge {
    background: rgba(255,255,255,0.95);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideInRight 1s ease-out;
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #128C7E;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Content Layout */
.service-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    background: white;
}

.main-content article {
    line-height: 1.8;
}

.main-content h2 {
    color: var(--dark);
    font-size: 32px;
    margin: 30px 0 20px;
}

.main-content h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 25px 0 15px;
}

.main-content p {
    margin-bottom: 15px;
}

.main-content ul {
    margin: 15px 0 15px 30px;
}

.main-content li {
    margin-bottom: 10px;
}

.main-content strong {
    color: var(--dark);
}

.main-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    background: var(--light);
    margin: 20px 0;
    font-style: italic;
}

.main-content blockquote footer {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--light);
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

/* CTA Box */
.cta-box {
    background: var(--gradient);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 25px;
    opacity: 0.9;
}

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

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-card h3 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.sidebar-card.cta-card {
    background: var(--gradient);
    color: white;
}

.sidebar-card.cta-card h3 {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.sidebar-card.cta-card p {
    margin-bottom: 20px;
}

.service-list,
.location-list {
    list-style: none;
}

.service-list li,
.location-list li {
    margin-bottom: 12px;
}

.service-list a,
.location-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 5px;
}

.service-list a:hover,
.location-list a:hover {
    background: var(--light);
    color: var(--primary-color);
    padding-left: 15px;
}

.service-list i,
.location-list i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-col i {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 10px 0;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.08), 0 -4px 16px rgba(0,0,0,0.06);
    /* iPhone notch / home indicator için güvenli alan */
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1102; /* Header (1100) ve overlay (1048) üzerinde */
    border-top: 1px solid #f0f2f5;
}

.mobile-bottom-nav .nav-item,
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    padding: 4px 2px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    gap: 3px;
    position: relative;
}

.mobile-bottom-nav i {
    font-size: 22px;
    line-height: 1;
}

/* Telefon butonu özel renk */
.mobile-bottom-nav a[href^="tel:"] {
    color: #e74c3c;
}

/* WhatsApp butonu özel renk */
.mobile-bottom-nav a[href*="wa.me"] {
    color: #25D366;
}

/* Hover / aktif genel */
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav a:hover {
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.06);
}

/* Aktif sayfa vurgusu */
.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav a.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav a.active i {
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {

    /* Header overlay'in üzerinde kalmalı (hamburger tıklanabilsin) */
    .header {
        z-index: 1100;
    }

    /* ---- Hamburger ---- */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1101;
        padding: 6px;
        margin: -6px;
    }

    .hamburger span {
        display: block;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hamburger açık hali (CSS class ile) */
    .hamburger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* ---- Overlay ---- */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1048;
        backdrop-filter: blur(2px);
    }
    .nav-overlay.active {
        display: block;
    }

    /* ---- Nav Panel (ana <ul>) ---- */
    .nav-menu > ul {
        position: fixed;
        top: 64px;            /* Header yüksekliği kadar aşağıdan başla */
        left: 0;
        right: 0;
        z-index: 1049;
        border-top: 1px solid #ebebeb;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;        /* KRİTİK: öğeler tam genişlikte */
        gap: 0;
        padding: 8px 0 24px;
        max-height: calc(90vh - 64px);
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;

        /* Kapalı durum */
        display: flex;
        transform: translateY(-110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        visibility: hidden;
        list-style: none;
    }

    .nav-menu > ul.active {
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    /* Ana menü li öğeleri */
    .nav-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid #f0f2f5;
    }

    .nav-menu > ul > li:last-child {
        border-bottom: none;
    }

    /* Ana menü linkleri */
    .nav-menu > ul > li > a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        font-size: 15px;
        color: #1a2332;
        font-weight: 500;
        width: 100%;
    }

    /* ---- Dropdown (Alt menü) ---- */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: #f5f6f8;
        border-top: 1px solid #ebebeb !important;
        border-radius: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
        width: 100% !important;

        /* Başlangıçta GİZLİ — !important ile desktop display:flex'i ezer */
        display: none !important;
    }

    .dropdown-menu.dropdown-open {
        display: flex !important;
        flex-direction: column !important;
    }

    .dropdown-menu li {
        width: 100%;
        border-bottom: 1px solid #eeeff1 !important;
    }

    .dropdown-menu li:last-child {
        border-bottom: none !important;
    }

    .dropdown-menu a {
        display: flex !important;
        align-items: center !important;
        padding: 12px 20px 12px 40px !important;
        font-size: 13.5px !important;
        border-left: 3px solid transparent !important;
        white-space: normal !important;
        color: #4b5563 !important;
        gap: 8px;
    }

    .dropdown-menu a::before {
        content: '—';
        font-size: 11px;
        color: #cbd5e1;
        flex-shrink: 0;
        margin-right: 2px;
    }

    .dropdown-menu a:hover {
        padding-left: 44px !important;
        background: rgba(231, 76, 60, 0.06) !important;
        color: var(--primary-color) !important;
        border-left-color: var(--primary-color) !important;
    }

    /* Chevron dönüşümü */
    .dropdown-toggle .fa-chevron-down {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 12px;
        color: #9ca3af;
    }

    .dropdown.dropdown-open > .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
        color: var(--primary-color);
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .trust-badges {
        position: static;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .trust-badge {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .service-hero h1 {
        font-size: 32px;
    }
    
    .service-hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .trust-badge {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .slider-controls {
        bottom: 15px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 25px;
    }
    
    .service-hero h1 {
        font-size: 24px;
    }
    
    .main-content h2 {
        font-size: 24px;
    }
    
    .main-content h3 {
        font-size: 20px;
    }
    
    .cta-box {
        padding: 25px 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .header, .mobile-bottom-nav, .sidebar, .cta-box {
        display: none;
    }
}