/*
Theme Name:   NexGen Child
Theme URI:    https://john.oncreative.co/
Description:  NexGen Child Theme for Astra — Precision Fabrication Studio
Author:       NexGen Studio
Author URI:   https://john.oncreative.co/
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  nexgen-child
Tags:         astra-child, fabrication, laser, cnc, 3d-printing
*/

/* =====================================================
   NEXGEN CHILD THEME — CUSTOM STYLES
   Domain: https://john.oncreative.co/
   ===================================================== */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300&display=swap');

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --ng-white:         #ffffff;
  --ng-off-white:     #f7f6f3;
  --ng-light-gray:    #efefed;
  --ng-mid-gray:      #d0cfc9;
  --ng-text-dark:     #1a1a18;
  --ng-text-mid:      #4a4a45;
  --ng-text-light:    #8a8a82;
  --ng-blue:          #2563eb;
  --ng-blue-light:    #dbeafe;
  --ng-wood:          #c4975a;
  --ng-wood-light:    #f5ede0;
  --ng-wood-dark:     #8b6435;
  --ng-border:        #e5e4df;
  --ng-shadow:        0 4px 24px rgba(0,0,0,0.07);
  --ng-shadow-lg:     0 12px 48px rgba(0,0,0,0.12);
  --ng-radius:        12px;
  --ng-radius-lg:     20px;
}

/* ── BASE TYPOGRAPHY ── */
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  color: var(--ng-text-dark);
  background-color: var(--ng-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-blog-single-element .entry-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 600;
  color: var(--ng-text-dark);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p { color: var(--ng-text-mid); line-height: 1.7; }
a { transition: color 0.15s ease; }

/* ── HEADER ── */
.site-header,
.ast-primary-header-bar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ng-border) !important;
  transition: box-shadow 0.2s ease;
}

.site-header.ast-header-sticked {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}

/* Logo */
.site-logo-img { max-width: 160px !important; }

/* Nav Links */
.main-navigation a,
.ast-primary-nav .menu-item a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--ng-text-mid) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.main-navigation a:hover,
.ast-primary-nav .menu-item a:hover,
.main-navigation .current-menu-item > a {
  color: var(--ng-text-dark) !important;
  background: var(--ng-off-white) !important;
}

/* ── BUTTONS ── */
.ast-btn,
.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  border-radius: var(--ng-radius) !important;
  transition: all 0.2s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--ng-text-dark) !important;
  color: #fff !important;
  padding: 14px 28px !important;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: #333 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--ng-text-dark) !important;
  border: 1.5px solid var(--ng-mid-gray) !important;
  padding: 14px 28px !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--ng-text-dark) !important;
  background: var(--ng-off-white) !important;
}

/* Blue button style */
.wp-block-button.is-style-blue .wp-block-button__link {
  background: var(--ng-blue) !important;
  color: #fff !important;
  padding: 14px 28px !important;
}

.wp-block-button.is-style-blue .wp-block-button__link:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3) !important;
}

/* ── HERO SECTION ── */
.ng-hero {
  min-height: 92vh;
  background: linear-gradient(160deg, var(--ng-white) 0%, var(--ng-off-white) 60%, var(--ng-wood-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.ng-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ng-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196,151,90,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ng-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  margin-bottom: 24px !important;
}

.ng-hero h1 em {
  font-style: italic;
  color: var(--ng-wood);
}

.ng-hero p.hero-sub {
  font-size: 1.15rem;
  max-width: 520px;
  color: var(--ng-text-mid);
  margin-bottom: 40px;
  line-height: 1.65;
}

/* ── SECTION TAGS / EYEBROWS ── */
.ng-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ng-blue);
  background: var(--ng-blue-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.ng-tag-wood {
  color: var(--ng-wood-dark);
  background: var(--ng-wood-light);
}

/* ── CARDS ── */
.ng-card {
  background: var(--ng-white);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 36px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ng-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ng-shadow-lg);
}

.ng-service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.ng-icon-blue { background: var(--ng-blue-light); }
.ng-icon-wood { background: var(--ng-wood-light); }
.ng-icon-green { background: #dcfce7; }

/* ── STATS SECTION ── */
.ng-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ng-text-dark);
  line-height: 1;
}

.ng-stat-label {
  font-size: 0.82rem;
  color: var(--ng-text-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── TESTIMONIAL CARDS ── */
.ng-testi {
  background: var(--ng-white);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 32px;
}

.ng-testi-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ng-blue);
  font-family: Georgia, serif;
  margin-bottom: 12px;
}

.ng-testi blockquote {
  font-size: 0.95rem;
  color: var(--ng-text-mid);
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}

/* ── CTA BANNER ── */
.ng-cta-banner {
  background: var(--ng-text-dark);
  border-radius: var(--ng-radius-lg);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ng-cta-banner::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ng-cta-banner h2 { color: #fff !important; position: relative; z-index: 1; }
.ng-cta-banner p  { color: rgba(255,255,255,0.65) !important; position: relative; z-index: 1; }
.ng-cta-banner .wp-block-buttons { position: relative; z-index: 1; justify-content: center; }

/* ── MARQUEE STRIP ── */
.ng-strip {
  background: var(--ng-text-dark);
  padding: 24px 0;
  overflow: hidden;
}

.ng-strip-inner {
  display: flex;
  width: max-content;
  animation: ngMarquee 20s linear infinite;
  white-space: nowrap;
}

.ng-strip-item {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ng-strip-dot {
  width: 4px; height: 4px;
  background: var(--ng-wood);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes ngMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PORTFOLIO GALLERY ── */
.ng-gallery {
  columns: 3;
  gap: 18px;
}

.ng-gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--ng-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.ng-gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.ng-gallery-item:hover img { transform: scale(1.05); }

.ng-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.ng-gallery-item:hover .ng-gallery-overlay { background: rgba(0,0,0,0.4); }

.ng-gallery-info {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.ng-gallery-item:hover .ng-gallery-info {
  opacity: 1;
  transform: translateY(0);
}

.ng-gallery-info h4 { color: #fff; font-size: 0.95rem; margin: 0; }
.ng-gallery-info span { color: rgba(255,255,255,0.7); font-size: 0.78rem; }

/* ── CONTACT FORM ── */
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ng-border) !important;
  border-radius: 10px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.95rem;
  color: var(--ng-text-dark);
  background: var(--ng-off-white) !important;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  box-shadow: none !important;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--ng-blue) !important;
  background: var(--ng-white) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08) !important;
}

.wpcf7-form textarea { min-height: 130px; resize: vertical; }

.wpcf7-form input[type="submit"] {
  background: var(--ng-text-dark) !important;
  color: #fff !important;
  font-weight: 500 !important;
  padding: 14px 28px !important;
  width: auto !important;
  cursor: pointer;
  border-radius: var(--ng-radius) !important;
}

.wpcf7-form input[type="submit"]:hover {
  background: #333 !important;
  transform: translateY(-1px);
}

/* ── WOOCOMMERCE ── */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  border-radius: var(--ng-radius) !important;
  background: var(--ng-text-dark) !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #333 !important;
  transform: translateY(-1px);
}

.woocommerce .products .product .woocommerce-loop-product__title {
  font-family: 'Fraunces', serif !important;
  font-size: 1.05rem !important;
}

.woocommerce ul.products li.product a img {
  border-radius: var(--ng-radius) !important;
}

.woocommerce ul.products li.product {
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 16px;
  transition: all 0.25s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--ng-shadow-lg);
}

/* Price styles */
.woocommerce .price,
.woocommerce .woocommerce-Price-amount {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  color: var(--ng-text-dark) !important;
}

/* ── FOOTER ── */
.site-footer,
.ast-above-footer,
.ast-main-footer,
.ast-below-footer {
  background: var(--ng-text-dark) !important;
  color: rgba(255,255,255,0.65) !important;
}

.ast-footer-widget-area h4,
.widget-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
}

.ast-footer-widget-area a,
.site-footer a {
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.15s !important;
}

.ast-footer-widget-area a:hover,
.site-footer a:hover {
  color: #fff !important;
}

.ast-copyright-text {
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.35) !important;
}

/* ── UTILITY CLASSES ── */
.ng-section { padding: 96px 0; }
.ng-section-sm { padding: 64px 0; }
.ng-bg-off-white { background-color: var(--ng-off-white); }
.ng-bg-dark { background-color: var(--ng-text-dark); }
.ng-text-center { text-align: center; }

/* Feature list */
.ng-feature-list { list-style: none; padding: 0; margin: 24px 0; }
.ng-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ng-border);
  font-size: 0.95rem;
  color: var(--ng-text-mid);
}
.ng-feature-list li:last-child { border-bottom: none; }
.ng-feature-check { color: var(--ng-blue); flex-shrink: 0; margin-top: 2px; }

/* Use case tags */
.ng-use-case {
  display: inline-block;
  padding: 5px 12px;
  background: var(--ng-light-gray);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ng-text-mid);
  margin: 4px;
}

/* Contact info card */
.ng-contact-info {
  background: var(--ng-text-dark);
  border-radius: var(--ng-radius-lg);
  padding: 40px;
  color: #fff;
}
.ng-contact-info h3 { color: #fff !important; }
.ng-contact-info p { color: rgba(255,255,255,0.6) !important; }
.ng-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.ng-info-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.ng-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
  font-family: 'DM Sans', sans-serif;
}
.ng-info-value {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

/* ── FADE-UP ANIMATION ── */
@keyframes ngFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ng-fade-up { animation: ngFadeUp 0.6s ease both; }
.ng-delay-1 { animation-delay: 0.1s; }
.ng-delay-2 { animation-delay: 0.2s; }
.ng-delay-3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ng-gallery { columns: 2; }
  .ng-hero { min-height: auto; padding: 120px 0 64px; }
}

@media (max-width: 768px) {
  .ng-hero { padding: 100px 0 56px; }
  .ng-hero h1 { font-size: 2.4rem !important; }
  .ng-section { padding: 64px 0; }
  .ng-cta-banner { padding: 48px 24px; }
  .ng-gallery { columns: 1; }
  h2 { font-size: 1.9rem !important; }
}

@media (max-width: 480px) {
  .ng-hero h1 { font-size: 2rem !important; }
  .ng-cta-banner { padding: 40px 20px; }
}
