/*
 * FLORA iCIS unified stylesheet entry point.
 * Every page loads this file; modules stay separated for maintainability.
 */
@import url("site.css");
@import url("nav.css");
@import url("typography.css");
@import url("sitemap.css");
@import url("technology-theme.css");
@import url("figma-preview.css");
@import url("content-depth.css");
@import url("font-match.css");
@import url("figma-make-home.css");
@import url("banner-full.css?v=11");
@import url("why-flow.css");
@import url("responsive-typography.css");
@import url("stacked-section-heads.css");
@import url("home.css");
@import url("platform.css?v=7");
@import url("devices.css");

/* Keep the label-to-title rhythm consistent across every inner-page banner. */
.page-hero > .wrap > .eyebrow {
  margin-bottom: clamp(1.35rem, 2vw, 2rem);
}

.lang-toggle {
  gap: 3px;
  padding: 4px !important;
  color: #405667 !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid #c8dfe3 !important;
  box-shadow: 0 5px 16px rgba(24, 50, 71, .06);
}

.lang-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #647785;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lang-choice.is-active {
  color: #006f70;
  background: #ddf5f4;
  box-shadow: inset 0 0 0 1px rgba(0, 163, 158, .12);
}

.lang-divider {
  color: #b8c8ce;
  font-weight: 400;
}

/* Comfortable desktop navigation: clearer separation and larger click targets. */
@media (min-width: 1001px) {
  .site-header .wrap {
    width: min(1240px, calc(100% - 48px));
    height: clamp(82px, 5.5vw, 90px);
  }

  .brand img {
    height: clamp(46px, 3.2vw, 52px);
  }

  .nav {
    gap: clamp(10px, 1.2vw, 20px);
  }

  .nav a,
  .lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px clamp(11px, .9vw, 16px);
    font-size: clamp(.8rem, .76vw, .9rem);
    line-height: 1.25;
  }

  .nav .nav-cta {
    min-height: 48px;
    padding-inline: clamp(17px, 1.35vw, 23px);
  }

  .lang-toggle {
    min-width: 48px;
    margin-left: 2px;
  }
}

/* Thai glyphs need more vertical room for tone marks and descenders. */
html[lang="th"] main h1 {
  line-height: 1.5 !important;
}

html[lang="th"] body main .figma-hero h1 {
  line-height: 1.5 !important;
}

html[lang="th"] main h2 {
  line-height: 1.55 !important;
}

html[lang="th"] main h3 {
  line-height: 1.5 !important;
}

@media (max-width: 620px) {
  html[lang="th"] main h1 {
    line-height: 1.52 !important;
  }

  html[lang="th"] body main .figma-hero h1 {
    line-height: 1.52 !important;
  }

  html[lang="th"] main h2,
  html[lang="th"] main h3 {
    line-height: 1.58 !important;
  }
}
