@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --green: #a9d13c;
  --ink: #303030;
  --cream: #f2efe6;
  --dark: #141719;
  --ease: cubic-bezier(.42,0,.58,1);
  --wrap: 1200px;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: white;
  color: var(--ink);
  font-family: "Roboto", "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,textarea {
  font: inherit;
}

h1,h2,h3,h4,h5,h6,strong,b {
  font-weight: 700;
}

button {
  cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 3px solid #77a900;
  outline-offset: 4px;
}

/* Layout */
.wrap {
  width: 83.5%;
  max-width: var(--wrap);
  margin: auto;
}

/* Keep both navigation bars together at the top while scrolling. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .topbar,.site-header .mainnav {
  transition: background-color .25s ease;
}

.site-header.is-scrolled .topbar {
  background-color: rgba(18,18,18,.90);
}

.site-header.is-scrolled .mainnav {
  background-color: rgba(53,53,53,.90);
}

.topbar {
  background: #121212;
  color: #e7e7e7;
  font-size: 12px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  height: 32px;
}

.topbar a:hover,.topbar a:focus-visible {
  color: var(--green);
  text-decoration: none;
}

.sep {
  opacity: .7;
}

.lang[aria-pressed=true] {
  font-weight: 700;
  color: var(--green);
}

.topbar a,
.topbar button,
.footer .lang,
.dropdown-toggle {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

.mainnav {
  position: relative;
  z-index: 20;
  background: #353535;
  color: #f8f8f8;
}

.mainnav .wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  display: block;
  width: 86px;
  height: auto;
  aspect-ratio: 35/22;
  object-fit: contain;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 15px;
}

.navlinks a:hover,.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  color: white;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 5px 12px;
}

/* Equipment navigation dropdowns */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.dropdown-toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}

.nav-dropdown.open .dropdown-toggle,
.dropdown-toggle:hover {
  color: var(--green);
}

.nav-dropdown.open .dropdown-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 21;
  width: max-content;
  min-width: 100%;
  max-width: min(380px, 90vw);
  margin: 0;
  padding: 7px 0;
  list-style: none;
  background: #484848;
  color: #fff;
  box-shadow: 0 8px 20px #0003;
  text-align: center;
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 8px 15px;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.navlinks .dropdown-menu a:hover,
.navlinks .dropdown-menu a:focus-visible {
  color: var(--green);
  background: #3a3a3a;
  text-decoration: none;
}

.navlinks > .training-link:hover,
.navlinks > .training-link:focus-visible {
  color: var(--green);
  text-decoration: none;
}

/* Shared buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  min-height: 38px;
  line-height: 1.4;
  border: 1px solid #747474;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  font-weight: 500;
  font-size: 15px;
  transition: background .25s,color .25s,border-color .25s;
}

.btn:hover {
  background: #333;
  color: white;
  border-color: #333;
}

.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #293017;
}

.btn.primary:hover {
  background: #8fb326;
  border-color: #8fb326;
}

.btn.light {
  background: var(--cream);
  border-color: var(--cream);
  color: #333;
}

.btn.light:hover {
  background: #ded9cc;
}

.wa {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('source/06_Icon/whatsapp.svg') no-repeat center / contain;
}

/* Hero and carousel */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 460px;
  height: min(46vw, 640px);
  color: white;
  background: #718287;
  display: flex;
  align-items: center;
}

.slides,.slide,.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.05s var(--ease);
  will-change: opacity;
}

.slide.active {
  opacity: 1;
}

.hero-shade {
  z-index: -1;
  background: rgba(20,24,25,.55);
}

.hero-content {
  position: relative;
  padding-bottom: 4px;
}

.hero h1 {
  font-size: clamp(33px,3.15vw,49px);
  line-height: 1.28;
  letter-spacing: -.025em;
  margin: 0 0 31px;
  max-width: 850px;
}

.hero p {
  max-width: 690px;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 30px;
  color: #f0f0f0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero .btn:not(.primary) {
  border-color: white;
  color: white;
}

.hero .btn:not(.primary):hover {
  background: #fff;
  color: #333;
}

.carousel-ui {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #0004;
}

.dot {
  width: 11px;
  height: 11px;
  border: 1px solid #fff;
  border-radius: 100%;
  background: transparent;
  padding: 0;
}

.dot.active,
.filters .active {
  background: var(--green);
  border-color: var(--green);
}

.pause {
  background: transparent;
  border: 0;
  color: white;
  font-size: 14px;
  min-width: 28px;
  padding: 2px;
}

/* Statistics and partners */
.stats {
  padding: 80px 0 76px;
}

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

.stat-value {
  font-weight: 700;
  font-size: 48px;
  color: #6b8e11;
  line-height: 1.2;
}

.stat-value small {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-left: 6px;
}

.stat p {
  margin: 13px 0 0;
  font-size: 15px;
}

.partner-label {
  text-align: center;
  font-size: 13px;
  margin: 66px 0 42px;
}

.partners {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px,3.27vw,47px);
}

.partners img {
  display: block;
  width: var(--brand-width);
  height: auto;
  aspect-ratio: var(--brand-ratio);
  object-fit: contain;
  flex: 0 1 auto;
  min-width: 0;
}

.textlink {
  display: block;
  text-align: right;
  font-size: 14px;
  margin-top: 60px;
}

/* Equipment fleet */
.fleet {
  padding: 80px 0 75px;
}

.section-head {
  text-align: center;
  margin: 0 auto 58px;
  max-width: 970px;
}

.section-head h2 {
  font-size: clamp(26px,2.35vw,36px);
  line-height: 1.35;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.section-head p {
  font-size: 15px;
  margin: 0;
  line-height: 1.8;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 25px;
}

.filters .btn {
  min-height: 34px;
  padding: 5px 13px;
  font-size: 14px;
}

.fleet-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}

.product {
  background: var(--cream);
  border-radius: 10px;
  text-align: center;
  padding: 32px 20px;
  min-height: 338px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product[hidden] {
  display: none;
}

.tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  font-size: 12px;
  border: 0;
  border-radius: 4px;
  padding: 4px 12px;
  background-color: #373737;
  color: #F4F0E7;
  display: inline-block;
  line-height: 1.4;
}

.product h3,
.safety-card h3 {
  font-size: 24px;
  line-height: 1.35;
}

.product h3 {
  margin: 16px 0 3px;
}

.model,
.safety-card p {
  font-size: 15px;
  margin: 0;
}

.specs {
  display: grid;
  gap: 5px;
  margin: 18px 0 15px;
  text-align: left;
  font-size: 15px;
}

.spec {
  display: flex;
  gap: 16px;
  align-items: center;
}

.spec svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product .btn {
  margin-top: auto;
}

/* Training and engineering */
.services {
  padding: 78px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px 32px;
  align-items: center;
}

.service-grid img,
.safety-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.service-grid img {
  aspect-ratio: 1.52;
  border-radius: 20px;
}

/* MEKTRION training visual: Figma reference 584 × 384; proportional on smaller screens. */

.training-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 584/384;
  overflow: hidden;
  border-radius: 20px;
  background: #e5e5e5;
  isolation: isolate;
}

.service-grid .training-visual img {
  position: absolute;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.service-grid .training-base {
  inset: 0;
  height: 100%;
  z-index: 0;
}

.service-grid .training-blur {
  left: 0;
  top: -53.3854167%;
  height: 207.291667%;
  filter: blur(2px);
  box-shadow: 4px 4px 4px rgba(0,0,0,.25);
  z-index: 1;
}

.service-grid .training-poster {
  left: 25.6849315%;
  top: 0;
  width: 48.630137%;
  height: 100%;
  z-index: 2;
}

.service-copy h3 {
  font-size: 25px;
  line-height: 1.4;
  color: #161616;
  margin: 16px 0 13px;
}

.service-copy p,.service-copy li {
  font-size: 15px;
  line-height: 1.8;
}

.service-copy p {
  margin: 0 0 10px;
}

.service-copy ul {
  margin: 0 0 15px;
  padding-left: 20px;
}

/* Safety */
.safety {
  background: #eaeaea;
  padding: 80px 0 82px;
}

.safety-card img {
  aspect-ratio: 1.47;
  border-radius: 19px;
}

.safety-copy {
  border-top: 1px solid #999;
  margin-top: 22px;
  padding-top: 20px;
}

.safety-card .number {
  color: #303030;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.safety-card h3 {
  margin: 13px 0 9px;
}

/* Contact */
.contact {
  padding: 82px 0 76px;
  text-align: center;
}

.contact .section-head {
  margin-bottom: 45px;
  color: #111;
}

.contact-actions {
  display: grid;
  justify-content: center;
  gap: 18px;
}

.contact-actions .btn {
  min-width: 208px;
}

.contact-note {
  margin: 65px 0 0;
  font-size: 13px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #c7c7c7;
  padding: 66px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr .8fr;
  gap: 38px;
}

.footer-logo {
  width: 64px;
  display: block;
  margin-bottom: 18px;
  aspect-ratio: 29/28;
  height: auto;
  object-fit: contain;
}

.footer h2,
.footer strong,
.footer a:hover {
  color: white;
}

.footer h2 {
  font-size: 15px;
  margin: 0 0 12px;
}

.footer p {
  margin: 0 0 11px;
}

.footer a {
  display: block;
  margin: 0 0 10px;
}

.footnote {
  background: #101010;
  color: #aaa;
  font-size: 11px;
}

.footnote .wrap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.social {
  display: flex;
  gap: 12px;
}

.footer .social a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin: 0;
}

.social img,.social svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer .back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: inherit;
  transition: color .25s;
}

.footer .back-top svg {
  flex-shrink: 0;
}

.footer .back-top:hover,
.footer .back-top:focus-visible,
.footer-language .lang:hover,
.footer-language .lang:focus-visible {
  color: var(--green);
}

.footnote a:hover,.footnote a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-links a {
  white-space: nowrap;
}

/* Reveal animation */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.pending {
  opacity: 0;
  transform: translateY(44px);
}

.js .reveal {
  transition: opacity .85s var(--ease),transform .85s var(--ease);
  transition-delay: var(--delay,0ms);
}

/* Dialogs and forms */
dialog {
  width: min(92vw,540px);
  border: 0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 15px 80px #0004;
}

dialog::backdrop {
  background: #0008;
}

dialog h2 {
  margin: 0 0 15px;
}

.formgrid {
  display: grid;
  gap: 12px;
}

.formgrid label {
  display: grid;
  gap: 3px;
  font-size: 14px;
}

.formgrid input,.formgrid textarea {
  width: 100%;
  border: 1px solid #bbb;
  padding: 9px;
  border-radius: 4px;
}

.close {
  float: right;
  border: 0;
  background: none;
  font-size: 24px;
}

.notice {
  font-size: 13px;
  color: #555;
}

#copied {
  color: #397320;
  font-size: 14px;
  min-height: 20px;
}

html[lang=en] .hero h1 {
  font-size: clamp(32px,3.2vw,49px);
}

/* Responsive layout */
@media (max-width:900px) {
  :root { --header-height: 102px; }

  .wrap {
    width: 90%;
  }

  .navlinks {
    gap: 14px;
    font-size: 13px;
  }

  .mainnav .wrap {
    height: 70px;
  }

  .hero {
    height: 62vw;
  }

  .stat-value {
    font-size: 38px;
  }

  .fleet-grid,.safety-grid {
    gap: 16px;
  }

  .product h3,.safety-card h3 {
    font-size: 20px;
  }

  .product {
    padding: 24px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services,.fleet,.safety,.stats,.contact {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .service-grid {
    gap: 35px 22px;
  }
}

@media (min-width:801px) {
  .dropdown-menu {
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }

  .navlinks {
    height: 100%;
  }

  #rental-menu {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width:800px) {
  .mainnav .wrap {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: -5.55%;
    right: -5.55%;
    padding: 18px 5%;
    background: #353535;
    z-index: 10;
    align-items: stretch;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }

  .navlinks.open {
    display: flex;
  }

  .nav-dropdown {
    display: block;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 5px 0;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 5px;
    box-shadow: none;
    text-align: center;
  }
}

@media (max-width:620px) {
  :root { --header-height: 98px; }

  .topbar .wrap {
    gap: 12px;
  }

  .mainnav .wrap {
    height: 66px;
  }

  .logo img {
    width: 75px;
  }

  .hero {
    height: 565px;
    min-height: 0;
  }

  .hero .slide {
    background-position: 58% center;
  }

  .hero-shade {
    background: rgba(20,24,25,.61);
  }

  .hero h1 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .actions {
    gap: 12px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 12px;
  }

  .stat-value {
    font-size: 36px;
  }

  .stat p {
    font-size: 13px;
  }

  .partner-label {
    margin: 38px 0 22px;
  }

  .partners {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 24px;
  }

  .partners img {
    flex: 0 0 auto;
    max-width: calc((100% - 48px)/3);
  }

  .textlink {
    margin-top: 30px;
    font-size: 13px;
  }

  .fleet-grid,.safety-grid,.service-grid {
    grid-template-columns: 1fr;
  }

  .fleet-grid,.service-grid {
    gap: 24px;
  }

  .filters {
    gap: 8px;
  }

  .filters .btn {
    font-size: 13px;
  }

  .product {
    min-height: 275px;
  }

  .service-grid .custom-img {
    grid-row: 3;
  }

  .service-grid img,
  .safety-card img,
  .training-visual {
    border-radius: 12px;
  }

  .safety-copy {
    margin-top: 12px;
    padding-top: 12px;
  }

  .safety-grid {
    gap: 34px;
  }

  .contact-note {
    margin-top: 36px;
  }

  .footer-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 32px;
    text-align: left;
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1;
  }

  .footer {
    padding: 42px 0 32px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .section-head p {
    font-size: 14px;
  }

  .service-copy h3 {
    font-size: 23px;
  }

  .carousel-ui {
    bottom: 16px;
  }
}

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

  .js .reveal.pending {
    opacity: 1;
    transform: none;
  }

  .js .reveal,.slide,.btn,.site-header .topbar,.site-header .mainnav {
    transition: none !important;
  }
}

/* Image placeholders: replace src="#" or background-image:url('#') with your own image path. */

img[src="#"] {
  background: rgba(128,128,128,.12);
}
