/* PT Trimitra Alkabes Mandiri — public site */
:root {
  --paper: #eef0f2;
  --surface: #ffffff;
  --ink: #1a2131;
  --muted: #566074;
  --slate: #48557a;
  --slate-deep: #2c3652;
  --anod: #c3c7ce;
  --line: #d6dae1;
  --red: #d4231b;
  --red-deep: #b01a13;
  --wa: #1d8a4b;
  --sun: #ffe9a8;
  --radius: 4px;
  --wrap: 1180px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-stretch: 118%; font-weight: 750; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.18rem; font-stretch: 110%; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 980px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border: 2px solid var(--red); border-radius: var(--radius);
  background: var(--red); color: #fff; font: inherit; font-weight: 650; font-stretch: 108%;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #156c3a; border-color: #156c3a; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .95rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand-name { display: flex; flex-direction: column; font-weight: 750; font-stretch: 120%; font-size: 1.12rem; line-height: 1.1; }
.brand-name small { font-weight: 450; font-stretch: 100%; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 550; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--red-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(26, 33, 49, .12); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red-deep); }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-name small { display: none; }
}

/* Louvre (signature) */
.louvre { display: block; width: 100%; height: 100%; }
.louvre-beam { fill: var(--anod); }
.try-louvre .blade { fill: #f4f5f6; }
.louvre .blade { fill: #dfe2e7; stroke: #9aa1ad; stroke-width: 1; transform-box: fill-box; transform-origin: center; transform: rotate(var(--a, 45deg)); }
.louvre-light polygon { mix-blend-mode: screen; }
.louvre-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; max-width: 520px; }
.louvre-control label { grid-column: 1 / -1; font-size: .92rem; }
.louvre-control input[type="range"] { grid-column: 1 / 3; width: 100%; accent-color: var(--red); height: 32px; }
.louvre-control output { font-variant-numeric: tabular-nums; font-weight: 700; font-stretch: 115%; min-width: 3.2ch; text-align: right; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--slate-deep); color: #fff; isolation: isolate; }
.hero-louvre { position: absolute; inset: 0; height: 100%; z-index: -1; }
.hero-louvre .louvre-beam { fill: #8b93a3; }
.hero-inner { padding: clamp(150px, 20vw, 210px) 0 clamp(48px, 7vw, 80px); }
.hero h1 { max-width: 15ch; color: #fff; }
.hero .lead { color: #d8dce5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero .louvre-control { color: #d8dce5; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(44, 54, 82, .88) 0%, rgba(44, 54, 82, .55) 55%, rgba(44, 54, 82, .1) 100%); pointer-events: none; }

/* Brands */
.brands { background: var(--surface); border-bottom: 1px solid var(--line); }
.brands-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding: 22px 0; }
.brands-inner > p { margin: 0; font-weight: 600; color: var(--muted); }
.brand-logos { display: flex; gap: 36px; align-items: center; list-style: none; margin: 0; padding: 0; }
.brand-logos img { height: 48px; width: auto; }
.brands-note { flex: 1 1 280px; font-size: .95rem; font-weight: 400 !important; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.section-alt { background: var(--surface); }
.section-dark { background: var(--slate-deep); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head h2 small { font-size: .55em; font-weight: 450; font-stretch: 100%; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.link-more { font-weight: 600; }
.group + .group { margin-top: 56px; }

/* Product lines (home) */
.lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.line { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 200px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.line-main { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.line-name { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 780; font-stretch: 122%; line-height: 1.05; letter-spacing: -.015em; }
.line-sub { color: var(--muted); margin-top: 4px; }
.line-main:hover .line-name { color: var(--red-deep); }
.line-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.line-products li { position: relative; padding-left: 16px; }
.line-products li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.line-products a { color: var(--ink); text-decoration: none; }
.line-products a:hover { color: var(--red-deep); text-decoration: underline; }
.line-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.line-img img, .line-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .line { grid-template-columns: 1fr 120px; gap: 12px 16px; }
  .line-main { grid-column: 1; }
  .line-img { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .line-products { grid-column: 1; }
}

/* Why aluminium */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.why-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.why-list b { display: block; color: var(--ink); font-stretch: 112%; font-size: 1.05rem; }
.why-list-plain { grid-template-columns: 1fr; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 8px; }
.service { border-top: 4px solid var(--slate); padding-top: 18px; }
.service:first-child { border-top-color: var(--red); }
.service p { color: var(--muted); }
.service a { font-weight: 600; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; gap: 28px; } }

/* Branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; }
.section-alt .branch { background: var(--paper); border-color: transparent; }
.branch h3 { margin-bottom: 2px; }
.branch-region { color: var(--muted); margin-bottom: 12px; font-size: .95rem; }
.branch-addr { margin-bottom: 14px; }
.branch-contact { margin: 0 0 16px; display: grid; gap: 6px; font-size: .95rem; }
.branch-contact div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; }
.branch-contact dt { color: var(--muted); }
.branch-contact dd { margin: 0; overflow-wrap: anywhere; }
.branch-map { margin-top: auto; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: #ffe3e1; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--red-deep); }
.cta-band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-wa { background: #fff; color: var(--wa); }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; } }

/* Page head, crumbs, chips */
.page-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; font-weight: 550; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; border: 1px solid var(--line); }
.section-alt .card { background: var(--paper); border-color: transparent; }
.card-img { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.card-img img, .card-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-weight: 700; font-stretch: 112%; font-size: 1.1rem; line-height: 1.2; }
.card-tag { color: var(--muted); font-size: .95rem; }
.card:hover .card-name { color: var(--red-deep); }
.card:hover { border-color: var(--anod); }

/* Placeholder when a product has no photo */
.img-placeholder {
  display: block; min-height: 100%; aspect-ratio: 4 / 3;
  background:
    url('/assets/img/mark.png') center / 22% auto no-repeat,
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(72, 85, 122, .1) 22px 24px),
    linear-gradient(180deg, #e9ecf0, #dde1e7);
  filter: saturate(.35);
}

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-main { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-slide { display: none; height: 100%; }
.gallery-slide.is-active { display: block; }
.gallery-slide img, .gallery-main > .img-placeholder { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--red); }
.product-brand { margin: 0 0 6px; font-weight: 650; }
.product-brand a { text-decoration: none; }
.product-info h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.prose { max-width: 66ch; }
.prose p { margin-bottom: 1em; }
.h-small { font-size: 1rem; font-stretch: 108%; margin: 24px 0 10px; }
.uses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; border-radius: var(--radius); font-size: .93rem; }
.inquiry { margin-top: 28px; padding: 22px; background: var(--surface); border-left: 4px solid var(--red); border-radius: var(--radius); }
.inquiry-title { font-weight: 700; font-stretch: 112%; font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* Try Lovera */
.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.try-text p { color: #d8dce5; max-width: 52ch; }
.try h2 { color: #fff; }
.try .louvre-control { color: #d8dce5; margin: 24px 0 16px; }
.try-stage { aspect-ratio: 672 / 420; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #7f9bc4 0%, #a9bed8 74%, #8e98a6 74.2%, #7d8796 100%); }
.louvre-shade { fill: #141a29; opacity: calc((1 - var(--open, 0)) * .38); }
.try-louvre .louvre-light polygon { mix-blend-mode: normal; }
.louvre-post { fill: #e7e9ec; stroke: #9aa1ad; }
.try-louvre .louvre-beam { fill: #f0f1f3; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.section-dark .chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.section-dark .chip:hover, .section-dark .chip.is-on { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; gap: 24px; } }

.swatches { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 28px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .95rem; }
.swatches span { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .12); }

/* Specs */
.specs-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.specs-group h3 { padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-side img { border-radius: var(--radius); }
.about-mark { max-width: 260px; margin: 0 auto 24px; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-stretch: 112%; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Project gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 24px; }
.photo-grid a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); display: block; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Contact form */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.form { background: var(--paper); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #b9bfca; border-radius: var(--radius); padding: 11px 12px; min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(212, 35, 27, .25); border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-err, .form-err { color: var(--red-deep); font-size: .92rem; margin: 6px 0 0; font-weight: 550; }
.form-err { margin: 0 0 16px; }
.form-done { background: var(--paper); padding: 32px; border-radius: var(--radius); border-left: 4px solid var(--wa); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 20px; } .row2 { grid-template-columns: 1fr; } }

.empty { padding: 40px; background: var(--surface); border-radius: var(--radius); text-align: center; }
.empty .cta-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #c9ceda; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3ae; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 48px; }
.footer-mark { width: 72px; margin-bottom: 12px; background: #fff; padding: 8px; border-radius: var(--radius); }
.footer-name { color: #fff; font-weight: 700; font-stretch: 115%; font-size: 1.1rem; margin-bottom: 6px; }
.footer-h { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.footer-list span { color: #9aa2b4; }
.footer-list b { color: #fff; font-weight: 600; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #343d52; color: #9aa2b4; font-size: .88rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(15, 19, 29, .94); display: grid; place-items: center; padding: 48px 56px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; width: 56px; height: 56px; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
