/* ================================================================
   AS Sineklik – style.css  (FINAL)
   ================================================================
   0) RESET + VARS
   1) GENEL
   2) ÜST BAR
   3) NAVBAR  (sticky)
   4) HERO CAROUSEL
   5) SİNEKLİK TÜRLERİ GRID
   6) POPÜLER MODELLER
   7) HİZMETLERİMİZ LISTE
   8) HAKKIMIZDA BÖLÜMÜ
   9) BLOG / YORUMLAR
  10) HİZMET BÖLGELERİ GRID
  11) İLETİŞİM SAYFASI
  12) FOOTER
  13) SABİT WHATSAPP & ARA BUTONLARI
  14) ORTA HIZDA PULSE‑WOBBLE ANİMASYONU
  15) RESPONSIVE KIRILMALAR (EN SONDADIR)
   ================================================================ */

/* ------------------------------------------------  0) RESET + VARS */
:root{
  --brand-dark : #000;
  --brand-light: #fff;
  --accent     : #ffb200;
  --whatsapp   : #25d366;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family:'Montserrat',sans-serif;
  line-height:1.6;
  color:#222;
  background:#fff;
}

ul{ list-style:none; }
a { text-decoration:none; color:inherit; }
.container{ width:100%; max-width:1300px; margin:auto; padding:0 1rem; }

/* ------------------------------------------------  1) GENEL */
.page-title,
h1{ text-align:center; margin:2.2rem 0 1.5rem;
     font-size:clamp(1.9rem,2.4vw+1rem,2.4rem); }
h2{ text-align:center; margin:1.7rem 0 1.1rem; }

/* ------------------------------------------------  2) ÜST BAR */
.topbar{
  background:var(--brand-light);
  border-bottom:1px solid #e5e5e5;
  font-size:.85rem; color:#555;
}
.topbar .container{ display:flex; justify-content:space-between;
                    align-items:center; flex-wrap:wrap; gap:1rem; }
.logo{ height:150px; }
.quick-contact{ display:flex; gap:1.5rem; flex-wrap:wrap; }
.quick-contact i{ color:var(--accent); margin-right:.3rem; }

/* ------------------------------------------------  3) NAVBAR */
.main-header{
  background:var(--brand-dark); position:sticky; top:0; z-index:999;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
}
.main-header .container{ display:flex; align-items:center; min-height:60px; }
.nav{ margin-left:auto; display:flex; gap:2.2rem; flex-wrap:wrap; }
.nav a{ font-weight:700; font-size:1rem; letter-spacing:.3px;
        position:relative; padding:.25rem 0; color:var(--brand-light); }
.nav a::after{ content:''; position:absolute; left:0; bottom:-6px;
               width:0; height:2px; background:var(--accent);
               transition:width .25s; }
.nav a:hover::after,
.nav a.active::after{ width:100%; }

/* ------------------------------------------------  4) HERO CAROUSEL */
/* POPÜLER MODELLER responsive düzeltme */

.model {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.model img {
  flex: 1 1 380px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.model-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

/* Küçük ekranlarda tam genişlik ve merkezleme */
@media (max-width: 768px) {
  .model {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .model img {
    max-width: 100%;
  }
  .model-info {
    align-items: center;
    width: 100%;
  }
}

/* Hero track genişliği otomatik; şimdi overflow :hidden yeter */
/* === HERO CAROUSEL (tam responsive) ========================= */
.hero-carousel{ position:relative; overflow:hidden; }

.hero-carousel .slides{
  display:flex;
  scroll-behavior:smooth;
  transition:transform .6s ease;          /* JS yedekli animasyon  */
}

/* === HERO SLIDE YÜKSEKLİĞİ ================================== */
/* Masaüstü‑tablet: ekranın %75‑90’ı kadar, min‑yükseklik 320 px  */
.slide{
  flex:0 0 100%;
  width:100%;
  height:clamp(320px, 75vh, 90vh);   /* ↑ burayı değiştirdik    */
}
.slide img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* Daha küçük telefonlarda aşırı yüksek olmasın */
@media (max-width:480px){
  .slide{ height:65vh; }            /* dilersen 70vh yap        */
}


/* Ok butonları zaten tanımlıysa bu kısmı atlayabilirsiniz */
.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%; border:none;
  display:grid; place-items:center; font-size:1.6rem; color:#fff;
  background:rgba(0,0,0,.45); cursor:pointer; transition:.25s;
}
.carousel-btn:hover{ background:rgba(0,0,0,.8); }
.carousel-btn.prev{ left:16px; }
.carousel-btn.next{ right:16px; }


/* ------------------------------------------------  5) SİNEKLİK TÜRLERİ GRID */
/* =====  Sineklik Çeşitleri – Kare hover kartlar  =============== */
.type-grid{
  display:grid; gap:2rem;
  grid-template-columns:repeat(4,1fr);
}

.type-card{
  position:relative; overflow:hidden;
  border-radius:.6rem; cursor:pointer;
  box-shadow:0 0 0 rgba(0,0,0,0); transition:.35s;
}
.type-card img{
  width:100%; aspect-ratio:1/1; object-fit:cover; display:block;
  transition:transform .35s;
}
/* Başlık şeffaf şerit */
.type-card .overlay{
  position:absolute; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.55); color:#fff;
  padding:.8rem 1rem; font-size:1rem;
  letter-spacing:.3px; text-align:center;
  transform:translateY(100%); transition:.4s;
}

.type-card:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.type-card:hover img      { transform:scale(1.08); }
.type-card:hover .overlay { transform:translateY(0); }

/* ------------ BREAKPOINTS ------------- */
@media (max-width:1024px){ .type-grid{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:768px) { .type-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px) { .type-grid{ grid-template-columns:1fr;} }

/* ===== Sineklik modeli KUTU düzeni ========================= */
.model-grid{
  display:grid; gap:2rem;
  grid-template-columns:repeat(2, 1fr);      /* masaüstü ► 2‑li */
}

.model-box{
  background:#fafafa; border:1px solid #eee; border-radius:.6rem;
  overflow:hidden; transition:.3s; box-shadow:0 0 0 rgba(0,0,0,0);
}
.model-box:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.model-box img{
  width:100%; aspect-ratio:1/1; object-fit:cover;
}

.model-box .box-body{ padding:1.2rem; text-align:center; }
.model-box h3{ margin-bottom:.6rem; font-size:1.2rem; }
.model-box p { font-size:.95rem; color:#444; }

/* ---- Responsive: 768 px ↓ yine 2‑li, 480 px ↓ tek sütun ---- */
@media(max-width:768px){
  .model-grid{ gap:1.6rem; }
}
@media(max-width:480px){
  .model-grid{ grid-template-columns:1fr; }
}


/* ------------------------------------------------  6) POPÜLER MODELLER */
#modeller{ padding:4rem 0; }
.model{ display:flex; flex-wrap:wrap; gap:2rem; margin-bottom:3rem; }
.model img{ flex:1 1 380px; max-width:480px; border-radius:.5rem;
            object-fit:cover; }
.model-info{ flex:1 1 320px; display:flex; flex-direction:column;
             justify-content:center; gap:1rem; }
.model-info h3{ font-size:1.6rem; }
.model-info p { color:#444; }

/* ------------------------------------------------  7) HİZMETLERİMİZ LISTE */
/* HİZMETLERİMİZ satır içi ikon düzeni  (style.css içinde .service-list sonrası) */
.service-list article{
  display:flex;                 /* ikon + metin yan yana */
  gap:1rem;
  align-items:flex-start;
  padding:1.25rem;
  background:#fafafa;
  border:1px solid #eee;
  border-radius:.5rem;
  margin-bottom:1.3rem;
}

.service-list i{
  font-size:2rem;               /* ikon boyu */
  color:var(--accent);
  flex-shrink:0;                /* metin daralsa bile ikon sabit */
  margin-top:.3rem;             /* başlıkla hizalama */
}

.service-list h2{
  font-size:1.15rem;
  margin:0 0 .35rem;
  text-align:left;              /* sayfa başlıkları ortada, bunlar solda */
}

/* MOBİL – ikon üstte, metin altta */
@media(max-width:600px){
  .service-list article{
    flex-direction:column;
    text-align:center;
  }
  .service-list i{ margin:.2rem 0 .6rem; }
  .service-list h2{ text-align:center; }
}


/* ------------------------------------------------  8) HAKKIMIZDA */
.about-contact{ padding:4rem 0; background:#f9f9f9; }
.about-contact .flex{ display:flex; flex-wrap:wrap; gap:2rem; }
.about{ flex:2 1 400px; }
.side‑widgets{ flex:1 1 260px; display:flex; flex-direction:column; gap:1.5rem; }
.widget{ background:#fff; border:1px solid #eee; border-radius:.5rem;
         padding:1.25rem; }
.widget h3{ margin-bottom:.6rem; font-size:1.1rem; }

/* ------------------------------------------------  9) BLOG / YORUMLAR */
/* =====  BLOG YAZISI + YORUM SİDEBAR DÜZENİ  =================== */
.blog-wrapper{
  display:flex; gap:2rem; align-items:flex-start;
}
.blog-feed  { flex:2 1 600px; }
.comments-sidebar{
  flex:1 1 260px; background:#fafafa; border:1px solid #eee;
  border-radius:.6rem; padding:1.5rem;
}

/* Blog yazısı */
.blog-post{
  margin-bottom:3rem;
  background:#fff;
  border-bottom:1px solid #ececec;
  padding-bottom:2.5rem;
}
.blog-post h2  { font-size:1.6rem; margin-bottom:.6rem; }
.blog-post .meta{ color:#777; font-size:.9rem; margin-bottom:1rem; }
.blog-post .lead{ font-weight:600; margin-bottom:.8rem; }
.blog-post .body{ line-height:1.7; text-align:justify; }

/* Yorum kutusu */
.side-title{ text-align:center; margin-bottom:1rem; font-size:1.3rem; }
.comment{ border-top:1px solid #e3e3e3; padding:1rem 0; }
.comment:first-of-type{ border-top:0; }
.comment .rating{ font-weight:700; color:var(--accent); margin-bottom:.3rem; }

/* --------  RESPONSIVE  --------------------------------------- */
@media (max-width:991px){
  .blog-wrapper{ gap:1.6rem; }
}
@media (max-width:768px){          /* iki sütun hâlâ korunur */
  .comments-sidebar{ flex:1 1 220px; padding:1.25rem; }
}
@media (max-width:600px){          /* alt alta yığılır */
  .blog-wrapper{ flex-direction:column; }
  .comments-sidebar{ order:-1; }   /* yorumlar üstte, istersen kaldır */
}

/* ------------------------------------------------ 10) HİZMET BÖLGELERİ GRID */
.grid-areas{ display:grid; gap:2rem;
             grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.area-card{ text-align:center; background:#fafafa; border:1px solid #eee;
            border-radius:.5rem; padding:1.25rem; }

/* ------------------------------------------------ 11) İLETİŞİM SAYFASI */
.contact-wrapper{ display:flex; flex-wrap:wrap; gap:2rem; justify-content:center; }
.contact-form,.contact-info{
  flex:1 1 320px; background:#fafafa; border:1px solid #eee;
  border-radius:.6rem; padding:1.5rem 1.75rem;
}
.contact-form h2,.contact-info h2{ text-align:center; margin-bottom:1rem;
                                   font-size:1.25rem; }
.contact-form input,.contact-form textarea{
  width:100%; padding:.75rem 1rem; margin-bottom:.9rem;
  border:1px solid #ccc; border-radius:.4rem; font:inherit; resize:vertical;
}
.contact-form button{
  display:block; width:100%; padding:.9rem 0; background:var(--accent);
  color:#fff; border:0; border-radius:.4rem; font-weight:700; cursor:pointer;
}
.contact-info i{ color:var(--accent); margin-right:.35rem; }
.contact-info iframe{
  width:100%; height:220px; border:0; margin-top:1rem; border-radius:.4rem;
}
/* Harita altındaki “Yol Tarifi” butonu */
.map-btn{
  display:inline-block;
  margin-top:1rem;
  background:var(--accent);
  color:#fff;
  padding:.65rem 1.25rem;
  border-radius:.4rem;
  font-weight:600;
  transition:opacity .25s;
}
.map-btn:hover{ opacity:.9; }


/* ------------------------------------------------ 12) FOOTER */
.site-footer{
  background:var(--brand-dark); color:#cfcfcf; padding:3rem 0; font-size:.95rem;
}
.footer-nav{ display:flex; gap:1.4rem; flex-wrap:wrap; }
.footer-nav a:hover{ color:var(--accent); }
.site-footer .flex-between{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:1rem;
}

/* ------------------------------------------------ 13) SABİT BUTONLAR */
.floating-btn{
  position:fixed; bottom:22px; width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center; font-size:1.65rem; color:#fff; z-index:1000;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:transform .25s, box-shadow .25s;
  animation:pulse-wobble 2.5s ease-in-out infinite;
}
.floating-btn:hover{ animation-play-state:paused; transform:scale(1.15);
                     box-shadow:0 8px 24px rgba(0,0,0,.35); }
.floating-btn.whatsapp{ right:22px; background:var(--whatsapp); }
.floating-btn.call    { left:22px;  background:var(--accent); animation-delay:1s; }

/* ------------------------------------------------ 14) PULSE‑WOBBLE */
@keyframes pulse-wobble{
  0%{ transform:scale(1) rotate(0deg); }
 20%{ transform:scale(1.12) rotate(0deg); }
 40%{ transform:scale(1.12) rotate(4deg); }
 60%{ transform:scale(1.12) rotate(-4deg); }
 80%{ transform:scale(1.12) rotate(2deg); }
100%{ transform:scale(1) rotate(0deg); }
}

/* ------------------------------------------------ 15) RESPONSIVE KIRILMALAR */

/* 991 px ↓  (tablet yatay) */
@media (max-width:991px){
  .logo{ height:90px; }
  .nav{ gap:1.6rem; font-size:.95rem; }
  .slide{ height:70vh; }
}

/* 768 px ↓  (tablet dikey) */
@media (max-width:768px){
  .logo{ height:72px; }
  .nav{ gap:1.1rem; font-size:.88rem; }
  .slide{ height:60vh; }
  .carousel-btn{ width:38px; height:38px; font-size:1.2rem; }
  #cesitler .grid{ gap:1.6rem; }
  .model{ flex-direction:column; }
}

/* 600 px ↓  (büyük telefon) */
@media (max-width:600px){
  .logo{ height:56px; }
  .nav{ gap:.9rem; font-size:.8rem; }
  .slide{ height:50vh; }
  .quick-contact{ justify-content:center; }
  .model-info h3{ font-size:1.45rem; }
  .service-list article{ flex-direction:column; text-align:center; }
  .service-list i{ margin-bottom:.6rem; }
  .contact-form,.contact-info{ padding:1.25rem; }
}

/* 420 px ↓  (küçük telefon) */
@media (max-width:420px){
  .nav{ gap:.7rem; font-size:.75rem; }
  .slide{ height:45vh; }
  .carousel-btn{ display:none; }
  .floating-btn.call{ left:auto; right:92px; }
}
/* =====  POPÜLER MODELLER  hizalama düzeltmesi  =============== */

/* Masaüstü: resim & metin aynı hizada ortalanır */
.model{
  align-items:center;           /* dikey ortalama */
}

/* Metin bloğu geniş ekranlarda soldan biraz nefes alsın */
@media (min-width:769px){
  .model-info{ padding-left:1rem; }
}

/* Tablet / Mobil: kolonlara geçince her şey ortada */
@media (max-width:768px){
  .model{
    flex-direction:column;      /* zaten vardı; yineleyelim */
    align-items:center;         /* yatay ortala */
    text-align:center;          /* metni ortala */
  }
  .model-info{
    align-items:center;         /* flex‑column merkezle   */
    gap:1rem;
  }
}
