/* =====================================================================
   SC DIGITAL SOLUTIONS — SHARED STYLESHEET
   style.css  |  v8.0  |  2026-10-22

   Loaded on all 14 pages, AFTER each page's inline <style> block, so the
   rules here win ties. It owns three things:

     1. BRAND TOKENS        — colours, spacing, radius, motion
     2. SHARED CHROME       — nav, mobile menu, footer (both variants)
     3. THE MOBILE LAYER    — everything below 768px

   Page-specific content CSS stays in each page's inline block. Those
   rules are genuinely different per page (.about-grid, .fqs, .galt and
   so on) and moving them here would buy nothing.

   DESKTOP IS DELIBERATELY UNCHANGED. The chrome values below were taken
   from the existing pages verbatim; every page was screenshotted at
   1440px before and after this refactor and diffed to prove it.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root{
  /* brand */
  --scds-primary:#1E7390;
  --scds-accent:#4AB9CE;
  --scds-dark:#0a0f1a;
  --scds-ink:#16191E;
  --scds-secondary:#334969;
  --scds-surface:#f5f7f9;
  --scds-line:rgba(22,25,30,.08);
  --scds-grad:linear-gradient(135deg,#1E7390,#4AB9CE);

  /* spacing scale (4/8 based) */
  --scds-s1:4px;  --scds-s2:8px;  --scds-s3:12px; --scds-s4:16px;
  --scds-s5:24px; --scds-s6:32px; --scds-s7:48px; --scds-s8:64px;

  /* radius */
  --scds-r-sm:8px; --scds-r-md:14px; --scds-r-lg:20px; --scds-r-pill:50px;

  /* motion */
  --scds-ease:cubic-bezier(.22,1,.36,1);
  --scds-dur:420ms;
  --scds-dur-reveal:380ms;
  --scds-stagger:50ms;

  /* chrome metrics */
  --scds-nav-h:72px;
  --scds-bar-h:0px;
}


/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
*{min-width:0}                 /* grid/flex children default to min-width:auto,
                                  which lets one wide child force a track wider
                                  than its container. This is the guard. */
html{scroll-padding-top:calc(var(--scds-nav-h) + 12px)}

/* anything outside the content flow must not widen the document */
@media(max-width:900px){
  section,footer,header,main,.ft,.section{overflow-x:clip}
}


/* ---------------------------------------------------------------------
   3. SHARED CHROME

   DELIBERATELY EMPTY AT DESKTOP WIDTHS.

   Unifying the chrome here would change the desktop site — the six blog
   posts use a dark compact footer at 20px padding while the other eight
   use a light four-column one at 64px, and declaring a single winner
   re-indents six pages. Desktop was promised unchanged, so each page's
   inline CSS still drives it. The one shared thing needed at all widths
   is hiding the call bar, which is phones-only.

   The footer unification is a one-line change here whenever it's wanted;
   it is left out on purpose, not by omission.
   --------------------------------------------------------------------- */
.scds-callbar{display:none}


/* ---------------------------------------------------------------------
   4. MOTION — fail-safe
   The reveal timing lives in the mobile layer only, for the same reason
   as above: altering it at desktop widths would change the desktop feel.
   --------------------------------------------------------------------- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
  .js [data-a],.js [data-r],.js [data-scds-a]{opacity:1!important;transform:none!important}
}


/* =====================================================================
   5. THE MOBILE LAYER  (≤768px)
   Desktop never sees any of this.
   ===================================================================== */
@media(max-width:768px){

  /* ---- 5.1 Type: readable at arm's length.
     Body copy was rendering at 13px on the homepage and 14px on
     services, because the page-level class rules out-specify a bare
     `p` selector. These overrides are scoped to phones only and are
     the one place !important is used in this file — deliberately, to
     beat that specificity rather than by accident. Small-caps labels,
     eyebrows, tags and badges are excluded so they keep their role. */
  body{-webkit-text-size-adjust:100%}
  p:not([class*="ey"]):not([class*="lbl"]):not([class*="tag"]):not([class*="cap"]),
  li:not([class*="ey"]):not([class*="lbl"]):not([class*="tag"]){
    font-size:15px!important;
    line-height:1.7!important;
  }

  /* ---- 5.2 Rhythm: one consistent vertical beat across every page.
     Several sections never got a mobile override and were still sitting
     at their desktop 80-100px top AND bottom on a phone. Heroes are
     excluded — they need the clearance for the fixed nav. */
  .section,.cta,.faq,.logos-sec,.proc,.nl-sec,.feat-sec,.grid-sec,
  .testi-sec,.main,.content{padding-left:20px;padding-right:20px}
  .section,.proc,.faq,.nl-sec,.feat-sec,.grid-sec,.testi-sec,.main{
    padding-top:52px;padding-bottom:52px}
  .content{padding-top:48px;padding-bottom:52px}
  .cta{padding-top:56px;padding-bottom:56px}
  .insta-sec{padding-top:48px;padding-bottom:48px}

  /* ---- 5.3 Cards: softer corners, lighter borders, even padding */
  .svc-card,.testi-card,.about-card,.op-card,.person-card,.info-block,
  .scds-card,.fq,.blog-card{
    border-radius:var(--scds-r-md);
    padding:20px;
  }

  /* ---- 5.4 Tap targets — WCAG 2.2 AA wants 44px */
  .nav-ham{width:44px;height:44px;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:5px;margin-right:-8px}
  .nav-mob-x{width:44px;height:44px;display:flex;align-items:center;
    justify-content:center;top:14px;right:14px}
  .nav-mob a{min-height:48px;display:flex;align-items:center;
    justify-content:center;padding:4px 20px;font-size:19px}
  .ft-soc{width:44px;height:44px}
  .ft-col a,.ft-bot a{display:inline-flex;align-items:center;min-height:40px}

  /* ---- 5.5 Full-screen menu: scrollable on short phones, staggered in */
  .nav-mob{overflow-y:auto;padding:84px 20px calc(32px + env(safe-area-inset-bottom));
    justify-content:flex-start;gap:4px;
    background:rgba(255,255,255,.97);backdrop-filter:blur(18px)}
  .nav-mob.on a{animation:scdsMenuIn 320ms var(--scds-ease) backwards}
  .nav-mob.on a:nth-child(2){animation-delay:40ms}
  .nav-mob.on a:nth-child(3){animation-delay:70ms}
  .nav-mob.on a:nth-child(4){animation-delay:100ms}
  .nav-mob.on a:nth-child(5){animation-delay:130ms}
  .nav-mob.on a:nth-child(6){animation-delay:160ms}
  .nav-mob.on a:nth-child(7){animation-delay:190ms}

  /* ---- 5.6 Reveals: transform-only and short, so text is never
          caught mid-fade. This is what made the page feel flickery. */
  .js [data-a],.js [data-r],.js [data-scds-a]{
    opacity:1!important;
    transform:translateY(14px);
    transition:transform 340ms var(--scds-ease);
  }
  .js [data-a].v,.js [data-r].v,.js [data-scds-a].scds-in,
  .js [data-a].in,.js [data-r].in{transform:none}

  /* ---- 5.7 Sticky call / quote bar — every page, not just portfolio */
  .scds-callbar{
    display:grid;grid-template-columns:1fr 1fr;position:fixed;
    left:0;right:0;bottom:0;z-index:600;
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -6px 24px rgba(10,15,26,.16);
  }
  .scds-callbar a{display:flex;align-items:center;justify-content:center;gap:8px;
    min-height:56px;font-size:12.5px;font-weight:600;letter-spacing:.08em;
    text-transform:uppercase;text-decoration:none}
  .scds-callbar .scds-callbar__call{background:var(--scds-dark);color:#fff}
  .scds-callbar .scds-callbar__quote{background:var(--scds-grad);color:#fff}
  .scds-callbar a:active{filter:brightness(.92)}
  body{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
  .nav-mob{padding-bottom:calc(72px + env(safe-area-inset-bottom))}

  /* ---- 5.8 Inputs: 16px stops iOS zooming the page on focus */
  input,select,textarea{font-size:16px;border-radius:var(--scds-r-sm)}
  .ft-nlf{flex-direction:column;gap:10px}
  .ft-nlf input,.ft-nlf button{width:100%;min-height:48px}

  /* ---- 5.9 Footer: single column, breathing room, credit legible */
  .ft{gap:28px}
  .ft-bot{flex-direction:column;align-items:flex-start;gap:14px}
  footer.ft-mini{padding:26px 20px calc(26px + env(safe-area-inset-bottom));
    flex-direction:column;align-items:flex-start;gap:10px}

  /* ---- 5.10 Long strings must never push the page sideways again */
  .scds-live-url,.ft-col a,.info-val,.scds-host{overflow-wrap:anywhere}
}

@keyframes scdsMenuIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

/* very small phones */
@media(max-width:360px){
  .scds-callbar a{font-size:11.5px;letter-spacing:.05em}
  .section{padding-top:44px;padding-bottom:44px}
}
