/* ═══════════════════════════════════════════════════════════════════════════
   KAYAN GROUP — Main Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  /* Brand colors extracted from Kayan logo */
  --blue: #1A62AB;
  /* house shape + "Kayan" text */
  --blue-dark: #124580;
  /* darker blue for hover/depth */
  --blue-bg: #0F3566;
  /* deep blue for header/footer */
  --green: #3DAA2E;
  /* bright leaf green — primary accent */
  --green-dark: #297025;
  /* dark leaf + Arabic text green */
  --green-light: #52C444;
  /* lighter green for hover states */

  /* Semantic aliases */
  --primary: var(--blue);
  --primary-dark: var(--blue-dark);
  --primary-bg: var(--blue-bg);
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-light: var(--green-light);

  --white: #FFFFFF;
  --off-white: #F4F8F2;
  /* very slight green tint to match brand */
  --gray-50: #F5F6F5;
  --gray-100: #EAEBEA;
  --gray-300: #C8CEC8;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --text: #1A2518;
  /* near-black with green undertone */
  --text-muted: #5A6B58;
  --border: #D8E4D4;

  --font: 'Cairo', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
  --header-h: 88px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 96px;
  position: relative;
}

.section--alt {
  background: var(--off-white);
}

.section--dark {
  background: var(--primary-bg);
  color: var(--white);
}

/* ── Section Header ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-header--start {
  text-align: start;
  margin-inline: 0;
}

.section-header--light .section-header__title,
.section-header--light .section-header__sub {
  color: var(--white);
}

.section-header__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header__tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-inline-end: 8px;
}

.section-header__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.section-header--light .section-header__tag {
  color: var(--accent-light);
}

.section-header--light .section-header__tag::before {
  background: var(--accent-light);
}

.section-header--light .section-header__title {
  color: var(--white);
}

.section-header__sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  transition: var(--transition);
}

.btn--whatsapp:hover {
  background: #1ebe58;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ── reCAPTCHA — hide badge, disclosure text shown in form instead ────────── */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.recaptcha-notice {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.recaptcha-notice a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.recaptcha-notice a:hover {
  color: var(--accent);
}

/* ── Fixed Elements ───────────────────────────────────────────────────────── */
/* WhatsApp button */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  background: #1ebe58;
}

.is-rtl .whatsapp-btn {
  right: auto;
  left: 28px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
}

.is-rtl .back-to-top {
  right: auto;
  left: 28px;
}

/* Social bar — icon strip with tooltip */
.social-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.is-ltr .social-bar {
  left: auto;
  right: 0;
}

.social-bar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: filter 0.2s;
}

.is-ltr .social-bar__item {
  border-radius: 8px 0 0 8px;
}

.social-bar__item--facebook  { background: #1877F2; }

.social-bar__item--instagram { background: #C13584; }
.social-bar__item--linkedin  { background: #0A66C2; }
.social-bar__item--twitter   { background: #000000; }
.social-bar__item--youtube   { background: #FF0000; }
.social-bar__item--tiktok    { background: #010101; }

.social-bar__item:hover {
  color: var(--white);
  filter: brightness(1.15);
}

.social-bar__icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Tooltip label */
.social-bar__name {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--primary-bg);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.social-bar__name::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--primary-bg);
}

.is-ltr .social-bar__name {
  left: auto;
  right: calc(100% + 10px);
}

.is-ltr .social-bar__name::before {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: var(--primary-bg);
}

.social-bar__item:hover .social-bar__name {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 53, 102, 0.97);
}

/* backdrop-filter lives on a pseudo-element, NOT the header itself.
   Applying backdrop-filter directly to a positioned ancestor makes it a
   containing block for position:fixed children — which collapses the
   mobile nav overlay to the header's own 68px height. */
.site-header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo__img {
  height: 68px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: opacity var(--transition), transform var(--transition);
}

.site-logo:hover .site-logo__img {
  transform: scale(1.03);
}

/* Default logo (coloured) — visible before scroll */
.site-logo__img--default {
  display: block;
}

.site-logo__img--scrolled {
  display: none;
}

/* Swap to white logo once header is scrolled */
.site-header.scrolled .site-logo__img--default {
  display: none;
}

.site-header.scrolled .site-logo__img--scrolled {
  display: block;
}

.site-logo__text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Nav */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link__chevron {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav-item.has-dropdown:hover .nav-link__chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-item.has-dropdown::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
  border: 1px solid var(--border);
}

.is-ltr .dropdown-menu {
  left: 0;
}

.is-rtl .dropdown-menu {
  right: 0;
  left: auto;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 11px 18px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--accent);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header CTA button */
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Language toggle pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
}

.lang-toggle__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-toggle__label {
  letter-spacing: 0.04em;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  height: 100dvh;
  min-height: 600px;
  position: relative;
}

.hero-swiper,
.swiper-wrapper,
.swiper-slide {
  height: 100%;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-color: var(--primary-bg);
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 53, 102, 0.5) 0%, rgba(15, 53, 102, 0.4) 50%, rgba(15, 53, 102, 0.6) 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
  padding-block-start: var(--header-h);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slide__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;

  /* entrance — only the active first slide runs this */
  .swiper-slide-active & {
    animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
}

.hero-slide__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 600px;

  .swiper-slide-active & {
    animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
  }
}

.hero-slide__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  .swiper-slide-active & {
    animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.hero-slide__btn {
  font-size: 1rem;
  padding: 15px 32px;
}

.hero-slide__btn--outline {
  font-size: 1rem;
  padding: 15px 32px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.hero-slide__btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* Swiper pagination */
.hero-swiper__pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: var(--transition);
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.hero-scroll__line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── Categories ───────────────────────────────────────────────────────────── */
.section--categories {
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 20px;
  justify-content: center;
}

.cat-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--gray-50);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.cat-card:hover {
  transform: translateY(-6px);
}

.cat-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.cat-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card__img-wrap img {
  transform: scale(1.06);
}

.cat-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-300);
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 53, 102, 0.55) 0%, transparent 60%);
}

.cat-card__body {
  padding: 16px 18px;
}

.cat-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cat-card__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── About ────────────────────────────────────────────────────────────────── */
.section--about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.is-rtl .about-grid {
  direction: rtl;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-img--placeholder {
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gray-300);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
}

.about-img-accent {
  position: absolute;
  bottom: -16px;
  inset-inline-end: -16px;
  width: 65%;
  height: 65%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

.about-text.prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.stat-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat-item__icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.stat-item__number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-bg);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Video ────────────────────────────────────────────────────────────────── */
.section--video {
  padding-block: 100px;
  background: var(--primary-bg);
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/video-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 53, 102, 0.9) 0%, rgba(15, 53, 102, 0.75) 100%);
}

.video-inner {
  position: relative;
  z-index: 2;
}

.video-embed-wrap {
  margin-top: 48px;
}

.video-inner--no-header .video-embed-wrap {
  margin-top: 0;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Products ─────────────────────────────────────────────────────────────── */
.section--products {
  background: var(--white);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-tab {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab--active,
.filter-tab.is-checked {
  background: var(--primary-bg);
  color: var(--white);
  border-color: var(--primary-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Isotope overrides display:grid with position:absolute — items need explicit widths.
   outerWidth = content + margins = (25% - 20px) + 20px = 25% → 4 per row */
.isotope-item {
  width: calc(25% - 20px);
  margin: 0 10px 20px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card__link {
  display: block;
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-50);
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.06);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-300);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 53, 102, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__view {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
}

.product-card__body {
  padding: 16px 18px;
}

.product-card__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.product-card__excerpt {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog-on-product-card extras (date + meta row, used in page-blog.php) */
.product-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-card__date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 64px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ── Blog ─────────────────────────────────────────────────────────────────── */
.section--blog {
  background: var(--off-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.06);
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-300);
}

.blog-card__body {
  padding: 22px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card__title a {
  color: var(--text);
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.blog-card__read-more:hover {
  gap: 10px;
}

/* ── Blog Archive Page ────────────────────────────────────────────────────── */
.archive-hero {
  position: relative;
  background-color: var(--primary-bg);
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-h) + 72px) 0 72px;
  text-align: center;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(13, 27, 46, 0.50) 0%,
      rgba(13, 27, 46, 0.75) 100%);
}

.archive-hero .container {
  position: relative;
  z-index: 1;
}

.archive-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.archive-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.80);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.archive-wrap {
  padding-block: 64px;
}

.archive-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 80px 0;
}

.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.archive-pagination .page-numbers.dots {
  border: none;
  background: none;
  pointer-events: none;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */
.section--contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(61, 170, 46, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-item__value {
  font-weight: 500;
  color: var(--text);
}

.contact-item__value a {
  transition: color var(--transition);
}

.contact-item__value a:hover {
  color: var(--accent);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}

/* Form */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.required {
  color: var(--accent);
  margin-inline-start: 2px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
}

.form-control::placeholder {
  color: var(--gray-500);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-response {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  animation: formResponseIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-response::before {
  flex-shrink: 0;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
  margin-top: 1px;
}

.form-response.success {
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border: 1.5px solid rgba(34, 197, 94, 0.25);
}

.form-response.success::before {
  content: '\f058'; /* fa-circle-check */
  color: #22c55e;
}

.form-response.error {
  background: rgba(239, 68, 68, 0.07);
  color: #b91c1c;
  border: 1.5px solid rgba(239, 68, 68, 0.2);
}

.form-response.error::before {
  content: '\f057'; /* fa-circle-xmark */
  color: #ef4444;
}

@keyframes formResponseIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast notification ───────────────────────────────────────────────────── */
.kayan-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.kayan-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.kayan-toast--success {
  background: #16a34a;
  color: #fff;
}

.kayan-toast--success::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f058';
  font-size: 1rem;
}

.kayan-toast--error {
  background: #dc2626;
  color: #fff;
}

.kayan-toast--error::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f057';
  font-size: 1rem;
}

/* ── Single Post ──────────────────────────────────────────────────────────── */

/* Hero image */
.post-hero {
  width: 100%;
  height: 480px;
  position: relative;
  background: var(--primary-bg);
  overflow: hidden;
  margin-top: 0;
}

.post-hero--no-img {
  height: var(--header-h);
  background: transparent;
}
.product-single__excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 16px;
}

.post-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(13, 27, 46, 0.25) 0%,
      rgba(13, 27, 46, 0.55) 100%);
}

/* Layout wrapper */
.post-wrap {
  background: var(--white);
}

.post-container {
  max-width: 740px;
  margin-inline: auto;
  padding: 52px 24px 64px;
}

/* Breadcrumb */
.post-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.post-crumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}

.post-crumb a:hover {
  color: var(--primary);
}

.post-crumb span[aria-hidden] {
  opacity: .4;
}

/* Title */
.post-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

/* Meta bar */
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.post-meta__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s;
}

.post-meta__cat:hover {
  background: var(--accent-dark);
}

.post-meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-meta__item i {
  font-size: 0.8rem;
  color: var(--primary);
}

/* Divider */
.post-divider {
  border: none;
  border-top: 1px solid #E8EDF4;
  margin: 36px 0;
}

/* Prose content */
.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
}

.post-content p {
  margin-bottom: 1.4rem;
}

.post-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.2rem 0 0.8rem;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.6rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
  display: block;
}

.post-content blockquote {
  border-inline-start: 4px solid var(--primary);
  margin: 1.8rem 0;
  padding: 16px 20px;
  background: #F0F5FF;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--primary);
}

.post-content ul,
.post-content ol {
  padding-inline-start: 1.4rem;
  margin-bottom: 1.4rem;
}

.post-content li {
  margin-bottom: .4rem;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--accent);
}

.post-content code {
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .88em;
  font-family: monospace;
}

.post-content pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Post footer bar */
.post-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border: 1.5px solid var(--primary);
  padding: 9px 20px;
  border-radius: 100px;
  transition: background .2s, color .2s;
}

.post-back-btn:hover {
  background: var(--primary);
  color: #fff;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-share>span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.post-share a:hover {
  background: var(--primary);
  color: #fff;
}

/* Related posts */
.post-related {
  background: var(--off-white);
  padding: 64px 0;
}

.post-related__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

/* ── Single product — two-column detail layout ─────────────────────────── */

.product-detail-wrap {
  padding: 64px 0 80px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-detail__img-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-detail__img-sticky img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail__img-placeholder {
  aspect-ratio: 1 / 1;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-300);
  border-radius: var(--radius-lg);
}

.product-detail__content {
  padding-top: 8px;
}

.product-detail__title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin: 12px 0 16px;
}

.product-detail__excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-detail__img-sticky {
    position: relative;
    top: auto;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-hero {
    height: 260px;
  }

  .post-container {
    padding: 36px 16px 48px;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-bg);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 72px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 20px;
}

.footer-logo img,
.footer-logo__img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.footer-logo:hover .footer-logo__img,
.footer-logo:hover img {
  transform: scale(1.03);
}

.footer-logo__text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social__link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social__link:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-col__title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li+li {
  margin-top: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-contact-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-block: 24px;
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── RTL Tweaks ───────────────────────────────────────────────────────────── */
.is-rtl .section-header__tag::before {
  margin-inline-end: 10px;
  margin-inline-start: 0px;
}

.is-rtl .about-grid {
  grid-template-columns: 1fr 1fr;
}

.is-rtl .hero-slide__content {
  text-align: start;
}

.is-rtl .dropdown-menu {
  text-align: start;
}

.is-rtl .contact-grid {
  direction: rtl;
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid  { grid-template-columns: repeat(3, 1fr); }
  .isotope-item   { width: calc(33.333% - 20px); }

  .about-grid,
  .is-rtl .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrap {
    max-width: 500px;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1/-1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .section {
    padding-block: 64px;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    bottom: 0;
    background: var(--primary-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    /* visibility:hidden keeps the nav invisible AND out of tab order when closed.
       The 0.3s delay matches the transform duration so it hides only after sliding out. */
    visibility: hidden;
    transition: transform var(--transition), visibility 0s 0.3s;
    z-index: 999;
  }

  .is-rtl .primary-nav {
    transform: translateX(100%);
  }

  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-link {
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 0;
    display: none;
  }

  .nav-item.has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.65);
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .isotope-item {
    width: calc(50% - 20px);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .social-bar {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-slide__title {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE UX ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Mobile nav social strip ──────────────────────────────────────────────── */
.nav-social {
  display: none; /* hidden on desktop — only shown inside the off-canvas nav */
}

/* ── Touch targets — ensure 44 × 44 px minimum for tappable elements ─────── */
.filter-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ── 768 px and below ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Logo fits inside 68px header with breathing room */
  .site-logo__img {
    height: 50px;
  }

  /* Nav social strip — visible inside mobile off-canvas menu */
  .nav-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-social__link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
    text-decoration: none;
    transition: filter 0.2s, transform 0.2s;
  }

  .nav-social__link:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
  }

  .nav-social__link--facebook  { background: #1877F2; }
  .nav-social__link--instagram { background: #C13584; }
  .nav-social__link--linkedin  { background: #0A66C2; }
  .nav-social__link--twitter   { background: #000000; }
  .nav-social__link--youtube   { background: #FF0000; }
  .nav-social__link--tiktok    { background: #010101; }

  /* Section header — tighter spacing on mobile */
  .section-header {
    margin-bottom: 36px;
  }

  /* Video section overrides its own padding — bring it in line */
  .section--video {
    padding-block: 64px;
  }

  /* Hero — stack CTA buttons vertically and stretch to same width */
  .hero-slide__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
  }

  .hero-slide__btn,
  .hero-slide__btn--outline {
    justify-content: center;
    text-align: center;
  }

  /* Filter tabs — horizontal scroll strip instead of wrapped rows */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  /* Section footer button — more prominent on mobile */
  .section-footer .btn {
    min-width: 220px;
  }

  /* Contact map — shorter to save vertical space */
  .contact-map iframe {
    height: 200px;
  }

  /* Footer — reduce top padding */
  .site-footer {
    padding-block-start: 56px;
  }

  /* Safe-area-insets — prevent overlap with iOS home indicator */
  .whatsapp-btn {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
  }

  /* back-to-top = whatsapp bottom + whatsapp height (52px) + gap (16px) = bottom + 68px */
  .back-to-top {
    bottom: calc(max(20px, env(safe-area-inset-bottom, 20px)) + 68px);
  }

  .footer-bottom {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
  }
}

/* ── 480 px and below ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Tighter global section padding */
  .section {
    padding-block: 48px;
  }

  .section--video {
    padding-block: 48px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  /* Hero — more breathing room for text at small widths */
  .hero-slide__content {
    padding-inline: 20px;
  }

  .hero-slide__sub {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  /* Remove scroll indicator — reclaims bottom space on small screens */
  .hero-scroll {
    display: none;
  }

  /* Products — single column so cards have room for title + excerpt */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .isotope-item {
    width: calc(100% - 20px);
  }

  /* Categories grid — tighter gap */
  .categories-grid {
    gap: 10px;
  }

  /* Stats — compact card padding */
  .stat-item {
    padding: 20px 12px;
  }

  .stat-item__number {
    font-size: 1.8rem;
  }

  /* Contact form — reduce padding for narrow screens */
  .contact-form-wrap {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  /* Post/product hero — shorter on small screens */
  .post-hero {
    height: 220px;
  }

  /* Archive hero — less padding */
  .archive-hero {
    padding-block-start: calc(var(--header-h) + 40px);
    padding-block-end: 40px;
  }

  /* Footer */
  .site-footer {
    padding-block-start: 48px;
  }
}

/* ── 360 px and below (very small phones: Galaxy Fold, old Android) ───────── */
@media (max-width: 360px) {
  :root {
    --header-h: 60px;
  }

  .site-logo__img {
    height: 42px;
  }

  .hero-slide__title {
    font-size: 1.5rem;
  }

  .hero-slide__actions {
    max-width: 100%;
  }

  /* Collapse to single column at extreme narrowness */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}