/* Custom layer for CDN Tailwind — no @apply */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #2F9E90;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0B1F2A;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #4FB8AA;
}

.btn:focus-visible {
  outline: 2px solid #4FB8AA;
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid rgba(11, 31, 42, 0.15);
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0B1F2A;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline:hover {
  border-color: rgba(11, 31, 42, 0.3);
  background: #fff;
}

.nav-link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.5rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #44545D;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: #0B1F2A;
}

@media (min-width: 1024px) {
  .nav-link {
    padding: 0.25rem 0;
  }
}

.hero__media {
  display: none;
}

/* Hero slider */
:root {
  --hero-h: min(68vh, 620px);
}

.hero-slider {
  position: relative;
  isolation: isolate;
  height: var(--hero-h);
  min-height: var(--hero-h);
  overflow: hidden;
  background: #0B1F2A;
  color: #fff;
}

.hero-slider--pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: var(--hero-h);
  min-height: var(--hero-h);
  max-height: var(--hero-h);
}

.hero-spacer {
  height: var(--hero-h);
  pointer-events: none;
}

.page-reveal {
  position: relative;
  z-index: 2;
  background: #fafaf9;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -24px 70px rgba(11, 31, 42, 0.22);
  overflow: clip;
}

/* Hizmet sayfası sabit hero */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0B1F2A;
  color: #fff;
  height: var(--hero-h);
  min-height: var(--hero-h);
}

.page-hero--pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: var(--hero-h);
  min-height: var(--hero-h);
  max-height: var(--hero-h);
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 42, 0.9) 12%, rgba(11, 31, 42, 0.62) 55%, rgba(11, 31, 42, 0.4) 100%),
    linear-gradient(to top, rgba(11, 31, 42, 0.7), transparent 42%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.75rem;
  padding-top: 6rem;
}

.hero-slider__track {
  position: relative;
  height: 100%;
  min-height: 0;
}

.hero-slider--pinned .hero-slider__track,
.hero-slider--pinned .hero-slide__content {
  height: 100%;
  min-height: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.hero-slide.is-active .hero-slide__img {
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 42, 0.88) 12%, rgba(11, 31, 42, 0.55) 55%, rgba(11, 31, 42, 0.35) 100%),
    linear-gradient(to top, rgba(11, 31, 42, 0.75), transparent 45%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.25rem;
  padding-top: 6rem;
}

.hero-slider__controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  transform: translateX(-50%);
  align-items: center;
  gap: 0.75rem;
}

.hero-slider__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.hero-slider__btn:hover {
  background: rgba(255,255,255,0.18);
}

.hero-slider__dots {
  display: flex;
  gap: 0.45rem;
}

.hero-slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active {
  width: 1.4rem;
  background: #4FB8AA;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal.is-visible {
  animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(11, 31, 42, 0.08);
}

.site-nav.is-open {
  display: block !important;
}

/* Hizmetler alt menü */
.has-sub {
  position: relative;
}

.nav-sub-toggle {
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
}

.nav-caret {
  transition: transform 0.2s ease;
}

.has-sub.is-open > .nav-sub-toggle .nav-caret,
.has-sub[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(11, 31, 42, 0.1);
  border-radius: 0.5rem;
  background: #fff;
}

.submenu[hidden] {
  display: none !important;
}

.has-sub.is-open > .submenu[hidden] {
  display: block !important;
}

.submenu-link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #44545D;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.submenu-link:hover,
.submenu-link.is-active,
.submenu-link[aria-current="page"] {
  background: #F4F7F8;
  color: #0B1F2A;
}

@media (min-width: 1024px) {
  .submenu {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 60;
    min-width: 210px;
    margin: 0;
    padding: 0.5rem;
    /* Hover köprüsü: fare boşlukta kaybolmasın */
    padding-top: 0.65rem;
    border-radius: 0.6rem;
    box-shadow: 0 18px 40px rgba(11, 31, 42, 0.14);
  }

  .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 12px;
  }

  .has-sub.is-open > .submenu,
  .has-sub.is-open > .submenu[hidden],
  .has-sub:hover > .submenu,
  .has-sub:hover > .submenu[hidden],
  .has-sub:focus-within > .submenu,
  .has-sub:focus-within > .submenu[hidden] {
    display: block !important;
  }

  .has-sub.is-open > .nav-sub-toggle .nav-caret,
  .has-sub:hover > .nav-sub-toggle .nav-caret,
  .has-sub:focus-within > .nav-sub-toggle .nav-caret {
    transform: rotate(180deg);
  }
}

#form-status[data-state="ok"] { color: #166534; }
#form-status[data-state="err"] { color: #991b1b; }
