/* ==========================================================================
   NZ GREENTECH - GLOBAL CSS & TAILWIND DESIGN SYSTEM CONFIGURATION
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Primary & Accent Color Tokens */
  --color-deep-green-950: #041B11;
  --color-deep-green:     #0B3C26;
  --color-deep-green-hover:#072B1B;
  --color-emerald:        #059669;
  --color-emerald-light:  #10B981;
  --color-teal:           #0D9488;
  --color-teal-light:     #14B8A6;
  --color-subtle-blue:    #2563EB;
  --color-subtle-blue-bg: #EFF6FF;

  /* Surfaces & Backgrounds */
  --bg-clean-white:       #FFFFFF;
  --bg-soft-gray:         #F9FAFB;
  --bg-surface-secondary: #F3F4F6;

  /* Typography Colors */
  --text-dark-charcoal:   #111827;
  --text-body-charcoal:   #374151;
  --text-muted-gray:      #6B7280;

  /* Typography Families */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-dark-charcoal);
  background-color: var(--bg-clean-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

main {
  flex: 1;
}

/* Custom Typography Utilities */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Sticky Header Glassmorphism */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
  transition: all 200ms ease;
}

.sticky-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(11, 60, 38, 0.08);
}

/* Strict Single-Line Header Nav Items */
header nav a {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* Active Nav Route Styling & Interaction Disabling */
header nav a[aria-current="page"],
#mobile-menu-drawer a[aria-current="page"] {
  color: #059669 !important; /* Brand Emerald Green */
  font-weight: 700 !important;
  border-bottom: 2px solid #059669 !important;
  padding-bottom: 0.25rem !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* Premium Rounded Cards (Enforces Equal Height across Grid Rows) */
.rounded-card {
  background-color: #FFFFFF;
  border-radius: 1rem; /* 16px */
  border: 1px solid #E5E7EB;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.rounded-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(11, 60, 38, 0.1);
  border-color: #D1D5DB;
}

/* Editorial Longform Article Prose Styling */
.article-prose {
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  color: #27272A;
}

.article-prose p {
  margin-bottom: 1.75rem;
}

.article-prose h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: #111827;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.article-prose h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #111827;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.article-prose blockquote {
  border-left: 4px solid #059669;
  background-color: #F0F7F3;
  padding: 1.25rem 1.75rem;
  border-radius: 0 0.75rem 0.75rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: #0B3C26;
  font-style: italic;
  margin: 2.25rem 0;
  line-height: 1.6;
}

.article-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

/* Product Gallery Thumbnail Active */
.thumb-item.active {
  border-color: #059669;
  ring: 2px solid #059669;
}

/* FAQ Accordion Item Styling */
.faq-accordion-item[open] summary svg {
  transform: rotate(180deg);
}

/* Ad Placement Placeholder Styling */
.ad-placement-box {
  background-color: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  margin: 2.5rem 0;
}

/* Hero Section Gradient Overlay */
.hero-gradient-overlay {
  background: linear-gradient(180deg, rgba(4, 27, 17, 0.25) 0%, rgba(4, 27, 17, 0.85) 100%);
}

/* News Tab Pill Active State */
.news-tab-btn.active {
  background-color: #0B3C26;
  color: #FFFFFF;
}

/* Custom Scrollbar for Category Bar */
.scroll-no-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-no-bar::-webkit-scrollbar {
  display: none;
}

/* Navigation Badge */
.nav-badge-blue {
  background-color: var(--color-subtle-blue-bg);
  color: var(--color-subtle-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
