/* ============================================================
   NUSA WOOD PELLET — STYLESHEET
   Palette: #8A5A33 (brown) · #304735 (dark green) · #2F6B3C (green)
            #FFFFFF (white) · #000000 (black)
   ============================================================ */

:root {
  --brown: #8A5A33;
  --dark-green: #304735;
  --green: #2F6B3C;
  --white: #FFFFFF;
  --black: #000000;

  --brown-tint: rgba(138, 90, 51, 0.1);
  --brown-tint-strong: rgba(138, 90, 51, 0.22);
  --green-tint: rgba(47, 107, 60, 0.08);
  --white-line: rgba(255, 255, 255, 0.16);

  --text-body: rgba(0, 0, 0, 0.72);
  --text-muted: rgba(0, 0, 0, 0.55);
  --text-on-dark: rgba(255, 255, 255, 0.86);
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);

  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.14);
  --header-h: 84px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { margin: 0; color: var(--black); font-weight: 800; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: var(--green);
  color: var(--white);
}
.btn-solid:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark-green); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   EYEBROW / SECTION HEADINGS
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow-bar { width: 3px; height: 18px; background: var(--green); display: inline-block; border-radius: 2px; }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-heading h2 { color: var(--green); margin-bottom: 14px; }
.section-heading p { color: var(--text-muted); font-size: 1.05rem; }
.section-heading-light h2 { color: var(--white); }
.section-heading-light p { color: var(--text-on-dark-muted); }

h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em; }

/* ============================================================
   ICON BADGE — signature wood-grain texture (used for icons)
   ============================================================ */
.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.65), transparent 45%),
    repeating-radial-gradient(circle at 50% 50%, rgba(138, 90, 51, 0.16) 0px, rgba(138, 90, 51, 0.16) 2px, transparent 2px, transparent 7px),
    var(--brown-tint-strong);
  border: 1px solid rgba(138, 90, 51, 0.25);
}
.icon-badge-sm { width: 44px; height: 44px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  transition: background 0.35s var(--ease), height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: var(--dark-green);
  height: 72px;
  box-shadow: var(--shadow-sm);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-size: 1.05rem; color: var(--white); letter-spacing: 0.01em; }
.logo-text strong { font-weight: 800; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav .nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 2px;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--brown);
  transition: width 0.25s var(--ease);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { opacity: 1; }
.main-nav .nav-link.active::after,
.main-nav .nav-link:hover::after { width: 100%; }

.header-cta { padding: 11px 22px; font-size: 0.88rem; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================================
   MOBILE SIDEBAR
   ============================================================ */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.sidebar-backdrop.visible { opacity: 1; pointer-events: auto; }

.mobile-sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--dark-green);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-sidebar.open { transform: translateX(0); }

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 22px;
  border-bottom: 1px solid var(--white-line);
}
.sidebar-close {
  background: transparent;
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.sidebar-close:hover { background: rgba(255, 255, 255, 0.1); }

.sidebar-nav { padding: 20px 22px; flex: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav .nav-link {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.sidebar-footer { padding: 22px; border-top: 1px solid var(--white-line); display: flex; flex-direction: column; gap: 18px; }
.sidebar-contact-info { display: flex; flex-direction: column; gap: 12px; }
.sidebar-contact-info a { display: flex; align-items: center; gap: 10px; color: var(--text-on-dark); font-size: 0.9rem; font-weight: 500; }

body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(0, 0, 0, 0.85) 0%, rgba(15, 22, 16, 0.62) 42%, rgba(15, 22, 16, 0.28) 78%),
    url('../assets/asett1\ 1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-h);
}

.hero-content { max-width: 640px; }

.hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

.hero-subtitle {
  color: var(--text-on-dark);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s var(--ease) 0.55s forwards; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.75;
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: fadeUp 0.6s var(--ease) forwards; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.35s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 110px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-grid > * { min-width: 0; }

.about-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-content h2 { margin-bottom: 20px; }
.about-content p { margin: 0 0 16px; }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 2.1rem; color: var(--brown); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-top: 8px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us { padding: 110px 0; background: var(--white); }

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  padding: 34px 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-card h3 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--dark-green); }
.why-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: 110px 0; background: var(--dark-green); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
}

/* ============================================================
   PRODUCT
   ============================================================ */
.product { padding: 110px 0; }

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.product-grid > * { min-width: 0; }

.table-scroll { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); max-width: 100%; }

.spec-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.spec-table thead th {
  background: var(--brown);
  color: var(--white);
  text-align: left;
  padding: 16px 22px;
  font-size: 0.9rem;
  font-weight: 700;
}
.spec-table tbody td {
  padding: 15px 22px;
  color: var(--white);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.spec-table tbody td:first-child { font-weight: 600; color: var(--text-on-dark); width: 45%; }
.spec-table tbody td:last-child { font-weight: 700; }
.spec-table tbody tr { background: var(--dark-green); }
.spec-table tbody tr:nth-child(even) { background: #263a2b; }
.spec-table tbody tr:last-child td { border-bottom: none; }

.product-note { color: var(--text-muted); font-size: 0.92rem; margin: 22px 0 24px; }

.product-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 480px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 110px 0; background: var(--brown-tint); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-grid > * { min-width: 0; }

.contact-info h2 { margin-bottom: 14px; }
.contact-subtitle { color: var(--text-muted); margin-bottom: 36px; }

.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list strong { display: block; font-size: 0.95rem; color: var(--black); margin-bottom: 3px; }
.contact-list p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.contact-list a { color: var(--text-muted); }
.contact-list a:hover { color: var(--green); }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--dark-green); }
.form-row input,
.form-row textarea {
  padding: 13px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--black);
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--green); outline: none; }
.form-status { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; min-height: 20px; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--brown); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black); color: var(--text-on-dark); padding-top: 76px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.92rem; margin: 18px 0 22px; max-width: 280px; }
.footer-brand .logo-text { color: var(--white); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.25s, transform 0.25s;
}
.social-links a:hover { background: var(--green); transform: translateY(-3px); }

.footer-col h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a,
.footer-col li { color: var(--text-on-dark-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { line-height: 1.6; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner p { margin: 0; font-size: 0.85rem; color: var(--text-on-dark-muted); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.85rem; color: var(--text-on-dark-muted); }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, filter 0.25s;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.15); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 968px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { max-height: 380px; }

  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-media { order: -1; }
  .product-media img { max-height: 320px; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .container { padding: 0 22px; }

  .hero { min-height: 88vh; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }

  .about, .why-us, .gallery, .product, .contact { padding: 72px 0; }

  .why-us-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 18px; }

  .about-stats { gap: 24px; flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .site-footer { padding-top: 56px; }

  .contact-form { padding: 28px; }

  .section-heading { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; }
  .about-stats { justify-content: space-between; }
  .stat-number { font-size: 1.7rem; }
  .contact-form { padding: 22px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
