/* ==========================================================================
   Büyükkardeşler Landing Page — base stiller (#2 foundation)
   Marka değerleri :root'ta tek kaynak. Bölüm stilleri sonraki issue'larda eklenir.
   ========================================================================== */

/* --- Tema değişkenleri (marka config'in tek kaynağı) --------------------- */
:root {
  /* Renkler (task.md) */
  --color-primary: #0063BA;
  --color-secondary: #003663;
  --color-accent: #FF930E;

  --color-text: #1a1a1a;
  --color-muted: #57606e; /* WCAG AA: alt-bg (#f4f7fb) üstünde ~5.9:1 (#9) */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-border: #e2e8f0;

  /* Sistem font stack'i (brand font yok — ek indirme yapılmaz) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";

  /* Layout */
  --container-max: 1120px;
  --container-pad: 1rem;
  --radius: 10px;

  /* Spacing / tipografi */
  --space-section: 2.5rem;
  --tap-min: 44px; /* erişilebilir minimum tap hedefi */
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  /* iOS sticky bar için alt güvenli alan; #6'da kullanılacak */
  min-height: 100dvh;
}

h1, h2, h3, p {
  margin: 0 0 0.75em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
}

/* --- Layout yardımcıları ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-section);
}

.section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

/* --- Buton iskeleti (bölümler kullanacak; asıl CTA'lar #3+) -------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-min);
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-call {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

/* --- Placeholder / TODO stili (iskelet görünürlüğü — bölümler doldukça kalkar) */
.section-placeholder,
[data-todo] {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--color-bg);
}

/* --- Site chrome iskeleti ------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding-block: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: grid;
  gap: 1rem 2rem;
}

.site-footer__brand p,
.site-footer__contact p {
  margin: 0 0 0.35rem;
}

.site-footer__name {
  font-weight: 700;
  color: var(--color-secondary);
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__phone {
  display: inline-block;
  min-height: 44px;      /* erişilebilir tap hedefi */
  padding: 0.35rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.8;
}

.site-footer__copy {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-footer__contact { text-align: right; }
}

/* --- Sticky mobil arama barı iskeleti (içerik #6'da) --------------------- */
.sticky-call-bar {
  display: none; /* varsayılan gizli; yalnız mobilde açılır (#6) */
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: var(--color-primary);
  color: #fff;
  padding-block: 0.5rem;
  /* iOS home-indicator güvenli alanı */
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.sticky-call-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sticky-call-bar__text {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.sticky-call-bar__btn {
  flex: none;
  padding: 0.5rem 1rem;
}

/* Yalnız mobil: sticky bar görünür + sabit bar'ın içeriği örtmemesi için body alt boşluğu */
@media (max-width: 639px) {
  .sticky-call-bar { display: block; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   #3 — Header + Hero
   ========================================================================== */

.ico {
  flex: none;
}

/* --- Header --- */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  height: 48px;
  width: auto;
}

.brand__tag {
  display: none; /* mobilde kompakt; ≥640px'de görünür */
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Header telefon CTA — mobilde kısa "Ara", geniş ekranda tam numara */
.header-call {
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}

.header-call__full {
  display: none;
}

/* --- Ghost / ikincil buton --- */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}

/* Full-bleed arka plan görseli (#19) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Metin kontrastı için koyu marka scrim'i */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 40, 75, 0.78) 0%, rgba(0, 24, 48, 0.88) 100%);
}

.hero__content {
  position: relative;
}

/* Hero'da ikincil buton beyaz varyant (koyu zemin) */
.hero .btn-outline {
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.hero__title {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
}

.hero__subtitle {
  max-width: 44ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-block: 1.5rem;
}

.hero__cta .btn {
  flex: 1 1 auto;
  min-width: 12rem;
}

.hero-call {
  font-size: 1.1rem;
  padding-inline: 1.5rem;
}

.hero__trust,
.reason-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 30rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.hero__trust li,
.reason-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  min-height: 1.4rem;
}

.hero__trust li::before,
.reason-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__area {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ≥640px: header tam numara + marka etiketi; hero daha ferah, CTA'lar yan yana */
@media (min-width: 640px) {
  .brand__tag { display: inline; }
  .header-call__short { display: none; }
  .header-call__full { display: inline; }

  .hero { padding-block: 3.5rem; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* ==========================================================================
   #4 — Hizmet bölümleri (kart + chip). .section-title/.section-lead #5'te de reuse.
   ========================================================================== */

.section-title {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--color-secondary);
  text-align: center;
}

.section-lead {
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-muted);
}

.card-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.card__title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--color-secondary);
}

.card__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.chip-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

.section-cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   #9 — Erişilebilirlik (skip link, odak görünürlüğü, azaltılmış hareket)
   ========================================================================== */

/* İçeriğe atla — görsel-gizli, klavye odağında görünür */
.skip-link {
  position: fixed;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Klavye odağı görünür (fare tıklamasında değil) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Skip hedefi #main odaklanınca çirkin çerçeve gösterme */
#main:focus {
  outline: none;
}

/* Hareket hassasiyeti */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skip-link {
    transition: none;
  }
}

/* ==========================================================================
   #20 — Hizmetler: 4 kategorili görsel grid
   ========================================================================== */

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card__media {
  aspect-ratio: 3 / 2;
  background: var(--color-bg-alt);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.service-card__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-secondary);
}

.service-card__desc {
  margin: 0;
  flex: 1;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.service-card__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
