/* =========================================================
   FORMLINE HOME PAGE
   Homepage Section Styling
   File: /site/css/home.css

   Purpose:
   - Home-page-specific styling only
   - Loaded from the CMS HTML module on the home page
   - Does not affect other pages unless manually included
   ========================================================= */


/* =========================================================
   01. Hero Section
   ========================================================= */

.fl-home-hero .fl-home-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(44px, 5vw, 72px) !important;
  line-height: 0.98 !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
}

.fl-home-hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
  min-height: 560px;
  max-width: 1400px;
  margin: 0 auto;
}

.fl-home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px 72px 64px;
}

.fl-home-kicker {
  margin: 0 0 18px 0;
  color: #0d2c54;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fl-home-hero .fl-home-title {
  font-size: 42px !important;
}

.fl-home-hero-line {
  width: 72px;
  height: 3px;
  margin: 30px 0 26px 0;
  background: #0d2c54;
}

.fl-home-hero-text {
  max-width: 470px;
  margin: 0;
  color: #3b444b;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
}

.fl-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.fl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fl-btn:hover {
  transform: translateY(-1px);
}

.fl-btn-primary {
  color: #ffffff !important;
  background: #0d2c54;
  border: 1px solid #0d2c54;
  box-shadow: 0 10px 24px rgba(13, 44, 84, 0.18);
}

.fl-btn-primary:hover {
  color: #ffffff !important;
  background: #123b70;
  border-color: #123b70;
}

.fl-btn-secondary {
  color: #0d2c54 !important;
  background: #ffffff;
  border: 1px solid #aeb8c2;
}

.fl-btn-secondary:hover {
  color: #0d2c54 !important;
  background: #f4f6f7;
  border-color: #0d2c54;
}

.fl-home-hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.fl-home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.fl-home-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 24%,
    rgba(255, 255, 255, 0) 48%
  );
  pointer-events: none;
}


/* =========================================================
   02. Responsive Home Page
   ========================================================= */

@media (max-width: 980px) {
  .fl-home-hero-inner {
    grid-template-columns: 1fr;
  }

  .fl-home-hero-copy {
    padding: 64px 28px 48px 28px;
  }

  .fl-home-hero-media,
  .fl-home-hero-media img {
    min-height: 380px;
  }

  .fl-home-hero-media::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .fl-home-hero-copy {
    padding: 48px 22px 40px 22px;
  }

  .fl-home-hero h1 {
    font-size: 42px;
  }

  .fl-home-hero-text {
    font-size: 17px;
  }

  .fl-home-hero-actions {
    gap: 12px;
  }

  .fl-btn {
    width: 100%;
  }
}

/* =========================================================
   03. Home Intro / System Logic Band
   ========================================================= */

.fl-home-intro {
  background: #f4f6f7;
  border-bottom: 1px solid #e4e8eb;
}

.fl-home-intro-inner {
  display: grid;
  grid-template-columns: 320px minmax(520px, 1fr);
  gap: 64px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 40px;
}

.fl-home-intro-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 190px;
  padding-right: 22px;
  border-right: 1px solid #d8dde0;
}

.fl-profile-sketch {
  width: 280px;
  max-width: 100%;
  height: auto;
}

.fl-profile-sketch * {
  vector-effect: non-scaling-stroke;
}

.fl-home-intro-content {
  max-width: 720px;
}

.fl-home-intro-title {
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

.fl-home-intro-text {
  margin: 0;
  color: #3b444b;
  font-size: 17px;
  line-height: 1.65;
  max-width: 680px;
}

@media (max-width: 820px) {
  .fl-home-intro-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 24px;
  }

  .fl-home-intro-visual {
    justify-content: flex-start;
    min-height: auto;
    padding-right: 0;
    padding-bottom: 28px;
    border-right: 0;
    border-bottom: 1px solid #d8dde0;
  }

  .fl-profile-sketch {
    width: 220px;
  }
}

/* =========================================================
   04. Product Family Cards
   ========================================================= */

.fl-home-products {
  background: #ffffff;
  border-bottom: 1px solid #e4e8eb;
}

.fl-home-products-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px 64px 40px;
}

.fl-home-section-label {
  display: inline-block;
  margin: 0 0 10px 0;
  color: #111418;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.fl-home-section-line {
  width: 56px;
  height: 3px;
  margin: 0 0 30px 0;
  background: #0d2c54;
}

.fl-home-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.fl-home-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 265px;
  padding: 28px 22px 24px 22px;
  text-align: center;
  text-decoration: none !important;
  background: #ffffff;
  border: 1px solid #d8dde0;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(17, 20, 24, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fl-home-product-card:hover {
  transform: translateY(-3px);
  border-color: #b8c4ce;
  box-shadow: 0 12px 28px rgba(17, 20, 24, 0.08);
  text-decoration: none !important;
}

.fl-home-product-icon {
  width: 110px;
  height: 78px;
  margin-bottom: 18px;
  color: #0d2c54;
}

.fl-home-product-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fl-home-product-code {
  margin: 0;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.fl-home-product-mini-line {
  width: 34px;
  height: 2px;
  margin: 10px 0 12px 0;
  background: #0d2c54;
}

.fl-home-product-desc {
  margin: 0;
  color: #3b444b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

@media (max-width: 1200px) {
  .fl-home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fl-home-products-inner {
    padding: 44px 24px 52px 24px;
  }

  .fl-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .fl-home-product-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   05. Why Formline / Feature Icons Row
   ========================================================= */

.fl-home-why {
  background: #f4f6f7;
  border-bottom: 1px solid #e4e8eb;
}

.fl-home-why-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(620px, 1.5fr);
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 40px;
}

.fl-home-why-copy {
  max-width: 360px;
}

.fl-home-why-title {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 28px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

.fl-home-why-line {
  width: 48px;
  height: 3px;
  margin: 0 0 20px 0;
  background: #0d2c54;
}

.fl-home-why-text {
  margin: 0;
  color: #3b444b;
  font-size: 15px;
  line-height: 1.6;
}

.fl-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-left: 1px solid #d8dde0;
}

.fl-home-feature {
  min-height: 150px;
  padding: 14px 18px 10px 18px;
  text-align: center;
  border-right: 1px solid #d8dde0;
}

.fl-home-feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px auto;
  color: #0d2c54;
}

.fl-home-feature-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fl-home-feature-title {
  margin: 0;
  color: #111418;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .fl-home-why-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fl-home-why-copy {
    max-width: 620px;
  }

  .fl-home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #d8dde0;
  }

  .fl-home-feature {
    border-bottom: 1px solid #d8dde0;
  }
}

@media (max-width: 620px) {
  .fl-home-why-inner {
    padding: 44px 24px;
  }

  .fl-home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   06. Home CTA Section - Compact Banner Version
   ========================================================= */

.fl-home-cta {
  background: #ffffff;
  border-bottom: 1px solid #e4e8eb;
}

.fl-home-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: stretch;
  max-width: 1320px;
  min-height: 160px;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

.fl-home-cta-media {
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.fl-home-cta-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  object-position: center;
}

.fl-home-cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 48%,
    rgba(255,255,255,0.88) 100%
  );
  pointer-events: none;
}

.fl-home-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 250px 26px 48px;
  background: transparent;
  overflow: hidden;
}

/* Keep CTA text and button above the decorative line drawing */
.fl-home-cta-content > * {
  position: relative;
  z-index: 3;
}

.fl-home-cta-title {
  max-width: 560px;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

.fl-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fl-home-cta-drawing {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 230px;
  height: 145px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

.fl-home-cta-drawing svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Make the drawing a little cleaner on the white background */
.fl-home-cta-drawing svg g {
  stroke: #a8b1bb;
}

@media (max-width: 1100px) {
  .fl-home-cta-inner {
    grid-template-columns: 320px 1fr;
  }

  .fl-home-cta-content {
    padding: 24px 170px 24px 34px;
  }

  .fl-home-cta-drawing {
    width: 160px;
    height: 108px;
    right: 18px;
    opacity: 0.26;
  }
}

@media (max-width: 820px) {
  .fl-home-cta-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fl-home-cta-media,
  .fl-home-cta-media img {
    min-height: 180px;
  }

  .fl-home-cta-content {
    padding: 30px 24px 34px 24px;
  }

  .fl-home-cta-drawing {
    display: none;
  }
}


/* =========================================================
   07. Home Footer Replacement
   ========================================================= */

/* Hide the old platform footer on the home page only.
   This works because home.css is only loaded by the home page module. */
#site_footer {
  display: none;
}

.fl-home-footer {
  background: #ffffff;
  border-top: 1px solid #e4e8eb;
}

.fl-home-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.75fr)) minmax(220px, 0.9fr);
  gap: 38px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 40px 42px 40px;
}

.fl-footer-brand {
  max-width: 280px;
}

.fl-footer-wordmark {
  margin: 0 0 8px 0;
  color: #111418;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.fl-footer-submark {
  margin: 0 0 18px 0;
  color: #66727a;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fl-footer-tagline {
  margin: 0 0 20px 0;
  color: #3b444b;
  font-size: 14px;
  line-height: 1.5;
}

.fl-footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fl-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #0d2c54 !important;
  text-decoration: none !important;
  border: 1px solid #d8dde0;
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fl-footer-social a:hover {
  background: #f4f6f7;
  border-color: #0d2c54;
}

.fl-footer-col-title {
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.fl-footer-links {
  display: grid;
  gap: 7px;
}

.fl-footer-links a {
  color: #3b444b !important;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none !important;
}

.fl-footer-links a:hover {
  color: #0d2c54 !important;
  text-decoration: underline !important;
}

.fl-footer-legal {
  padding-left: 32px;
  border-left: 1px solid #d8dde0;
}

.fl-footer-legal p {
  margin: 0;
  color: #66727a;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .fl-home-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .fl-footer-legal {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid #d8dde0;
  }
}

@media (max-width: 680px) {
  .fl-home-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 24px;
  }

  .fl-footer-brand {
    max-width: none;
  }
}