/* Phase 2 — homepage composition.  Kept separate from the component layer so
   section-level treatments remain local to the page templates. */
.home-hero {
  background: var(--sem-navy-950);
}

.heroSwiper {
  /* Utility bar (32px) + sticky header (80px) leave 112px above the hero. */
  height: max(560px, calc(100svh - 112px));
  min-height: 0;
}

.hero-background::before {
  background: rgba(3, 31, 53, .18);
}

.hero-background::after {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 43%, rgba(255,255,255,.18) 72%, rgba(255,255,255,0) 100%);
}

/* Empty slides are visual-only: do not fade or darken their supplied image. */
.hero-slide--image-only .hero-background::before,
.hero-slide--image-only .hero-background::after { display: none; }

.hero-container {
  max-width: 1320px;
  padding-top: 0;
}

.hero-copy {
  width: min(590px, 52%);
  padding-bottom: 12px;
  position: relative;
}

.hero-copy h1,
.hero-copy h2 {
  color: var(--sem-text);
  font-size: clamp(3rem, 5.4vw, 5.75rem);
  letter-spacing: -.065em;
}

.hero-copy h1 em,
.hero-copy h2 em { color: var(--sem-green-600); }

.hero-copy p {
  max-width: 510px;
  margin: 20px 0 0;
  color: #516576;
  font-size: .98rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(6, 51, 91, .18);
}
.hero-actions .btn { min-height: 50px; padding: 0 22px; letter-spacing: .01em; }
.hero-actions .video-button.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 18px 0 8px;
}
.hero-actions .video-button span { width: 34px; height: 34px; }
.feature-action.btn-outline-sem { border-color: rgba(255,255,255,.6); color: #fff; }
.feature-action.btn-outline-sem:hover { background: #fff; border-color: #fff; color: var(--sem-navy-900); }
.video-button span { border-color: var(--sem-border-dark); }
.hero-controls { max-width: 1320px; bottom: 24px; }
.hero-controls .swiper-pagination-bullet { background: rgba(6, 51, 91, .35); }
.hero-controls .swiper-pagination-bullet-active { background: var(--sem-green-600); }


.section { padding: clamp(76px, 8vw, 120px) 0; }
.section-intro { margin-bottom: 44px; }
.section-intro h2,
.agenda-header h2,
.certificate-heading h2,
.company-copy h2,
.environment-content h2 {
  color: var(--sem-text);
  font-size: clamp(2.15rem, 4vw, 4rem);
  letter-spacing: -.055em;
}
.section-intro p { max-width: 510px; line-height: 1.75; }

.product-architecture,
.feature-editorial { background: var(--sem-bg-soft); }
.solution-grid { gap: 20px; grid-template-rows: repeat(2, 300px); }
.solution-card { border-radius: var(--sem-radius-md); box-shadow: var(--sem-shadow-sm); }
.solution-card img,
.feature-primary img,
.feature-secondary img { transition: transform var(--sem-motion-slow) var(--sem-ease); }
.solution-overlay { background: linear-gradient(0deg, rgba(3,31,53,.91), rgba(3,31,53,.06) 72%); }
.solution-content { left: 28px; right: 28px; bottom: 26px; }
.solution-content > span { color: #c1ddaa; }
.solution-content h3 { font-size: clamp(1.35rem, 2.35vw, 2.4rem); }
.solution-content a:hover { color: #d7edc6; }
.solution-description { max-width: 42rem; margin: 0 0 18px; color: rgba(255,255,255,.8); font-size: .84rem; line-height: 1.55; }
.product-category-empty { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border: 1px solid var(--sem-border); border-radius: var(--sem-radius-md); background: #fff; }
.product-category-empty p { margin: 0; color: var(--sem-muted); }
.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 290px); gap: 20px; }
.category-card { min-height: 290px; }
.category-card .solution-content { display: grid; justify-items: start; }
.category-card .solution-content > span { display: inline-flex; align-items: center; gap: 9px; }
.category-card .solution-content > span small { color: rgba(255,255,255,.72); font: 700 .65rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.category-card .solution-content h3 { margin: 11px 0 14px; font-size: clamp(1.55rem, 2.4vw, 2.35rem); }
.category-card .solution-content a { min-height: 38px; padding: 0 13px; border: 1px solid rgba(255,255,255,.36); font-size: .74rem; transition: background var(--sem-motion-fast) var(--sem-ease), border-color var(--sem-motion-fast) var(--sem-ease); }
.category-card:hover .solution-content a { border-color: #d7edc6; background: rgba(255,255,255,.12); }

.company-story { background: var(--sem-bg); }
.company-story-grid { gap: clamp(42px, 6vw, 88px); }
.company-copy p { max-width: 490px; line-height: 1.75; }
.company-list { gap: 14px; }
.company-list div { align-items: flex-start; font-size: .9rem; line-height: 1.55; }
.company-list i { margin-top: .25rem; color: var(--sem-green-600); }
.company-visual { border-radius: var(--sem-radius-md); overflow: hidden; }
.company-visual > img { min-height: 540px; }
.fact-panel { left: 20px; right: 20px; bottom: 20px; background: rgba(3,31,53,.94); border-radius: var(--sem-radius-sm); }
.fact-panel div { min-height: 102px; padding: 18px 22px; }
.production-methods { margin-top: 64px; border-color: var(--sem-border); }
.production-methods > div { min-height: 136px; border-color: var(--sem-border); }
.method span { color: var(--sem-green-600); }

.feature-layout { gap: 20px; grid-template-rows: repeat(2, 290px); }
.feature-primary,
.feature-secondary { border-radius: var(--sem-radius-md); box-shadow: var(--sem-shadow-sm); }
.feature-shade { background: linear-gradient(0deg, rgba(3,31,53,.92), rgba(3,31,53,.04) 74%); }
.feature-shade-blue { background: linear-gradient(0deg, rgba(6,51,91,.91), rgba(6,51,91,.06) 74%); }
.feature-shade-green { background: linear-gradient(0deg, rgba(79,127,50,.9), rgba(79,127,50,.06) 74%); }
.feature-copy { left: 34px; right: 34px; bottom: 30px; }
.feature-copy h2 { font-size: clamp(2rem, 3.6vw, 3.8rem); }

.environment-section { min-height: 660px; background: var(--sem-navy-950); }
.environment-image { min-height: 660px; }
.environment-content { padding: clamp(64px, 7vw, 104px); }
.environment-content h2 { color: #fff; }
.environment-content p { line-height: 1.75; }
.environment-links a { padding: 16px 0; transition: color var(--sem-motion-fast) var(--sem-ease); }
.environment-links a { grid-template-columns: 96px minmax(0, 1fr) auto; }
.environment-links strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.environment-links a:hover { color: #cce5bb; }
.environment-links span { color: #b9d892; }

.agenda-header { margin-bottom: 42px; }
.agenda-tabs { gap: 24px; }
.agenda-tabs button { color: var(--sem-muted); }
.agenda-tabs button.active { color: var(--sem-navy-900); border-color: var(--sem-green-600); }
.agenda-list a.is-preview-active,
.agenda-list a:hover,
.agenda-list a:focus-visible { color: var(--sem-green-600); }
.agenda-list a.is-preview-active strong,
.agenda-list a:hover strong,
.agenda-list a:focus-visible strong { color: var(--sem-green-600); }
.agenda-empty { margin: 0; padding: 34px; border: 1px solid var(--sem-border); color: var(--sem-muted); }

.agenda-tabs { flex-wrap: nowrap; }
.agenda-tabs button { flex: 0 0 auto; white-space: nowrap; }
.agenda-panel.active { align-items: stretch; }
.agenda-list a { grid-template-columns: 90px minmax(0, 1fr) auto; }
.agenda-list strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-featured h3,
.agenda-featured p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
.agenda-featured h3 { -webkit-line-clamp: 3; }
.agenda-featured p { -webkit-line-clamp: 3; }
.agenda-featured { height: 100%; min-height: 0; }
.agenda-featured img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  object-fit: cover;
}
.agenda-featured { border-color: var(--sem-border); border-radius: var(--sem-radius-md); overflow: hidden; box-shadow: var(--sem-shadow-sm); }
.agenda-featured > div { padding: 32px; }
.agenda-date,
.agenda-list span { color: var(--sem-green-600); }
.agenda-featured a:hover,
.agenda-list a:hover strong { color: var(--sem-green-600); }
.agenda-list a { border-color: var(--sem-border); transition: color var(--sem-motion-fast) var(--sem-ease); }

.certificates-section { padding-top: clamp(34px, 5vw, 72px); background: #fff; }
.certificates-grid { overflow: hidden; border: 1px solid var(--sem-border); border-radius: var(--sem-radius-md); background: #fff; box-shadow: none; }
.certificates-grid > div { min-height: 190px; border-color: var(--sem-border); }
.certificate-heading { justify-content: center; }
.certificate-heading .micro-label { color: var(--sem-green-600); }
.certificate-heading h2 { max-width: 16rem; margin: 12px 0 16px; color: var(--sem-navy-900); font-size: clamp(1.9rem, 2.7vw, 2.9rem); }
.certificate-heading p { margin: 0; color: var(--sem-muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.certificate-mark { align-items: flex-start; justify-content: center; gap: 8px; text-align: left; transition: background var(--sem-motion-fast) var(--sem-ease); }
.certificate-mark:hover { background: var(--sem-bg-soft); }
.certificate-mark strong { color: var(--sem-navy-900); font-size: 1.35rem; }
.certificate-mark span:last-child { color: var(--sem-muted); font-size: .76rem; }

/* 404 — a quiet editorial composition that retains the public-site palette. */
.not-found-page { background: linear-gradient(180deg, #fff 0, var(--sem-bg-soft) 100%); }
.not-found-section { min-height: min(720px, calc(100vh - 112px)); display: grid; align-items: center; }
.not-found-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); overflow: hidden; border: 1px solid var(--sem-border); border-radius: var(--sem-radius-md); background: #fff; box-shadow: var(--sem-shadow-sm); }
.not-found-copy { padding: clamp(38px, 6vw, 78px); }
.not-found-copy .micro-label { color: var(--sem-green-600); }
.not-found-code { margin: 18px 0 -14px; color: var(--sem-green-100); font: 800 clamp(5.5rem, 13vw, 10rem)/1 var(--font-display); letter-spacing: -.09em; }
.not-found-copy h1 { max-width: 680px; margin: 0; color: var(--sem-navy-900); font-size: clamp(2.4rem, 4.8vw, 4.7rem); letter-spacing: -.06em; }
.not-found-description { max-width: 540px; margin: 20px 0 0; color: var(--sem-muted); font-size: 1rem; line-height: 1.75; }
.not-found-content { max-width: 540px; margin-top: 22px; color: var(--sem-text); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.not-found-actions .btn { display: inline-flex; align-items: center; gap: 11px; min-height: 50px; padding: 0 20px; }
.not-found-graphic { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); min-height: 360px; overflow: hidden; color: #fff; background: var(--sem-navy-950); }
.not-found-graphic::before, .not-found-graphic::after { position: absolute; border: 1px solid rgba(185, 216, 146, .35); border-radius: 50%; content: ""; }
.not-found-graphic::before { width: min(32vw, 410px); aspect-ratio: 1; }
.not-found-graphic::after { width: min(20vw, 260px); aspect-ratio: 1; border-color: rgba(255,255,255,.14); }
.not-found-graphic span { position: relative; z-index: 1; color: #fff; font: 800 clamp(5rem, 10vw, 9rem)/1 var(--font-display); letter-spacing: -.09em; }
.not-found-graphic i { position: relative; z-index: 1; width: clamp(44px, 7vw, 76px); aspect-ratio: 1; border: 12px solid var(--sem-green-600); border-radius: 50%; box-shadow: 0 0 0 11px rgba(120, 168, 91, .14); }

@media (max-width: 991px) {
  .heroSwiper { height: max(560px, calc(100svh - 112px)); }
  .hero-copy { width: min(590px, 70%); }
  .solution-grid { grid-template-rows: repeat(2, 320px); }
  .category-grid { grid-template-rows: repeat(2, 270px); }
  .feature-layout { grid-template-rows: 470px 280px; }
  .environment-section, .environment-image { min-height: 0; }
  .not-found-card { grid-template-columns: 1fr; }
  .not-found-graphic { min-height: 250px; }
  .not-found-graphic::before { width: 340px; }
  .not-found-graphic::after { width: 210px; }
}

@media (max-width: 767px) {
  .heroSwiper { height: auto; min-height: 0; background: #fff; }
  .hero-slide { display: flex; flex-direction: column; height: auto; }
  .hero-background { position: relative; inset: auto; width: 100%; height: clamp(219px, 58.2vw, 352px); }
  .hero-background::before,
  .hero-background::after { display: none; }
  .hero-background img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
  .hero-slide:nth-child(1) .hero-background img { object-position: 73% center; }
  .hero-slide:nth-child(2) .hero-background img { object-position: 64% center; }
  .hero-container { display: block; height: auto; padding-top: 0; background: #fff; }
  .hero-copy { width: 100%; padding: 28px 0 30px; }
  .hero-copy .micro-label { margin-bottom: 14px; }
  .hero-copy h1, .hero-copy h2 { min-height: 0; color: var(--sem-text); font-size: clamp(2.65rem, 11vw, 3.7rem); line-height: 1.03; }
  .hero-copy h1 em, .hero-copy h2 em { color: var(--sem-green-600); }
  .hero-copy p { min-height: 0; margin: 12px 0 0; color: #516576; font-size: .92rem; }
  .hero-actions { align-items: stretch; flex-direction: row; flex-wrap: nowrap; gap: 10px; margin-top: 18px; padding-top: 12px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 42px !important; padding: 0 10px !important; font-size: .78rem !important; white-space: nowrap; }
  .hero-actions .video-button.btn { min-height: 42px !important; padding: 0 10px !important; }
  .hero-actions .video-button span { width: 32px; height: 32px; }
  .hero-controls { position: relative; left: auto; bottom: auto; width: 100%; min-height: 58px; padding: 0 20px; border-top: 1px solid var(--sem-border); background: #fff; transform: none; }
  .hero-controls .swiper-pagination-bullet { width: 24px; }
  .hero-nav-buttons button { width: 44px; height: 44px; }
  .section-intro { margin-bottom: 32px; }
  .solution-grid { gap: 14px; grid-template-rows: repeat(3, 330px); }
  .category-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 260px); }
  .category-card { min-height: 260px; }
  .product-category-empty { align-items: flex-start; flex-direction: column; padding: 24px; }
  .solution-content { left: 22px; right: 22px; bottom: 21px; }
  .company-visual > img { min-height: 390px; }
  .fact-panel { left: 12px; right: 12px; bottom: 12px; }
  .feature-layout { gap: 14px; grid-template-rows: 420px 270px 270px; }
  .feature-copy { left: 24px; right: 24px; bottom: 24px; }
  .environment-content { padding: 58px 24px; }
  .agenda-featured img { height: 300px; }
  .agenda-featured > div { padding: 24px; }
  .not-found-section { min-height: 0; padding: 48px 0; }
  .not-found-copy { padding: 34px 24px; }
  .not-found-code { margin-top: 14px; }
  .not-found-actions { display: grid; grid-template-columns: 1fr; }
  .not-found-actions .btn { justify-content: center; }
  .not-found-graphic { min-height: 190px; }
  .not-found-graphic::before { width: 250px; }
  .not-found-graphic::after { width: 150px; }
  .not-found-graphic i { border-width: 9px; }
}
