/* =============================================================================
   style.css – SU TESİSATI İZMİR – TAM KOD (EKSİKSİZ, MOBİL UYUMLU, SEO DOSTU)
   Renk Paleti: #0066cc (mavi), #ff6b35 (turuncu), #f5f9ff (arka plan), #003366 (koyu mavi)
   ============================================================================= */

*{box-sizing:border-box;margin:0;padding:0}
html,body{font-family:Segoe UI,Arial,sans-serif;line-height:1.6;background:#f5f9ff;color:#003366;font-size:16px;height:100%}
a{color:#0066cc;text-decoration:none;transition:color .3s}
a:hover{color:#ff6b35}
h1,h2,h3,h4,h5,h6{color:#003366;margin:15px 0 10px;font-weight:700}
p{margin-bottom:15px}
ul{list-style:disc;padding-left:25px;margin-bottom:15px}
li{margin-bottom:6px}

/* === ATLAMA BAĞLANTISI === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ff6b35;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    z-index: 10000;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #ffb399;
    outline-offset: 2px;
}

/* ======================= ANA MENÜ ======================= */
.main-menu{
    background:#003366;
    padding:12px 0;
    box-shadow:0 4px 12px rgba(0,0,0,.5);
    position:sticky;
    top:0;
    z-index:1000;
}
.main-menu ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    justify-content:center;
    gap:8px;
    overflow-x:auto;
    white-space:nowrap;
    scrollbar-width:none;
    -ms-overflow-style:none;
}
.main-menu ul::-webkit-scrollbar{display:none}
.main-menu a{
    color:#fff;
    text-decoration:none;
    padding:10px 16px;
    border-radius:6px;
    font-weight:600;
    font-size:.95em;
    transition:all .3s;
    display:block;
}
.main-menu a:hover,
.main-menu a.active,
.main-menu a[aria-current="page"]{
    background:#ff6b35;
    color:#fff;
}
.main-menu a:focus{
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ======================= HERO BÖLÜMÜ ======================= */
.hero-section{
    background:linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.7)),url('img/hero-su.webp') center/cover no-repeat;
    color:#fff;
    text-align:center;
    padding:90px 20px 70px;
    margin-top:-10px;
}
.hero-content h1{
    font-size:2.9em;
    margin:0 0 12px;
    text-shadow:0 0 12px rgba(0,0,0,.8);
    color:#ff6b35;
}
.hero-content p{
    font-size:1.25em;
    margin:0 0 22px;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}
.cta-button{
    background:#ff6b35;
    color:#fff;
    padding:15px 34px;
    border-radius:28px;
    font-weight:bold;
    text-decoration:none;
    display:inline-block;
    transition:all .3s;
    font-size:1.15em;
    box-shadow:0 4px 15px rgba(255,107,53,.4);
    border:none;
    cursor:pointer;
}
.cta-button:hover{
    background:#e55a2b;
    transform:scale(1.05);
    box-shadow:0 0 18px rgba(255,107,53,.6);
}
.cta-button:focus{
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ======================= LOGO SLAYT (SONSUZ DÖNGÜ) ======================= */
.brand-logos-container{
    overflow:hidden;
    background:#0066cc;
    padding:20px 0;
    margin:25px auto 0;
    max-width:92%;
    border-radius:18px;
    border:3px solid #ff6b35;
    box-shadow:0 6px 20px rgba(0,0,0,.28);
    position:relative;
}
.logo-track{
    display:flex;
    gap:55px;
    align-items:center;
    will-change:transform;
    justify-content:flex-start;
    padding:0 25px;
    backface-visibility:hidden;
    transform:translate3d(0,0,0);
}
.logo-track img{
    height:76px;
    width:auto;
    filter:drop-shadow(0 3px 6px rgba(0,0,0,.55));
    flex-shrink:0;
    transition:all .35s ease;
    object-fit:contain;
    background:transparent;
    padding:8px;
    border-radius:14px;
}
.logo-track img:hover{
    transform:scale(1.22) translateY(-3px);
    filter:drop-shadow(0 6px 14px rgba(0,0,0,.75));
    background:rgba(255,255,255,.35);
    border-radius:16px;
}

@keyframes scroll-desktop{
    from{transform:translate3d(0,0,0)}
    to{transform:translate3d(-50%,0,0)}
}
@keyframes scroll-mobile{
    from{transform:translate3d(0,0,0)}
    to{transform:translate3d(-50%,0,0)}
}

@media (max-width:768px){
    .brand-logos-container{
        max-width:96%;
        padding:16px 0;
        margin:20px auto 0;
        border-radius:15px;
        border-width:2px;
    }
    .logo-track{
        gap:28px;
        padding:0 15px;
    }
    .logo-track img{
        height:44px;
        padding:5px;
    }
}
@media (prefers-reduced-motion:reduce){
    .logo-track{animation:none}
}

/* ======================= SAYFA İÇERİKLERİ ======================= */
.page-section{
    max-width:1200px;
    margin:35px auto;
    padding:0 20px;
}
.section-title{
    text-align:center;
    margin-bottom:25px;
    color:#003366;
    font-size:1.9em;
    position:relative;
}
.section-title::after{
    content:'';
    display:block;
    width:60px;
    height:4px;
    background:#ff6b35;
    margin:12px auto 0;
    border-radius:2px;
}

/* ======================= İLÇELER SAYFASI ======================= */
.cities-grid{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:center;
    padding:0 15px;
}
.city-item{
    max-width:350px;
    width:100%;
    margin:0 auto;
}
.city-button{
    display:block;
    width:100%;
    padding:22px 26px;
    background:#0066cc;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:1.22rem;
    border-radius:15px;
    text-align:center;
    box-shadow:0 6px 16px rgba(0,102,204,.45);
    transition:all .3s ease;
    cursor:pointer;
    border:none;
}
.city-button:hover{
    background:#ff6b35;
    transform:translateY(-4px);
    box-shadow:0 10px 22px rgba(255,107,53,.55);
}
.city-button:focus{
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ======================= İLÇE BİLGİ KUTUSU ======================= */
.district-info-box{
    background: linear-gradient(135deg, #0066cc, #004a99);
    color: #fff;
    padding: 28px 24px;
    border-radius: 18px;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0,102,204,.4);
    border: 2px solid #ff6b35;
    position: relative;
    overflow: hidden;
}
.district-info-box::before{
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255,255,255,.08);
    transform: rotate(30deg);
    pointer-events: none;
}
.district-info-box h2{
    color: #ff6b35;
    font-size: 1.75em;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.district-info-box p{
    margin-bottom: 16px;
    font-size: 1.05em;
    line-height: 1.7;
}
.district-info-box p:last-child{margin-bottom:0}
.district-info-box strong{color:#ffeb3b}

/* ======================= FOTOĞRAF GALERİSİ ======================= */
.fixed-photos-section{
    max-width:1200px;
    margin:35px auto;
    padding:0 20px;
    display:block;
}
.photos-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:22px;
    justify-content:center;
    padding:0 15px;
}
.photo-item{
    text-align:center;
    background:#ffffff;
    border:3px solid #0066cc;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 7px 20px rgba(0,0,0,.42);
    min-height:280px;
    position:relative;
    transition:transform .3s,box-shadow .3s;
}
.photo-item:hover,
.photo-item:focus-within{
    transform:translateY(-9px);
    box-shadow:0 14px 28px rgba(0,0,0,.62);
    border-color:#ff6b35;
}
.photo-item img{
    width:100%;
    height:250px;
    object-fit:contain;
    border-radius:8px 8px 0 0;
    visibility:hidden;
    opacity:0;
    transition:opacity .4s ease;
    background:#f0f0f0;
}
.photo-item img.loaded{
    visibility:visible;
    opacity:1;
}
.photo-caption{
    margin:14px 0 18px;
    font-size:1.12rem;
    font-weight:600;
    color:#ff6b35;
    padding:0 14px;
}

/* ======================= YUKARI OK BUTONU ======================= */
.scroll-top-btn{
    position:fixed;
    bottom:22px;
    right:22px;
    width:52px;
    height:52px;
    background:#ff6b35;
    border:none;
    border-radius:50%;
    cursor:pointer;
    box-shadow:0 5px 14px rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:all .3s ease;
    z-index:999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}
.scroll-top-btn.show{
    opacity:1;
    visibility:visible;
}
.scroll-top-btn:hover{
    background:#e55a2b;
    transform:scale(1.12);
}
.scroll-top-btn:focus{
    outline: 3px solid #fff;
    outline-offset: 2px;
}
.scroll-top-btn svg{
    width:19px;
    height:19px;
    stroke:#fff;
    fill:none;
}

/* ======================= GERİ DÖN BUTONU ======================= */
.back-link{
    display:inline-block;
    margin-top:25px;
    color:#ff6b35;
    text-decoration:none;
    font-weight:bold;
    font-size:1.02em;
    transition:color .3s;
}
.back-link:hover{
    color:#e55a2b;
    text-decoration:underline;
}
.back-link:focus{
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* ======================= BREADCRUMBS ======================= */
#breadcrumbs{
    padding:0 20px;
    font-size:0.92em;
    color:#ff6b35;
    margin-bottom:15px;
    display:none;
}
#breadcrumbs a{
    color:#ff6b35;
    text-decoration:none;
}
#breadcrumbs a:hover{
    text-decoration:underline;
}
#breadcrumbs a:focus{
    outline: 2px solid #ff6b35;
    outline-offset: 1px;
}

/* ======================= FOOTER ======================= */
footer{
    background:#003366;
    color:#fff;
    text-align:center;
    padding:25px;
    margin-top:50px;
    font-size:0.95em;
}
footer a{
    color:#ff6b35;
    text-decoration:none;
}
footer a:hover{
    text-decoration:underline;
}
footer a:focus{
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ======================= MOBİL UYUM ======================= */
@media (max-width:768px){
    .hero-content h1{font-size:2.1em}
    .hero-content p{font-size:1.1em}
    .main-menu a{font-size:.88em;padding:9px 12px}
    .cities-grid{gap:22px;flex-direction:column;align-items:center}
    .city-button{font-size:1.18rem;padding:20px 24px}
    .photos-grid{gap:16px}
    .photo-item img{height:220px}
    .scroll-top-btn{width:46px;height:46px}
    .scroll-top-btn svg{width:17px;height:17px}
    .section-title{font-size:1.7em}
    .page-section{padding:0 15px}
    .brand-logos-container{max-width:96%;padding:14px 0;border-radius:14px}
    .logo-track{gap:24px;padding:0 12px}
    .logo-track img{height:40px;padding:4px}
    .district-info-box{padding:22px 18px;margin:25px 0;border-radius:15px}
    .district-info-box h2{font-size:1.55em}
    .district-info-box p{font-size:1em}
}

/* ======================= YAZI BOYUTU KÜÇÜK EKRANLAR ======================= */
@media (max-width:480px){
    html{font-size:15px}
    .hero-content h1{font-size:1.9em}
    .cta-button{font-size:1.05em;padding:13px 30px}
    .city-button{font-size:1.1rem;padding:18px 22px}
}

/* ======================= YÜKSEK ÇÖZÜNÜRLÜKLÜ EKRANLAR ======================= */
@media (min-width:1400px){
    .page-section,.fixed-photos-section{max-width:1350px}
    .hero-content h1{font-size:3.2em}
    .city-button{font-size:1.3rem}
}