/* Global premium design system layer */
:root {
  --app-shadow-soft: 0 18px 40px rgba(14, 38, 30, 0.1);
  --app-shadow-card: 0 10px 28px rgba(14, 38, 30, 0.08);
  --app-shadow-lift: 0 18px 38px rgba(14, 38, 30, 0.12);
  --app-radius-sm: 0.75rem;
  --app-radius-md: 1rem;
  --app-radius-lg: 1.25rem;
  --app-radius-xl: 1.5rem;
  --surface-0-safe: var(--surface-0, #fff);
  --surface-1-safe: var(--surface-1, #f4f8f5);
  --surface-2-safe: var(--surface-2, #e9f1ec);
  --text-body-safe: var(--text-body, #1f332a);
  --text-muted-safe: var(--text-muted, #4e6470);
  --line-soft-safe: var(--line, #d7e4dc);
  --line-strong-safe: var(--line-strong, #c3d5cb);
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background:
    radial-gradient(980px 380px at -12% -6%, rgba(30, 138, 98, 0.1), transparent 72%),
    radial-gradient(840px 320px at 110% 3%, rgba(245, 143, 28, 0.14), transparent 74%),
    var(--bg);
  color: var(--text-body-safe);
}

main {
  position: relative;
  isolation: isolate;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

main::before,
main::after {
  content: "";
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  pointer-events: none;
  z-index: -1;
  opacity: 0.28;
  filter: blur(54px);
}

main::before {
  top: -8vmax;
  right: -16vmax;
  background: radial-gradient(circle, rgba(30, 138, 98, 0.2) 0%, rgba(30, 138, 98, 0) 70%);
}

main::after {
  bottom: -14vmax;
  left: -18vmax;
  background: radial-gradient(circle, rgba(245, 143, 28, 0.2) 0%, rgba(245, 143, 28, 0) 72%);
}

.section-shell {
  padding-top: clamp(2.2rem, 2vw + 1.5rem, 4rem);
  padding-bottom: clamp(2.2rem, 2vw + 1.5rem, 4rem);
}

.section-shell-tight {
  padding-top: clamp(1.4rem, 1.2vw + 1rem, 2.4rem);
  padding-bottom: clamp(1.4rem, 1.2vw + 1rem, 2.4rem);
}

.section-shell-hero {
  padding-top: clamp(1.2rem, 1.4vw + 0.8rem, 2rem);
  padding-bottom: clamp(1.4rem, 1.3vw + 1rem, 2.4rem);
}

.section-shell-tool {
  padding-top: clamp(2rem, 2vw + 1rem, 3.3rem);
}

.site-top {
  background: linear-gradient(92deg, #0e734c 0%, #168a60 64%, #1b9e72 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft-safe);
}

.site-header-wrap {
  position: relative;
}

.site-header-row {
  min-height: 86px;
}

.site-brand-logo {
  height: clamp(60px, 4.4vw, 82px);
  max-width: min(360px, 34vw);
}

.main-nav {
  gap: 0.5rem;
}

.site-header-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft-safe) 18%, var(--line-soft-safe) 82%, transparent);
  pointer-events: none;
}

.nav-chip {
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  color: #23483a;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-chip:hover {
  color: var(--green-dark);
}

.card {
  border-radius: var(--app-radius-lg);
  border-color: var(--line-soft-safe);
  background: var(--surface-0-safe);
  box-shadow: var(--app-shadow-card);
}

.btn-main,
.btn-alt {
  box-shadow: 0 12px 26px rgba(14, 38, 30, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-main:hover,
.btn-alt:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(14, 38, 30, 0.16);
}

.btn-main:active,
.btn-alt:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong-safe);
  border-radius: 999px;
  background: var(--surface-0-safe);
  color: var(--green-dark);
  padding: 0.62rem 1rem;
  font-weight: 800;
}

.btn-ghost:hover {
  background: var(--surface-1-safe);
}

.view-hero-panel {
  border: 1px solid var(--line-soft-safe);
  border-radius: var(--app-radius-xl);
  background: linear-gradient(145deg, #f3f8f5 0%, var(--surface-0-safe) 72%);
  box-shadow: var(--app-shadow-soft);
  padding: clamp(1rem, 1.8vw, 2rem);
}

.view-hero-panel-compact {
  padding: clamp(1rem, 1.4vw, 1.5rem);
}

.view-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

.view-empty-card {
  border-style: solid;
  border-width: 1px;
  border-color: var(--line-strong-safe);
  background: linear-gradient(145deg, #f4f8f5 0%, var(--surface-0-safe) 100%);
}

.view-link-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.view-link-card:hover {
  transform: translateY(-2px);
  border-color: #9ecbb5;
  box-shadow: var(--app-shadow-lift);
}

.home-gallery-scroll {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #9ccfb8 #ecf6f0;
}

.home-gallery-scroll::-webkit-scrollbar {
  width: 7px;
}

.home-gallery-scroll::-webkit-scrollbar-thumb {
  background: #9ccfb8;
  border-radius: 999px;
}

.home-gallery-scroll::-webkit-scrollbar-track {
  background: #ecf6f0;
  border-radius: 999px;
}

.home-gallery-item {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-gallery-item:hover {
  transform: translateY(-1px);
  border-color: #9ecbb5;
  box-shadow: 0 10px 22px rgba(14, 38, 30, 0.12);
}

.tool-surface {
  border-color: var(--line-strong-safe);
  background: linear-gradient(145deg, #f1f7f3 0%, var(--surface-0-safe) 100%);
}

input,
textarea,
select {
  color: var(--text-body-safe);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted-safe);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #1a8a62;
  outline-offset: 2px;
}

#neden,
#hizmetler,
#metrekup,
#bolgeler,
#sss,
#teklif,
#depo-durumu {
  scroll-margin-top: 112px;
}

.mobile-tabbar {
  border-radius: 18px;
  border: 1px solid var(--line-soft-safe);
  box-shadow: 0 16px 28px rgba(14, 38, 30, 0.16);
}

.mobile-tab-link {
  border-radius: 11px;
}

.site-footer {
  background: linear-gradient(180deg, #124734 0%, #0d3729 100%) !important;
  color: #e8f5ee !important;
  border-top: 1px solid rgba(208, 232, 220, 0.2) !important;
}

.site-footer a {
  color: #d2ebdf !important;
}

.site-footer a:hover {
  color: #ffffff !important;
}

.footer-panel {
  box-shadow: 0 12px 32px rgba(2, 20, 14, 0.35);
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(208, 232, 220, 0.2) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(208, 232, 220, 0.2) !important;
  color: #bddfcf !important;
}

.footer-panel h3 {
  letter-spacing: -0.012em;
}

@media (min-width: 1024px) {
  .site-header-wrap {
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
  }

  .nav-chip {
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    border-bottom-width: 1px;
  }

  .nav-chip:hover {
    background: #eef7f2;
    border-color: #d4e5dc;
  }

  .nav-chip.is-active {
    border-color: #c2dacc;
    background: #e7f4ed;
  }
}

@media (max-width: 1023px) {
  .site-header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0.45rem;
    min-height: 0;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .site-top-inner {
    gap: 0.35rem 0.7rem;
  }

  .site-header-wrap {
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
  }

  .mobile-tabbar {
    left: 10px;
    right: 10px;
    padding: 7px 8px;
  }

  .view-hero-panel {
    border-radius: var(--app-radius-md);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-shell {
    animation: section-rise 0.56s ease both;
  }

  .section-shell:nth-of-type(2) {
    animation-delay: 0.05s;
  }

  .section-shell:nth-of-type(3) {
    animation-delay: 0.1s;
  }

  .section-shell:nth-of-type(4) {
    animation-delay: 0.15s;
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}