/* ===================================================================
   PT ALAM PANDHADHA PERKASA — STYLESHEET (v2, editorial redesign)
   1. Variables & Reset
   2. Base Typography
   3. Layout Helpers
   4. Buttons
   5. Navigation
   6. Hero
   7. About (collage)
   8. Products (bento grid)
   9. Operations gallery
   10. Why Choose Us (numbered list)
   11. Contact
   12. Footer
   13. Back to top
   14. Reveal animation
   15. Responsive
=================================================================== */

/* ---------- 1. VARIABLES & RESET ---------- */
:root{
  --forest: #173D32;
  --forest-light: #21564A;
  --charcoal: #292B28;
  --burnt-orange: #C56B35;
  --burnt-orange-light: #D98A54;
  --ivory: #E8DDC5;
  --olive: #A9B18A;

  --bg: var(--ivory);
  --text-dark: var(--charcoal);
  --text-light: var(--ivory);

  --font-heading: "Cormorant Garamond", "Playfair Display", serif;
  --font-body: "DM Sans", "Manrope", sans-serif;

  --container-width: 1240px;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --radius: 2px;
  --radius-soft: 14px;
  --transition: 0.4s cubic-bezier(0.22, 0.8, 0.28, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

h1, h2, h3, h4{
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h2 em, h1 em{ font-style: italic; font-weight: 500; color: var(--burnt-orange); }

p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }

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

/* ---------- 2. BASE TYPOGRAPHY ---------- */
.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--burnt-orange);
  margin-bottom: 1.1rem;
}
.section-head.light .eyebrow{ color: var(--burnt-orange-light); }
.section-head.light h2{ color: var(--ivory); }

.lead{ font-size: 1.1rem; color: #3f433e; max-width: 48ch; }
.muted{ color: #6b6f63; font-size: 0.95rem; }

/* ---------- 3. LAYOUT HELPERS ---------- */
.container{
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section{ position: relative; }

.section-head{ max-width: 620px; margin-bottom: 3.75rem; }
.section-head h2{ font-size: clamp(2rem, 3.6vw, 2.75rem); }

/* ---------- 4. BUTTONS ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-accent{ background: var(--burnt-orange); color: var(--ivory); }
.btn-accent:hover{ background: var(--burnt-orange-light); transform: translateY(-2px); }

.btn-ghost{ background: transparent; color: var(--ivory); border-color: rgba(232, 221, 197, 0.5); }
.btn-ghost:hover{ border-color: var(--ivory); background: rgba(232, 221, 197, 0.08); transform: translateY(-2px); }

/* ---------- 5. NAVIGATION ---------- */
.site-header{
  position: fixed;
  inset-inline: 0; top: 0; z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding-block: 1.4rem;
}
.site-header.scrolled{
  background: rgba(23, 61, 50, 0.96);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding-block: 0.85rem;
  backdrop-filter: blur(6px);
}
.navbar{ display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark{ display: flex; align-items: center; gap: 0.65rem; }
.wordmark-mark{
  font-family: var(--font-heading);
  font-weight: 700; font-style: italic;
  font-size: 1.2rem;
  color: var(--burnt-orange);
  border-bottom: 1.5px solid var(--burnt-orange);
  padding-bottom: 0.1rem;
}
.wordmark-text{
  font-family: var(--font-heading);
  font-weight: 600; font-size: 1.1rem;
  color: var(--ivory); letter-spacing: 0.01em;
}
.nav-links{ display: flex; gap: 2.1rem; align-items: center; }
.nav-link{ color: var(--ivory); font-size: 0.92rem; font-weight: 500; position: relative; padding-block: 0.25rem; }
.nav-link::after{
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--burnt-orange); transition: width var(--transition);
}
.nav-link:hover::after{ width: 100%; }
.nav-cta{ padding: 0.7rem 1.5rem; font-size: 0.8rem; }

.hamburger{ display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.4rem; z-index: 110; }
.hamburger span{ width: 26px; height: 1.5px; background: var(--ivory); transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero{
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; background: var(--charcoal);
}
.hero-media{ position: absolute; inset: 0; }
.hero-img{ width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,30,27,0.55) 0%, rgba(20,22,20,0.45) 40%, rgba(12,13,11,0.92) 100%),
    linear-gradient(90deg, rgba(14,16,14,0.65) 0%, rgba(14,16,14,0.1) 60%);
}
.hero-content{ position: relative; z-index: 2; padding-top: 6rem; max-width: 780px; }
.hero .eyebrow{ color: var(--burnt-orange-light); }
.hero-title{ color: var(--ivory); font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 500; margin-bottom: 0.55em; }
.hero-subtitle{ color: rgba(232, 221, 197, 0.85); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin-bottom: 2.4rem; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue{ position: absolute; bottom: 2.75rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span{ display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--ivory), transparent); position: relative; }
.scroll-cue span::after{
  content: ""; position: absolute; bottom: 0; left: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--burnt-orange); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform: translateY(0); opacity: 1; }
  80%{ transform: translateY(40px); opacity: 0; }
  100%{ transform: translateY(40px); opacity: 0; }
}

/* ---------- 7. ABOUT (collage, no boxed outline) ---------- */
.about{ padding-block: var(--section-pad); background: var(--ivory); overflow: hidden; }
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.about-media{ position: relative; aspect-ratio: 5/6; }
.about-media-main{
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-soft);
}
.about-media-inset{
  position: absolute;
  width: 46%;
  aspect-ratio: 1/1;
  object-fit: cover;
  bottom: -10%;
  left: -12%;
  border-radius: var(--radius-soft);
  border: 6px solid var(--ivory);
  box-shadow: 0 18px 40px rgba(23,61,50,0.25);
}

.about-copy h2{ font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 500; }

.about-stats{
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 2.5rem;
  padding-top: 2.1rem;
  border-top: 1px solid rgba(23, 61, 50, 0.18);
}
.stat{ position: relative; }
.stat + .stat{ padding-left: clamp(1.5rem, 4vw, 2.75rem); border-left: 1px solid rgba(23,61,50,0.18); }
.stat-value{
  display: block; font-family: var(--font-heading); font-size: 2.1rem;
  color: var(--burnt-orange); font-weight: 600; font-style: italic;
}
.stat-label{ font-size: 0.8rem; color: #55594f; line-height: 1.4; }

/* ---------- 8. PRODUCTS (bento grid, image-led) ---------- */
.products{ padding-block: var(--section-pad); background: var(--charcoal); }
.products h2, .products .lead{ color: var(--ivory); }
.products .lead{ color: rgba(232,221,197,0.72); }
.products .eyebrow{ color: var(--burnt-orange-light); }

.bento-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
}
.bento-card{
  position: relative;
  grid-column: span 2;
  grid-row: span 1;
  border-radius: var(--radius-soft);
  overflow: hidden;
  isolation: isolate;
}
.bento-large{ grid-column: span 4; grid-row: span 2; }

.bento-card img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.bento-card:hover img{ transform: scale(1.06); }

.bento-card::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,30,27,0) 35%, rgba(12,14,12,0.88) 100%);
  z-index: 1;
  transition: background var(--transition);
}
.bento-card:hover::after{ background: linear-gradient(180deg, rgba(23,30,27,0.1) 15%, rgba(12,14,12,0.92) 100%); }

.bento-overlay{
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
}
.bento-tag{
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--charcoal); background: var(--burnt-orange-light);
  padding: 0.3rem 0.7rem; border-radius: 2px; margin-bottom: 1rem; font-weight: 700;
}
.bento-overlay h3{ color: var(--ivory); font-size: 1.4rem; margin-bottom: 0.35em; font-weight: 500; }
.bento-large .bento-overlay h3{ font-size: 1.9rem; }
.bento-overlay p{
  color: rgba(232,221,197,0.8); font-size: 0.88rem; max-width: 36ch; margin-bottom: 0.75em;
}
.bento-overlay p em{ opacity: 0.7; }
.product-link{
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--burnt-orange-light); font-weight: 700; font-size: 0.82rem;
  transition: gap var(--transition);
}
.product-link:hover{ gap: 0.7rem; }

/* ---------- 9. OPERATIONS GALLERY ---------- */
.operations{ padding-top: var(--section-pad); padding-bottom: var(--section-pad); background: var(--forest); }
.operations .section-head{ margin-bottom: 3rem; }

.ops-strip{
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1.25rem;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container-width);
  margin-inline: auto;
}
.ops-item{
  margin: 0;
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.ops-item-tall{ aspect-ratio: 3/4.6; }
.ops-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.ops-item:hover img{ transform: scale(1.05); }
.ops-item figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.25rem;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--ivory);
  background: linear-gradient(0deg, rgba(10,12,10,0.75), transparent);
}

/* ---------- 10. WHY CHOOSE US (numbered list, no boxes) ---------- */
.why-us{ padding-block: var(--section-pad); background: var(--charcoal); }
.why-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.why-head{ margin-bottom: 0; align-self: start; }

.value-list{ display: flex; flex-direction: column; }
.value-row{
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(232,221,197,0.14);
}
.value-row:last-child{ border-bottom: 1px solid rgba(232,221,197,0.14); }
.value-num{
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--burnt-orange);
}
.value-row h3{ color: var(--ivory); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.3em; }
.value-row p{ color: rgba(232,221,197,0.68); font-size: 0.92rem; margin-bottom: 0; max-width: 48ch; }

/* ---------- 11. CONTACT ---------- */
.contact{ padding-block: var(--section-pad); background: var(--ivory); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-info h2{ font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 500; }

.contact-list{ margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list li{ display: flex; flex-direction: column; gap: 0.25rem; }
.contact-label{ font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--burnt-orange); font-weight: 700; }
.contact-list a{ font-size: 1.05rem; transition: color var(--transition); }
.contact-list a:hover{ color: var(--burnt-orange); }
.contact-list em{ font-size: 0.78rem; opacity: 0.55; font-style: italic; }

.contact-form{
  background: transparent;
  border: 1px solid rgba(23,61,50,0.18);
  border-radius: var(--radius-soft);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.form-note{
  font-size: 0.8rem; color: #6b6f63;
  border-left: 2px solid var(--burnt-orange);
  padding-left: 0.85rem; margin-bottom: 2rem;
}
.form-row{ margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label{ color: var(--forest); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.form-row input, .form-row textarea{
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(23,61,50,0.3);
  border-radius: 0;
  padding: 0.6rem 0.1rem;
  color: var(--forest); font-family: inherit; font-size: 1rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-row input::placeholder, .form-row textarea::placeholder{ color: rgba(23,61,50,0.4); }
.form-row input:focus, .form-row textarea:focus{ outline: none; border-color: var(--burnt-orange); }
.form-row.invalid input, .form-row.invalid textarea{ border-color: #B8482F; }
.form-error{ font-size: 0.76rem; color: #B8482F; min-height: 1em; }

.form-submit{ width: 100%; margin-top: 0.75rem; border-radius: var(--radius); }
.form-success{ display: none; margin-top: 1rem; font-size: 0.86rem; color: var(--forest); text-align: center; }
.form-success.visible{ display: block; }

/* ---------- 12. FOOTER ---------- */
.site-footer{ background: var(--charcoal); color: rgba(232,221,197,0.72); padding-top: 4.5rem; }
.footer-grid{
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(232,221,197,0.12);
}
.footer-wordmark{ display: block; color: var(--ivory); font-size: 1.25rem; margin-bottom: 0.9rem; }
.footer-brand p{ font-size: 0.9rem; max-width: 32ch; }
.footer-col h4{
  color: var(--ivory); font-family: var(--font-body); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.2rem; font-weight: 700;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a{ font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover{ color: var(--burnt-orange-light); }
.footer-col em{ font-style: italic; opacity: 0.6; font-size: 0.82rem; }
.footer-bottom{ padding-block: 1.5rem; font-size: 0.8rem; opacity: 0.55; text-align: center; }

/* ---------- 13. BACK TO TOP ---------- */
.back-to-top{
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--burnt-orange); color: var(--ivory); border: none; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90; box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.back-to-top.visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--burnt-orange-light); }

/* ---------- 14. REVEAL ---------- */
.reveal{ opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 960px){
  .about-grid, .contact-grid, .why-grid{ grid-template-columns: 1fr; }
  .about-media{ order: -1; margin-bottom: 2rem; aspect-ratio: 4/3; }
  .about-media-inset{ width: 42%; left: -8%; bottom: -8%; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .bento-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  .bento-card, .bento-large{ grid-column: span 2; grid-row: span 1; }
  .ops-strip{ grid-template-columns: 1fr 1fr; }
  .ops-item-tall{ grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 860px){
  .nav-links, .nav-cta{ display: none; }
  .hamburger{ display: flex; }
  .nav-links{
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    background: var(--forest); flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 2rem; padding: 2rem 2.5rem; transform: translateX(100%);
    transition: transform var(--transition); box-shadow: -20px 0 40px rgba(0,0,0,0.2);
  }
  .nav-links.open{ display: flex; transform: translateX(0); }
  .nav-links .nav-link{ font-size: 1.1rem; }
}

@media (max-width: 600px){
  .about-stats{ flex-direction: column; gap: 1.25rem; }
  .stat + .stat{ padding-left: 0; border-left: none; padding-top: 1.25rem; border-top: 1px solid rgba(23,61,50,0.18); }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero-actions{ flex-direction: column; align-items: flex-start; }
  .hero-actions .btn{ width: 100%; }
  .bento-grid{ grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .bento-card, .bento-large{ grid-column: span 1; }
  .ops-strip{ grid-template-columns: 1fr; }
  .ops-item-tall{ grid-column: span 1; aspect-ratio: 4/3; }
  .value-row{ grid-template-columns: 44px 1fr; }
}
