/*
Theme Name: Nova Labs
Theme URI: https://novalabs-usa.com
Author: Nova Labs
Description: Nova Labs catalog. The Claude homepage layout, with the Nova Labs mark.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nova-labs
*/

:root {
  --ink: #14201f;
  --muted: #5a6664;
  --accent: #0f6b6b;
  --accent-2: #0c5555;
  --navy: var(--accent);
  --navy-2: var(--accent-2);
  --gold: var(--accent);
  --gold-soft: #cfe4e1;
  --paper: #fafaf8;
  --sage: #eef1ec;
  --white: #ffffff;
  --line: #e4e6e1;
  --card: #ffffff;
  --footer: #14201f;
  --shadow: 0 16px 40px rgba(20, 32, 31, 0.06);
  --sans: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --header: 92px;
  --announce: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

button, input, select, textarea { font-family: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; color: white; }

.nl-wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.nl-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
}
.nl-announce {
  background: var(--accent);
  color: white;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  padding: 10px 20px;
}
.nl-header {
  height: var(--header);
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nl-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nl-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.nl-logo img { height: 64px; width: auto; display: block; }
.nl-cart-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d5d9d2;
  border-radius: 22px;
  background: white;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.nl-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nl-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nl-nav a:hover,
.nl-nav a[aria-current="page"] { color: var(--gold); }

.nl-search {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  min-width: 180px;
}
.nl-search input {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  width: 100%;
  outline: none;
  font-size: 14px;
}
.nl-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.nl-nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Hero */
.nl-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 36px;
}

.nl-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nl-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.nl-hero p.lead {
  margin: 0 0 26px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
}

.nl-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  text-decoration: none;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 500;
}
.nl-btn-primary { background: var(--accent); color: white; }
.nl-btn-primary:hover { background: var(--accent-2); color: white; }
.nl-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.nl-btn-ghost:hover { background: var(--sage); color: var(--ink); }

.nl-hero-stage {
  background: var(--sage);
  border-radius: 24px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nl-hero-stage a {
  position: relative;
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
}
.nl-hero-stage img { width: 100%; aspect-ratio: 1; object-fit: contain; object-position: center; }

.nl-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.nl-section { padding: 28px 0 10px; }
.nl-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 560;
}
.nl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.nl-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.nl-cat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--navy);
  min-height: 92px;
}
.nl-cat:hover { border-color: var(--gold-soft); color: var(--navy); }
.nl-cat strong { font-weight: 560; font-size: 16px; }
.nl-cat span { color: var(--muted); font-size: 13px; }

.nl-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 28px 0 48px;
}
.nl-point {
  background: white;
  border-top: 2px solid var(--gold);
  border-radius: 0 0 14px 14px;
  padding: 18px 16px;
}
.nl-point h3 { margin: 0 0 6px; font-size: 16px; font-weight: 560; color: var(--navy); }
.nl-point p { margin: 0; color: var(--muted); font-size: 14px; }

/* WooCommerce catalog */
.nl-main { padding: 28px 0 64px; }

.woocommerce-products-header { margin-bottom: 18px; }
.woocommerce-products-header__title,
.nl-main h1,
.woocommerce-breadcrumb {
  color: var(--navy);
}
.woocommerce-products-header__title,
.entry-title,
.nl-prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 560;
  margin: 0 0 8px;
}
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }

.nl-cat-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.nl-cat-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}
.nl-cat-nav a:hover,
.nl-cat-nav a.is-current { border-color: var(--navy); background: var(--navy); color: white; }

ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.products::before,
ul.products::after { display: none; }
ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
}
ul.products li.product a img,
ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--sage);
  border-radius: 12px;
  margin: 0 0 12px;
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 540;
  padding: 0 6px;
  color: var(--navy);
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
  padding: 0 6px 10px;
  color: var(--navy);
  font-weight: 560;
}
ul.products li.product .button {
  margin: auto 6px 0;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
button.wp-element-button {
  background: transparent;
  color: var(--ink);
  border-radius: 24px;
  font-weight: 500;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
}
.single-product div.product form.cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.button,
.woocommerce-checkout #place_order {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--sage);
  color: var(--ink);
}
.woocommerce a.button.added { display: none; }
.woocommerce a.added_to_cart {
  display: inline-block;
  margin: 8px 6px 0;
  font-size: 13px;
}

.woocommerce-result-count,
.woocommerce-ordering { color: var(--muted); font-size: 14px; }
.woocommerce-ordering select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: white;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
  margin: 0 4px;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--navy);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--navy);
  color: white;
}

/* Single product */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: start;
}
.single-product div.product::before,
.single-product div.product::after { display: none; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
  margin: 0;
}
.woocommerce div.product div.images img {
  background: var(--sage);
  border-radius: 20px;
}
.woocommerce div.product .product_title {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 560;
}
.woocommerce div.product p.price {
  color: var(--navy);
  font-size: 22px;
}
.nl-research-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--sage);
  border-radius: 10px;
  color: var(--navy);
  font-size: 14px;
}
.woocommerce div.product form.cart .qty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  width: 72px;
}
.related.products { margin-top: 48px; grid-column: 1 / -1; }
.related.products > h2 { color: var(--navy); font-weight: 560; }

/* Cart, checkout, account */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  background: transparent;
}
.woocommerce table.shop_table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  overflow: hidden;
}
.woocommerce table.shop_table th { color: var(--muted); font-weight: 500; }
.woocommerce-checkout .col2-set,
.woocommerce-account .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: auto;
  float: none;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 {
  float: none;
  width: auto;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
}
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: white;
  border-radius: 14px;
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--gold);
  background: white;
}

.nl-prose {
  max-width: 68ch;
  padding-bottom: 48px;
}
.nl-prose p { color: var(--ink); font-size: 17px; }
.nl-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}

/* Footer */
.nl-footer {
  background: var(--footer);
  color: #c9d3cf;
  padding: 56px 0 32px;
}
.nl-footer a { color: white; text-decoration: none; }
.nl-footer a:hover { color: var(--gold-soft); }
.nl-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}
.nl-footer img { height: 78px; width: auto; display: block; }
.nl-footer h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; }
.nl-footer ul { list-style: none; margin: 0; padding: 0; }
.nl-footer li { margin: 6px 0; }
.nl-footer p { margin: 8px 0; font-size: 14px; }
.nl-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #b7c0cb;
}

.admin-bar .nl-sticky { top: 32px; }

@media (max-width: 900px) {
  .nl-hero,
  .nl-cats,
  .nl-points,
  ul.products,
  .nl-footer-grid,
  .single-product div.product,
  .woocommerce-checkout .col2-set,
  .woocommerce-account .col2-set {
    grid-template-columns: 1fr 1fr;
  }
  .nl-hero,
  .nl-trust-grid,
  .nl-steps,
  .nl-info { grid-template-columns: 1fr; }
  .nl-footer-grid { grid-template-columns: 1fr; }
  .single-product div.product { grid-template-columns: 1fr; }
  .nl-nav-toggle { display: inline-flex; }
  .nl-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 12px;
  }
  .nl-nav.is-open { display: flex; }
  .nl-search { min-width: 0; }
  .admin-bar .nl-sticky { top: 46px; }
  .nl-nav { top: calc(var(--header) + var(--announce)); }
}

.nl-trust {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nl-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 28px 0;
}
.nl-trust-grid div { display: flex; flex-direction: column; gap: 4px; }
.nl-trust-grid strong { font-size: 15px; font-weight: 600; }
.nl-trust-grid span { font-size: 14px; color: var(--muted); }
.nl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nl-steps article {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.nl-steps span { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.nl-steps h3 { margin: 8px 0; font-size: 20px; font-weight: 600; }
.nl-steps p { margin: 0; color: var(--muted); }
.nl-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 64px;
}
.nl-info article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.nl-info h3 { margin: 0 0 8px; font-size: 20px; }
.nl-info p { margin: 0; color: var(--muted); }
.nl-faq { background: white; border-top: 1px solid var(--line); }
.nl-faq .nl-wrap { max-width: 860px; padding: 64px 0; }
.nl-faq h2 { margin: 0 0 12px; }
.nl-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.nl-faq details:last-child { border-bottom: 1px solid var(--line); }
.nl-faq summary { font-size: 18px; font-weight: 500; cursor: pointer; }
.nl-faq p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }
.nl-hero-stage a span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}
.nl-cat { justify-content: space-between; min-height: 96px; border-radius: 18px; }
.nl-cat span { display: flex; flex-direction: column; gap: 4px; }
.nl-cat em { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 400; }
.nl-cat-arrow { color: var(--ink); font-size: 20px; }

@media (max-width: 640px) {
  ul.products,
  .nl-cats,
  .nl-hero-stage { grid-template-columns: 1fr 1fr; }
  .nl-wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .nl-logo img { height: 48px; }
}
