/*
 Theme Name:   Nualgi Child Theme
 Theme URI:    https://nualgi.com
 Description:  Custom child theme for Nualgi Nanobiotech — matching Framer design.
 Author:       Nualgi Nanobiotech
 Author URI:   https://nualgi.com
 Template:     astra
 Version:      3.2.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  nualgi-child
*/

/* ==========================================================================
   Design Tokens — extracted from Framer source
   ========================================================================== */
:root {
  /* Page / light backgrounds */
  --bg-page: #f0f4f3;          /* main page background — light sage */
  --bg-white: #ffffff;
  --bg-light-card: #ffffff;     /* card on light bg */

  /* Dark green — nav, footer, hero, feature sections */
  --bg-dark: #1a3c2a;           /* forest green — warmer, more pleasant */
  --bg-dark-alt: #224d36;       /* slightly lighter green */
  --bg-dark-card: #2a5e40;      /* card on dark bg */

  /* Accent */
  --accent: #00471e;            /* rich green for buttons/links */
  --accent-light: #2a7d4f;

  /* Text */
  --text-dark: #000000;         /* headings on light bg */
  --text-body: #333333;         /* body on light bg */
  --text-muted: #5e6b64;        /* secondary text on light bg */
  --text-white: #ffffff;        /* text on dark bg */
  --text-light-muted: #96aaa0;  /* secondary text on dark bg */

  /* Borders */
  --border-light: #dde4e0;
  --border-dark: rgba(255,255,255,0.08);

  /* Typography */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fragment Mono', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body) !important;
  background: var(--bg-page) !important;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font) !important;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

/* Monospace accent (badges, code, labels) */
.n-mono { font-family: var(--font-mono) !important; }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

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

/* ==========================================================================
   Astra Overrides — Kill default chrome
   ========================================================================== */
.ast-container { max-width: 1200px !important; }
.site-content > .ast-container { padding: 0 !important; }
#content.site-content { padding-top: 0 !important; }

/* Standard WP pages (blog, archives, single posts, WooCommerce) need top spacing for fixed header */
.blog #primary,
.archive #primary,
.search #primary,
.single-post #primary,
.woocommerce-page #primary {
  padding-top: 100px !important;
}
.entry-content { margin: 0 !important; }
.page .ast-article-single, .ast-separate-container .page .ast-article-single { padding: 0 !important; background: transparent !important; }
.ast-separate-container .page .ast-article-post { background: transparent !important; padding: 0 !important; }
.ast-separate-container .ast-article-post { background: transparent !important; }
.ast-no-sidebar .entry-content { margin: 0 !important; }
/* Hide entry headers on pages (custom HTML handles it), show on posts */
.page .entry-header { display: none !important; }
.blog .entry-header,
.archive .entry-header,
.single-post .entry-header { display: block !important; }

/* Blog archive — card gaps and styling */
.blog .ast-row,
.archive .ast-row {
  gap: 1.5rem !important;
}
.blog .ast-article-inner,
.archive .ast-article-inner {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: var(--transition);
  margin-bottom: 0 !important;
}
.blog .ast-article-inner:hover,
.archive .ast-article-inner:hover {
  border-color: #bcc6c0;
}
.blog .ast-grid-common-col,
.archive .ast-grid-common-col {
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}
.blog .entry-title a,
.archive .entry-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--accent);
}

/* Single post styling */
.single-post .site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.single-post .entry-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

/* Breadcrumb */
.nualgi-breadcrumb a:hover {
  text-decoration: underline !important;
}
.ast-page-builder-template .site-content > .ast-container { max-width: 100% !important; padding: 0 !important; }
.ast-page-builder-template .entry-content,
.ast-page-builder-template .ast-article-single,
.ast-page-builder-template #primary { margin: 0 !important; padding: 0 !important; }
.ast-page-builder-template .site-main > article { padding: 0 !important; }
.entry-content > div:first-child { margin-top: 0 !important; }

/* ==========================================================================
   Navigation — Dark green bar (sticky)
   ========================================================================== */
.ast-primary-header-bar,
.ast-header-break-point .ast-primary-header-bar {
  background: var(--bg-dark) !important;
  border-bottom: none !important;
  padding: 0 !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 999;
}
.ast-builder-header-astra-wrapper { max-width: 1200px; margin: 0 auto; }

.site-title a,
.ast-site-identity .site-title a {
  font-family: var(--font) !important;
  color: var(--text-white) !important;
  font-weight: 400 !important;
  font-size: 1.5rem !important;
  letter-spacing: -0.03em !important;
}
.main-navigation ul li a,
.ast-header-break-point .main-navigation ul li a {
  font-family: var(--font) !important;
  color: rgba(255,255,255,0.65) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 0.85rem !important;
  transition: var(--transition);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--text-white) !important;
}

/* Dropdown / submenu — dark green background to match nav bar (desktop) */
.main-navigation .sub-menu,
.ast-desktop-popup-content,
.main-navigation ul ul {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  padding: 0.5rem 0 !important;
}
.main-navigation .sub-menu li a,
.main-navigation ul ul li a {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.85rem !important;
  padding: 0.45rem 1.25rem !important;
}
.main-navigation .sub-menu li a:hover,
.main-navigation ul ul li a:hover {
  color: var(--text-white) !important;
  background: var(--bg-dark-alt) !important;
}

/* ==========================================================================
   Mobile Menu — Styles are injected via functions.php (nualgi_mobile_menu_overrides)
   with priority 999 to ensure they load AFTER Astra's inline <style> blocks.
   See functions.php for the actual mobile menu CSS.
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */
.n-btn,
a.n-btn,
a.n-btn:hover,
a.n-btn:focus,
a.n-btn:active,
a.n-btn:visited {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font) !important;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none !important;
  transition: var(--transition);
  cursor: pointer; border: none;
}

/* Dark button (on light bg) */
a.n-btn-dark, .n-btn-dark { background: var(--bg-dark); color: var(--text-white) !important; }
a.n-btn-dark:hover, .n-btn-dark:hover { background: var(--bg-dark-alt); color: var(--text-white) !important; transform: translateY(-1px); }

/* Green accent button */
a.n-btn-green, .n-btn-green { background: var(--accent); color: var(--text-white) !important; }
a.n-btn-green:hover, .n-btn-green:hover { background: var(--accent-light); color: var(--text-white) !important; }

/* White button (on dark bg) — text must stay dark even inside dark sections */
a.n-btn-white, .n-btn-white { background: var(--bg-white); color: var(--text-dark) !important; }
a.n-btn-white:hover, .n-btn-white:hover { background: #e8ede9; color: var(--text-dark) !important; }

/* Outline on light */
a.n-btn-outline, .n-btn-outline { background: transparent; color: var(--text-dark) !important; border: 1.5px solid var(--border-light); }
a.n-btn-outline:hover, .n-btn-outline:hover { border-color: var(--text-muted); color: var(--text-dark) !important; }

/* Outline on dark */
a.n-btn-outline-light, .n-btn-outline-light { background: transparent; color: var(--text-white) !important; border: 1.5px solid rgba(255,255,255,0.2); }
a.n-btn-outline-light:hover, .n-btn-outline-light:hover { border-color: rgba(255,255,255,0.4); color: var(--text-white) !important; }

/* ==========================================================================
   Section Containers
   ========================================================================== */
.n-section {
  padding: 80px 24px;
  position: relative;
}

/* Light sections (default page background) */
.n-section-light {
  background: var(--bg-page);
  color: var(--text-body);
}
.n-section-light h1, .n-section-light h2, .n-section-light h3 { color: var(--text-dark); }

/* White sections */
.n-section-white {
  background: var(--bg-white);
  color: var(--text-body);
}
.n-section-white h1, .n-section-white h2, .n-section-white h3 { color: var(--text-dark); }

/* Dark sections (hero, nav, footer, select features) */
.n-section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}
.n-section-dark h1, .n-section-dark h2, .n-section-dark h3, .n-section-dark h4 { color: var(--text-white); }
.n-section-dark p { color: var(--text-light-muted); }
.n-section-dark a { color: var(--text-white); }

.n-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.n-inner-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   Badge / Pill (on light bg)
   ========================================================================== */
.n-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,71,30,0.08);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}
.n-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Badge on dark bg */
.n-section-dark .n-badge {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
}
.n-section-dark .n-badge::before {
  background: var(--text-white);
}

/* Label text above headings */
.n-label {
  color: var(--text-muted);
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}
.n-section-dark .n-label { color: var(--text-light-muted); }

/* ==========================================================================
   Hero Section — White background
   ========================================================================== */
.n-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background: var(--bg-white);
}
.n-hero .n-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.n-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--text-dark);
}
.n-hero .n-hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
}
.n-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.n-hero-images .n-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-page);
}
.n-hero-images .n-img img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   About Snippet — Light background
   ========================================================================== */
.n-about-snippet {
  padding: 80px 24px;
  background: var(--bg-page);
  text-align: center;
}
.n-about-snippet h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  max-width: 750px;
  margin: 0 auto;
}

/* ==========================================================================
   Services Cards — Light background
   ========================================================================== */
.n-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.n-service-card,
.n-service-card:hover,
.n-service-card:focus,
.n-service-card:active,
.n-service-card h3,
.n-service-card p {
  text-decoration: none !important;
}
.n-service-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}
.n-service-card:hover { transform: translateY(-4px); }
.n-service-card .n-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.n-service-card .n-card-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,38,27,0.92) 0%, rgba(19,38,27,0.3) 50%, transparent 100%);
}
.n-service-card .n-card-content {
  position: relative; z-index: 1;
  padding: 1.5rem;
}
.n-service-card h3 { font-size: 1.15rem; margin: 0 0 0.25rem; color: #fff; }
.n-service-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0; }

/* ==========================================================================
   Benefits Grid — Light background
   ========================================================================== */
.n-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.n-benefit-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.n-benefit-card h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--text-dark); }
.n-benefit-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.n-benefit-card .n-benefit-img {
  width: 100%; height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden; margin-top: 1rem;
  background: var(--bg-page);
}
.n-benefit-card .n-benefit-img img { width: 100%; height: 100%; object-fit: cover; }

/* Dark section benefit cards */
.n-section-dark .n-benefit-card {
  background: var(--bg-dark-alt);
  border-color: var(--border-dark);
}
.n-section-dark .n-benefit-card h3 { color: var(--text-white); }
.n-section-dark .n-benefit-card p { color: var(--text-light-muted); }

/* ==========================================================================
   Benefits — Framer-style Bento Grid
   ========================================================================== */
.n-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
}
.n-bento-cell {
  background: #eef1ef;
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

/* ── Top-left: Increase Crop Yields (large) ── */
.n-bento-yields {
  grid-column: 1;
  grid-row: 1;
  padding: 2rem 2rem 1.75rem;
}
.n-bento-yields h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-dark);
}
.n-bento-yields p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.n-bento-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.n-bento-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.n-bento-bar-line {
  flex: 1;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
}
.n-bento-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Top-right: Eco-Friendly (with image) ── */
.n-bento-eco {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}
.n-bento-eco h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-dark);
}
.n-bento-eco p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.n-bento-eco-img {
  margin-top: auto;
  padding-top: 1.25rem;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.n-bento-eco-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Middle-left: Boost your team ── */
.n-bento-boost {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
  padding: 2.25rem 2rem;
}
.n-bento-boost-title {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.n-bento-boost p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Middle-right + Bottom-right: Sustainable Results (tall) ── */
.n-bento-sustain {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
}
.n-bento-sustain h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text-dark);
  line-height: 1.15;
}
.n-bento-gauge {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 1rem;
}
.n-bento-gauge-svg {
  width: 100%;
  max-width: 200px;
}

/* ── Bottom-left-1: Patented ── */
.n-bento-patent {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.n-bento-patent-card,
.n-bento-stat-card {
  background: #eef1ef;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.n-bento-patent-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}
.n-bento-patent-card .n-bento-trophy {
  font-size: 3rem;
  line-height: 1;
}
.n-bento-stars {
  color: #c8915a;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}
.n-bento-stat-num {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
}
.n-bento-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .n-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .n-bento-yields,
  .n-bento-eco,
  .n-bento-boost,
  .n-bento-sustain,
  .n-bento-patent {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Stats row */
.n-stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.n-stat { text-align: center; }
.n-stat-number { font-size: 2.5rem; font-weight: 600; color: var(--text-dark); line-height: 1; }
.n-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.n-section-dark .n-stat-number { color: var(--text-white); }
.n-section-dark .n-stat-label { color: var(--text-light-muted); }

/* ==========================================================================
   Testimonials — Light bg, white cards
   ========================================================================== */
.n-testimonials-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.n-testimonials-track::-webkit-scrollbar { display: none; }

.n-testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  min-width: 340px;
  max-width: 380px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.n-testimonial-card blockquote {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  font-style: normal;
}
.n-testimonial-author { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.n-testimonial-role { color: var(--text-muted); font-size: 0.8rem; }

/* ==========================================================================
   Blog / Resource Cards — Light bg
   ========================================================================== */
.n-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.n-blog-grid .n-blog-featured { grid-row: span 2; }

.n-blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.n-blog-card:hover { border-color: #bcc6c0; }
.n-blog-card .n-blog-img {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--bg-page);
}
.n-blog-card.n-blog-featured .n-blog-img { aspect-ratio: 4/3; }
.n-blog-card .n-blog-img img { width: 100%; height: 100%; object-fit: cover; }
.n-blog-card .n-blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.n-blog-card .n-blog-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.n-blog-card .n-blog-tag {
  background: rgba(0,71,30,0.08);
  color: var(--accent);
  font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}
.n-blog-card .n-blog-date { color: var(--text-muted); font-size: 0.75rem; }
.n-blog-card h3 { font-size: 1rem; margin: 0 0 0.35rem; color: var(--text-dark); }
.n-blog-card.n-blog-featured h3 { font-size: 1.25rem; }
.n-blog-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   FAQ Accordion — Light bg
   ========================================================================== */
.n-faq details {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
}
.n-faq summary {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.n-faq summary::-webkit-details-marker { display: none; }
.n-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: var(--transition);
}
.n-faq details[open] summary::after { content: '\2212'; }
.n-faq .n-faq-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  padding: 0 1.5rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.n-faq details[open] .n-faq-body {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

/* Dark section FAQ */
.n-section-dark .n-faq details { background: var(--bg-dark-alt); border-color: var(--border-dark); }
.n-section-dark .n-faq summary { color: var(--text-white); }
.n-section-dark .n-faq .n-faq-body { color: var(--text-light-muted); }

/* ==========================================================================
   Product Cards (inner pages) — White cards on light bg
   ========================================================================== */
.n-product {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.n-product h2 { font-size: 1.5rem; margin: 0 0 0.75rem; color: var(--text-dark); }
.n-product p { color: var(--text-muted); line-height: 1.7; }
.n-product ul { list-style: none; padding: 0; margin: 1rem 0; }
.n-product li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.75rem;
  color: var(--text-body);
  font-size: 0.95rem;
}
.n-product li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.n-product .n-product-avail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

/* ==========================================================================
   Gallery Case Study Cards
   ========================================================================== */
.n-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.n-case-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.n-case-card h3 { font-size: 1.15rem; margin: 0 0 1rem; color: var(--text-dark); }
.n-case-card li { color: var(--text-body); }

/* ==========================================================================
   Contact
   ========================================================================== */
.n-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.n-contact-info {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.n-contact-info h3 { font-size: 1.1rem; margin: 0 0 1.25rem; color: var(--text-dark); }
.n-contact-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.n-contact-info strong { color: var(--text-dark); }
.n-contact-info a { color: var(--accent); }

/* ==========================================================================
   CTA Banner — Dark green
   ========================================================================== */
.n-cta-banner {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
}
.n-cta-banner h2 { font-size: 1.75rem; margin: 0 0 0.75rem; color: var(--text-white); }
.n-cta-banner p { color: var(--text-light-muted); max-width: 500px; margin: 0 auto 1.5rem; }

/* ==========================================================================
   Footer — Dark green
   ========================================================================== */
.site-footer,
footer.site-footer,
.ast-footer-overlay,
.ast-small-footer {
  background: var(--bg-dark) !important;
  border-top: none !important;
  color: var(--text-light-muted) !important;
}
.site-footer a { color: var(--text-light-muted) !important; }
.site-footer a:hover { color: var(--text-white) !important; }

/* Hide Astra's default footer elements (we use our own .n-footer) */
.site-below-footer-wrap {
  display: none !important;
}
footer.site-footer#colophon {
  display: none !important;
}

.n-footer {
  padding: 60px 24px 40px;
  background: var(--bg-dark);
}
.n-footer .n-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.n-footer-brand h3 {
  font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--text-white);
  font-family: var(--font) !important;
  font-weight: 400;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
}
.n-footer-brand .nualgi-leaf {
  display: inline-block; width: 20px; height: 29px; vertical-align: middle; margin-right: 4px; object-fit: contain;
}
.n-footer-brand p { color: var(--text-light-muted); font-style: italic; font-size: 0.9rem; }
.n-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light-muted); margin: 0 0 1rem; }
.n-footer ul { list-style: none; padding: 0; margin: 0; }
.n-footer li { margin-bottom: 0.5rem; }
.n-footer a { color: var(--text-light-muted); font-size: 0.9rem; text-decoration: none !important; }
.n-footer a:hover { color: var(--text-white); text-decoration: none !important; }
.n-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce ul.products li.product {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1rem !important;
  transition: var(--transition);
  overflow: hidden;
}
.woocommerce ul.products li.product:hover { border-color: #bcc6c0; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.woocommerce ul.products li.product img { border-radius: var(--radius-md); }
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0.75rem 0.25rem 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--text-dark) !important; font-size: 0.95rem; margin-top: 0.4rem; }
.woocommerce ul.products li.product .price { color: var(--accent) !important; }
.woocommerce ul.products li.product .ast-woo-product-category { font-size: 0.75rem; color: var(--text-muted); }
.woocommerce div.product div.images,
.woocommerce div.product div.woocommerce-product-gallery {
  max-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce div.product div.images img {
  max-height: 450px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.woocommerce a.button, .woocommerce button.button {
  background: var(--bg-dark) !important;
  color: var(--text-white) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600;
}

/* ==========================================================================
   My Account Page
   ========================================================================== */
.woocommerce-account .woocommerce {
  max-width: 900px;
  margin: 0 auto;
}
.woocommerce-account .u-columns.col2-set {
  display: flex;
  gap: 2.5rem;
}
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.woocommerce-account .u-columns h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}
.woocommerce-account .woocommerce-form label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.woocommerce-account .woocommerce-form input.input-text {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  width: 100%;
  font-size: 0.95rem;
}
.woocommerce-account .woocommerce-form input.input-text:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(42,94,64,0.15);
}
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
  width: 100%;
  padding: 0.75rem 1.5rem !important;
  margin-top: 0.5rem;
  font-size: 0.95rem !important;
}
.woocommerce-account .lost_password a {
  color: var(--accent);
  font-size: 0.85rem;
}

/* My Account — logged-in dashboard */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.25rem 0;
  min-width: 200px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(42,94,64,0.05);
  color: var(--accent);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  background: rgba(42,94,64,0.05);
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  flex: 1;
}
.woocommerce-account .woocommerce-MyAccount-content p {
  color: var(--text-muted);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .woocommerce-account .u-columns.col2-set {
    flex-direction: column;
  }
}

/* ==========================================================================
   Product Range Grid (Homepage)
   ========================================================================== */
.n-product-range {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.n-product-card,
.n-product-card:hover,
.n-product-card h3,
.n-product-card p,
.n-product-card span {
  text-decoration: none !important;
}
.n-product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.n-product-card:hover {
  border-color: #bcc6c0;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.n-product-card-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.n-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n-product-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--text-dark);
}
.n-product-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.n-product-card .n-product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,71,30,0.08);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* ==========================================================================
   Gallery Grid (legacy)
   ========================================================================== */
.n-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}
.n-gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.n-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.n-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.n-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   Gallery Case Study Sections
   ========================================================================== */
.n-gallery-case {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.n-gallery-scroll-wrap {
  position: relative;
  overflow: visible;
  min-width: 0;
}
.n-gallery-scroll {
  justify-content: flex-start;
}
.n-gallery-case-info h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}
.n-gallery-case-info p.n-obs-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}
.n-gallery-case-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.n-gallery-case-info ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.n-gallery-case-info ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Scrollable carousel track */
.n-gallery-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding-bottom: 8px;
}
.n-gallery-scroll::-webkit-scrollbar {
  height: 6px;
}
.n-gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.n-gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
.n-gallery-scroll figure {
  flex: 0 0 220px;
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.n-gallery-scroll figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.n-gallery-scroll figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.n-gallery-scroll figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}
/* Scroll arrow buttons */
.n-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.n-scroll-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.n-scroll-btn-left { left: 6px; }
.n-scroll-btn-right { right: 6px; }

@media (max-width: 900px) {
  .n-gallery-case {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 600px) {
  .n-gallery-scroll figure {
    flex: 0 0 180px;
  }
  .n-gallery-scroll figure img {
    height: 140px;
  }
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.n-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}
.n-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.n-lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  cursor: default;
}
.n-lightbox-overlay.active .n-lightbox-img {
  transform: scale(1);
}
.n-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 1.25rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}
.n-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.n-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.n-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.n-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.n-lightbox-prev { left: 20px; }
.n-lightbox-next { right: 20px; }
.n-lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
}
/* Make gallery images look clickable */
.n-gallery-scroll figure img,
.n-gallery-item img {
  cursor: zoom-in;
}

/* ==========================================================================
   Product Detail Pages
   ========================================================================== */
.n-product h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 1rem; }
.n-product ul { padding-left: 1.25rem; margin: 0.75rem 0 1.5rem; }
.n-product ul li { padding: 0.25rem 0; line-height: 1.6; }
.n-product-avail {
  display: inline-block;
  background: var(--bg-page);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Hero images — ensure they fill their grid cells */
.n-hero-images .n-img img,
.n-benefit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.n-benefit-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
  height: 160px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .n-hero .n-inner { grid-template-columns: 1fr; gap: 40px; }
  .n-services-grid { grid-template-columns: 1fr; }
  .n-benefits-grid { grid-template-columns: 1fr; }
  .n-blog-grid { grid-template-columns: 1fr; }
  .n-blog-grid .n-blog-featured { grid-row: span 1; }
  .n-contact-grid { grid-template-columns: 1fr; }
  .n-footer .n-inner { grid-template-columns: 1fr; gap: 2rem; }
  .n-section { padding: 60px 16px; }
  .n-hero { padding: 100px 16px 60px; min-height: auto; }
  .n-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 600px) {
  .n-hero h1 { font-size: 2rem; }
  .n-testimonial-card { min-width: 280px; }
  .n-stats-row { justify-content: center; }
  .n-gallery-grid { grid-template-columns: 1fr 1fr; }
}
