/* ==========================================================================
   NexoraSoft — Yoast-inspired design system
   ========================================================================== */

:root {
  --ns-purple: #a4286a;
  --ns-purple-dark: #7b1f4f;
  --ns-purple-light: #f3e8ef;
  --ns-navy: #1e1e3f;
  --ns-navy-soft: #2d2d5a;
  --ns-text: #1a1a2e;
  --ns-text-muted: #5c5c7a;
  --ns-bg: #ffffff;
  --ns-bg-soft: #f8f7fb;
  --ns-border: #e8e6f0;
  --ns-success: #0f9d58;
  --ns-radius: 12px;
  --ns-radius-lg: 20px;
  --ns-shadow: 0 4px 24px rgba(30, 30, 63, 0.08);
  --ns-shadow-lg: 0 12px 48px rgba(30, 30, 63, 0.12);
  --ns-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ns-container: 1200px;
  --ns-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ns-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ns-text);
  background: var(--ns-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ns-purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ns-purple-dark); }

.ns-container {
  width: min(100% - 2rem, var(--ns-container));
  margin-inline: auto;
}

/* Buttons */
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.ns-btn--primary {
  background: var(--ns-purple);
  color: #fff;
  border-color: var(--ns-purple);
}
.ns-btn--primary:hover {
  background: var(--ns-purple-dark);
  border-color: var(--ns-purple-dark);
  color: #fff;
}

.ns-btn--secondary {
  background: #fff;
  color: var(--ns-purple);
  border-color: var(--ns-purple);
}
.ns-btn--secondary:hover {
  background: var(--ns-purple-light);
  color: var(--ns-purple-dark);
}

.ns-btn--ghost {
  background: transparent;
  color: var(--ns-text);
  border-color: var(--ns-border);
}
.ns-btn--ghost:hover {
  border-color: var(--ns-purple);
  color: var(--ns-purple);
}

.ns-btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.ns-btn--block { width: 100%; }

/* Header */
.ns-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ns-border);
}

.ns-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--ns-header-h);
  gap: 1.5rem;
}

.ns-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ns-navy);
  text-decoration: none;
}
.ns-logo:hover { color: var(--ns-purple); }
.ns-logo img { height: 36px; width: auto; }

.ns-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.ns-logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
}
.ns-logo-wrap .custom-logo {
  max-height: 36px;
  width: auto;
}

.ns-nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ns-text);
  border-radius: 8px;
  text-decoration: none;
}
.ns-nav__link:hover,
.ns-nav__link.is-active {
  color: var(--ns-purple);
  background: var(--ns-purple-light);
}

.ns-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ns-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ns-text);
  text-decoration: none;
}
.ns-cart-link:hover { background: var(--ns-bg-soft); color: var(--ns-purple); }

.ns-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--ns-purple);
  color: #fff;
  border-radius: 999px;
}

.ns-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.ns-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ns-navy);
  border-radius: 2px;
  transition: 0.2s;
}

/* Hero */
.ns-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--ns-purple-light) 0%, var(--ns-bg) 70%);
  text-align: center;
}

.ns-hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ns-purple);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--ns-shadow);
}

.ns-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ns-navy);
  letter-spacing: -0.02em;
}

.ns-hero__subtitle {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--ns-text-muted);
}

.ns-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.ns-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ns-border);
}

.ns-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ns-text-muted);
}

/* Section */
.ns-section {
  padding: 5rem 0;
}

.ns-section--soft { background: var(--ns-bg-soft); }
.ns-section--dark {
  background: var(--ns-navy);
  color: #fff;
}
.ns-section--dark .ns-section__title { color: #fff; }
.ns-section--dark .ns-section__subtitle { color: rgba(255,255,255,0.75); }

.ns-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.ns-section__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ns-purple);
}

.ns-section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ns-navy);
  letter-spacing: -0.02em;
}

.ns-section__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ns-text-muted);
}

/* Grid */
.ns-grid {
  display: grid;
  gap: 1.5rem;
}
.ns-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ns-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ns-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.ns-card {
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ns-card:hover {
  box-shadow: var(--ns-shadow-lg);
  transform: translateY(-2px);
}

.ns-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: var(--ns-purple-light);
  border-radius: var(--ns-radius);
  color: var(--ns-purple);
}

.ns-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ns-navy);
}

.ns-card__text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ns-text-muted);
}

.ns-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Product cards */
.ns-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ns-product-card:hover {
  box-shadow: var(--ns-shadow-lg);
  transform: translateY(-4px);
}

.ns-product-card__image {
  aspect-ratio: 16/10;
  background: var(--ns-bg-soft);
  overflow: hidden;
}
.ns-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.ns-product-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.625rem;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ns-purple);
  background: var(--ns-purple-light);
  border-radius: 999px;
}

.ns-product-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.ns-product-card__title a { color: var(--ns-navy); text-decoration: none; }
.ns-product-card__title a:hover { color: var(--ns-purple); }

.ns-product-card__desc {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ns-text-muted);
}

.ns-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ns-border);
}

.ns-product-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ns-navy);
}

/* Pricing */
.ns-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.ns-pricing-card--featured {
  border-color: var(--ns-purple);
  box-shadow: var(--ns-shadow-lg);
}

.ns-pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--ns-purple);
  border-radius: 999px;
}

.ns-pricing-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ns-navy);
}

.ns-pricing-card__price {
  margin: 0 0 0.25rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ns-navy);
}
.ns-pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ns-text-muted);
}

.ns-pricing-card__desc {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--ns-text-muted);
}

.ns-pricing-card__features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
}

.ns-pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--ns-text);
}
.ns-pricing-card__features li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--ns-success);
  font-weight: 700;
}

/* Testimonials */
.ns-testimonial {
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  padding: 2rem;
}

.ns-testimonial__quote {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ns-text);
}

.ns-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.ns-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ns-purple-light);
  object-fit: cover;
}

.ns-testimonial__name {
  font-weight: 700;
  color: var(--ns-navy);
}
.ns-testimonial__role {
  font-size: 0.875rem;
  color: var(--ns-text-muted);
}

/* Payment badges */
.ns-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.ns-payment-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ns-text-muted);
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: 8px;
}

/* Newsletter */
.ns-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.ns-newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--ns-border);
  border-radius: 999px;
  outline: none;
}
.ns-newsletter input[type="email"]:focus {
  border-color: var(--ns-purple);
}

/* Footer */
.ns-footer {
  background: var(--ns-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

.ns-footer a { color: rgba(255, 255, 255, 0.85); }
.ns-footer a:hover { color: #fff; }

.ns-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.ns-footer__brand p {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.ns-footer__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.ns-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-footer__menu li { margin-bottom: 0.5rem; }
.ns-footer__menu a {
  font-size: 0.9375rem;
  text-decoration: none;
}

.ns-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Page header */
.ns-page-header {
  padding: 3rem 0;
  background: var(--ns-bg-soft);
  text-align: center;
}

.ns-page-header__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ns-navy);
}

.ns-page-header__desc {
  margin: 0;
  max-width: 600px;
  margin-inline: auto;
  color: var(--ns-text-muted);
}

/* Content */
.ns-content {
  padding: 3rem 0 5rem;
}

.ns-content .entry-content {
  max-width: 760px;
  margin: 0 auto;
}

.ns-content .entry-content h2,
.ns-content .entry-content h3 {
  color: var(--ns-navy);
  margin-top: 2rem;
}

/* WooCommerce overrides */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ns-text-muted);
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.woocommerce span.onsale {
  background: var(--ns-purple);
  border-radius: 999px;
  min-height: auto;
  line-height: 1.4;
  padding: 0.25rem 0.75rem;
}

.woocommerce div.product .product_title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ns-navy);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ns-purple);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button {
  background: var(--ns-purple) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  transition: background 0.2s !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--ns-purple-dark) !important;
  color: #fff !important;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--ns-purple);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--ns-purple);
}

/* Single product license box */
.ns-license-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--ns-bg-soft);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
}

.ns-license-box__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ns-navy);
}

.ns-license-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-license-box__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--ns-text-muted);
}
.ns-license-box__list li::before {
  content: '✓';
  color: var(--ns-success);
  font-weight: 700;
}

.ns-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.ns-product-meta__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--ns-text-muted);
}
.ns-product-meta__item strong { color: var(--ns-navy); }

/* Shop layout */
.ns-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ns-sidebar-widget {
  margin-bottom: 2rem;
}

.ns-sidebar-widget__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ns-navy);
}

/* Account / checkout */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--ns-border);
  color: var(--ns-text);
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--ns-purple-light);
  color: var(--ns-purple);
}

/* Responsive */
@media (max-width: 1024px) {
  .ns-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ns-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .ns-shop-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ns-menu-toggle { display: flex; }

  .ns-nav {
    position: fixed;
    inset: var(--ns-header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid var(--ns-border);
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
  }
  .ns-nav.is-open { transform: translateX(0); }

  .ns-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .ns-nav__link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .ns-header__actions .ns-btn--ghost { display: none; }

  .ns-grid--2,
  .ns-grid--3,
  .ns-grid--4 { grid-template-columns: 1fr; }

  .ns-footer__grid { grid-template-columns: 1fr; }

  .woocommerce ul.products { grid-template-columns: 1fr !important; }

  .ns-hero { padding: 3rem 0 2.5rem; }
  .ns-section { padding: 3rem 0; }
}
