/* ====================================================================
   Atabey Tarım ve Peyzaj — özel stiller
   tailwind.css'in üzerine biner. Tailwind yeniden derlenirse bu dosya
   etkilenmez, o yüzden formu ve eklentileri burada tutuyoruz.
   ==================================================================== */

:root {
  --atb-green: #16a34a;
  --atb-green-dark: #15803d;
  --atb-green-light: #dcfce7;
  --atb-gray-900: #111827;
  --atb-gray-700: #374151;
  --atb-gray-600: #4b5563;
  --atb-gray-400: #9ca3af;
  --atb-gray-300: #d1d5db;
  --atb-gray-200: #e5e7eb;
  --atb-red: #dc2626;
  --atb-header-h: 5rem; /* h-20 */
}

/* Yumuşak kaydırma + sabit menünün başlıkları örtmesini engelle */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id],
main[id] {
  scroll-margin-top: calc(var(--atb-header-h) + 1rem);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--atb-gray-900);
  background: #fff;
}

/* Klavye kullanıcıları için görünür odak halkası */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--atb-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Klavyeyle sekme atanların içeriğe atlaması için */
.atb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--atb-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
}
.atb-skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------
   Üst menü
   ------------------------------------------------------------------ */
.atb-brand {
  text-decoration: none;
  color: inherit;
}

.atb-header--scrolled {
  background-color: #fff !important;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ------------------------------------------------------------------
   Küçük yardımcılar
   ------------------------------------------------------------------ */
.atb-mt-2 { margin-top: 0.5rem; }
.atb-shrink0 { flex-shrink: 0; }

.atb-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.atb-sep {
  margin: 0 0.5rem;
  color: var(--atb-gray-600);
}

.atb-footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
.atb-footer-link:hover {
  color: #4ade80;
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   WhatsApp bağlantısı
   ------------------------------------------------------------------ */
.atb-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding: 0.5rem 0.9rem;
  background: #25d366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.atb-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
}
.atb-whatsapp svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Bildirim kutusu (form sonucu)
   ------------------------------------------------------------------ */
.atb-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.atb-alert:focus {
  outline: none;
}

.atb-alert--ok {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}

.atb-alert--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.atb-alert__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ------------------------------------------------------------------
   Form
   ------------------------------------------------------------------ */
.atb-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.atb-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.atb-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .atb-row {
    grid-template-columns: 1fr 1fr;
  }
}

.atb-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--atb-gray-700);
  margin-bottom: 0.4rem;
}

.atb-req {
  color: var(--atb-red);
}

.atb-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--atb-gray-900);
  background-color: #fff;
  border: 2px solid var(--atb-gray-200);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.atb-input::placeholder {
  color: var(--atb-gray-400);
}

.atb-input:hover {
  border-color: var(--atb-gray-300);
}

.atb-input:focus {
  outline: none;
  border-color: var(--atb-green);
  box-shadow: 0 0 0 3px rgb(22 163 74 / 0.15);
}

.atb-input--error {
  border-color: #fca5a5;
  background-color: #fffbfb;
}
.atb-input--error:focus {
  border-color: var(--atb-red);
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.15);
}

.atb-textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.55;
}

/* Açılır liste + özel ok işareti */
.atb-select-wrap {
  position: relative;
  display: block;
}

.atb-select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.atb-select-arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: var(--atb-gray-600);
  pointer-events: none;
}

.atb-error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--atb-red);
}

.atb-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background-color: var(--atb-green);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgb(22 163 74 / 0.25);
}

.atb-submit:hover:not(:disabled) {
  background-color: var(--atb-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(22 163 74 / 0.3);
}

.atb-submit:active:not(:disabled) {
  transform: translateY(0);
}

.atb-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.atb-submit svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.atb-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--atb-gray-600);
  margin: 0;
}

/* Buton, form dışında kullanıldığında içeriği kadar genişlesin */
.atb-submit--inline {
  width: auto;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

/* Tailwind derlemesinde yalnızca lg: kırılımıyla üretilmiş; 404 sayfası
   için kırılımsız hali gerekiyor. */
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

/* Bal küpü — ekranda görünmez ama ekran okuyucudan da gizli değil,
   çünkü aria-hidden ile işaretlendi. Botlar doldurur, insan doldurmaz. */
.atb-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ------------------------------------------------------------------
   Hareket azaltma tercihi
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------
   Yazdırma
   ------------------------------------------------------------------ */
@media print {
  header[data-header],
  .atb-skip-link,
  .atb-form,
  .atb-submit {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
