/* 
  Padişah Halı Yıkama - Tasarım Sistemi
  Renkler: Mavi (Güven & Temizlik), Beyaz (Hijyen), Açık Gri (Modernlik)
*/

:root {
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --light-blue: #e7f1ff;
    --dark-grey: #333333;
    --med-grey: #666666;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --accent-color: #28a745;
    /* WhatsApp yeşili / Başarı */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary-blue);
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo a span {
    color: var(--secondary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 12px;
    top: 100%;
    /* Gap closed, spacing handled via transparent bridge */
    margin-top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Transparent bridge to maintain hover state */
.dropdown-content::after {
    content: '';
    position: absolute;
    top: -30px;
    /* Increased to cover movement during animation */
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.dropdown-content a {
    color: var(--dark-grey);
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: none;
    transition: background 0.2s ease;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, 5px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Service Detail Styles */
.service-header {
    background: linear-gradient(rgba(0, 70, 150, 0.7), rgba(0, 30, 80, 0.8)), url('service-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 1;
}

.service-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.service-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs .current {
    color: var(--white);
    font-weight: 700;
}

.service-content {
    padding: 60px 10%;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.service-text {
    flex: 2;
    min-width: 300px;
}

.service-sidebar {
    flex: 1;
    min-width: 250px;
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.service-sidebar h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 5px;
}

.service-sidebar ul {
    list-style: none;
}

.service-sidebar li {
    margin-bottom: 12px;
}

.service-sidebar li a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: var(--transition);
}

.service-sidebar li a:hover {
    color: var(--secondary-blue);
    padding-left: 5px;
}

/* Hero Slider Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: heroSlider 20s infinite;
    filter: brightness(0.6);
}

@keyframes heroSlider {

    0%,
    20% {
        background-image: url('hali-hero.png');
    }

    25%,
    45% {
        background-image: url('koltuk-hero.png');
    }

    50%,
    70% {
        background-image: url('yatak-hero.png');
    }

    75%,
    95% {
        background-image: url('perde-hero.png');
    }

    100% {
        background-image: url('hali-hero.png');
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Services Grid */
.services-section {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-blue);
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--med-grey);
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 50px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Mobile Fixed Call Button */
.mobile-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-blue);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    /* Desktopta gizle */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .mobile-call-btn {
        display: flex;
    }
}