/* ==========================================================================
   Sewa Excavator — niche design system, BERA variation (from niches/excavator/design/site.css)
   Copied to each site's css/style.css; change ONLY the variation tokens.
   Idea: the job is earth. A layered "soil band" (topsoil, laterite, clay)
   is the one signature element; everything else stays plain and readable
   for a kebun owner on a phone in daylight.
   Type: IBM Plex Sans Condensed (headings) + IBM Plex Sans (body), one family.
   ========================================================================== */

/* ---- Variation tokens (per site) ---------------------------------------- */
:root {
  --head-bg:   #12454C;   /* Bera: lorry-tarp teal */
  --head-ink:  #FFFFFF;
  --accent:    #C8E24B;   /* hi-vis lime: actions only */
  --accent-dk: #A9C42F;
  --soil-1:    #2A2420;   /* peat */
  --soil-2:    #9C4424;   /* laterite */
  --soil-3:    #D8C7A6;   /* pale clay */
  --page:      #EEF2F1;   /* wet-season sky */
  --radius:    0px;
}

/* ---- Fixed tokens -------------------------------------------------------- */
:root {
  --paper: #FFFFFF;
  --ink:   #16272A;
  --muted: #4F6165;
  --line:  #CFD9D8;
  --wa:    #1F9D57;
  --wa-dk: #17804A;
  --font-head: 'IBM Plex Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --soil-band: linear-gradient(180deg,
     var(--soil-1) 0 28%, var(--soil-2) 28% 72%, var(--soil-3) 72% 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased;
  padding-bottom: 68px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--soil-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15;
  color: var(--ink); margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 6.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.15rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; max-width: 66ch; }
li { margin-bottom: .4em; }
.wrap { width: min(var(--wrap), 100% - 2.25rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.band { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.band--paper { background: var(--paper); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.soil { height: 14px; background: var(--soil-band); }

/* ---- Header -------------------------------------------------------------- */
.site-header { background: var(--head-bg); color: var(--head-ink); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--head-ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.05; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand span span { display: block; font-weight: 500; font-size: .85rem; opacity: .85; }
.site-nav { display: none; gap: 1.4rem; }
.site-nav a { color: var(--head-ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.head-phone { display: none; background: var(--accent); color: var(--ink); font-weight: 700;
  padding: .5rem .9rem; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
.head-phone:hover { background: var(--accent-dk); color: var(--ink); }
.menu-btn { background: transparent; border: 2px solid rgba(255,255,255,.55); color: var(--head-ink);
  font: 600 1rem var(--font-body); padding: .4rem .8rem; border-radius: var(--radius); cursor: pointer; }
.mobile-menu { display: none; background: var(--head-bg); border-top: 1px solid rgba(255,255,255,.18); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: var(--head-ink); text-decoration: none; padding: .85rem 1.125rem;
  border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 500; }
@media (min-width: 900px) {
  .site-nav { display: flex; } .head-phone { display: inline-block; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .7rem 1.3rem; border-radius: var(--radius); font: 700 1.05rem var(--font-body);
  text-decoration: none; border: 0; cursor: pointer; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dk); color: #fff; }
.btn--call { background: var(--accent); color: var(--ink); }
.btn--call:hover { background: var(--accent-dk); color: var(--ink); }
.btn--plain { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--paper); }
.hero .wrap { display: grid; gap: 1.5rem; padding-block: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-photo { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero-note { font-size: .95rem; color: var(--muted); margin-top: 1rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; gap: 3rem; } }

/* ---- Machine picker (real comparison, so it is a table) ----------------- */
.pilih { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.pilih caption { text-align: left; color: var(--muted); padding-bottom: .7rem; }
.pilih th, .pilih td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.pilih thead th { font-family: var(--font-head); font-size: 1.05rem; background: var(--page); }
.pilih tbody th { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.pilih tbody th a { color: var(--ink); }
@media (max-width: 700px) {
  .pilih thead { position: absolute; left: -999px; }
  .pilih tr { display: block; border-bottom: 6px solid var(--page); }
  .pilih th, .pilih td { display: block; border: 0; padding: .35rem 1rem; }
  .pilih tbody th { padding-top: 1rem; }
  .pilih td::before { content: attr(data-label) ": "; font-weight: 600; }
  .pilih td:last-child { padding-bottom: 1rem; }
}

/* ---- Job rows (services) ------------------------------------------------- */
.kerja { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 1.25rem; }
.kerja li { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: start; margin: 0;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.kerja .img-frame { aspect-ratio: 1 / 1; }
.kerja h3 { margin-bottom: .25em; }
.kerja h3 a { color: var(--ink); }
.kerja p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .kerja { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .kerja li { grid-template-columns: 136px 1fr; } }
.img-frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--line); margin: 0; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
figure.img-frame + figcaption, .caption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

/* ---- Coverage ------------------------------------------------------------ */
.kawasan { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0; border-top: 3px solid var(--soil-2); }
.kawasan li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.kawasan a { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.kawasan span { color: var(--muted); }
@media (min-width: 900px) { .kawasan li { grid-template-columns: 220px 1fr; gap: 2rem; align-items: baseline; } }

/* ---- Process: a real sequence, so it is numbered ------------------------- */
.langkah { list-style: none; counter-reset: l; padding: 0; margin: 0; max-width: none; display: grid; gap: 1.5rem; }
.langkah li { counter-increment: l; margin: 0; padding-left: 3.4rem; position: relative; }
.langkah li::before { content: counter(l); position: absolute; left: 0; top: -.15rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; background: var(--soil-2); color: #fff; border-radius: 50%;
  font: 700 1.3rem var(--font-head); }
.langkah h3 { margin-bottom: .2em; }
.langkah p { margin: 0; }
@media (min-width: 900px) { .langkah { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }

/* ---- Form ---------------------------------------------------------------- */
.borang { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--head-bg);
  padding: clamp(1.25rem, 4vw, 2rem); border-radius: 0 0 var(--radius) var(--radius); max-width: 640px; }
.band--paper .borang { background: var(--page); }
.borang label { display: block; font-weight: 600; margin: 0 0 .3rem; }
.borang .field { margin-bottom: 1rem; }
.borang input, .borang select, .borang textarea { width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #9AA6A1; border-radius: var(--radius); padding: .7rem .8rem; min-height: 48px; }
.borang textarea { min-height: 120px; resize: vertical; }
.borang .hint { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: .9rem; font-weight: 600; }
.form-status.error { color: #A3261A; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }

/* ---- FAQ (native details) ------------------------------------------------ */
.faq details { border-bottom: 1px solid var(--line); padding: .2rem 0; max-width: 760px; }
.faq summary { cursor: pointer; font: 600 1.2rem var(--font-head); padding: .85rem 2rem .85rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-size: 1.5rem; color: var(--soil-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; }

/* ---- Closing call -------------------------------------------------------- */
.tutup { background: var(--head-bg); color: var(--head-ink); }
.tutup h2, .tutup p { color: var(--head-ink); }
.tutup .btn--plain { color: var(--head-ink); box-shadow: inset 0 0 0 2px var(--head-ink); }

/* ---- Inner pages --------------------------------------------------------- */
.breadcrumb { font-size: .92rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; max-width: none; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #9AA6A1; }
.page-head { padding: 1.25rem 0 1.5rem; }
.page-head h1 { font-size: clamp(1.85rem, 5.4vw, 2.75rem); }
.page-body { display: grid; gap: 2rem; padding-bottom: clamp(2.5rem, 7vw, 4rem); }
.page-body > aside { align-self: start; background: var(--paper); border: 1px solid var(--line);
  border-top: 6px solid var(--soil-2); padding: 1.25rem; border-radius: 0 0 var(--radius) var(--radius); }
.page-body > aside h2 { font-size: 1.35rem; }
.page-body > aside ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.page-body > aside li { padding: .45rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.page-body > aside .btn { width: 100%; margin-top: .6rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose .img-frame { margin: 0 0 1.5rem; max-width: 720px; }
.prose table { width: 100%; max-width: 720px; }
@media (min-width: 900px) { .page-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; }
  .page-body > aside { position: sticky; top: 84px; } }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #D9E0DC; padding: 2.5rem 0 2rem; font-size: .98rem; }
.site-footer .wrap { display: grid; gap: 1.75rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer p { margin-bottom: .5rem; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; font-size: .9rem; color: #AEB9B4; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer .fine { grid-column: 1 / -1; } }

/* ---- Mobile action bar --------------------------------------------------- */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border-top: 1px solid var(--line); padding: .5rem; gap: .5rem; }
.cta-bar .btn { min-height: 50px; font-size: 1rem; padding-inline: .6rem; }
@media (min-width: 900px) { .cta-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Bera variation ------------------------------------------------------ */
body { font-size: 1.02rem; line-height: 1.66; }
h1, h2, h3 { letter-spacing: -.005em; }
h3 { font-size: 1.22rem; }
/* Hero: one wide photo across the top, heading and summary beneath it */
.hero { background: var(--paper); }
.hero .wrap { gap: 1.25rem; align-items: start; }
.hero-photo { order: -1; aspect-ratio: 16 / 9; }
.hero-photo img { object-position: 50% 85%; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; row-gap: 2rem; }
  .hero-photo { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
  .hero h1 { margin: 0; }
}
.soil { height: 16px; }
.kawasan { border-top-color: var(--head-bg); }
.langkah li::before { border-radius: 0; background: var(--head-bg); }
.page-body > aside { border-top-color: var(--head-bg); }
.pilih thead th { background: var(--head-bg); color: var(--head-ink); }
.faq summary::after { color: var(--head-bg); }
a { color: #8A3A1E; }
