/* common.css — Genel site stilleri (temel, erişilebilir, responsive) */

/* === Genel === */
:root{
  --brand:#0077cc;
  --brand-dark:#005fa3;
  --bg:#e0f0f8;
  --text:#223;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family:'Roboto',sans-serif;
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  transition:background .5s;
  -webkit-font-smoothing:antialiased;
}

/* Skip link (erişilebilirlik) */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  z-index:100000;
}
.skip-link:focus{
  left:10px;
  top:10px;
  width:auto;
  height:auto;
  padding:8px 12px;
  background:#fff;
  color:#000;
  border-radius:6px;
  box-shadow:0 4px 8px rgba(0,0,0,.15);
}

/* === HEADER & NAV === */
header{
  background:#222;
  color:#fff;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 5px rgba(0,0,0,.2);
}

/* Logo */
.logo a{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:18px;
}
.logo img{
  height:50px;
  width:auto;
  display:block;
}

/* Desktop menu */
nav{ display:flex; align-items:center; gap:12px; }
.desktop-menu{ display:flex; gap:6px; align-items:center; }

/* Nav linkler */
nav a{
  color:#fff;
  margin:0 6px;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
  padding:6px 12px;
  border-radius:6px;
}
nav a:focus{ outline:3px solid #00bfff; outline-offset:2px; }
nav a:hover{ background:var(--brand); color:#fff; }

/* Menü butonu (mobil) */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:26px;
  cursor:pointer;
  padding:6px;
  border-radius:6px;
}
.menu-toggle:focus{ outline:3px solid #00bfff; outline-offset:2px; }

/* Mobil menü */
.mobile-menu{
  display:none;
  flex-direction:column;
  background:#333;
  position:absolute;
  top:70px;
  right:18px;
  padding:0;
  border-radius:8px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.2s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.mobile-menu a{
  margin:0;
  padding:12px 16px;
  display:block;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.mobile-menu a:hover{ background:#444; }

/* show sınıfı ile açılır */
.mobile-menu.show{
  padding:8px;
  max-height:500px;
  opacity:1;
  display:flex;
}

/* === LAYOUT: ortak section ve başlık === */
main{ max-width:1100px; margin:0 auto; padding:0 18px; }
section{ padding:60px 0; }
h2{
  color:var(--brand-dark);
  margin-bottom:20px;
  text-align:center;
  font-size:26px;
}

/* === KART, BUTON, DİĞERLERİ === */
.button{
  background:var(--brand);
  color:#fff;
  padding:12px 25px;
  text-decoration:none;
  border-radius:30px;
  transition:.25s;
  display:inline-block;
  font-weight:700;
  box-shadow:0 4px 6px rgba(0,0,0,.15);
}
.button:hover{ background:var(--brand-dark); transform:translateY(-3px); box-shadow:0 6px 10px rgba(0,0,0,.2); }

.card{
  background:#fff;
  padding:20px;
  border-radius:10px;
  box-shadow:0 4px 6px rgba(0,0,0,.08);
  transition:.25s;
  text-align:center;
}
.card:hover{ transform:translateY(-5px); box-shadow:0 8px 12px rgba(0,0,0,.1); }

/* WhatsApp floating button */
.whatsapp-float{
  position:fixed;
  bottom:20px;
  right:20px;
  background:#25D366;
  color:#fff;
  padding:15px;
  border-radius:50%;
  box-shadow:0 4px 6px rgba(0,0,0,.3);
  font-size:22px;
  z-index:2000;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Sosyal ikon alanı (footer içinde) */
.social-icons{ margin-top:12px; }
.social-icons a{ color:#fff; font-size:20px; margin:0 8px; transition:color .25s; text-decoration:none; }
.social-icons a:hover{ color:#25D366; }

/* FAQ */
.faq{ max-width:700px; margin:20px auto; }
.faq-item{ border-bottom:1px solid #ddd; }
.faq-question{
  width:100%;
  background:#f8f8f8;
  border:none;
  padding:15px;
  text-align:left;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-answer{ display:none; padding:0 15px 15px; font-size:15px; color:#444; }
.faq-item.active .faq-answer{ display:block; }

/* FOOTER */
footer{
  background:#333;
  color:#fff;
  text-align:center;
  padding:30px 20px;
  margin-top:40px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
  .desktop-menu{ display:none; }
  .menu-toggle{ display:block; }
  main{ padding:0 14px; }
  .logo img{ height:44px; }
}
