/* =========================================================
   IMMIX NEXT BASE
   Shared design system for modern Immix Group pages
   File: /assets/css/immix-next-base.css
========================================================= */

/* IMMIX-NEXT-BASE-ACTIVE */


/* =========================================================
   1. DESIGN TOKENS
========================================================= */

:root {
  /* Layout */
  --ix-shell: 1180px;
  --ix-shell-wide: 1320px;
  --ix-gutter: clamp(22px, 4vw, 72px);

  /* Brand colours */
  --ix-navy-950: #061b34;
  --ix-navy-900: #092a50;
  --ix-navy-850: #0b2d54;
  --ix-navy-800: #12345d;
  --ix-navy-700: #163f73;

  --ix-green-800: #47782f;
  --ix-green-750: #4f842e;
  --ix-green-700: #568f32;
  --ix-green-650: #5f9938;
  --ix-green-600: #69a63d;
  --ix-green-100: #edf6e8;
  --ix-green-050: #f6fbf2;

  /* Text */
  --ix-ink: #20364d;
  --ix-muted: #5d7187;
  --ix-muted-2: #738397;
  --ix-white: #ffffff;

  /* Backgrounds */
  --ix-page: #f7faf6;
  --ix-soft: #f5f8f4;
  --ix-panel: rgba(255, 255, 255, 0.96);
  --ix-panel-strong: rgba(255, 255, 255, 0.985);

  /* Borders */
  --ix-line: rgba(18, 52, 93, 0.10);
  --ix-line-soft: rgba(205, 216, 209, 0.92);
  --ix-line-green: rgba(105, 166, 61, 0.30);

  /* Type */
  --ix-font-sans: "Open Sans", Inter, "Segoe UI", Arial, sans-serif;
  --ix-font-serif: "Noto Serif", Georgia, "Times New Roman", serif;

  /* Radius */
  --ix-radius-sm: 10px;
  --ix-radius-md: 16px;
  --ix-radius-lg: 22px;
  --ix-radius-xl: 28px;

  /* Shadows */
  --ix-shadow-soft: 0 10px 26px rgba(9, 42, 80, 0.07);
  --ix-shadow-card: 0 20px 52px rgba(9, 42, 80, 0.10), 0 6px 18px rgba(9, 42, 80, 0.04);
  --ix-shadow-form: 0 30px 80px rgba(9, 42, 80, 0.14), 0 8px 24px rgba(9, 42, 80, 0.06);

  /* Motion */
  --ix-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ix-speed: 190ms;
}


/* =========================================================
   2. BASE RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--ix-font-sans);
  color: var(--ix-ink);
  background: var(--ix-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden],
.ix-scrollmeta {
  display: none !important;
}


/* =========================================================
   3. LAYOUT UTILITIES
========================================================= */

.ix-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(105, 166, 61, 0.08), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(18, 52, 93, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--ix-page) 100%);
}

.ix-wrap {
  width: min(100% - var(--ix-gutter), var(--ix-shell));
  margin-inline: auto;
}

.ix-wrap--wide {
  width: min(100% - var(--ix-gutter), var(--ix-shell-wide));
  margin-inline: auto;
}

.ix-section {
  position: relative;
  padding: clamp(64px, 7vw, 104px) 0;
}

.ix-section--tight {
  padding: clamp(44px, 5vw, 72px) 0;
}

.ix-section--light {
  background: var(--ix-page);
}

.ix-section--white {
  background: #ffffff;
}

.ix-section--dark {
  color: var(--ix-white);
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 153, 56, 0.18), transparent 34%),
    linear-gradient(180deg, var(--ix-navy-850), var(--ix-navy-950));
}

.ix-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.ix-centre {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}


/* =========================================================
   4. TYPOGRAPHY
========================================================= */

.ix-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--ix-green-650);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ix-kicker::after {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: rgba(105, 166, 61, 0.72);
}

.ix-kicker--light {
  color: rgba(255, 255, 255, 0.82);
}

.ix-kicker--light::after {
  background: rgba(255, 255, 255, 0.42);
}

.ix-title,
.ix-page h1,
.ix-page h2,
.ix-page h3 {
  text-wrap: balance;
}

.ix-page p {
  text-wrap: pretty;
}

.ix-title--hero,
.ix-page h1 {
  margin: 0 0 18px;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-serif);
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ix-title--section,
.ix-page h2 {
  margin: 0 0 16px;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-serif);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.ix-title--card,
.ix-page h3 {
  margin: 0;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-serif);
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ix-section--dark .ix-title,
.ix-section--dark h1,
.ix-section--dark h2,
.ix-section--dark h3 {
  color: #ffffff;
}

.ix-lead,
.ix-body {
  color: var(--ix-muted);
  font-size: clamp(15.5px, 1.08vw, 17px);
  font-weight: 500;
  line-height: 1.68;
}

.ix-lead {
  max-width: 62ch;
  margin: 0 0 22px;
}

.ix-body {
  max-width: 64ch;
  margin: 0;
}

.ix-section--dark .ix-lead,
.ix-section--dark .ix-body,
.ix-section--dark p {
  color: rgba(220, 232, 242, 0.78);
}


/* =========================================================
   5. BUTTONS
========================================================= */

.ix-btn {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff !important;
  background:
    linear-gradient(180deg, #70ab43 0%, var(--ix-green-700) 100%);
  box-shadow:
    0 16px 34px rgba(105, 166, 61, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform var(--ix-speed) var(--ix-ease),
    box-shadow var(--ix-speed) var(--ix-ease),
    background-color var(--ix-speed) var(--ix-ease);
}

.ix-btn:hover,
.ix-btn:focus-visible {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, #78b34a 0%, #4f842e 100%);
  box-shadow:
    0 20px 42px rgba(105, 166, 61, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  outline: none;
}

.ix-btn--white {
  color: var(--ix-navy-800) !important;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.ix-btn--ghost {
  color: var(--ix-navy-800) !important;
  background: #ffffff;
  border: 1px solid rgba(18, 52, 93, 0.16);
  box-shadow: 0 10px 24px rgba(9, 42, 80, 0.06);
}

.ix-btn--ghost:hover,
.ix-btn--ghost:focus-visible {
  background: var(--ix-green-050);
}

.ix-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}


/* =========================================================
   6. CARDS
========================================================= */

.ix-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ix-radius-lg);
  background: var(--ix-panel-strong);
  border: 1px solid var(--ix-line-soft);
  box-shadow: var(--ix-shadow-card);
}

.ix-card--soft {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
}

.ix-card--green {
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(135deg, var(--ix-green-600) 0%, var(--ix-green-700) 52%, var(--ix-green-800) 100%);
}

.ix-card-pad {
  padding: clamp(24px, 3vw, 36px);
}

.ix-card-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.ix-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ix-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ix-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   7. HERO SYSTEM
========================================================= */

.ix-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 7vw, 104px) 0;
  background: var(--ix-page);
}

.ix-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 250, 246, 0.985) 0%,
      rgba(247, 250, 246, 0.955) 28%,
      rgba(247, 250, 246, 0.82) 52%,
      rgba(247, 250, 246, 0.52) 100%
    ),
    var(--ix-hero-image, none) center center / cover no-repeat;
}

.ix-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 260px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(247, 250, 246, 0) 0%,
      rgba(247, 250, 246, 0.96) 100%
    );
}

.ix-hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - var(--ix-gutter), var(--ix-shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.ix-hero__content {
  min-width: 0;
  max-width: 720px;
}


/* =========================================================
   8. FORM SYSTEM
========================================================= */

.ix-form-card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--ix-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 166, 61, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.985) 0%, rgba(250,252,249,0.975) 100%);
  border: 1px solid var(--ix-line-soft);
  box-shadow: var(--ix-shadow-form);
}

.ix-form {
  display: grid;
  gap: 14px;
}

.ix-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ix-form label > span {
  color: var(--ix-navy-800);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.ix-form label em {
  color: var(--ix-muted-2);
  font-style: normal;
  font-weight: 700;
}

.ix-form input,
.ix-form select,
.ix-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(18, 52, 93, 0.13);
  background: #ffffff;
  color: var(--ix-ink);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  box-shadow:
    inset 0 1px 1px rgba(7, 31, 61, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    border-color var(--ix-speed) var(--ix-ease),
    box-shadow var(--ix-speed) var(--ix-ease),
    background-color var(--ix-speed) var(--ix-ease);
}

.ix-form textarea {
  min-height: 118px;
  resize: vertical;
}

.ix-form input:focus,
.ix-form select:focus,
.ix-form textarea:focus {
  border-color: #9fcd7e;
  box-shadow:
    0 0 0 4px rgba(105, 166, 61, 0.16),
    inset 0 1px 1px rgba(7, 31, 61, 0.035);
}

.ix-form select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image:
    url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.4L5 5.4L9 1.4' fill='none' stroke='%23568f32' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
}


/* =========================================================
   9. CTA BANDS
========================================================= */

.ix-cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px) clamp(32px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--ix-green-650) 0%, var(--ix-green-700) 52%, var(--ix-green-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ix-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(255, 255, 255, 0.06) 58%,
      rgba(255, 255, 255, 0.13) 100%
    );
}

.ix-cta-band > * {
  position: relative;
  z-index: 1;
}

.ix-cta-band h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: var(--ix-font-serif);
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.ix-cta-band p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.75px;
  font-weight: 600;
  line-height: 1.58;
}

.ix-cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}


/* =========================================================
   10. TRUST STRIPS
========================================================= */

.ix-trust-strip {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.ix-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ix-trust-strip__item {
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ix-trust-strip__item:last-child {
  border-right: 0;
}

.ix-trust-strip strong {
  display: block;
  color: #ffffff;
  font-family: var(--ix-font-serif);
  font-size: 18px;
  line-height: 1.15;
}

.ix-trust-strip span {
  display: block;
  margin-top: 6px;
  color: rgba(220, 232, 242, 0.76);
  font-size: 13.5px;
  line-height: 1.55;
}


/* =========================================================
   11. RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
  .ix-split,
  .ix-hero__inner,
  .ix-cta-band {
    grid-template-columns: 1fr;
  }

  .ix-cta-band__actions {
    justify-content: flex-start;
  }

  .ix-card-grid--3,
  .ix-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --ix-gutter: 28px;
  }

  .ix-section {
    padding: 52px 0;
  }

  .ix-title--hero,
  .ix-page h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .ix-title--section,
  .ix-page h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .ix-card-grid--2,
  .ix-card-grid--3,
  .ix-card-grid--4,
  .ix-trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .ix-card-pad,
  .ix-form-card,
  .ix-cta-band {
    padding: 26px 22px;
  }

  .ix-cta-band__actions,
  .ix-cta-band .ix-btn,
  .ix-btn-row .ix-btn {
    width: 100%;
  }

  .ix-trust-strip__item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ix-trust-strip__item:last-child {
    border-bottom: 0;
  }

  .ix-form input,
  .ix-form select,
  .ix-form textarea {
    font-size: 16px;
  }
}

