/* ===========================================================
   common.css — shared styles (header, footer, socials)
   Included on every page. Uses hardcoded colors so it does
   not depend on page-specific CSS variables.
   =========================================================== */

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

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================================================
   NAV / HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
}

.nav {
  position: relative;
  display: block;
  padding: 18px 40px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.nav-logo-wrap {
  line-height: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-logo-wrap .custom-logo {
  max-height: 36px;
  width: auto;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: #f5f2ec;
  text-decoration: none;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-logo span {
  color: #ff3d00;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #888;
}

/* DROPDOWN — Products menu
   WordPress menus typically output `.menu-item-has-children` + `ul.sub-menu`.
   We support both the theme's custom classes and WP defaults. */
.nav-item-dropdown,
.nav-links .menu-item-has-children {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-links .menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret,
.nav-links .menu-item-has-children:hover .nav-caret,
.nav-links .menu-item-has-children:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown,
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 110;
}

/* Invisible hover bridge so the menu does not close when moving the cursor down */
.nav-dropdown::before,
.nav-links .sub-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-links .menu-item-has-children:hover>.sub-menu,
.nav-links .menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li,
.nav-links .sub-menu li {
  margin: 0;
}

.nav-dropdown a,
.nav-links .sub-menu a {
  display: block;
  padding: 10px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-links .sub-menu a:hover,
.nav-links .sub-menu a:focus-visible {
  background: rgba(255, 61, 0, 0.12);
  color: #f5f2ec;
  outline: none;
}

.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #ff3d00;
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: max-content;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: transparent;
  color: #f5f2ec;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(255, 61, 0, 0.65);
  background: rgba(255, 61, 0, 0.08);
  outline: none;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #0a0a0a;
  color: rgba(245, 242, 236, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.footer-brand {
  max-width: 360px;
}

.footer-brand .footer-logo {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: #f5f2ec;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand .footer-logo span {
  color: #ff3d00;
}

.footer-brand p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.6);
}

/* SOCIAL ICONS */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.05);
  border: 1px solid rgba(245, 242, 236, 0.1);
  color: rgba(245, 242, 236, 0.6);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
  background: #ff3d00;
  border-color: #ff3d00;
  color: #f5f2ec;
  transform: translateY(-2px);
}

.footer-socials svg {
  display: block;
}

/* FOOTER COLUMNS */
.footer-col h5 {
  color: #f5f2ec;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.6);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ff3d00;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.4);
}

/* ===========================================================
   RESPONSIVE — header & footer
   =========================================================== */

@media (max-width: 1200px) {
  .nav-links {
    gap: 20px;
  }
}


@media (max-width: 1024px) {
  .site-header {
    z-index: 1002;
  }

  .nav {
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
  }

  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    padding: 15px;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
  }

  .nav-logo,
  .nav-logo-wrap {
    flex-shrink: 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    padding: calc(var(--tvk-nav-height, 72px) + 12px) 20px 32px;
    background: rgba(10, 10, 10, 0.98);
    border-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav-is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .nav-cta {
    order: 1;
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-menu .nav-links>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu .nav-links>li:last-child {
    border-bottom: 0;
  }

  .nav-menu .nav-links>li>a,
  .nav-menu .nav-links .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
    font-size: 12px;
    color: #f5f2ec;
  }

  /* Disable desktop hover/focus dropdown behavior inside the mobile panel. */
  .nav-menu .nav-item-dropdown,
  .nav-menu .nav-links .menu-item-has-children {
    position: static;
  }

  .nav-menu .nav-item-dropdown:hover .nav-caret,
  .nav-menu .nav-item-dropdown:focus-within .nav-caret,
  .nav-menu .nav-links .menu-item-has-children:hover .nav-caret,
  .nav-menu .nav-links .menu-item-has-children:focus-within .nav-caret {
    transform: none;
  }

  .nav-menu .nav-item-dropdown.is-open>a .nav-caret,
  .nav-menu .menu-item-has-children.is-open>a .nav-caret {
    transform: rotate(180deg);
  }

  .nav-menu .nav-dropdown,
  .nav-menu .nav-links .sub-menu,
  .nav-menu .nav-item-dropdown:hover>.nav-dropdown,
  .nav-menu .nav-item-dropdown:focus-within>.nav-dropdown,
  .nav-menu .nav-links .menu-item-has-children:hover>.sub-menu,
  .nav-menu .nav-links .menu-item-has-children:focus-within>.sub-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 8px 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none;
    z-index: auto;
  }

  .nav-menu .nav-dropdown::before,
  .nav-menu .nav-links .sub-menu::before {
    display: none;
  }

  .nav-menu .menu-item-has-children.is-open>.nav-dropdown,
  .nav-menu .menu-item-has-children.is-open>.sub-menu,
  .nav-menu .nav-item-dropdown.is-open>.nav-dropdown {
    display: block;
  }

  .nav-menu .nav-dropdown a,
  .nav-menu .nav-links .sub-menu a {
    display: block;
    width: 100%;
    padding: 12px 8px;
    white-space: normal;
    color: #bbb;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 10px;
  }

  body.nav-is-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 48px 0 24px;
  }

  .footer-wrap {
    padding: 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   NEWSLETTER FORMS (homepage + blog sections)
   =========================================================== */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.email-form-wrap {
  max-width: 100%;
  position: relative;
}

.email-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(245, 242, 236, 0.15);
  border-radius: 2px;
  overflow: hidden;
  align-items: stretch;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(245, 242, 236, 0.04);
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 14px;
  color: #f5f2ec;
}

.email-form input::placeholder {
  color: rgba(245, 242, 236, 0.45);
}

.email-form button {
  background: #ff3d00;
  border: none;
  padding: 16px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.email-form button:hover {
  opacity: 0.85;
}

.tvk-newsletter-messages {
  margin-top: 12px;
  font-size: 13px;
  min-height: 0;
}

.tvk-newsletter-messages.success {
  color: #c9a227;
}

.tvk-newsletter-messages.error {
  color: #ff8a65;
}

.email-fine {
  font-size: 12px;
  color: rgba(245, 242, 236, 0.3);
  margin-top: 16px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.03em;
}

.newsletter-section .email-fine,
.newsletter-section .newsletter-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 20px;
}

/* Blog / detail newsletter section uses same form inside dark block */
.newsletter-section .email-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-section .email-form input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.newsletter-section .email-form {
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .email-form {
    flex-direction: column;
  }

  .email-form button {
    width: 100%;
  }
}