/* Ecoleave: top + contact revision. Load AFTER site.css.
   Retains the original content, WebGL, form, language routes and downloads. */
:root { --header-height: 78px; }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
.site-header .header-inner { min-height: 78px; }
.site-header .brand { width: 143px; padding: 6px 0; }
.site-header .brand img { width: 131px; height: 66px; object-fit: contain; object-position: left center; }
.site-header .brand > span { display: none; }

/* Desktop hero uses the actual browser viewport, not physical screen inches.
   On unusually small windows/large zoom, natural flow takes over: no clipping. */
@media (min-width: 951px) and (min-height: 520px) {
  .hero {
    --hero-pad: clamp(22px, 4svh, 42px);
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 0;
    padding: var(--hero-pad) 0;
    display: flex;
    align-items: center;
  }
  .hero-grid {
    grid-template-columns: 1.04fr 1fr;
    gap: clamp(32px, 4.4vw, 66px);
    align-items: center;
    min-width: 0;
  }
  .hero-copy { min-width: 0; }
  .hero-copy h1 { font-size: clamp(38px, min(4.8vw, 8.7svh), 68px); line-height: 1.075; }
  html[lang="ms-MY"] .hero-copy h1 { font-size: clamp(34px, min(4.25vw, 8.05svh), 61px); }
  html[lang="zh-Hans"] .hero-copy h1 { font-size: clamp(39px, min(4.8vw, 8.7svh), 67px); }
  .hero-copy .eyebrow { font-size: 10px; margin-bottom: clamp(12px, 2.4svh, 21px); }
  .hero-description { font-size: clamp(14px, 1.25vw, 17px); line-height: 1.7; margin: clamp(16px, 2.7svh, 25px) 0; max-width: 510px; }
  .hero .button { min-height: 47px; padding: 12px 20px; font-size: 13px; }
  .hero-small { margin-top: clamp(14px, 2.5svh, 22px); max-width: none; font-size: 11px; }
  .hero-visual {
    /* Full original hero photo plus room for the status card. */
    width: min(100%, calc((100svh - var(--header-height) - 2 * var(--hero-pad) - 28px) * 1.10));
    justify-self: end;
    padding: 0 0 24px;
    margin: 0;
  }
  .hero .photo-frame { width: 100%; aspect-ratio: 1042 / 946; height: auto; border-width: 5px; border-radius: 21px; }
  .hero .hero-photo { object-fit: contain; object-position: center; }
  .hero .photo-caption { padding: 37px 16px 17px; font-size: 11px; }
  .hero .floating-status { bottom: 0; left: -19px; padding: 12px 16px; min-width: 274px; gap: 12px; }
  .hero .floating-status strong { font-size: 12px; }
  .hero .floating-status span:not(.status-dot):not(.live-icon) { font-size: 10px; }
  .hero .live-icon { width: 40px; height: 40px; }
  .hero .motion-toggle { bottom: 0; right: 5px; }
  .hero.hero-natural { height: auto; min-height: calc(100svh - var(--header-height)); }
}
@media (min-width: 951px) and (min-height: 520px) and (max-height: 620px) {
  .hero { --hero-pad: 20px; }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .hero-description { font-size: 14px; margin: 15px 0 17px; line-height: 1.65; }
  .hero .button { min-height: 44px; padding: 11px 16px; font-size: 12px; }
  .hero-small { margin-top: 14px; font-size: 10px; }
  .hero .floating-status { min-width: 237px; padding: 10px 12px; gap: 10px; }
  .hero .floating-status > .status-dot { margin-left: 6px; }
  .hero .photo-caption { font-size: 10px; padding-bottom: 15px; }
}
@media (min-width: 951px) and (max-height: 519px) {
  .hero { padding: 28px 0 38px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-description { font-size: 14px; margin: 16px 0 18px; }
}

/* Contact section is live HTML, not a flattened screenshot. Links remain
   clickable; the full, native English-brochure photograph is not stretched. */
.contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-brochure { min-width: 0; container-type: inline-size; padding: 12px; background: #fff; border: 1px solid #dce6ed; border-radius: 20px; }
.brochure-contact-main { display: grid; grid-template-columns: 1.02fr 1fr; gap: 12px; align-items: stretch; }
.brochure-contact-info { min-width: 0; padding: 21px 18px 23px; border-radius: 15px; background: #eff5fd; }
.brochure-company-name {
  font-size: 20px;
  font-size: clamp(16px, 3.7cqw, 25px);
  letter-spacing: -.047em;
  line-height: 1.22;
  white-space: nowrap;
  margin: 0 0 21px;
}
.brochure-branch { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; }
.brochure-branch > .icon { width: 24px; height: 27px; color: #467f34; }
.brochure-branch h4 { font-size: clamp(14px, 2.95cqw, 20px); letter-spacing: -.025em; line-height: 1.35; margin: 1px 0 10px; }
.brochure-branch address { font-style: normal; font-size: clamp(11px, 2.19cqw, 14px); line-height: 1.67; color: #5c7294; }
.brochure-phone { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: clamp(11px, 2.47cqw, 16px); font-weight: 650; line-height: 1.4; white-space: nowrap; }
.brochure-phone .icon { width: 17px; height: 19px; color: #467f34; }
.brochure-branch + .brochure-branch { border-top: 1px solid #ccdbe8; padding-top: 21px; margin-top: 22px; }
.brochure-contact-links { border-top: 1px solid #ccdbe8; margin-top: 22px; padding-top: 20px; display: grid; gap: 16px; }
.brochure-contact-links > a { display: flex; align-items: center; gap: 11px; font-size: clamp(11px, 2.35cqw, 15px); line-height: 1.4; font-weight: 650; min-width: 0; white-space: nowrap; }
.brochure-contact-links .icon { color: #467f34; width: 24px; height: 25px; }
.brochure-contact-links .brochure-web { color: var(--blue); }
.brochure-whatsapp strong { color: var(--blue); font-weight: inherit; }
.brochure-phone:hover, .brochure-contact-links > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.brochure-support-photo { min-width: 0; display: grid; align-content: center; border-radius: 15px; overflow: hidden; background: #fafbfc; }
.brochure-support-photo img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 15px; }
.brochure-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 14px; }
.support-service { min-width: 0; display: flex; gap: 10px; padding: 18px 13px 20px; background: #f0f7ee; border-radius: 14px; align-items: start; }
.support-service:nth-child(2) { background: #eff5fd; }
.support-service > .icon { width: 25px; height: 28px; color: #467f34; }
.support-service:nth-child(2) > .icon { color: var(--blue); }
.support-service h4 { font-size: clamp(12px, 2.48cqw, 16px); letter-spacing: -.018em; line-height: 1.3; margin: 1px 0 8px; }
.support-service p { font-size: clamp(11px, 2.07cqw, 13px); line-height: 1.6; color: #5c7294; }
.contact-form { min-width: 0; }

@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .contact-brochure { padding: 17px; }
  .brochure-contact-main { grid-template-columns: 1fr 1fr; gap: 18px; }
  .brochure-contact-info { padding: 28px 25px; display: flex; flex-direction: column; justify-content: center; }
  .brochure-company-name { font-size: clamp(20px, 3.65cqw, 31px); }
  .brochure-branch address { font-size: 14px; }
  .brochure-branch h4 { font-size: 20px; }
  .brochure-phone { font-size: 16px; }
  .brochure-contact-links > a { font-size: 15px; }
  .brochure-services { gap: 16px; margin-top: 18px; }
  .support-service { padding: 23px 20px; gap: 13px; }
  .support-service h4 { font-size: 17px; }
  .support-service p { font-size: 13px; }
}
@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .site-header .header-inner { min-height: 70px; }
  .site-header .brand { width: 114px; padding: 6px 0; }
  .site-header .brand img { width: 114px; height: 57px; }
  .hero { padding: 30px 0 45px; }
  .hero .photo-frame { aspect-ratio: 1042 / 946; }
  .hero .hero-photo { object-fit: contain; }
  .contact-brochure { padding: 10px; border-radius: 17px; }
  .brochure-contact-main { grid-template-columns: 1fr; gap: 15px; }
  .brochure-contact-info { padding: 25px 22px; }
  .brochure-company-name { font-size: clamp(20px, 6.4cqw, 29px); margin-bottom: 22px; }
  .brochure-branch { grid-template-columns: 25px minmax(0,1fr); gap: 12px; }
  .brochure-branch h4 { font-size: 19px; }
  .brochure-branch address { font-size: 14px; }
  .brochure-phone { font-size: 16px; }
  .brochure-contact-links > a { font-size: 15px; }
  .brochure-support-photo { max-width: 450px; width: 100%; margin-inline: auto; background: #fff; }
  .brochure-services { grid-template-columns: 1fr; gap: 11px; margin-top: 15px; }
  .support-service { padding: 20px; gap: 15px; }
  .support-service h4 { font-size: 17px; margin-bottom: 6px; }
  .support-service p { font-size: 14px; }
  .support-service > .icon { width: 30px; height: 31px; }
}
@media (max-width: 390px) {
  .site-header .brand { width: 104px; }
  .site-header .brand img { width: 104px; height: 53px; }
  .site-header .header-actions { gap: 7px; }
  .brochure-contact-info { padding: 22px 17px; }
  .brochure-company-name { font-size: 6.6cqw; }
  .brochure-branch { gap: 9px; }
  .brochure-branch address { font-size: 12px; }
  .brochure-phone { font-size: 14px; }
  .brochure-contact-links > a { font-size: 13px; }
}
@media print {
  .hero { height: auto !important; min-height: 0 !important; display: block; }
  .hero-visual { width: 100%; }
  .contact-grid { display: block; }
  .contact-brochure { max-width: 100%; }
}
