/*
Theme Name: JNScorp Custom Theme
Theme URI: https://jnscorp.local
Author: JNScorp
Author URI: https://jnscorp.local
Description: A lightweight custom WordPress theme with menu management and customizable CSS.
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jnscorp-theme
Domain Path: /languages
*/

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background: #f6f2ea;
  font-family: "Manrope", sans-serif;
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005a87;
}

main {
  flex: 1;
  padding: 2rem 0;
}

.site-main--front-page {
  padding: 0;
}

.front-page-content {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0;
}

:root {
  --jns-olive: #4d5c2a;
  --jns-lime: #c5db2e;
  --jns-logo-border: #c9b896;
  --jns-text: #1f270f;
  --accent-primary: #d6eb12;
  --primary: #566c31;
}

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1280px;
}

.text-center {
  text-align: center;
}

.main-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.main-title {
  margin: 0;
  color: var(--jns-text);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.08;
}

.main-title-chip {
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.mb-lg {
  margin-bottom: 3.75rem;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
}

.contact-form .form-row .form-group {
  flex: 1;
}

.contact-form p label {
  color: #566c31;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}


.contact-form textarea{
  resize: none !important;
}

.contact-form br{
  display: none;
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .header-nav-group {
    gap: 1.5rem;
  }

  .main-navigation ul {
    gap: 1.25rem;
  }

  .main-navigation ul li a {
    font-size: 0.875rem;
  }

  .button-text {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .button-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-nav-group {
    gap: 0.75rem;
  }

  /* Mobile Navigation Menu — full-width overlay below header */
  .main-navigation {
    position: fixed;
    top: var(--header-height, 72px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;
    z-index: 1001;
    box-shadow: none;
  }

  .main-navigation.active {
    max-height: calc(100vh - var(--header-height, 72px));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }

  .main-navigation ul {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 1rem 0;
  }

  .main-navigation ul li {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
  }

  .main-navigation ul li:last-child {
    border-bottom: none;
  }

  .main-navigation ul li a {
    padding: 1rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 1rem;
    justify-content: space-between;
  }

  .main-navigation ul li a:hover {
    background-color: #f0f4f8;
    border-left-color: #b8e300;
    border-bottom: none;
  }

  .main-navigation ul li.current-menu-item > a {
    border-bottom: none;
    border-left-color: #b8e300;
    background-color: #f0f4f8;
  }

  /* Mobile Submenu */
  .main-navigation ul ul {
    position: static;
    display: none;
    flex-direction: column;
    border: none;
    box-shadow: none;
    background-color: #f7fafc;
    margin-top: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-navigation ul li.current-menu-item > ul,
  .main-navigation ul li.menu-item-has-children.open > ul {
    display: flex;
    max-height: 500px;
  }

  .main-navigation ul ul li a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    border-left: 3px solid transparent;
    background-color: #f7fafc;
  }

  .main-navigation ul ul li a:hover {
    background-color: #edf2f7;
  }

  .main-title-wrapper {
    gap: 16px;
  }

  .main-title {
    font-size: 32px;
  }

  .main-title-chip {
    font-size: 14px;
  }

  .mb-lg {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {

  .contact-form .form-row {
  flex-direction: column;
  gap: 0px;
}

.site-header {
    padding: 0.5rem 0;
  }
  .header-nav-group {
    gap: 0.5rem;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 30px;
  }

  .site-title a.site-brand {
    padding: 0.7rem 0.75rem;
    font-size: 0.65rem;
  }

  .main-navigation.active {
    max-height: calc(100vh - var(--header-height, 72px));
  }

  .main-navigation ul li a {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 3px;
  }

  .button-icon {
    width: 36px;
    height: 36px;
  }

  .button-arrow {
    width: 16px;
    height: 16px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle .hamburger {
    width: 20px;
    height: 14px;
  }

  .menu-toggle.active .hamburger .line-top {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.active .hamburger .line-bottom {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-title-wrapper {
    gap: 16px;
  }

  .main-title {
    font-size: 24px;
  }

  .mb-lg {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0;
  }

  .header-nav-group {
    gap: 0.5rem;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 26px;
  }

  .main-navigation.active {
    top: var(--header-height, 72px);
  }

  .main-navigation ul li a {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 3px;
  }

  .button-icon {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .menu-toggle .hamburger {
    width: 18px;
    height: 12px;
  }

  .menu-toggle.active .hamburger .line-top {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle.active .hamburger .line-bottom {
    transform: translateY(-5px) rotate(-45deg);
  }
}

/* =========================================
   COMMON PRIMARY BUTTON SYSTEM & HOVER EFFECT
   ========================================= */

.cta-button,
.services-primary-button,
.connect-section__button,
.podcast-cta__button,
.primary-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 4px 8px 4px 4px !important;
  border-radius: 999px !important;
  background-color: var(--jns-olive, #4d5c2a) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none !important;
  overflow: hidden !important;
  isolation: isolate !important;
  box-shadow: 0 4px 14px rgba(77, 92, 42, 0.15);
  transition: box-shadow 0.35s ease, background-color 0.3s ease !important;
}

.cta-button *,
.services-primary-button *,
.connect-section__button *,
.podcast-cta__button *,
.primary-button *,
[data-popup="contact"],
[data-popup="contact"] * {
  cursor: pointer !important;
}

/* Mirror / Shimmer Light Reflection effect on hover */
.cta-button::before,
.services-primary-button::before,
.connect-section__button::before,
.podcast-cta__button::before,
.primary-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  z-index: 5;
}

/* Inner Text Pill */
.cta-button .button-text,
.connect-section__button .button-text,
.podcast-cta__button .button-text,
.primary-button .button-text,
.services-primary-button > span:first-child {
  display: inline-block !important;
  background-color: var(--jns-lime, #c5db2e) !important;
  color: var(--jns-text, #1f270f) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 999px !important;
  font-family: "Manrope", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Icon Container & Arrow (No rotation, static) */
.cta-button .button-icon,
.services-primary-button .services-primary-button__icon,
.connect-section__button .button-icon,
.podcast-cta__button .button-icon,
.primary-button .button-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: 28px !important;
  height: 36px !important;
  margin-left: 2px !important;
  padding-right: 4px !important;
  background: transparent !important;
  color: var(--jns-lime, #c5db2e) !important;
  font-size: 18px !important;
  font-weight: bold !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.cta-button .button-arrow,
.services-primary-button .button-arrow,
.services-primary-button svg,
.connect-section__button .button-arrow,
.podcast-cta__button .button-arrow,
.primary-button .button-arrow {
  display: inline-block !important;
  align-self: center !important;
  width: 18px !important;
  height: 18px !important;
  color: var(--jns-lime, #c5db2e) !important;
  stroke-width: 2.5 !important;
  transform: none !important;
  pointer-events: none !important;
  transition: color 0.3s ease !important;
}

/* Glowing & Shimmer Hover States */
.cta-button:hover,
.services-primary-button:hover,
.connect-section__button:hover,
.podcast-cta__button:hover,
.primary-button:hover {
  box-shadow: 0 12px 28px -4px rgba(77, 92, 42, 0.45), 0 4px 16px rgba(197, 219, 46, 0.35) !important;
  background-color: #3b471f !important;
}

/* Trigger Mirror / Shimmer sweep on hover */
.cta-button:hover::before,
.services-primary-button:hover::before,
.connect-section__button:hover::before,
.podcast-cta__button:hover::before,
.primary-button:hover::before {
  left: 140%;
}

/* Inner Text Pill Hover Color */
.cta-button:hover .button-text,
.connect-section__button:hover .button-text,
.podcast-cta__button:hover .button-text,
.primary-button:hover .button-text,
.services-primary-button:hover > span:first-child {
  background-color: #d9ff00 !important;
  color: #0f1406 !important;
}

/* Arrow Hover Color (No Rotation) */
.cta-button:hover .button-arrow,
.services-primary-button:hover .button-arrow,
.services-primary-button:hover svg,
.connect-section__button:hover .button-arrow,
.podcast-cta__button:hover .button-arrow,
.primary-button:hover .button-arrow {
  transform: none !important;
  color: #d9ff00 !important;
}

/* Active / Press State */
.cta-button:active,
.services-primary-button:active,
.connect-section__button:active,
.podcast-cta__button:active,
.primary-button:active {
  box-shadow: 0 4px 12px rgba(77, 92, 42, 0.3) !important;
}

/* =========================================
   APPROACH CARD INLINE LINK (IMAGE 2 STYLE)
   ========================================= */

.approach-card__link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 24px !important;
  color: #1F270F !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
  transition: color 0.25s ease !important;
}

.approach-card__link:hover {
  color: var(--primary, #566c31) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
