/* ==========================================================================
   HİDRO GLOBAL — Kurumsal web sitesi
   Tipografi : Outfit (metin) / IBM Plex Mono (ölçü ve kod)
   Renk      : Lacivert + turuncu
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Değişkenler
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #06152b;
  --navy-800: #0b1b34;
  --navy-700: #122844;
  --navy-600: #1b3a5f;

  --orange-600: #ea580c;
  --orange-500: #f97316;

  --slate-50: #f5f7fa;
  --slate-100: #eef2f7;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-800: #1e293b;

  --shell: 1200px;
  /* Klavye odak halkası — hem beyaz hem lacivert zeminde okunur kalsın */
  --ring: 0 0 0 3px rgba(249, 115, 22, 0.9);
}

/* --------------------------------------------------------------------------
   2. Temel
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  background: #ffffff;
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
}

.font-mono,
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1,
h2,
h3 {
  letter-spacing: -0.015em;
}

::selection {
  background: var(--orange-500);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--orange-500);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Bölüm başlığı — altında turuncu çizgi
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
}
@media (min-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }
}
.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--orange-500);
  margin-top: 1rem;
}
.section-title--light {
  color: #fff;
}
.section-title--center {
  text-align: center;
}
.section-title--center::after {
  margin-inline: auto;
}

/* Ölçü / parça kodu rozeti */
.spec-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.6rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Butonlar
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn--primary {
  background: var(--orange-500);
  color: #fff;
}
.btn--primary:hover {
  background: var(--orange-600);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
  background: var(--navy-800);
  color: #fff;
}
.btn--dark:hover {
  background: var(--navy-700);
}

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-300);
}
.btn--outline:hover {
  border-color: var(--navy-800);
  background: var(--slate-50);
}

/* --------------------------------------------------------------------------
   5. Üst menü
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}

.nav-link {
  display: inline-block;
  /* Menü başlıkları alt satıra kırılmaz; başlık çubuğu tek satırda kalır */
  white-space: nowrap;
  padding: 0.4rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-600);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover {
  color: var(--navy-900);
}
.nav-link.is-active {
  color: var(--navy-900);
  border-bottom-color: var(--orange-500);
}

.has-dropdown > .dropdown {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.3s ease;
}
.mobile-menu.is-open {
  /* Sabit yükseklik yerine ekrana göre; içerik uzasa da kırpılmaz */
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Mobil menü satırı */
.mobil-bag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.25rem 0.95rem 0.9rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid var(--slate-100);
}
.mobil-bag svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--slate-300);
}
.mobil-bag:active {
  background: var(--slate-50);
}

/* Bulunulan sayfa — solda turuncu işaret */
.mobil-bag.etkin {
  color: var(--navy-900);
  font-weight: 700;
}
.mobil-bag.etkin::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.35rem;
  background: var(--orange-500);
}
.mobil-bag.etkin svg {
  color: var(--orange-500);
}

/* Menü altındaki iletişim bloğu */
.mobil-iletisim {
  padding: 1rem 0 1.25rem;
}
.mobil-adres {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--slate-400);
}

/* --------------------------------------------------------------------------
   6. Kartlar
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 6px 20px -12px rgba(6, 21, 43, 0.35);
}

.card__media {
  position: relative;
  overflow: hidden;
  background: var(--slate-100);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   7. Tablolar
   -------------------------------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table th {
  background: var(--navy-800);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 0.8rem 1rem;
  white-space: nowrap;
}
.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}
.spec-table tbody tr:nth-child(even) {
  background: var(--slate-50);
}
.spec-table td:first-child {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--navy-700);
}

/* Açıklama içeren tablolarda satır kaymasına izin ver */
.spec-table--wrap td {
  white-space: normal;
  min-width: 190px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--slate-200);
}

/* --------------------------------------------------------------------------
   8. Yardımcılar
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--orange-600);
}
.link-arrow:hover {
  text-decoration: underline;
}

/* Sabit WhatsApp butonu */
.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
}

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

/* --------------------------------------------------------------------------
   10. Baskı
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .wa-fab,
  .site-footer {
    display: none !important;
  }
  body {
    color: #000;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   TEKNİK BİLGİ SAYFASI METNİ
   Yönetim panelinden girilen HTML gövdesini biçimlendirir.
   ═══════════════════════════════════════════════════════════════════ */

.yazi { color: #475569; font-size: 1.0625rem; line-height: 1.75; }

.yazi > * + * { margin-top: 1.25rem; }

.yazi h2 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #06152B;
  letter-spacing: -0.01em;
}

.yazi h2:first-child { margin-top: 0; }

.yazi h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #0B1B34;
}

.yazi strong { color: #0B1B34; font-weight: 600; }

.yazi em { font-style: normal; color: #0B1B34; background: #FFF7ED; padding: 0 .2em; }

.yazi ul,
.yazi ol { padding-left: 1.35rem; }

.yazi ul { list-style: disc; }
.yazi ol { list-style: decimal; }

.yazi li { margin-top: .55rem; padding-left: .25rem; }
.yazi li::marker { color: #F97316; }

.yazi a { color: #EA580C; text-decoration: underline; text-underline-offset: 3px; }
.yazi a:hover { color: #C2410C; }

/* Katlanır soru başlığındaki varsayılan üçgeni gizle */
.yazi summary::-webkit-details-marker,
details > summary::-webkit-details-marker { display: none; }
