@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  /* Colors */
  --primary-green: #2e7d32;
  --dark-green: #1b5e20;
  --light-green: #e8f5e9;
  --white: #ffffff;
  --bg-gray: #f8f9fa;
  --heading-primary: var(--primary-green);
  --heading-secondary: var(--dark-green);
  --paragraph-color: #666666;
  --border-color: #e5e7eb;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --spacing-section: 100px;
  --container-width: 1320px;

  /* Border Radius */
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-img: 20px;

  /* Transitions */
  --transition: all 0.3s ease;
}

html,
body {
  max-width: 100vw;
  background-color: var(--white);
  color: var(--paragraph-color);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--heading-primary);
  line-height: 1.2;
}

h3,
h4 {
  color: var(--heading-secondary);
}

p {
  font-size: 18px;
  color: var(--paragraph-color);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.section {
  padding: var(--spacing-section) 0;
}

.section-heading {
  font-size: 40px;
  font-weight: 700;
  color: var(--heading-primary);
}

.sub-heading {
  font-size: 32px;
  font-weight: 600;
  color: var(--heading-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--primary-green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary-green);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-ghost:hover {
  background-color: var(--white);
  color: var(--primary-green);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navLinks {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navLink {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--heading-secondary);
  position: relative;
  transition: var(--transition);
}

.navLink:hover {
  color: var(--primary-green);
}

.mobileMenuBtn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-green);
  font-size: 28px;
}

.mobileMenu {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 1rem;
}

.mobileMenu.active {
  display: flex;
}

@media (max-width: 992px) {
  .navLinks {
    display: none;
  }

  .mobileMenuBtn {
    display: block;
  }
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.animate-scale-up {
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate-fade-up.visible,
.animate-fade-in.visible,
.animate-scale-up.visible {
  opacity: 1;
}

.animate-fade-up.visible {
  transform: translateY(0);
}

.animate-scale-up.visible {
  transform: scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Hero */
.hero {
  /* height comes from the shared banner rule in assets/css/common.css */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.heroBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8), rgba(21, 71, 52, 0.9)), url('image/card_quality.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.heroTitle {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -1px;
}

.heroSubtitle {
  font-size: 22px;
  font-weight: 400;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  color: var(--white);
}

/* Quality Journey Timeline Section */
.journeySection {
  padding: 120px 0;
  background-color: var(--bg-gray);
}

.sectionHeader {
  text-align: center;
  margin-bottom: 80px;
}

.preTitle {
  color: var(--primary-green);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 14px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

.timelineItem {
  position: relative;
  padding-left: 80px;
  margin-bottom: 64px;
}

.timelineItem:last-child {
  margin-bottom: 0;
}

.timelineIcon {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  background: var(--white);
  border: 4px solid var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 2;
}

.timelineContent {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.timelineContent h3 {
  font-size: 24px;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.timelineContent p {
  color: var(--paragraph-color);
  font-size: 16px;
  line-height: 1.7;
}

/* Bento Box Dark Section */
.bentoSection {
  padding: 120px 0;
  background: linear-gradient(rgba(17, 42, 28, 0.95), rgba(17, 42, 28, 0.95)), url('image/placeholder-factory.jpg') center/cover fixed;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.bentoGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(320px, auto);
  gap: 24px;
}

.bentoCard {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bentoCardImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.bentoCardOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.5) 50%, rgba(17, 24, 39, 0.1) 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

.bentoCard:hover .bentoCardImage {
  transform: scale(1.08);
}

.bentoCard:hover .bentoCardOverlay {
  background: linear-gradient(to top, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.8) 60%, rgba(17, 24, 39, 0.4) 100%);
}

.bentoCard:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.bentoContent {
  position: relative;
  z-index: 3;
}

.bentoLarge {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 500px;
}

.bentoMedium {
  grid-column: span 2;
}

.bentoSmall {
  grid-column: span 1;
}

.bentoIcon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--light-green);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bentoCard:hover .bentoIcon {
  transform: translateY(-5px);
  background: var(--light-green);
  color: var(--dark-green);
}

.bentoLarge .bentoIcon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
}

.bentoCard h3 {
  font-size: 26px;
  color: var(--white);
  margin-bottom: 0;
  transition: transform 0.4s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.bentoLarge h3 {
  font-size: 36px;
}

.bentoHiddenText {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(20px);
}

.bentoCard:hover .bentoHiddenText {
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
}

.bentoCard p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.bentoLarge p {
  font-size: 18px;
  line-height: 1.8;
}

/* Premium CTA Section (Document Vault Concept) */
.premiumCtaSection {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #08140e, #112a1f);
  color: var(--white);
  overflow: hidden;
  margin-top: 80px;
}

.premiumCtaSection::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.premiumCtaContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.premiumCtaLeft h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #a5d6a7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premiumCtaLeft p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}

.premiumCtaRight {
  display: flex;
  justify-content: center;
  align-items: center;
}

.documentVault {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}

.documentVault:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
}

.documentVault::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--primary-green), transparent);
  z-index: -1;
  border-radius: 33px;
  opacity: 0.3;
}

.vaultIcon {
  color: var(--light-green);
  margin-bottom: 32px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.vaultTitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.vaultSubtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 992px) {
  .premiumCtaContent {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .premiumCtaLeft h2 {
    font-size: 40px;
  }
  .premiumCtaLeft p {
    margin-left: auto;
    margin-right: auto;
  }
  .bentoLarge, .bentoMedium { grid-column: span 4; }
  .bentoSmall { grid-column: span 2; }
  .timeline::before { left: 24px; }
  .timelineItem { padding-left: 64px; }
  .timelineIcon { width: 48px; height: 48px; }
}

@media (max-width: 576px) {
  .bentoSmall { grid-column: span 4; }
  .heroTitle { font-size: 40px; }
}


/* EXACT FOOTER CSS FROM NEXT.JS */
.footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 80px 0 32px;
  margin-top: auto;
}

.footerGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.brandInfo {
  flex: 0 0 350px;
}

.brandInfo p {
  color: var(--light-green);
  font-size: 16px !important;
  margin-top: 24px;
  line-height: 1.8;
  margin-bottom: 0 !important;
}

.footer .logo {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.column h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--white);
}

.column ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.column ul li {
  margin: 0;
  padding: 0;
}

.column a {
  font-size: 16px;
  color: var(--light-green);
  transition: var(--transition);
  text-decoration: none;
}

.column a:hover {
  color: var(--white);
}

.contactItem {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--light-green);
  align-items: flex-start;
}

.bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-green);
  font-size: 16px;
}

.viewAllTextLink {
  color: #000000 !important;
  font-weight: bold !important;
  font-size: 16px;
  margin-top: 8px;
  display: inline-block;
  transition: var(--transition);
}

.viewAllTextLink:hover {
  color: var(--white) !important;
}

@media (max-width: 992px) {
  .footerGrid {
    gap: 32px;
  }
  .brandInfo {
    flex: 0 0 100%;
  }
}
@media (max-width: 576px) {
  .column {
    flex: 0 0 100%;
  }
}
