:root {
  --ink-950: #07111F;
  --ink-900: #0A1628;
  --ink-800: #12223A;
  --ink-600: #334766;
  --brand: #F15A24;
  --brand-strong: #CF4318; /* 4.7:1 on white */
  --brand-deep: #B23812;
  --green: #00A388;
  --yellow: #FBB03B;
  --line: #E3E7ED;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html { -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
#site-header .navbar { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
#site-header .topbar { transition: margin .3s var(--ease-out), opacity .3s; }
#site-header.is-scrolled .navbar {
  background: rgba(10, 22, 40, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
@media (min-width: 1024px) {
  #site-header.is-scrolled .topbar { margin-top: -37px; opacity: 0; pointer-events: none; }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 6px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover, .nav-link.is-current { color: #fff; }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn-lg { min-height: 52px; padding: 0 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--brand-strong); color: #fff; box-shadow: 0 10px 24px -10px rgba(241, 90, 36, .7); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary svg { transition: transform .25s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn-outline { color: var(--ink-900); border: 1.5px solid var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--ink-900); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .25);
  background: rgba(7, 17, 31, .35);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 2px solid var(--brand);
  transition: color .2s, gap .25s var(--ease-out);
}
.link-arrow:hover { color: var(--brand-strong); gap: .75rem; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-bars { display: inline-flex; gap: 3px; }
.brand-bars i { display: block; width: 10px; height: 4px; border-radius: 2px; transform: skewX(-20deg); }
.brand-bars i:nth-child(1) { background: var(--brand); }
.brand-bars i:nth-child(2) { background: var(--green); }
.brand-bars i:nth-child(3) { background: var(--yellow); }

.section-title {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

/* ---------- Hero ---------- */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 7.5s linear;
}
.hero-slide.is-active .hero-img { transform: scale(1); }

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 20% 60%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 60%, #000 10%, transparent 70%);
}

.hero-title {
  grid-area: 1 / 1;
  align-self: end;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .7s var(--ease-out);
  pointer-events: none;
}
.hero-title.is-active {
  opacity: 1; transform: none; pointer-events: auto;
  transition-delay: .25s;
}

.slide-dot {
  flex: 1;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 44px;
  padding-top: .5rem;
  text-align: left;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: color .2s;
}
.slide-dot:hover, .slide-dot.is-active { color: #fff; }
.slide-num { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.slide-bar { position: relative; display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.slide-bar > span { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.slide-dot.is-done .slide-bar > span { transform: scaleX(1); }
.slide-dot.is-active .slide-bar > span { animation: slide-progress var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .slide-dot.is-active .slide-bar > span { animation-play-state: paused; }
@keyframes slide-progress { to { transform: scaleX(1); } }

/* ---------- Value strip ---------- */
.value-item { display: flex; align-items: center; gap: 1rem; padding: 1.75rem 0; }
@media (min-width: 1024px) { .value-item { padding: 2rem 1.75rem; } .value-item:first-child { padding-left: 0; } }
.value-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; }
.value-title { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 1.0625rem; color: #fff; }
.value-text { margin-top: .15rem; font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .68); }

/* ---------- Category cards ---------- */
.cat-card {
  position: relative;
  display: flex; flex-direction: column; gap: 1.25rem;
  height: 100%;
  min-height: 13.5rem;
  padding: 1.75rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s, color .35s;
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(145deg, var(--ink-800), var(--ink-950));
  opacity: 0;
  transition: opacity .35s ease;
}
.cat-card::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0 33.3%, var(--green) 33.3% 66.6%, var(--yellow) 66.6%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(10, 22, 40, .45);
  color: #fff;
}
.cat-card:hover::before, .cat-card:focus-visible::before { opacity: 1; }
.cat-card:hover::after, .cat-card:focus-visible::after { transform: scaleX(1); }

.cat-num {
  position: absolute; right: 1.5rem; top: 1.25rem;
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 800; font-size: 2.75rem; line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px #D5DBE4;
  transition: -webkit-text-stroke-color .35s;
}
.cat-card:hover .cat-num { -webkit-text-stroke-color: rgba(255, 255, 255, .25); }

.cat-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: #FFF1EB;
  transition: background-color .35s, transform .45s var(--ease-out);
}
.cat-icon img { width: 36px; height: 36px; object-fit: contain; transition: filter .35s; }
.cat-card:hover .cat-icon { background: var(--brand); transform: rotate(-6deg); }
.cat-card:hover .cat-icon img { filter: invert(1); }

.cat-title {
  margin-top: auto;
  padding-right: 2.5rem;
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.cat-go {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink-900);
  transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease-out);
}
.cat-go svg { width: 16px; height: 16px; }
.cat-card:hover .cat-go { background: #fff; border-color: #fff; color: var(--ink-900); transform: rotate(45deg); }

.cat-card--cta { background: linear-gradient(145deg, var(--brand-strong), var(--brand-deep)); color: #fff; border-color: transparent; }
.cat-card--cta::before { background: linear-gradient(145deg, var(--ink-800), var(--ink-950)); }
.cat-icon--cta { background: rgba(255, 255, 255, .15); color: #fff; }
.cat-card--cta .cat-go { border-color: rgba(255, 255, 255, .4); color: #fff; }

/* ---------- About ---------- */
.about-frame {
  position: absolute;
  inset: -1.25rem -1.25rem 2.5rem 2.5rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(10, 22, 40, .18) 1.2px, transparent 0) 0 0 / 18px 18px;
}
.about-frame::before {
  content: "";
  position: absolute; right: -1px; top: -1px;
  width: 38%; height: 38%;
  border-top: 6px solid var(--brand);
  border-right: 6px solid var(--brand);
  border-top-right-radius: 28px;
}
.check-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: #F6F7F9;
  font-weight: 600;
  font-size: .9375rem;
}
.check-item::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Contact ---------- */
.glow { background: radial-gradient(circle, rgba(241, 90, 36, .35), transparent 65%); filter: blur(20px); }
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}
.contact-row:hover { background: rgba(255, 255, 255, .07); border-color: rgba(241, 90, 36, .5); transform: translateX(4px); }
.contact-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-strong); color: #fff; }

.field-label { display: block; margin-bottom: .45rem; font-size: .875rem; font-weight: 600; color: var(--ink-800); }
.field-input {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #F9FAFB;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field-input:hover { border-color: #C8D0DB; }
.field-input:focus { outline: none; background: #fff; border-color: var(--brand-strong); box-shadow: 0 0 0 4px rgba(241, 90, 36, .15); }
.field-input[aria-invalid="true"] { border-color: #DC2626; background: #FEF2F2; }
.field-error { margin-top: .4rem; font-size: .8125rem; font-weight: 500; color: #B91C1C; }

/* ---------- Footer ---------- */
.brand-stripe { height: 4px; background: linear-gradient(90deg, var(--brand) 0 33.3%, var(--green) 33.3% 66.6%, var(--yellow) 66.6%); }
.footer-link { display: inline-block; padding: .15rem 0; transition: color .2s; }
.footer-link:hover { color: #fff; }

/* ---------- Mobile menu ---------- */
.menu-backdrop { opacity: 0; transition: opacity .3s ease; }
.menu-panel { transform: translateX(100%); transition: transform .4s var(--ease-out); }
#mobile-menu.is-open .menu-backdrop { opacity: 1; }
#mobile-menu.is-open .menu-panel { transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .hero-img, .hero-slide.is-active .hero-img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 639px) {
  .cat-card { min-height: 11rem; padding: 1.15rem; gap: 1rem; border-radius: 18px; }
  .cat-num { right: 1rem; top: 1rem; font-size: 1.75rem; }
  .cat-icon { width: 52px; height: 52px; border-radius: 14px; }
  .cat-icon img { width: 30px; height: 30px; }
  .cat-title { padding-right: 0; font-size: 1rem; }
  .cat-go { display: none; }
  .cat-card--cta p { display: none; }
  .about-frame { inset: -.75rem -.75rem 2rem 1.5rem; }
}

/* =========================================================
   Category page (taxonomy-mehsul_kateqoriya.php)
   ========================================================= */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before {
  content: "";
  width: 6px; height: 6px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

.page-hero-icon {
  display: grid; place-items: center;
  width: 88px; height: 88px;
  border-radius: 24px;
  background: var(--brand-strong);
  box-shadow: 0 18px 40px -16px rgba(241, 90, 36, .8);
  transform: rotate(-6deg);
}
.page-hero-icon img { width: 48px; height: 48px; filter: invert(1); }

/* Category switcher */
.chip-nav {
  position: sticky; top: 80px; z-index: 30;
  border-bottom: 1px solid rgba(10, 22, 40, .06);
  background: rgba(246, 247, 249, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.chip-row {
  display: flex; gap: .5rem;
  overflow-x: auto;
  padding: .85rem 1.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row li { flex: none; scroll-snap-align: start; }
.cat-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px;
  padding: 0 1rem 0 .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .875rem; font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.cat-chip img { width: 28px; height: 28px; padding: 4px; border-radius: 999px; background: #FFF1EB; transition: filter .2s, background-color .2s; }
.cat-chip:hover { border-color: var(--ink-900); }
.cat-chip.is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.cat-chip.is-current img { background: none; filter: invert(1); }

.search-input { padding-left: 3rem; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }

/* Product cards */
.prod-card {
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.prod-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 48px -22px rgba(10, 22, 40, .35); }
.prod-media { position: relative; aspect-ratio: 1; padding: 1.5rem; background: #fff; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-num {
  position: absolute; left: .9rem; top: .9rem;
  padding: .2rem .55rem;
  border-radius: 8px;
  background: var(--paper, #F6F7F9);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-600);
}
.prod-body { display: flex; flex: 1; flex-direction: column; gap: 1rem; padding: 1.1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.prod-title { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.prod-add {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: .875rem; font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.prod-add:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.prod-add:active { transform: scale(.97); }
.prod-add[aria-pressed="true"] { background: #047857; border-color: #047857; color: #fff; }
.prod-add[aria-pressed="true"]:hover { background: #065F46; border-color: #065F46; color: #fff; }
.prod-item.is-hidden { display: none; }

/* Steps */
.step { display: flex; gap: 1rem; padding: 1.5rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--ink-900); color: #fff;
  font-family: "Inter Tight", Inter, sans-serif; font-weight: 800;
}
.step:nth-child(1) .step-num { background: var(--brand-strong); }
.step:nth-child(2) .step-num { background: #047857; }
.step:nth-child(3) .step-num { background: var(--ink-900); }
.step-title { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 1.0625rem; }
.step-text { margin-top: .25rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-600); }

/* Floating inquiry bar */
.inquiry-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 .75rem calc(.75rem + env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(120%);
  transition: transform .45s var(--ease-out);
}
.inquiry-bar.is-visible { transform: none; }
.inquiry-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: .9rem;
  max-width: 44rem; margin: 0 auto;
  padding: .7rem .7rem .7rem .9rem;
  border-radius: 20px;
  background: rgba(10, 22, 40, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .08);
}
.inquiry-count {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-strong); color: #fff;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.inquiry-count.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.18); } }
body.has-inquiry footer { padding-bottom: 6rem; }

@media (max-width: 639px) {
  .prod-media { padding: 1rem; }
  .prod-body { padding: .9rem; gap: .75rem; }
  .prod-title { font-size: .9375rem; }
  .prod-add { font-size: .8125rem; }
  .page-hero-icon { width: 68px; height: 68px; border-radius: 20px; }
  .page-hero-icon img { width: 36px; height: 36px; }
}

/* =========================================================
   WordPress theme additions
   ========================================================= */

/* Header: category dropdown under "Məhsullar" */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown .nav-link { padding-right: .35rem; }
.nav-dropdown .nav-link::after { right: .35rem; }
.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 44px;
  margin-right: .4rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: color .2s, transform .3s var(--ease-out);
}
.nav-caret:hover, .nav-dropdown.is-open .nav-caret { color: #fff; }
.nav-dropdown.is-open .nav-caret svg { transform: rotate(180deg); }
.nav-caret svg { transition: transform .3s var(--ease-out); }
.nav-panel {
  position: absolute; left: 50%; top: 100%;
  width: min(40rem, 90vw);
  padding: .75rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(7, 17, 31, .45);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
}
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dropdown.is-open .nav-panel {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 4px);
  transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s;
}
.nav-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; }
.nav-cat {
  display: flex; align-items: center; gap: .75rem;
  min-height: 48px;
  padding: .4rem .6rem;
  border-radius: 12px;
  font-size: .9375rem; font-weight: 600;
  color: var(--ink-900);
  transition: background-color .2s, color .2s;
}
.nav-cat:hover, .nav-cat.is-current { background: #F6F7F9; color: var(--brand-strong); }
.nav-cat-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #FFF1EB; transition: background-color .2s; }
.nav-cat-icon img { width: 22px; height: 22px; object-fit: contain; transition: filter .2s; }
.nav-cat:hover .nav-cat-icon { background: var(--brand); }
.nav-cat:hover .nav-cat-icon img { filter: invert(1); }

/* Mobile menu: categories sub-list */
.mobile-sub-toggle svg { transition: transform .3s var(--ease-out); }
.mobile-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Footer socials */
.social-link {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  transition: background-color .2s, border-color .2s, color .2s;
}
.social-link:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }

/* Form */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form { position: relative; }
.field-select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334766' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  cursor: pointer;
}
#form-status.is-success { background: #ECFDF5; color: #065F46; }
#form-status.is-error { background: #FEF2F2; color: #991B1B; }
#contact-form button[type="submit"][disabled] { opacity: .7; cursor: progress; transform: none; }

/* "Tezliklə" / empty blocks */
.coming-soon {
  padding: 3.5rem 1.5rem;
  border-radius: 28px;
  border: 1px dashed rgba(51, 71, 102, .3);
  background: #fff;
  text-align: center;
}
.coming-soon-icon {
  display: inline-grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 22px;
  background: var(--brand-strong); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(241, 90, 36, .8);
  transform: rotate(-6deg);
}

/* Generic pages */
.post-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.75rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -22px rgba(10, 22, 40, .35); }
.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-800); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; line-height: 1.2; color: var(--ink-900); margin-top: 1.8em; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content blockquote { padding-left: 1.2em; border-left: 4px solid var(--brand); color: var(--ink-600); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #F9FAFB; }
.search-form .search-submit { min-height: 50px; padding: 0 1.25rem; border-radius: 12px; background: var(--brand-strong); color: #fff; font-weight: 600; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
