/* ============================================================
   PT GREEN ALLOY NUSANTARA — style.css
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2e7d32;
  --green-light: #4caf50;
  --green-accent: #76c442;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --gray: #f5f5f5;
  --gray2: #e0e0e0;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===========================
   NAVBAR
   =========================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  position: absolute;
  left: 0;
}

.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }

nav.nav-open .nav-toggle .bar { background: transparent; }
nav.nav-open .nav-toggle .bar::before { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle .bar::after { transform: translateY(-7px) rotate(-45deg); }

.logo-icon {
    width: 70px;
    height: auto;
    object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
  letter-spacing: 1px;
}

.logo-text .sub {
  font-size: 9px;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.btn-contact {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700 !important;
  transition: background 0.3s, transform 0.2s !important;
}

.btn-contact::after { display: none !important; }

.btn-contact:hover {
  background: var(--green-light) !important;
  transform: translateY(-1px);
}

/* Mobile responsive navbar */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }

  .hero {
    padding: 0 24px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  nav.nav-open .nav-links {
    max-height: 400px;
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 700px) {
  nav {
    padding: 0 18px;
  }

  .logo-icon {
    width: 56px;
  }

  .logo-text .brand {
    font-size: 18px;
  }

  .logo-text .sub {
    font-size: 8px;
  }

  .hero {
    padding: 0 18px;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    max-width: 100%;
    font-size: 14px;
  }
}

/* ===========================
   PAGES
   =========================== */
.page { display: none; padding-top: 70px; }
.page.active { display: block; }

/* ===========================
   HERO (HOME)
   =========================== */
.hero {
  position: relative;
  height: 520px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.65)),
            url('assets/bg.png') center/cover no-repeat;
display: flex;
  align-items: center;
  padding: 0 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green-accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--green-accent);
  font-style: italic;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.4);
}

.btn-primary .arrow { font-size: 16px; transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-sm {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s;
}

.btn-sm:hover { background: var(--green-light); }

.btn-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* ===========================
   SECTION HOME — ABOUT
   =========================== */
.section-home-about {
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--white);
}

.about-left .section-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-left h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-left h2 span { color: var(--green); }

.about-left p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 30px;
}

.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-card-sm {
  background: var(--gray);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-card-sm .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
}

.product-card-sm .card-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.product-card-sm .card-body {
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.product-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* ===========================
   SECTION PRODUCTS DARK
   =========================== */
.section-products-dark {
  background: var(--dark2);
  padding: 70px 80px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
}

.section-title p {
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  font-size: 14px;
}

.section-title.light h2 { color: var(--dark); }
.section-title.light p { color: var(--text-light); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prod-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
}

.prod-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.prod-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.prod-card .prod-info { padding: 16px; }

.prod-card .prod-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 6px;
}

.prod-card .prod-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ===========================
   STATS
   =========================== */
.stats-section {
  background: var(--green);
  padding: 50px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===========================
   PAGE HERO (INNER PAGES)
   =========================== */
.page-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url('assets/bg.png') center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: var(--white);
}

.page-hero .breadcrumb {
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  font-size: 14px;
}

.page-hero .breadcrumb span { color: var(--green-accent); }

/* ===========================
   ABOUT PAGE
   =========================== */
.about-section {
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-section img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-text .section-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-text h2 span { color: var(--green); }

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  flex-shrink: 0;
}

.vision-mission {
  background: var(--gray);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vm-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 5px solid var(--green);
}

.vm-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.vm-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 14px;
}

.vm-card ul {
  margin-top: 12px;
  padding-left: 18px;
}

.vm-card ul li {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

/* ===========================
   PRODUCTS PAGE
   =========================== */
.products-section {
  padding: 80px;
  background: var(--white);
}

.products-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.product-full-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-full-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.product-full-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-full-card .pfc-body {
  padding: 24px;
  background: var(--white);
}

.product-full-card .pfc-tag {
  display: inline-block;
  background: rgba(46,125,50,0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.product-full-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.product-full-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
}

.product-full-card .pfc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray2);
}

.purity-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-section {
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 46px; height: 46px;
  background: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 0;
}

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.map-section {
  background: var(--gray);
  padding: 0 80px 80px;
}

.map-section iframe {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--dark);
  padding: 60px 80px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
}

.footer-brand-name {
  color: var(--green-accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: block;
}

.footer-brand-sub {
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  letter-spacing: 1.5px;
  display: block;
  text-transform: uppercase;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--green-accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.footer-bottom p span { color: var(--green-accent); }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   TOAST NOTIFICATION
   =========================== */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--green);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .hero { padding: 0 30px; }
  .hero h1 { font-size: 30px; }

  .section-home-about,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .products-full-grid,
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-section {
    grid-template-columns: 1fr 1fr;
    padding: 40px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  footer { padding: 40px 30px 20px; }

  .vision-mission {
    padding: 40px 30px;
    grid-template-columns: 1fr;
  }

  .products-section,
  .map-section {
    padding: 40px 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .products-grid,
  .products-full-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 26px; }
  .stats-section { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}