/*
Theme Name: Inveritas
Theme URI: https://inveritassyndrome.com
Author: Nick Thompson
Author URI: https://inveritassyndrome.com
Description: Inveritas Syndrome is the rarest disease in the world. But its impact is devastating. Killer darkside theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inveritas
Tags: full-width-template, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");

:root {
  --font-mono: "PPSupplyMono", monospace;
  --font-sans: "PP Neue Montreal", sans-serif;
  --color-bg: #000;
  --color-text: #fff;
  --color-text-muted: rgba(255, 255, 255, 0.8);
  --color-text-light: rgba(255, 255, 255, 0.6);
  --color-accent: #fff;
  --font-size-mono: clamp(10px, 1.2vw, 12px);
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Ensure text doesn't block touch scrolling on mobile */
h1, h2, h3, h4, h5, h6, p {
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

/* Mobile header scroll lock */
body.header-scroll-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: pan-x;
}

body.header-scroll-locked #slider-header {
  touch-action: pan-x pan-y;
}

/* Page wrapper for footer reveal effect */
#page {
  position: relative;
  z-index: 2;
  background: #000;
}

/* WordPress Core Styles */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Footer */
.site-footer {
  background: #000 !important;
  padding: 0 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 0;
  background: #000;
}

.site-info {
  text-align: center;
}

.site-info p {
  font-family: 'PPSupplyMono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  margin: 0;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
  width: 450px;
}

.menu-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
  padding: 30px 40px 60px 40px;
  overflow-y: auto;
}

.menu-overlay.active .menu-overlay-content {
  opacity: 1;
  transform: translateX(0);
}

/* Menu Logo Top */
.menu-logo-top {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  margin-top: 60px;
  width: 100%;
}

.menu-logo-top img {
  max-width: 145px;
  height: auto;
}

.menu-logo-top .menu-logo-placeholder {
  width: 145px;
  height: 48px;
}

.menu-logo-placeholder {
  width: 120px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PPSupplyMono', monospace;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

/* Menu Title */
.menu-title {
  font-family: 'PPSupplyMono', monospace;
  font-size: 24px;
  font-weight: 400;
  color: #000;
  text-transform: lowercase;
  margin: 0 0 30px 0;
  letter-spacing: 0;
}

/* Menu List */
.menu-nav {
  width: 100%;
  margin-bottom: 40px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-link {
  font-family: 'PPSupplyMono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  transition: opacity 0.3s ease;
  line-height: 1;
  padding: 0 0 20px 0;
}

.menu-link:hover {
  opacity: 0.5;
}

/* Social Icons */
.menu-social {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
  justify-content: center;
}

.menu-social-link {
  color: #000;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-social-link:hover {
  opacity: 0.5;
}

.menu-social-link svg {
  width: 16px;
  height: 16px;
}

/* Menu Logo Bottom */
.menu-logo-bottom {
  margin-top: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.menu-logo-bottom img {
  max-width: 120px;
  height: auto;
}

.menu-logo-bottom .menu-logo-placeholder {
  margin-top: 0;
}

.menu-close {
  display: none; /* Using hamburger button instead */
}

.menu-close-box {
  width: 30px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.menu-close span {
  display: block;
  width: 30px;
  height: 1px;
  background: #000;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -0.5px;
}

.menu-close span::before,
.menu-close span::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 1px;
  background: #000;
  left: 0;
  top: 0;
  transition: all 0.3s ease;
}

.menu-close span::before {
  transform: rotate(45deg);
}

.menu-close span::after {
  transform: rotate(-45deg);
}

.menu-close:hover span::before,
.menu-close:hover span::after {
  opacity: 0.5;
}

.menu-overlay nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-overlay nav ul li {
  margin: 20px 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-overlay.active nav ul li {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.active nav ul li:nth-child(1) { transition-delay: 0.4s; }
.menu-overlay.active nav ul li:nth-child(2) { transition-delay: 0.5s; }
.menu-overlay.active nav ul li:nth-child(3) { transition-delay: 0.6s; }
.menu-overlay.active nav ul li:nth-child(4) { transition-delay: 0.7s; }
.menu-overlay.active nav ul li:nth-child(5) { transition-delay: 0.8s; }

.menu-overlay nav ul li a {
  font-family: 'PPSupplyMono', monospace;
  font-size: clamp(16px, 2vw, 24px);
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.menu-overlay nav ul li a:hover {
  opacity: 0.5;
}

/* Blur page content when menu is open */
body.menu-open #page {
  filter: blur(10px);
  transition: filter 0.6s ease;
}

body:not(.menu-open) #page {
  filter: blur(0);
  transition: filter 0.6s ease;
}

/* Hamburger changes to black when menu is open (white overlay background) */
body.menu-open .hamburger .hamburger-inner::before,
body.menu-open .hamburger .hamburger-inner::after {
  background-color: #000 !important;
}

/* Keep middle line transparent for emphatic X animation */
body.menu-open .hamburger--emphatic.is-active .hamburger-inner {
  background-color: transparent !important;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .menu-overlay.active {
    width: 100%;
  }

  .menu-overlay-content {
    padding: 30px 20px 60px 20px;
    align-items: center;
    text-align: center;
  }

  .menu-nav {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .menu-list {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .menu-list-item {
    text-align: center;
  }

  .menu-link {
    text-align: center;
    padding: 0 0 20px 0;
  }

  .menu-social {
    justify-content: center;
  }

  .menu-logo-top,
  .menu-logo-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Fix header buttons on mobile */
  .header-content > div {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .header-button {
    min-width: auto;
    text-align: center;
    white-space: nowrap;
    font-size: 11px !important;
    padding: 10px 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px !important;
  }

  .header-button span {
    display: inline-block;
    text-align: center;
  }

  /* Ensure modal works properly on mobile */
  #modal-injected {
    -webkit-overflow-scrolling: touch;
  }

  .modal-content-box {
    max-height: 85vh !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Fix for iOS/Chrome scroll issues */
  body.modal-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}
