/* ============================================================
   Sitemate Design System — base.css  v0.1.0
   ------------------------------------------------------------
   Standalone stylesheet for microsites and V3 pages. Adapted
   from web-dev/globals.css (live sitemate.com) for raw HTML/CSS,
   with all WordPress/Beaver Builder assumptions removed:
     - typography applies to elements directly (the WordPress
       .custom-font scope is dropped entirely)
     - no .bb-custom-[slug] scoping, no !important
     - sections + page layout defined here — WP/BB no longer
       supplies the outer containers (see SECTIONS below)
     - list-marker icons re-hosted locally (assets/icons/)
   Colours are the full Sitemate palette (Figma › Colours page).
   Tokens: see tokens.json. Conventions: see standards.md.
   ============================================================ */


/* == FONTS == */

@import url('https://fonts.googleapis.com/css2?family=Sunflower:wght@300;500;700&display=swap');

@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.gstatic.com/s/roboto/v47/KFO7CnqEu92Fr1Mu51QrEz0dL_nz.woff2') format('woff2');
  font-display: swap;
}


/* == CSS VARIABLES == */

:root {
  /* — Brand blue ramp (Figma › Icons & Buttons) — */
  --sm-blue:          #0085E8;  /* primary brand: links, accents, eyebrows */
  --sm-blue-light:    #D8E6F6;  /* light-blue fills, gradient-dark edge */
  --sm-blue-dark:     #0B62AF;  /* blue-button hover */
  --sm-blue-accent:   #003166;  /* deepest accent blue */
  --sm-light-red:     #F7CBCA;  /* light-red fills / soft accents */
  --sm-default-red:   #E3514D;  /* default red */

  /* — Text (Figma › Text Colours) — */
  --sm-text:          #2E3940;  /* default text */
  --sm-text-body:     #747474;  /* lighter body / muted text */
  /* slug/eyebrow text = var(--sm-blue); inverse text = #fff */

  /* — Greys, light → dark (Figma › Greys 1–5) — */
  --sm-grey-1:        #F5F6F7;  /* section + grey-button background */
  --sm-grey-2:        #EBEDEF;  /* grey-button hover */
  --sm-grey-3:        #E0E2E4;  /* borders (bento card) */
  --sm-grey-4:        #D0D2D4;
  --sm-grey-5:        #B0B2B4;

  /* — Semantic role aliases (point at the ramp above) — */
  --sm-blue-hover:    var(--sm-blue-dark);
  --sm-bg-grey:       var(--sm-grey-1);
  --sm-bg-grey-hover: var(--sm-grey-2);
  --sm-border:        var(--sm-grey-3);

  /* — Effects — */
  --soft-shadow: 0 0 12px rgba(0, 0, 0, 0.1);

  /* — 8px spacing grid — every padding / margin / gap is a multiple of 8.
       Author microsites with these; never hand-roll off-grid spacing. — */
  --space-1:   8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-12: 96px;

  /* — Fluid type scale (clamp: min → fluid(vw) → max). Max = the desktop size,
       so desktop is unchanged; smaller screens scale down smoothly with no
       breakpoints. Font size is NOT on the 8px grid (that governs spacing). — */
  --font-h1:   clamp(1.875rem, 1.6rem + 1.05vw, 2.5rem);    /* 30 → 40 */
  --font-h2:   clamp(1.5rem,   1.35rem + 0.63vw, 1.875rem); /* 24 → 30 */
  --font-h3:   clamp(1.125rem, 1.07rem + 0.2vw, 1.25rem);   /* 18 → 20 */
  --font-body: clamp(1rem,     0.95rem + 0.2vw, 1.125rem);  /* 16 → 18 */
}


/* == BASE == */

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

/* Always reserve the scrollbar gutter so page width doesn't shift between
   short and long views (e.g. toggling microsite tabs). */
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: var(--font-body);
  color: var(--sm-text);
  background: #fff;
}


/* == TYPOGRAPHY ==
   Applied directly to elements. Base body/link size is 18px. */

a {
  font-size: var(--font-body);
  text-decoration: none;
  color: var(--sm-blue);
}

h1 {
  font-family: 'Sunflower', sans-serif;
  font-weight: 500;
  font-size: var(--font-h1);
  line-height: 1.4;
  margin: 0 0 var(--space-2);      /* explicit — no UA top-margin leak */
  text-transform: capitalize;
}
h2 {
  font-family: 'Sunflower', sans-serif;
  font-weight: 500;
  font-size: var(--font-h2);
  line-height: 1.5;
  margin: 0 0 var(--space-2);      /* explicit — no UA top-margin leak */
  text-transform: capitalize;
}
h3 {
  font-size: var(--font-h3);
  line-height: 1.5;
  margin: 0 0 var(--space-1);      /* explicit */
}
h4 {
  font-size: var(--font-body);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}
h5,
.eyebrow-sm {
  font-size: 16px;
  color: var(--sm-blue);
  text-transform: uppercase;
  font-family: 'Sunflower', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 0 var(--space-1);      /* explicit; small gap to heading */
}

p {
  font-size: var(--font-body);
  line-height: 1.5;
  margin: 0 0 var(--space-2);      /* explicit — no UA top-margin leak */
  color: var(--sm-text-body);      /* lighter body text; headings keep --sm-text */
  text-wrap: pretty;
}
li {
  line-height: 1.7;
  margin: 0 0 var(--space-1) -16px;   /* explicit; -16 left offset */
  color: var(--sm-text-body);
  list-style-position: outside;
}
li a { font-weight: 500; }
ul { margin: 0 0 0 -16px; }

/* Switch headings to Sunflower where the default doesn't apply it. */
.sunflower,
.sunflower h1,
.sunflower h2 {
  font-family: 'Sunflower', sans-serif;
  font-weight: 500;
  text-wrap: pretty;
}
.sunflower h3 {
  font-family: 'Sunflower', sans-serif;
  font-weight: 500;
  text-transform: capitalize;
}

.blue-highlight { color: var(--sm-blue); }


/* == SECTIONS / LAYOUT ==
   Raw-HTML page scaffold — replaces the WordPress/BB row + column
   containers that used to supply the outer page layout. A page is a
   vertical stack of full-width <section>s: each paints its background
   edge-to-edge and owns the vertical rhythm + side gutter, while the
   inner .custom-grid centres content at max 1328px. <body> stays
   full-width (no max-width) so section backgrounds run to the
   viewport edges; horizontal containment lives on .custom-grid. */

section {
  padding: var(--space-8) var(--space-3);          /* 64 / 24 — vertical rhythm + side gutter */
}
section.section-lg    { padding: var(--space-12) var(--space-3); }  /* 96 / 24 — heroes / high-impact */
section.section-sm    { padding: var(--space-4) var(--space-3); }   /* 32 / 24 — tight bands */
section.section-flush { padding: 0; }                                /* opt out (full-bleed media) */

@media (max-width: 768px) {
  section              { padding: var(--space-6) var(--space-2); }  /* 48 / 16 */
  section.section-lg   { padding: var(--space-8) var(--space-2); }  /* 64 / 16 */
  section.section-sm   { padding: var(--space-3) var(--space-2); }  /* 24 / 16 */
}


/* == LAYOUT UTILITIES == */

/* Vertical rhythm for a text group — even spacing via gap, no per-element margins.
   Wrap eyebrow/heading/body/CTA in .stack instead of relying on element margins. */
.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.stack > * { margin: 0; }

/* Section header content group (eyebrow → title → intro → cta) — even space-2 spacing,
   kept separate from the cards/media below it. */
.stack-headings { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-3); }
.stack-headings > * { margin: 0; }

.product-logo { height: 32px; width: auto; margin-bottom: var(--space-2); }
/* Caption/lockup logos (Sitemate Mobile App, *-logo-caption) pack a descriptor
   alongside the wordmark, so they need extra height to stay legible vs standard logos. */
.product-logo--caption { height: 48px; }


/* Images in a stack must not stretch to full width — keep them left-aligned at natural size. */
.stack > img, .stack-headings > img { align-self: flex-start; }

/* Two-column feature split: text + media with a generous 40px gap, wraps on small screens.
   Use instead of .custom-grid when you want >16px between columns (the grid's column
   math is tuned to the 16px gap, so widening its gap overflows). */
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); max-width: 1328px; margin: 0 auto; }
.split > * { flex: 1 1 360px; min-width: 0; }


/* == GRID ==
   12-col flexbox grid, identical class names + breakpoints to the
   live site so bb-module markup ports over unchanged. */

.custom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 1328px;
  margin: 0 auto;
}
.custom-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  width: 100%;
}

.custom-col-1, .custom-col-2, .custom-col-3, .custom-col-4,
.custom-col-5, .custom-col-6, .custom-col-7, .custom-col-8,
.custom-col-9, .custom-col-10, .custom-col-11, .custom-col-12 {
  min-width: 0;
}

.custom-col-1  { flex: 0 0 calc(8.33% - 14.67px);  }
.custom-col-2  { flex: 0 0 calc(16.66% - 13.33px); }
.custom-col-3  { flex: 0 0 calc(25% - 12px);       }
.custom-col-4  { flex: 0 0 calc(33.33% - 10.67px); }
.custom-col-5  { flex: 0 0 calc(41.66% - 9.33px);  }
.custom-col-6  { flex: 0 0 calc(50% - 8px);        }
.custom-col-7  { flex: 0 0 calc(58.33% - 6.67px);  }
.custom-col-8  { flex: 0 0 calc(66.66% - 5.33px);  }
.custom-col-9  { flex: 0 0 calc(75% - 4px);        }
.custom-col-10 { flex: 0 0 calc(83.33% - 2.67px);  }
.custom-col-11 { flex: 0 0 calc(91.66% - 1.33px);  }
.custom-col-12 { flex: 0 0 100%;                   }

.lg-row-mod { row-gap: var(--space-4); }   /* 32 */

.bento-col {
  border: 1px solid var(--sm-border);
  padding: var(--space-3);                 /* 24 */
  border-radius: 16px;                     /* radius — off the spacing grid by design */
  background: #fff;
  display: flex;
  flex-direction: column;
}
/* No trailing margin on a card's last element — keeps even padding to the border. */
.bento-col > :last-child { margin-bottom: 0; }

/* Opt-in gap modifier for a bento-col with an image + text container — 24px gap
   between the card's children. Don't use on icon+text cards or cards with no media. */
.bento-gap { gap: var(--space-3); }

/* Image + text bento: the copy is wrapped in .bento-col-text and pushed to the bottom
   (margin-top:auto) so it aligns across cards of unequal image/copy length. The gap
   between image and text comes from .bento-gap above — not element margins. */
.bento-col-text { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-1); }
.bento-col-text > * { margin: 0; }

/* Use-case thumbnail card — a form/screen preview bleeding off the bottom of a
   dark panel, copy below. Compose:
   .bento-col.thumb-card > .thumb-preview.gradient-dark > img
                         + .bento-col-text.thumb-card-text > h3 + p */
.thumb-card { padding: 0; }
.thumb-preview { padding: var(--space-2) var(--space-2) 0; border-radius: 8px 8px 0 0; overflow: hidden; height: 240px; }   /* gap to text comes from .bento-gap */
.thumb-preview img { width: 100%; display: block; box-shadow: var(--soft-shadow); }
.thumb-card-text { padding: 0 var(--space-3) var(--space-3); }

@media (max-width: 1324px) {
  .custom-col-4, .custom-col-5, .custom-col-6, .custom-col-7, .custom-col-8 {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 992px) {
  .custom-col-1, .custom-col-2, .custom-col-3, .custom-col-4,
  .custom-col-5, .custom-col-6, .custom-col-7, .custom-col-8,
  .custom-col-9, .custom-col-10, .custom-col-11 {
    flex: 0 0 calc(50% - 8px);
  }
  .stack-medium .custom-col-1, .stack-medium .custom-col-2,
  .stack-medium .custom-col-3, .stack-medium .custom-col-4,
  .stack-medium .custom-col-5, .stack-medium .custom-col-6,
  .stack-medium .custom-col-7, .stack-medium .custom-col-8,
  .stack-medium .custom-col-9, .stack-medium .custom-col-10,
  .stack-medium .custom-col-11, .stack-medium .custom-col-12 {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .custom-grid { max-width: 720px; }
  .custom-col-1, .custom-col-2, .custom-col-3, .custom-col-4,
  .custom-col-5, .custom-col-6, .custom-col-7, .custom-col-8,
  .custom-col-9, .custom-col-10, .custom-col-11, .custom-col-12 {
    flex: 0 0 100%;
  }
}

@media (max-width: 474px) {
  .custom-grid { max-width: 100%; }
}

/* Sticky-nav layout — holds declared widths ≥993px (for sidebar
   layouts), stacks below. */
@media (min-width: 993px) {
  .sticky-nav .custom-col-1  { flex: 0 0 calc(8.33% - 14.67px);  }
  .sticky-nav .custom-col-2  { flex: 0 0 calc(16.66% - 13.33px); }
  .sticky-nav .custom-col-3  { flex: 0 0 calc(25% - 12px);       }
  .sticky-nav .custom-col-4  { flex: 0 0 calc(33.33% - 10.67px); }
  .sticky-nav .custom-col-5  { flex: 0 0 calc(41.66% - 9.33px);  }
  .sticky-nav .custom-col-6  { flex: 0 0 calc(50% - 8px);        }
  .sticky-nav .custom-col-7  { flex: 0 0 calc(58.33% - 6.67px);  }
  .sticky-nav .custom-col-8  { flex: 0 0 calc(66.66% - 5.33px);  }
  .sticky-nav .custom-col-9  { flex: 0 0 calc(75% - 4px);        }
  .sticky-nav .custom-col-10 { flex: 0 0 calc(83.33% - 2.67px);  }
  .sticky-nav .custom-col-11 { flex: 0 0 calc(91.66% - 1.33px);  }
  .sticky-nav .custom-col-12 { flex: 0 0 100%;                   }
}
@media (max-width: 992px) {
  .sticky-nav .custom-col-1, .sticky-nav .custom-col-2,
  .sticky-nav .custom-col-3, .sticky-nav .custom-col-4,
  .sticky-nav .custom-col-5, .sticky-nav .custom-col-6,
  .sticky-nav .custom-col-7, .sticky-nav .custom-col-8,
  .sticky-nav .custom-col-9, .sticky-nav .custom-col-10,
  .sticky-nav .custom-col-11, .sticky-nav .custom-col-12 {
    flex: 0 0 100%;
  }
}


/* == LIST STYLES == (icons re-hosted locally) */

.checklist-tick li {
  list-style: none;
  background-image: url("assets/icons/tick.svg");
  background-repeat: no-repeat;
  background-position: 0 0.55em;
  padding-left: 1.5em;
  margin-left: -24px;
  line-height: 2;
}

.checklist-dot li {
  list-style: none;
  background-image: url("assets/icons/dot-for-li.svg");
  background-repeat: no-repeat;
  background-position: 0 0.55em;
  padding-left: 1.5em;
  margin-left: -24px;
  line-height: 2;
}

.checklist-cross li {
  list-style: none;
  background-image: url("assets/icons/cross.svg");
  background-repeat: no-repeat;
  background-position: 0 0.5em;
  padding-left: 1.5em;
  margin-left: -24px;
  line-height: 2;
}

.checklist-number ul { counter-reset: list-counter; }
.checklist-number li {
  list-style: none;
  counter-increment: list-counter;
  position: relative;
  padding-left: 1.5em;
  margin-left: -24px;
  line-height: 2;
}
.checklist-number li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--sm-blue);
  font-weight: 400;
}


/* == BACKGROUNDS == */

/* Do NOT use as a section background — flat grey reads dull; use
   .gradient-light for a lifted section instead. Kept for small fills only. */
.sm-bg-grey { background: var(--sm-bg-grey); }

.gradient-light,
.animated-gradient-light {
  background: radial-gradient(circle at center, #F2F8FF, #FDFDFD 75%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.animated-gradient-light {
  background-size: 300% 300%;
  background-position: 0% 0%;
  animation: gradientMove 14s ease-in-out infinite;
}

@keyframes gradientMove {
  0%   { background-position: 0% 0%;   }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%;   }
}

/* gradient-dark: a decorative backdrop for IMAGES / panels only —
   never put body text on it (contrast is too low to read reliably;
   use gradient-light / animated-gradient-light with default text for
   text sections). NOT yet live on sitemate.com — push live before
   using in website modules. */
.gradient-dark,
.animated-gradient-dark {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gradient-dark {
  background:
    radial-gradient(circle at top right, var(--sm-blue), rgba(0, 133, 232, 0) 60%),
    radial-gradient(circle at bottom left, var(--sm-blue), rgba(0, 133, 232, 0) 60%),
    var(--sm-blue-light);
}

.animated-gradient-dark {
  background: radial-gradient(circle at center, var(--sm-blue), var(--sm-blue-light) 75%);
  background-size: 300% 300%;
  background-position: 0% 0%;
  animation: gradientMove 14s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animated-gradient-light,
  .animated-gradient-dark {
    animation: none;
    background-size: auto;
    background-position: center;
  }
}

.no-inner-shadow { box-shadow: none; }


/* == BUTTONS == */

.button-group {
  display: flex;
  gap: var(--space-2);          /* 16 */
  max-width: fit-content;
  margin-top: var(--space-3);   /* 24 */
}

.blue-buttons {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--sm-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: gap 0.25s ease;
  justify-content: center;
}

.text-buttons {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: gap 0.25s ease;
  justify-content: center;
}

.grey-buttons {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--sm-bg-grey);
  color: var(--sm-text);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s ease;
  justify-content: center;
}

.blue-buttons:hover { gap: var(--space-3); background: var(--sm-blue-hover); color: #fff; }
.grey-buttons:hover { background: var(--sm-bg-grey-hover); color: var(--sm-text); }
.text-buttons:hover { gap: var(--space-3); color: var(--sm-text); }

.grey-buttons a, .blue-buttons a,
.grey-buttons a:hover, .blue-buttons a:hover {
  text-decoration: none;
  color: inherit;
}

.learn-more-btn,
.learn-more-btn:hover,
.learn-more-btn a,
.learn-more-btn a:hover {
  color: var(--sm-text);
  text-decoration: none;
  display: flex;
  font-size: 16px;
  gap: var(--space-1);
  transition: 0.3s ease all;
}
.learn-more-btn img { max-width: 16px; }
.learn-more-btn:hover { gap: var(--space-2); }

@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }
}


/* == MEDIA == */

/* Feature / hero video — a lifted treatment, distinct from inline content images.
   Wrap a Vimeo/YouTube iframe; 16:9, slight scale to crop the player's letterboxing. */
.vimeo-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #fff;
  box-shadow: var(--soft-shadow);
}
.vimeo-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: scale(1.01);      /* crop the player's letterbox edges */
  transform-origin: center;
}
