/* ============================================================
   PT. ALPACK TECTONA INDONESIA - Website
   Layout terinspirasi moderngravure.com, identitas Alpack:
   navy gelap + aksen oranye, heading serif Cormorant
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
  --navy: #0A1A2F;
  --navy-2: #10263F;
  --navy-3: #16324F;
  --orange: #FF6B35;
  --orange-dark: #E5551F;
  --light: #ECF0F1;
  --muted: #9FB2C4;
  --line: rgba(255, 255, 255, 0.12);
  --serif: 'Cormorant', Georgia, serif;
  --sans: 'Nunito', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--sans);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 70px;
}

section {
  position: relative;
}

/* ---------- HEADER / NAV ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 70px;
  background: rgba(10, 26, 47, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header .logo img {
  height: 44px;
  width: auto;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark .mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* Logo perusahaan (file assets/img/logo.png) menggantikan kotak "T" di
   header & footer semua halaman. Kalau file belum ada, markup otomatis
   kembali ke kotak "T" oranye (lihat onerror di HTML). */
.logo-mark img.mark-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  padding: 3px;
  flex: none;
}

.logo-mark .name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
}

.logo-mark .name span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--muted);
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
}

.navbar a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease-in-out;
  transform: translateX(-50%);
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #fff;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: 55%;
}

.hamburger {
  display: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

/* ---------- TOMBOL PIL ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.ghost:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.12);
}

.btn .arr {
  transition: transform 0.3s;
}

.btn:hover .arr {
  transform: translateX(5px);
}

/* ---------- SECTION HEAD ---------- */

.sec-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.sec-head .kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.sec-head h1,
.sec-head h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.sec-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- BANNER (HOME) ---------- */

.banner {
  padding: 60px 0 90px;
  overflow: hidden;
}

.banner-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.banner-item {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-2) no-repeat center center / cover;
  transition: width 0.5s ease-in-out, flex 0.5s ease-in-out;
  flex: 0 0 auto;
}

.banner-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 26, 47, 0), rgba(7, 18, 33, 0.95));
  pointer-events: none;
}

.banner-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  z-index: 2;
}

.banner-item .caption h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.banner-item .caption p {
  font-size: 13.5px;
  color: #cfdce8;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease 0.15s;
}

.banner-item.active {
  width: 560px;
}

.banner-item.active .caption p {
  max-height: 160px;
  opacity: 1;
}

.banner-item .tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(255, 107, 53, 0.9);
  padding: 5px 12px;
  border-radius: 30px;
}

/* ---------- PAGE HERO (halaman dalam) ---------- */

.page-hero {
  padding: 110px 0 70px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.14), transparent 55%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid var(--line);
}

.page-hero .kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--orange);
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  max-width: 820px;
}

.page-hero p {
  margin-top: 20px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16.5px;
}

/* ---------- ABOUT (HOME) ---------- */

.about {
  padding: 100px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split .left p.kicker,
.sec-row .kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--orange);
  margin-bottom: 14px;
}

.split .left h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.18;
}

.split .right p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}

/* ---------- SERVICES ACCORDION ---------- */

.services {
  padding: 100px 0;
  background: var(--navy-2);
}

.acc {
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 6px;
  cursor: pointer;
  user-select: none;
}

.acc-head .num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--orange);
  margin-right: 20px;
}

.acc-head .t {
  flex: 1;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.acc-head:hover .t,
.acc-item.open .t {
  color: var(--orange);
}

.acc-head .ico {
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.4s;
}

.acc-item.open .acc-head .ico {
  transform: rotate(45deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.acc-item.open .acc-body {
  max-height: 400px;
}

.acc-body .inner {
  padding: 0 6px 30px 46px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 860px;
}

/* ---------- CARD GRID (services/solutions) ---------- */

.cards {
  padding: 100px 0;
}

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

.card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 30px;
  transition: transform 0.35s, border-color 0.35s, background 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.55);
  background: var(--navy-3);
}

.card .ico {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 107, 53, 0.14);
  border: 1px solid rgba(255, 107, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

.card ul {
  margin-top: 14px;
  list-style: none;
}

.card ul li {
  color: var(--muted);
  font-size: 13.5px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.card ul li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* ---------- WORK / GALLERY STRIP ---------- */

.work {
  padding: 100px 0;
  background: var(--navy-2);
}

.strip-viewport {
  overflow: hidden;
  margin-top: 10px;
}

.strip {
  display: flex;
  gap: 20px;
  transition: transform 0.55s ease;
}

.strip .shot {
  flex: 0 0 25%;
  height: 320px;
  border-radius: 14px;
  background: var(--navy-3) no-repeat center center / cover;
  position: relative;
  overflow: hidden;
}

.strip .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 26, 47, 0), rgba(7, 18, 33, 0.9));
}

.strip .shot .lb {
  position: absolute;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.strip-nav {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.strip-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.strip-nav button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* ---------- TECHNOLOGY ---------- */

.tech {
  padding: 100px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tech-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 210px;
  transition: transform 0.35s, border-color 0.35s;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.55);
}

.tech-card .ph {
  background: var(--navy-3) no-repeat center center / cover;
  position: relative;
}

.tech-card .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 47, 0.25);
}

.tech-card .ph .em {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  z-index: 2;
  opacity: 0.9;
}

.tech-card .tx {
  padding: 26px 28px;
}

.tech-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tech-card .spec {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.tech-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- STATS ---------- */

.stats {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-2);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .n {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat .l {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA / DISCUSS ---------- */

.discuss {
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.16), transparent 60%),
    var(--navy);
}

.discuss h1 {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

/* ---------- TICKER ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-2);
  overflow: hidden;
  padding: 16px 0;
}

.ticker .lane {
  display: flex;
  width: max-content;
  animation: tick 30s linear infinite;
}

.ticker span {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--muted);
  padding: 0 34px;
  white-space: nowrap;
}

.ticker span b {
  color: var(--orange);
  margin-right: 14px;
}

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

/* ---------- FORM ---------- */

.form-section {
  padding: 100px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy-2);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.field select option {
  background: var(--navy-2);
  color: #fff;
}

/* ---------- CONTACT INFO ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.contact-cards .cc {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
}

.contact-cards .cc .ico {
  font-size: 26px;
  color: var(--orange);
  margin-bottom: 14px;
}

.contact-cards .cc h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-cards .cc p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- FOOTER ---------- */

.footer {
  background: #071426;
  border-top: 1px solid var(--line);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.footer .links a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer .links a:hover {
  color: #fff;
}

.footer .about p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.footer .contact-list p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer .contact-list p b {
  color: var(--orange);
  flex: 0 0 auto;
}

.copy {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- BACK TO TOP ---------- */

#backTop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}

#backTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backTop:hover {
  transform: translateY(-4px);
}

/* ---------- PLACEHOLDER FOTO ---------- */

/* Foto workshop: taruh file di assets/img/ lalu ganti nama file
   di atribut style background-image pada tiap halaman.
   Kalau belum ada foto, placeholder gradien tetap rapi dipandang. */

.ph-bg {
  background-image: linear-gradient(135deg, var(--navy-3), var(--navy-2));
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .header { padding: 18px 40px; }
  .banner-item.active { width: 420px; }
  .banner-item { width: 260px; height: 520px; }
  .strip .shot { flex: 0 0 33.33%; }
}

@media (max-width: 900px) {
  .navbar ul {
    position: fixed;
    top: 66px;
    right: -100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy-2);
    width: 260px;
    padding: 30px 26px;
    gap: 4px;
    border-radius: 0 0 0 16px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: right 0.4s ease;
  }
  .navbar ul.open {
    right: 0;
  }
  .hamburger { display: block; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-head h1, .sec-head h2 { font-size: 34px; }
  .page-hero h1 { font-size: 38px; }
  .discuss h1 { font-size: 36px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .header { padding: 16px 22px; }
  .banner-row { flex-direction: column; }
  .banner-item, .banner-item.active { width: 100%; height: 300px; }
  .banner-item .caption p { max-height: 160px; opacity: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .strip .shot { flex: 0 0 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .tech-card { grid-template-columns: 1fr; }
  .tech-card .ph { height: 160px; }
}

/* ---------- LANGUAGE SWITCHER (ID / EN / ZH) ---------- */

/* Wrapper: tombol bendera + hamburger di sisi kanan header */
.hgroup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  width: 30px;
  height: 22px;
  padding: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.lang-btn svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.lang-btn.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

/* Ticker i18n: teks di dalam span bersarang tidak boleh dapat
   padding gatal 0 34px dari rule .ticker span */
.ticker span span {
  padding: 0;
}

@media (max-width: 620px) {
  .hgroup { gap: 8px; }
  .lang { gap: 2px; }
  .lang-btn { width: 26px; height: 19px; }
  .logo-mark .name { font-size: 15px; letter-spacing: 1px; }
  .logo-mark .name span { letter-spacing: 2px; }
}
