/* ==========================================================================
   Bursa Teknik Sünger — ortak stiller
   Tailwind CDN üzerine binen bileşen katmanı. Tüm sayfalar bu dosyayı kullanır.
   ========================================================================== */

:root {
  --primary: #001629;
  --primary-container: #092b45;
  --teal: #078f91;
  --teal-deep: #07475a;
  --outline: #c3c7ce;
  --header-h: 76px;
}

/* --- Temel ------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Manrope, system-ui, sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Klavye ile gezenler için görünür odak halkası */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container-page {
  max-width: 1440px;
  margin-inline: auto;
}

/* Blueprint dokusu — koyu bölümlerde ince teknik ızgara */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* --- Butonlar ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  cursor: pointer;
  text-align: center;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--primary-container);
  color: #fff;
  border: 1px solid var(--primary-container);
}
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background: rgba(7, 143, 145, .07); }

.btn-light {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--outline);
}
.btn-light:hover { background: #eeedf0; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
}
.btn-whatsapp:hover { background: #1eb457; border-color: #1eb457; }

/* --- Kartlar ------------------------------------------------------------ */

.card {
  background: #fff;
  border: 1px solid rgba(7, 71, 90, .12);
  border-radius: 2px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover {
  border-color: rgba(7, 143, 145, .45);
  box-shadow: 0 12px 24px rgba(9, 43, 69, .08);
  transform: translateY(-2px);
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(7, 143, 145, .1);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Bölüm üstü küçük teknik etiket */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* --- Navigasyon --------------------------------------------------------- */

.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #43474d;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--primary); }

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-link[aria-current='page'] {
  color: var(--primary);
}
.nav-link[aria-current='page']::after { width: 100%; }

/* Mobil menü — açılır panel */
#mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
#mobile-menu.is-open { grid-template-rows: 1fr; }
#mobile-menu > div { overflow: hidden; }

/* --- Formlar ------------------------------------------------------------ */

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #43474d;
}

.field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #8b9099; }
.field:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.field[aria-invalid='true'] {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 1px #ba1a1a;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #ba1a1a;
}
.field-error.is-visible { display: block; }

/* --- Girişte beliren bölümler ------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Sabit WhatsApp butonu ---------------------------------------------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* --- Yazdırma ----------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .wa-float { display: none !important; }
  body { background: #fff; }
}
