/* HPT V1.1 local review: stronger hierarchy, clearer cards and a visible scroll depth. */
:root { --off: #eef3f7; --panel-wash: linear-gradient(90deg, rgba(238,243,247,.97) 0%, rgba(238,243,247,.90) 55%, rgba(238,243,247,.82) 100%); }
html { scroll-padding-top: 0; }
body { font-size: 18px; }

.header-inner { min-height: 124px; gap: 28px; }
.brand { flex: 0 1 435px; text-decoration: none; }
.brand-logo-full { display: block; }
.brand-compact { display: none; }
.primary-nav { gap: clamp(23px, 2.5vw, 38px); }
.primary-nav > a { font-size: 18px; }
.language-switch { font-size: 16px; }

.hero-scene { position: relative; isolation: isolate; overflow: clip; background: var(--navy); }
.scene-backdrop {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  background-image:
    linear-gradient(90deg, rgba(3,17,31,.96) 0%, rgba(4,21,38,.86) 40%, rgba(4,21,38,.35) 74%, rgba(3,17,31,.37) 100%),
    linear-gradient(0deg, rgba(4,17,29,.47), transparent 47%),
    url('/assets/images/hero-manufacturing.webp');
  background-position: center;
  background-size: cover;
  pointer-events: none;
}
.hero { z-index: 1; min-height: 710px; overflow: hidden; isolation: auto; background: transparent; }
.hero-inner { min-height: 710px; padding-block: 82px 110px; }
.hero-copy { max-width: 870px; }
.hero h1 { font-size: clamp(45px, 4.9vw, 71px); margin-bottom: 34px; }
.hero-copy > p { max-width: 735px; margin: 0; font-size: clamp(19px, 1.55vw, 22px); }

.content-panels {
  position: relative;
  z-index: 2;
  margin-top: -90px;
  background: var(--panel-wash);
  clip-path: polygon(0 90px, 100% 0, 100% 100%, 0 100%);
}
.services { padding-block: 165px 80px; background: transparent; }
.section-heading { display: block; margin-bottom: 54px; }
.section-heading::before {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--blue);
}
.section-heading-light::before { background: #69baf4; }
.service-card { min-height: 392px; padding: 38px 34px; }
.card-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 32px;
  border-width: 2px;
  background: #edf7ff;
}
.card-icon svg { width: 60px; height: 60px; stroke-width: 2.5; }
.service-card h3 { font-size: clamp(26px, 2.1vw, 31px); }
.service-card p { font-size: 17px; }
.about { position: relative; padding-block: 80px 140px; background: transparent; }
.about-text { padding-left: 0; }
.about-text p { font-size: 19px; }
.contact { padding-block: 120px 130px; }
.contact h2 { font-size: clamp(31px, 3.6vw, 48px); }
.footer-inner { min-height: 234px; gap: 34px; }
.footer-brand { width: min(468px, 100%); text-decoration: none; }
.footer-links { gap: 30px; font-size: 18px; }
.site-footer small { font-size: 16px; }

@media (max-width: 1050px) {
  .brand { flex-basis: 332px; }
  .primary-nav { gap: 18px; }
  .primary-nav > a { font-size: 17px; }
  .hero h1 { font-size: clamp(39px, 4.75vw, 59px); }
  .service-card { min-height: 410px; padding: 32px 26px; }
  .card-icon { width: 96px; height: 96px; }
  .card-icon svg { width: 56px; height: 56px; }
  .footer-brand { width: min(374px, 100%); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 42px; }
  .site-footer small { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 0; }
  .header-inner { min-height: 102px; gap: 12px; }
  .brand { flex: 0 1 408px; max-width: calc(100% - 66px); }
  .menu-toggle { width: 54px; height: 54px; }
  .hero, .hero-inner { min-height: 650px; }
  .hero-inner { padding-block: 76px 100px; }
  .hero h1 { font-size: clamp(36px, 6.3vw, 53px); }
  .hero-copy > p { font-size: 18px; }
  .scene-backdrop { background-position: 61% center; }
  .content-panels {
    margin-top: -62px;
    clip-path: polygon(0 62px, 100% 0, 100% 100%, 0 100%);
  }
  .services { padding-block: 116px 80px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading::before { margin-bottom: 19px; }
  .service-card { min-height: 0; padding: 32px; }
  .card-icon { width: 94px; height: 94px; margin-bottom: 25px; }
  .about { padding-block: 80px 104px; }
  .footer-inner { min-height: 0; gap: 24px; padding-block: 45px; }
  .footer-brand { width: 323px; }
  .footer-links { font-size: 16px; }
}

@media (max-width: 620px) {
  .brand { flex: 0 1 306px; max-width: calc(85% - 56px); }
  .brand > .brand-logo-full { display: none; }
  .brand > .brand-compact { display: grid; grid-template-columns: 45% minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
  .brand-compact img { display: block; width: 100%; height: auto; }
  .brand-name { display: flex; flex-direction: column; font: 600 clamp(15px, 2.2vw, 20px)/1.07 'Barlow Semi Condensed', Arial, sans-serif; color: var(--navy); white-space: nowrap; }
  .footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-brand { width: 85%; max-width: 425px; }
  .footer-brand .brand-logo-full { display: none; }
  .footer-brand .brand-compact { display: grid; grid-template-columns: 48% minmax(0, 1fr); gap: 14px; }
  .footer-brand .brand-name { color: #fff; font-size: clamp(15px, 4.5vw, 23px); }
  .footer-links { justify-content: space-between; width: 100%; }
  .site-footer small { white-space: normal; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 96px; gap: 9px; }
  .brand { flex: 0 1 306px; max-width: calc(85% - 48px); }
  .brand-compact { gap: 9px; }
  .brand-name { font-size: clamp(14px, 4.25vw, 17px); }
  .menu-toggle { width: 48px; height: 48px; flex: 0 0 48px; }
  .hero, .hero-inner { min-height: 630px; }
  .hero-inner { padding-block: 64px 90px; }
  .hero h1 { font-size: clamp(32px, 7.9vw, 43px); }
  .hero-copy > p { font-size: 17.5px; }
  .content-panels {
    margin-top: -48px;
    clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  }
  .section.services { padding-block: 99px 74px; }
  .section { padding-block: 76px 82px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading::before { width: 48px; margin-bottom: 17px; }
  .service-card { padding: 29px; }
  .card-icon { width: 90px; height: 90px; }
  .card-icon svg { width: 53px; height: 53px; }
  .about-text { padding-left: 0; }
  .portrait-frame { width: 100%; margin-left: 0; }
  .portrait-frame::before { left: -14px; }
  .contact { padding-block: 84px 95px; }
  .contact h2 { font-size: clamp(29px, 6.8vw, 37px); }
  .footer-inner { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding-block: 41px; }
  .footer-brand { width: 85%; max-width: none; }
  .footer-links { justify-content: space-between; width: 100%; font-size: 17px; }
  .site-footer small { font-size: 15px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-backdrop { position: absolute; inset: 0 0 auto; height: 100%; margin: 0; }
}
