/* =========================================================
   Haller Sürücü Kursu — Saf HTML/CSS/JS (Frameworksüz)
   - Responsive (mobil + masaüstü)
   - Kırmızı buton teması + pulse animasyonu
   - Modern, hızlı, SEO öncelikli
   ========================================================= */

/* ---------- CSS Reset (hafif) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif; line-height: 1.55; color: #111827; background: #f6f7f9; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(209, 28, 36, 0.45); outline-offset: 3px; border-radius: 8px; }

:root{
  --primary: #d11c24;
  --primary-dark: #b10f16;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17,24,39,.10);
  --shadow: 0 12px 30px rgba(17,24,39,.10);
  --radius: 18px;
  --container: 1180px;

  /* Logo ölçeği (sonradan kolayca büyütülebilir) */
  --logo-h-desktop: 70px;
  --logo-h-mobile: 170px;
}

/* ---------- Layout Helpers ---------- */
.container{ width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section{ padding: clamp(26px, 4vw, 54px) 0; }
.section__title{ font-size: clamp(1.3rem, 2.2vw, 2rem); margin: 0 0 12px; }
.section__lead{ margin: 0 0 24px; color: var(--muted); max-width: 75ch; }
.grid{ display: grid; gap: 18px; }

/* ---------- Navbar ---------- */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner{ display:flex; align-items:center; justify-content:space-between; gap: 14px; padding: 10px 0; }
.brand{ display:flex; align-items:center; text-decoration:none; }
.brand img{
  height: var(--logo-h-desktop);
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.nav__right{ display:flex; align-items:center; gap: 10px; }
.nav__links{ display:none; gap: 10px; align-items:center; list-style:none; margin:0; padding:0; }
.nav__links a{
  display:flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: #111827;
  font-weight: 650;
  transition: background .2s ease, transform .15s ease;
}
.nav__links a i{ color: var(--primary); }
.nav__links a:hover{ background: rgba(17,24,39,.06); transform: translateY(-1px); }

.nav__links .has-submenu{ position: relative; }
.submenu{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu{ display:block; }
.submenu a{
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.submenu a:hover{ background: rgba(17,24,39,.06); }

/* Mobil menü butonu */
.menu-btn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(17,24,39,.08);
}
.menu-btn i{ color: var(--primary); font-size: 1.05rem; }
.menu-btn span{ font-weight: 700; }

/* Mobil drawer */
.mobile-drawer{
  /*
    NOT: .mobile-drawer navbar (<header>) içinde.
    Navbar'da backdrop-filter olduğu için bazı mobil tarayıcılarda (özellikle iOS Safari)
    `position: fixed` öğeleri viewport yerine ataya göre konumlandırılabiliyor.
    Bu durumda menü "açılıyor" gibi olsa bile panel ekranda görünmüyor.

    Bu yüzden inset yerine viewport birimleriyle boyut veriyoruz.
  */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.mobile-panel{
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform .25s ease;
  display:flex;
  flex-direction: column;
}
body.nav-open .mobile-drawer{ opacity: 1; pointer-events:auto; }
body.nav-open .mobile-panel{ transform: translateX(0); }

.mobile-top{
  display:flex; align-items:center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-brand img{ height: var(--logo-h-mobile); width:auto; object-fit: contain; }
.mobile-close{
  border: 1px solid var(--border);
  background: rgba(17,24,39,.04);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.mobile-close i{ color: var(--primary); }

.mobile-nav{
  padding: 12px 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav a{
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 750;
  border: 1px solid transparent;
}
.mobile-nav a i{ color: var(--primary); }
.mobile-nav a:hover{ background: rgba(17,24,39,.05); border-color: var(--border); }

.mobile-submenu{
  margin: 10px 0 14px 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  max-height: 40vh;           /* ALT MENÜ kaydırılabilir */
  overflow-y: auto;
}
.mobile-submenu a{
  background: rgba(255,255,255,.7);
  margin-bottom: 8px;
  border: 1px solid rgba(17,24,39,.08);
  font-weight: 650;
}
.mobile-submenu a:last-child{ margin-bottom: 0; }

@media (min-width: 980px){
  .menu-btn{ display:none; }
  .nav__links{ display:flex; }
  /* Drawer DOM'da kalsın (gizli). Böylece breakpoint / tarayıcı farklarında görünmez olmaz. */
}

/* ---------- Buttons (Hepsi pulse) ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration:none;
  font-weight: 800;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate; /* pseudo-element görünümü */
  cursor: pointer;
}
.btn i{ color: inherit; }
.btn--primary{ background: var(--primary); color: #fff; }
.btn--primary:hover{ background: var(--primary-dark); }
.btn--soft{ background: rgba(209,28,36,.10); color: var(--primary); border-color: rgba(209,28,36,.18); }
.btn--soft:hover{ background: rgba(209,28,36,.14); }
.btn--outline{ background: transparent; color: var(--primary); border-color: rgba(209,28,36,.34); }
.btn--outline:hover{ background: rgba(209,28,36,.08); }
.btn--whatsapp{ background: #25D366; color: #fff; }
.btn--whatsapp:hover{ filter: brightness(.95); }
.btn--sm{ padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.btn--full{ width: 100%; }

/* Pulse (nabız) animasyonu */
.btn::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: 0 0 0 0 rgba(209,28,36,.42);
  animation: pulse 2.2s infinite;
  z-index: -1;
}
.btn--whatsapp::after{ box-shadow: 0 0 0 0 rgba(37,211,102,.38); }

@keyframes pulse{
  0%   { box-shadow: 0 0 0 0 rgba(209,28,36,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(209,28,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(209,28,36,0); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn::after{ animation: none; }
  .marquee__track{ animation: none !important; }
  .star--anim{ animation: none !important; }
}

/* ---------- Hero (kritik: normal akış, fixed DEĞİL) ---------- */
.hero-fixed{
  padding: 18px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-fixed__wrap{
  border-radius: 22px;
  overflow: hidden; /* içerik taşmasın */
  background: #0b1220; /* görsel yüklenirken */
  box-shadow: var(--shadow);
  position: relative; /* overlay içerik için */
}
.hero-fixed__media{
  width: 100%;
  aspect-ratio: 2048 / 1365; /* kırpma yok, oran korunur */
}
.hero-fixed__media img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* KRİTİK: kırpma yok */
  background: #0b1220; /* boş alan varsa */
}

/* Overlay içerik (görseli kapatmayacak şekilde, sol üstte küçük bir panel) */
.hero-fixed__content{
  position:absolute;
  left: clamp(14px, 3vw, 28px);
  top: clamp(14px, 3vw, 28px);
  max-width: min(460px, calc(100% - 28px));
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-title{
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.7vw, 3rem);
  letter-spacing: .2px;
  line-height: 1.05;
  /* 3D + gradient */
  background: linear-gradient(180deg, #ffffff 0%, #d6d6d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(0,0,0,.35),
    0 10px 18px rgba(0,0,0,.25);
}
.hero-subtitle{
  margin: 0 0 14px;
  color: rgba(255,255,255,.92);
  font-weight: 750;
  font-size: clamp(.98rem, 1.25vw, 1.1rem);
}

/* Mobilde overlay daha kompakt olsun */
@media (max-width: 560px){
  .hero-fixed__content{
    top: 12px;
    left: 12px;
    padding: 12px;
    background: rgba(0,0,0,.18);
  }
  .hero-subtitle{ margin-bottom: 12px; }
}

/* ---------- Cards / Service Boxes ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
  padding: 18px;
}
.card__top{ display:flex; align-items:flex-start; gap: 12px; }
.card__icon{
  width: 46px; height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(209,28,36,.10);
  border: 1px solid rgba(209,28,36,.16);
  flex: 0 0 auto;
}
.card__icon i{ color: var(--primary); font-size: 1.2rem; }
.card h3{ margin: 0 0 6px; font-size: 1.1rem; }
.card p{ margin: 0; color: var(--muted); }

.card__actions{
  margin-top: 14px;
  display:flex;
  flex-direction: column; /* ALT ALTA */
  gap: 10px;
  align-items: center;     /* ORTALANMIŞ */
}
.card__actions .btn{ width: 100%; }
@media (min-width: 720px){
  .cards-2{ grid-template-columns: repeat(2, 1fr); }
  .cards-3{ grid-template-columns: repeat(3, 1fr); }
  .card__actions .btn{ width: 100%; }
}

/* ---------- Feature List ---------- */
.feature-list{ display:grid; gap: 10px; padding:0; list-style:none; margin: 0; }
.feature-list li{ display:flex; gap: 10px; align-items:flex-start; color: var(--muted); }
.feature-list i{ color: var(--primary); margin-top: 3px; }

/* ---------- Marquee Slider (sağa kayan, kesintisiz) ---------- */
.marquee{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
}
.marquee__track{
  display:flex;
  gap: 14px;
  padding: 14px;
  width: max-content;
  animation: marquee-right 35s linear infinite;
}
@keyframes marquee-right{
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}
.marquee__item{
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: #0b1220;
}
.marquee__item img{ width:100%; height:100%; object-fit: cover; }

/* ---------- Gallery Grid ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px){
  .gallery-grid{ grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.gallery-item{
  position: relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: #0b1220;
  cursor: zoom-in;
}
.gallery-item img{ width:100%; height:100%; aspect-ratio: 4/3; object-fit: cover; }
.badge{
  position:absolute;
  left: 10px; top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  color:#fff;
  background: rgba(209,28,36,.92);
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display:none;
  z-index: 3000;
  padding: 18px;
}
.lightbox.is-open{ display:grid; place-items:center; }
.lightbox__inner{
  width: min(1100px, 100%);
  background: #0b1220;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox__bar{
  display:flex; justify-content: space-between; align-items:center;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.lightbox__bar p{ margin:0; font-weight: 750; font-size: .95rem; }
.lightbox__close{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  color: #fff;
}
.lightbox__media img{ width:100%; height:auto; object-fit: contain; background:#0b1220; }

/* ---------- Blog ---------- */
.blog-grid{ display:grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 880px){ .blog-grid{ grid-template-columns: 2fr 1fr; } }

.post-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
  padding: 16px;
}
.post-card h3{ margin: 0 0 8px; }
.meta{ display:flex; flex-wrap:wrap; gap: 10px; color: var(--muted); font-size: .92rem; }
.meta i{ color: var(--primary); }
.post-card p{ margin: 10px 0 0; color: var(--muted); }

.post{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
  padding: clamp(16px, 3vw, 28px);
}
.post h1{ margin-top: 0; font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
.post h2{ margin-top: 24px; font-size: 1.15rem; }
.post p{ color: #1f2937; }
.post ul{ color: #1f2937; }

.rating{
  display:flex; align-items:center; gap: 8px;
  margin: 10px 0 16px;
}
.stars{ display:flex; gap: 4px; }
.star{
  color: #facc15; /* sarı */
  filter: drop-shadow(0 3px 8px rgba(250,204,21,.22));
}
.star--anim{
  animation: starTwinkle 1.8s infinite;
}
.star--anim:nth-child(2){ animation-delay: .12s; }
.star--anim:nth-child(3){ animation-delay: .24s; }
.star--anim:nth-child(4){ animation-delay: .36s; }
.star--anim:nth-child(5){ animation-delay: .48s; }

@keyframes starTwinkle{
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-2px); opacity: .85; }
}

.comments{
  margin-top: 18px;
  display:grid;
  gap: 12px;
}
.comment{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.02);
}
.comment__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.comment__name{ font-weight: 850; }
.comment__date{ color: var(--muted); font-size: .9rem; }
.comment p{ margin: 10px 0 0; color: #374151; }

/* ---------- Traffic Signs ---------- */
.table-wrap{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: var(--surface);
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 540px;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(17,24,39,.08);
  text-align:left;
}
.table th{
  background: rgba(17,24,39,.04);
  font-size: .92rem;
}
.table td code{
  background: rgba(209,28,36,.08);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(209,28,36,.18);
  font-weight: 800;
}

/* ---------- Footer ---------- */
.footer{
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.footer__inner{
  padding: 34px 0;
  display:grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.footer__brand img{
  height: 125px; width:auto; object-fit: contain;
}
.footer__cols{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 880px){
  .footer__inner{ grid-template-columns: 1.2fr 1.8fr; align-items:start; }
  .footer__cols{ grid-template-columns: 1fr 1fr; }
}
.footer h4{ margin: 0 0 10px; }
.footer ul{ list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.footer a{ text-decoration:none; color: #111827; }
.footer a:hover{ color: var(--primary); }
.footer i{ color: var(--primary); margin-right: 8px; }
.footer__meta{
  padding: 14px 0;
  border-top: 1px solid rgba(17,24,39,.08);
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2500;
}
.fab-whatsapp a{
  width: 58px; height: 58px;
  display:grid;
  place-items:center;
  border-radius: 18px;
  background: #25D366;
  color: #fff;
  text-decoration:none;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  isolation:isolate;
}
.fab-whatsapp a::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: 0 0 0 0 rgba(37,211,102,.42);
  animation: pulse 2.2s infinite;
  z-index:-1;
}
.fab-whatsapp i{ font-size: 1.35rem; }

/* ---------- Small Utilities ---------- */
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .8rem;
}
.kicker i{ color: var(--primary); }
hr.sep{
  border: none;
  border-top: 1px solid rgba(17,24,39,.10);
  margin: 18px 0;
}



html, body{
  overflow-x: hidden;
}

