/* ============================================================
   SCAFF THEME — MAIN STYLES
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --accent:       #FF6A00;
  --accent-rgb:   255, 106, 0;
  --accent-dark:  #e05a00;
  --dark:         #141414;
  --surface:      #1c1c1c;
  --surface-2:    #232323;
  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.14);
  --text:         #F2F2F2;
  --text-muted:   #888;
  --text-subtle:  #555;
  --white:        #ffffff;

  /* 3D perspective grid-floor + spotlight glow — CSS approximation of a
     wireframe-room look (see .bg-gridfloor below), no stock photo needed. */
  --grid-line: rgba(255,255,255,0.4);
  --grid-size: 44px 44px;

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
  --topbar-h: 36px;
  --sidebar-w: 260px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* 3D grid-floor + spotlight accent, built from two pseudo-elements:
   ::before is a soft glow from above, ::after is a grid tilted in 3D
   space so it reads as a floor receding into the distance, faded out
   before it reaches the top. The host element needs position:relative
   + overflow:hidden, and its real content needs z-index:1 to sit above. */
.bg-gridfloor,
.categories-section,
.footer-main {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

/* Optional uploaded background photo for a section — sits behind the
   section's own color/glow/grid layers, opacity set inline via the
   Customizer control so the tint over it stays readable. */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
/* Katalogas: photo covers the whole page, pinned so it doesn't scroll away */
body.woo-page > .section-bg {
  position: fixed;
}
.bg-gridfloor::before,
.categories-section::before,
.footer-main::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -15%;
  left: 50%;
  width: 75%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.30), transparent 72%);
  pointer-events: none;
}
.bg-gridfloor::after,
.categories-section::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: -30%;
  right: -30%;
  bottom: -20%;
  height: 85%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size);
  transform: perspective(500px) rotateX(50deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 55%, transparent 95%);
  mask-image: linear-gradient(to top, black 0%, black 55%, transparent 95%);
  pointer-events: none;
}
.categories-section > .container,
.footer-main > .container,
.products-section > .container {
  position: relative;
  z-index: 1;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
svg { display: inline-block; flex-shrink: 0; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1400px) { .container { padding: 0 60px; } }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(var(--accent-rgb), 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { color: var(--white); border-color: var(--border-light); }

.btn--white {
  background: var(--white);
  color: var(--dark);
}
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn--lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--accent);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s, transform 0.2s;
}
.topbar__social-link:hover {
  color: var(--white);
  transform: translateY(-1px);
}
.topbar__promo {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.topbar__phone,
.topbar__email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  transition: color 0.2s;
}
.topbar__phone:hover,
.topbar__email:hover { color: var(--white); }
@media (max-width: 767px) {
  .topbar__promo { display: none; }
}
@media (max-width: 480px) {
  .topbar__email { display: none; }
}

/* Language switch badge — sits next to the hamburger on mobile/tablet instead of
   buried inside the opened menu; desktop keeps GTranslate's own copy in the
   primary nav. Reuses .menu-item-gtranslate (GTranslate's own plugin-level custom
   CSS) for the pill/dropdown look, then trims it down to fit the header row. */
.header-lang { display: none; }
@media (max-width: 1023px) {
  .header-lang { display: flex; align-items: center; flex-shrink: 0; }
}
.header-lang.menu-item-gtranslate { margin-right: 0; }
.header-lang .gt-current-lang { padding: 4px 4px !important; }
.header-lang .gt_float_switcher img { width: 18px !important; height: 18px !important; }
/* Icon-only on the header row — the logo already eats most of the width on
   phones, so the "LT"/"EN" text label has to go to keep the hamburger on screen. */
.header-lang .gt-lang-code { display: none; }
.header-lang .gt_float_switcher-arrow { width: 10px !important; }
.mobile-menu__list .menu-item-gtranslate { display: none !important; }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.site-header__container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (max-width: 1023px) {
  .site-header__container { gap: 12px; }
  .site-header__actions { gap: 8px; }
}
.site-header__logo {
  flex-shrink: 0;
  margin-right: auto;
}
.site-header__logo img,
.site-header__logo .custom-logo {
  height: 44px;
  width: auto;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.site-logo-text span { color: var(--accent); }

/* NAV */
.main-nav { display: flex; align-items: center; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav__list li { position: relative; }
.main-nav__list > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.main-nav__list > li.current-menu-item > a { color: var(--accent); }

/* Dropdown */
.main-nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 100;
}
.main-nav__list li:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.main-nav__list .sub-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav__list .sub-menu li a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

@media (max-width: 1023px) { .main-nav { display: none; } }

/* HEADER ACTIONS */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 767px) { .header-contact-btn { display: none; } }

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.hamburger.is-active .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1023px) { .hamburger { display: flex; } }

/* ── SIDEBAR NAV (alternate desktop header styles) ──────── */
.site-sidebar-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-sidebar-nav {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    padding: 32px 24px;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 1000;
  }
  .site-sidebar-nav__logo { flex-shrink: 0; margin-bottom: 40px; }
  .site-sidebar-nav__logo img,
  .site-sidebar-nav__logo .custom-logo { height: 40px; width: auto; }

  .sidebar-nav { flex: 1; }
  .sidebar-nav__list { display: flex; flex-direction: column; gap: 4px; }
  .sidebar-nav__list li a {
    display: block;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
  }
  .sidebar-nav__list li a:hover,
  .sidebar-nav__list li.current-menu-item > a,
  .sidebar-nav__list li.current-menu-ancestor > a {
    color: var(--white);
    background: rgba(255,255,255,0.06);
  }
  .sidebar-nav__list li.current-menu-item > a { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
  .sidebar-nav__list .sub-menu { padding-left: 14px; margin-top: 2px; }
  .sidebar-nav__list .sub-menu a { font-size: 0.85rem; font-weight: 500; }

  .site-sidebar-nav__footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
  }
  .sidebar-nav__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
  }
  .sidebar-nav__contact:hover { color: var(--white); }
  .sidebar-nav__cta { justify-content: center; width: 100%; }

  /* Style: menu always on the left — permanent sidebar, content shifts right */
  body.header-style-sidebar .topbar,
  body.header-style-sidebar .site-header { display: none; }
  body.header-style-sidebar #page { margin-left: var(--sidebar-w); }
  body.header-style-sidebar .site-sidebar-nav { display: flex; }

  /* Style: top bar by default, becomes the sidebar once scrolled */
  body.header-style-scroll-sidebar .site-header {
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }
  body.header-style-scroll-sidebar.is-header-scrolled .site-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  body.header-style-scroll-sidebar .site-sidebar-nav {
    display: flex;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }
  body.header-style-scroll-sidebar.is-header-scrolled .site-sidebar-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  body.header-style-scroll-sidebar #page {
    transition: margin-left 0.35s var(--ease-out);
  }
  body.header-style-scroll-sidebar.is-header-scrolled #page {
    margin-left: var(--sidebar-w);
  }
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(380px, 100vw);
  background: var(--surface);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu__backdrop.is-visible { opacity: 1; pointer-events: auto; }
.mobile-menu__inner { padding: 80px 32px 40px; }
.mobile-menu__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.2s;
}
.mobile-menu__close:hover { background: rgba(255,255,255,0.08); }
.mobile-menu__list { margin-bottom: 40px; }
.mobile-menu__list li { border-bottom: 1px solid var(--border); }
.mobile-menu__list > li > a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu__list > li > a:hover { color: var(--accent); }
.mobile-menu__list .sub-menu { padding: 4px 0 12px 16px; }
.mobile-menu__list .sub-menu li a {
  display: block;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.mobile-menu__contact { border-top: 1px solid var(--border); padding-top: 24px; }
.mobile-menu__phone,
.mobile-menu__email {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.mobile-menu__phone:hover,
.mobile-menu__email:hover { color: var(--accent); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.96) 0%,
    rgba(13,13,13,0.75) 50%,
    rgba(13,13,13,0.4) 100%
  );
}
/* Animated grid bg when no image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,106,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .hero__container { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
}
/* Hero content — CSS keyframe entrance (no JS dependency) */
.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__visual {
  animation-fill-mode: both;
}
.hero__eyebrow { animation: heroFadeSlide 0.7s 0.1s var(--ease-out) both; }
.hero__title   { animation: heroFadeUp   0.9s 0.25s var(--ease-out) both; }
.hero__subtitle{ animation: heroFadeUp   0.7s 0.45s var(--ease-out) both; }
.hero__actions { animation: heroFadeUp   0.6s 0.6s  var(--ease-out) both; }
.hero__visual  { animation: heroFadeIn   1.0s 0.5s  var(--ease-out) both; }

@keyframes heroFadeSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.88) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions, .hero__visual {
    animation: none;
  }
}

.hero__content { max-width: 680px; }
.hero__container--full {
  grid-template-columns: 1fr;
}
.hero__container--full .hero__content {
  max-width: 860px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: rotateBadge 20s linear infinite;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.hero__badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── HERO SLIDER ─────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}
.hero-slider__track { position: relative; width: 100%; height: 100%; }
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease-out);
  z-index: 1;
}
.hero-slider__slide.is-active { opacity: 1; z-index: 2; }
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider__controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.hero-slider__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-slider__btn:hover { background: var(--accent); border-color: var(--accent); }
.hero-slider__dots { display: flex; gap: 6px; align-items: center; }
.hero-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s var(--ease-out);
}
.hero-slider__dot.is-active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── CATEGORIES ──────────────────────────────────────────── */
.categories-section {
  padding: 100px 0;
  background-color: var(--dark);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  will-change: transform;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.category-card__image {
  position: absolute;
  inset: 0;
}
.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.category-card:hover .category-card__image img { transform: scale(1.22); }
.category-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  color: var(--text-subtle);
}
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 32%, transparent 60%);
  transition: opacity 0.3s;
}
.category-card:hover .category-card__overlay { opacity: 0.9; }
.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  z-index: 2;
}
.category-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.category-card__count {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
.category-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.category-card:hover .category-card__arrow { opacity: 1; transform: scale(1); }

/* ── PRODUCTS SECTION ────────────────────────────────────── */
.products-section {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 80px 0 100px;
  background: var(--surface-2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: inset 0 1px 40px rgba(0,0,0,0.25);
}
.products-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(var(--accent-rgb), 0.3);
}
.product-card__image-link { display: block; }
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
  padding: 22px;
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.06); }
.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border);
}
.product-card__cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.product-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  flex: 1;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.product-card__title a { transition: color 0.2s; }
.product-card__title a:hover { color: var(--accent); }
.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card__actions .btn {
  justify-content: center;
  width: 100%;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section {
  padding: 100px 0;
}
.about-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-section__grid { grid-template-columns: 1fr; gap: 48px; }
  .about-section__visual { order: -1; }
}
.about-section__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}
.about-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.about-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.about-checklist li svg { color: var(--accent); flex-shrink: 0; }
.about-section__img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}
.about-section__placeholder {
  background: var(--surface);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-section__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.08) 0%, transparent 60%);
}
.about-placeholder__inner {
  text-align: center;
}
.about-placeholder__accent {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.about-placeholder__year {
  display: block;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.about-placeholder__inner span:not(.about-placeholder__year) {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── PARTNERS SECTION ────────────────────────────────────── */
.partners-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.partner-logo:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--dark);
  transform: translateY(-3px);
}
.partner-logo img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0.88;
  transition: opacity 0.3s;
}
.partner-logo:hover img {
  opacity: 1;
}
.partners-section--page { border-top: none; }

/* ── PARTNERS: FEATURED (Partneriai puslapis — atstovai) ────── */
.partners-featured {
  padding: 90px 0 40px;
}
.partners-featured__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.partner-featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 240px;
  padding: 32px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out), border-color 0.2s, box-shadow 0.3s;
}
a.partner-featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.partner-featured-card__photo {
  width: 100%;
  max-width: 176px;
  height: 96px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark);
  border: 2px solid rgba(var(--accent-rgb), 0.4);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.partner-featured-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-featured-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
}
.partner-featured-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.partner-featured-card__role {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── ABOUT PAGE GALLERY ──────────────────────────────────── */
.about-page-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  padding-bottom: 80px;
}
.about-page-gallery__item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.about-page-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .about-page-gallery { grid-template-columns: 1fr; gap: 14px; }
}

/* ── NEWS SECTION ────────────────────────────────────────── */
.news-section {
  padding: 100px 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; gap: 16px; } }

.news-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(var(--accent-rgb), 0.3);
}
.news-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
}
.news-card__body {
  padding: 22px 20px;
}
.news-card__date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 14px;
}
.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, gap 0.2s;
}
.news-card:hover .news-card__link {
  color: var(--accent);
  gap: 10px;
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #c84a00 100%);
}
.cta-banner__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-banner__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── USP BAND ────────────────────────────────────────────── */
.usp-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.usp-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
@media (max-width: 1023px) { .usp-band__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .usp-band__grid { grid-template-columns: 1fr; } }

.usp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.usp-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.usp-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}
.usp-item__text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer-main {
  background-color: var(--dark);
  padding: 72px 0 48px;
  border-top: 1px solid var(--border);
}
.footer-main__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 1023px) { .footer-main__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-main__grid { grid-template-columns: 1fr; } }

.footer-brand { padding-right: 20px; }
.footer-brand img,
.footer-brand .custom-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social__link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social__link:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.08);
}

.footer-widget__title,
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}
.footer-nav__list li { margin-bottom: 10px; }
.footer-nav__list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav__list a:hover { color: var(--accent); }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-contact-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--accent); }

.footer-bottom {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom__copy,
.footer-bottom__credit {
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.footer-bottom__credit span { color: var(--accent); }

/* ── WOO ARCHIVE ─────────────────────────────────────────── */
.woo-page-wrap {
  min-height: 70vh;
}
.woocommerce-products-header {
  padding: 60px 0 40px;
  text-align: center;
}
.woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  padding: 60px 0 40px;
}
.page-hero--plain {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}

/* ── PAGE CONTENT ────────────────────────────────────────── */
.page-content {
  padding: 60px 0 80px;
  max-width: 860px;
}
.page-content p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.page-content h2, .page-content h3 { color: var(--white); margin: 2.5rem 0 1rem; font-family: var(--font-display); }
.page-content > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content ol {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin: 0 0 1.25rem 1.25rem;
}
.page-content ul {
  list-style: none;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.page-content li { margin-bottom: 0.4rem; }
.page-content ul li {
  position: relative;
  padding-left: 1.4rem;
}
.page-content ul li:last-child { margin-bottom: 0; }
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.page-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: rgba(255,255,255,0.75);
  font-style: italic;
}
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.75rem auto;
  display: block;
}
.page-content figure { margin: 1.75rem 0; }
.page-content figure img { margin: 0 auto; }
.page-content figcaption,
.page-content .wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin-top: 0.6rem;
}
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.page-content strong { color: var(--white); }

/* Classic editor image alignment */
.page-content .alignleft,
.page-content .alignright,
.page-content .aligncenter,
.page-content .alignnone { margin: 1.75rem auto; }
.page-content .alignleft,
.page-content .alignright {
  max-width: min(45%, 380px);
  margin-top: 0.3rem;
}
.page-content .alignleft { float: left; margin-right: 1.75rem; }
.page-content .alignright { float: right; margin-left: 1.75rem; }
.page-content .wp-caption { max-width: 100%; }
.page-content .wp-caption.alignleft,
.page-content .wp-caption.alignright { max-width: min(45%, 380px); }
.page-content .wp-caption img { margin: 0 auto; }
.page-content::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) {
  .page-content .alignleft,
  .page-content .alignright {
    float: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Galleries (block editor + classic gallery shortcode) */
.page-content .wp-block-gallery,
.page-content .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 1.75rem 0;
  list-style: none;
  padding: 0;
}
.page-content .wp-block-gallery.columns-2,
.page-content .gallery.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.page-content .wp-block-gallery.columns-4,
.page-content .gallery.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.page-content .wp-block-gallery figure,
.page-content .gallery .gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.page-content .wp-block-gallery img,
.page-content .gallery .gallery-item img {
  margin: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
@media (max-width: 640px) {
  .page-content .wp-block-gallery,
  .page-content .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive video embeds */
.page-content .wp-block-embed__wrapper,
.page-content iframe {
  max-width: 100%;
}
.page-content .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
}
.page-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── NEWS / BLOG LISTING ─────────────────────────────────── */
.content-wrap { padding: 60px 0 80px; }
.archive-description {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0.75rem auto 0;
  text-align: center;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; gap: 20px; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(var(--accent-rgb), 0.3);
}
.post-card__image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.post-card__body .btn { align-self: flex-start; }

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  margin-top: 4rem;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pagination .page-numbers.dots { border: none; }

/* ── SINGLE POST ─────────────────────────────────────────── */
.single-post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.single-post__back:hover { color: var(--accent); }
.single-post__date {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.single-post__thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  background: var(--surface);
}
.single-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
@media (max-width: 640px) {
  .single-post__thumbnail { aspect-ratio: 4/3; }
}
.single-post__content { padding-top: 48px; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
[data-animate] { opacity: 0; }
[data-animate="fade-up"]   { transform: translateY(40px); }
[data-animate="fade-right"]{ transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="card"]      { transform: translateY(50px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ── ACCESSIBILITY ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-page {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
}
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-h, 70px) + var(--topbar-h, 40px) + 24px);
}
.contact-info-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-list li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.contact-info-list__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-info-list li a,
.contact-info-list li span {
  color: var(--text);
  font-size: 0.95rem;
}
.contact-info-list li a:hover { color: var(--accent); }

.contact-social {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.contact-social__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-social__links {
  display: flex;
  gap: 10px;
}
.contact-social__link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.contact-social__link:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-page__content { min-width: 0; }

.contact-form-wrap__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.contact-form-wrap__subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.contact-form__field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-form__field label span { color: var(--accent); }
.contact-form__field input,
.contact-form__field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.2s;
  width: 100%;
  margin-top: 8px;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.contact-form__field textarea { resize: vertical; min-height: 140px; }
.contact-form__msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.contact-form__msg.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.contact-form__msg.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.contact-form__submit { margin-top: 4px; }

/* Contact Form 7 output — reuses the .contact-form__field/__row markup written into the CF7 form template */
.contact-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.contact-form input[type="submit"].btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
}
.contact-form input[type="submit"].btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #f87171;
}
.contact-form .wpcf7-spinner { margin: 0 0 0 10px; }
.contact-form .wpcf7-response-output {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin: 0 0 20px !important;
}
.contact-form.sent .wpcf7-response-output {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #4ade80;
}
.contact-form.invalid .wpcf7-response-output,
.contact-form.spam .wpcf7-response-output,
.contact-form.failed .wpcf7-response-output,
.contact-form.aborted .wpcf7-response-output,
.contact-form.mail-failed .wpcf7-response-output,
.contact-form.payment-required .wpcf7-response-output {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171;
}

/* ── WP ALIGNMENTS ───────────────────────────────────────── */
.aligncenter { margin: 0 auto; display: block; }
.wp-block-image { margin: 2rem 0; }
