/* HHS kurumsal arayüz stilleri. Sağlanan tasarımdan aktarılmıştır. GPL-2.0-or-later. */
:root {
  --hhs-brand: #2c6242;
  --hhs-brand-dark: #1e472f;
  --hhs-surface: #f4f7f1;
  --hhs-border: #dce4dd;
  --hhs-ink: #262626;
  --hhs-muted: #5a665e;
  --hhs-content-width: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--hhs-ink);
  font-family: var(--hhs-font, "Josefin Sans", Arial, sans-serif);
  font-weight: 400;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; height: auto; }
button, a, input, textarea, select { touch-action: manipulation; }
[hidden] { display: none !important; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: -1px;
}

.screen-reader-text:focus {
  position: fixed;
  width: auto;
  height: auto;
  clip-path: none;
  z-index: 20000;
  background: #ffffff;
  color: var(--hhs-ink);
  padding: 14px 18px;
}

/* Legacy compatibility & Elementor integration */
.hhs-company, .hhs-catalog, .hb-app { display: block !important; }
.preview-header, .preview-footer, .cp-header, .hc-header { display: none !important; }

.hhs-elementor-header-wrap,
.hhs-elementor-footer-wrap {
  width: 100%;
  position: relative;
  z-index: 50;
}

.hhs-elementor-fullwidth {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hhs-page-content {
  padding-top: 130px;
  padding-bottom: 90px;
  min-height: 60vh;
}

.elementor-page .hhs-page-content {
  padding-top: 0;
  padding-bottom: 0;
  max-width: none;
  width: 100%;
}

/* Filters, search, pagination */
.hc-filters a, .hb-filters a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hc-filter[aria-current="page"],
.hb-filter[aria-current="page"] {
  background: var(--hhs-brand);
  color: #ffffff;
}

.hc-search button, .hb-search button {
  border: 0;
  background: none;
  color: var(--hhs-brand);
  cursor: pointer;
  padding: 10px;
  font-size: 14px;
}

.hc-search, .hb-search {
  display: flex;
  align-items: center;
}

.hb-search label { flex: 1; min-width: 0; }

.hhs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 48px 0 64px;
}

.hhs-pagination .page-numbers {
  padding: 10px 15px;
  border: 1px solid var(--hhs-border);
  border-radius: 6px;
  text-decoration: none;
}

.hhs-pagination .current {
  background: var(--hhs-brand);
  color: #ffffff;
  border-color: var(--hhs-brand);
}

/* Semantic footer heading (replaces H2 in footer) */
.hs-footer-column .hs-footer-title {
  font-size: 16px;
  font-weight: 400;
  color: #234a34;
  line-height: 1.4;
  margin: 0 0 22px;
}

.hs-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-footer-menu li {
  margin: 0 0 10px;
}

.hs-footer-menu a {
  text-decoration: none;
}

.hs-footer-menu a:hover {
  color: var(--hhs-brand);
}

/* Forms & alerts */
.cp-form-result {
  padding: 18px 22px;
  max-width: 1100px;
  margin: 110px auto 0;
  background: #f2f6f3;
  border-left: 4px solid var(--hhs-brand);
}

.hhs-honey {
  position: absolute !important;
  left: -10000px;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Product & Blog media polish */
.hhs-featured__list .hc-media { width: 100%; height: 100%; }
.hhs-featured__list .hhs-product__media { overflow: visible; }
.hhs-product__art--contained { inset: 10%; overflow: visible; }
.hhs-product__art--contained img { left: 0; top: 0; width: 100%; height: 100%; }

.hb-toc nav { display: flex; flex-direction: column; gap: 12px; }
.hb-toc nav a { font-size: 13.5px; line-height: 1.55; }
.hb-picture__tile { display: block; width: 100%; height: auto; background-repeat: no-repeat; }
.hb-picture__tile:not([style*="aspect-ratio"]) { aspect-ratio: 3 / 2; }
.hb-no-picture { background: #edf3ee; }
.hb-reading > .hb-sidebar { position: sticky; top: 30px; align-self: start; }
.hb-index-head { padding-top: 55px; }
.hb-breadcrumb { margin: 0 0 24px; padding: 12px 0; }


.hc-panel p { line-height: 1.75; }
.hc-jump { text-decoration: none; }
.hhs-slide__button { position: absolute; }

/* Custom mega menu list */
.hhs-custom-mega {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.hhs-custom-mega li { list-style: none; margin: 12px 0; }
.hhs-custom-mega a { text-decoration: none; font-size: 21px; }
.hhs-custom-mega .sub-menu { padding: 10px 0 0; }
.hhs-custom-mega .sub-menu a { font-size: 16.5px; }
.hs-mega .hs-menu-grid > .hhs-custom-mega,
.hs-mega-grid > .hhs-custom-mega { grid-column: 1 / -1; }

.admin-bar #hhs-site-header { top: 32px; }

/* Search & 404 */
.hhs-search-results {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  gap: 20px;
}

.hhs-search-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--hhs-border);
}

.hhs-search-item h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.hhs-search-badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hhs-brand);
  font-weight: 600;
}

.hhs-404-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.hhs-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.hhs-btn-primary,
.hhs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.hhs-btn-primary {
  background: var(--hhs-brand);
  color: #ffffff;
}

.hhs-btn-outline {
  border: 1px solid var(--hhs-brand);
  color: var(--hhs-brand);
}

@media (max-width: 760px) {
  .hhs-custom-mega { grid-template-columns: 1fr; gap: 12px; }
  .hhs-page-content { padding-top: 96px; }
  .hc-filters, .hb-filters { max-width: 100%; flex-wrap: wrap; }
  .hc-search, .hb-search { width: 100%; max-width: 100%; }
  .hc-search input, .hb-search input { min-width: 0; }
  .admin-bar #hhs-site-header { top: 46px; }
  .cp-form-result { margin: 90px 6% 0; }
  .hhs-pagination { margin: 32px 0 44px; }
  .hb-reading > aside,
  .hb-reading > .hb-sidebar { position: static; order: -1; grid-row: 1; }
  .hb-toc nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
