/* =========================================================
   CRITERION INTEGRATIONS — CSS MASTER (LOCKED)
   Version: 1.0
   ---------------------------------------------------------
   CRITERION INTEGRATIONS — CSS MASTER (LOCKED)
   Version: 2.0 CGBT
   CHANGE CONTROL:
   - This file is canonical. Do not regenerate after today.
   - All future edits must be inside the named sections [S-XXX].
   - Request changes by section ID to prevent drift.
   ========================================================= */

/* ===========================
   Criterion Integrations CSS
   =========================== */

/* [S-000] RESET */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; }

/* [S-010] TOKENS */
:root{
  --bg:#FAFAFA;
  --text:#14181d;
  --muted:#6F7782;
  --footer-bar:#1E3758;

  --font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
  
  /* cleaner feel */
  -webkit-tap-highlight-color: transparent;

  /* Layout */
  --pad:24px;
  --maxw:980px;
  --bar-h:60px;

  /* Type scale */
  --h1: clamp(26px, 3.2vw, 44px);
  --h2:14px;
  --p:16.5px;
  --lh:1.7;

  /* Navigation */
  --nav-size:11px;
  --nav-track:.22em;
  --nav-gap:18px;
}

/* [S-020] BASE */
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:var(--p);
  line-height:var(--lh);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  padding-top:var(--bar-h); /* offset for fixed header */
  padding-bottom: var(--bar-h);
}

main{ flex:1; }

/* [S-030] LAYOUT */
.container{
  width:calc(100% - (var(--pad) * 2));
  max-width:var(--maxw);
  margin-left:auto;
  margin-right:auto;
}

/* [S-040] HEADER */
.site-header{
  background:#ffffff;
  padding:14px var(--pad) 10px;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1100;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

/* Brand / logo */
a.brand{
  display:inline-flex;
  flex: 0 0 auto;
  align-self: center;
  text-decoration:none;
}

img.brand-mark{
  height:32px;          /* logo height inside bar (tunable later) */
  width:auto;
  max-width: 100%;
  display:inline;
}

.site-nav{
  display:flex;
  gap:var(--nav-gap);
  letter-spacing:var(--nav-track);
  font-size:var(--nav-size);
  text-transform:uppercase;
  color:rgba(0,0,0,.55);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  justify-content:flex-end;
}

.site-nav a{
  text-decoration:none;
  padding:10px 0;
  min-height:36px;
  display:inline-flex;
  align-items:center;
}

.site-nav a.active{ color:rgba(0,0,0,.90); }


/* [S-050] PAGE */
.page{
  padding:44px 0 0;
}

.page-hero{
  padding-bottom:30px;
}

/* [S-070] HERO */
.hero{
  /* Responsive hero-to-header spacing (scales with viewport) */
  padding: clamp(18px, 6vw, 70px) 0 clamp(18px, 4vw, 64px);
}

.hero-panel{
  max-width:1000px;
  width:100%;
  margin:0 auto;
  /* TOP = 0 (your request), responsive side + bottom spacing */
  padding: clamp(20px, 3vw, 180px) clamp(32px, 7vw, 100px);
  background-color:#ffffff;
  border-radius:10px;
}

.hero-kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 8px;
}

.hero-title{
  font-size:30px;
  letter-spacing:.01em;
  line-height:1.15;
  margin:0 0 24px;
  color:var(--text);
  font-weight: 400;
}

.hero-subtitle{
  font-size:17px;
  letter-spacing: .01em;
  line-height: 1.30;
  margin: 0 0 4px 0;
  color:var(--text);
  font-weight: 400;
}

.hero-lead{
  font-size:16px;
  line-height:1.6;
  margin:0 0 22px;
  color:var(--text);
}

.hero-muted{
  margin:0;
  color:var(--muted);
}

.hero-scope{
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}

.philosophy-lead {
  margin: 22px 0 26px;
}

/* [S-090] CONTACT */
.contact-block{
  margin-top:34px;
}
.contact-label{
  margin:0 0 2px; /* locked */
  color:rgba(0,0,0,.55);
  font-size:14px;
}
.contact-value{
  margin:0 0 22px;
  font-size:18px;
}
.contact-value a{
  color:var(--footer-bar);
  text-decoration:underline;
  text-underline-offset:4px;
}

/* [S-100] FOOTER */
.site-footer{
  background: var(--footer-bar);
  color: #ffffff;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  min-height: 60px;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}
.site-footer p{
  margin:0;
  font-size:13px;
  letter-spacing:.06em;
  display:flex;
  justify-content:center;
  min-height: 10px;
}
/* Paragraph structure: Services + About only */
.page-hero .page-hero-paragraph {
  position: relative;
  padding-left: 30px;
  margin-bottom: 6px;
}

.page-hero .page-hero-paragraph + .page-hero-paragraph{
  margin-top: 16px;
}

.page-hero .page-hero-paragraph::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  color: var(--muted);
}

 /* Optical alignment per paragraph */
.dot-we::before {
  top: 0.10em;
}

.dot-criterion::before {
  top: 0.10em;
}

.hero-action{
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.25);
  padding-bottom: 2px;
}


/* ===========================================
   [S-080] MOBILE (safe, non-drifting)
   No hamburger/menu yet. Only spacing + type scaling.
   =========================================== */
@media (max-width:720px){
  :root{
    --pad:18px;
    --h1: clamp(20px, 3.6vw, 36px);
    --nav-gap:4px;
    --nav-track:.10em;
  }
  body{
    padding-bottom: calc(var(--bar-h) + var(--ios-bar));
  }

  /* Mobile hero panel: stop desktop padding from crushing */
  .hero{
  padding: 10px var(--pad);
  padding-top: 64px;
  padding-bottom: 10px;
  }

  .hero-panel{
    padding:30px 20px 30px;     /* top / left-right / bottom */
    border-radius:10px;         /* keep your current feel */
  }

  /* Mobile header: allow wrap + reduce compression */
  .site-header{
    padding-left:var(--pad);
    padding-right:var(--pad);
    margin-bottom: 24px;
  }

  .header-row{
    display:flex;
    flex-wrap:wrap;
    row-gap:10px;
  }

  .site-nav{
   flex: 0 0 100%;
   letter-spacing: .08em;
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: right;
   gap: 8px;
   row-gap: 8px;
   flex-wrap: wrap;
   white-space: normal;
  }

  .site-nav a{
    padding:10px 0;
    min-height:16px;
    display:inline-flex;
    align-items:center;
  }

  /* iOS Safari bottom bar buffer (not provided by safe-area env on all cases) */
  :root{
    --ios-bar:56px; /* try 56px; if still clipped, use 64px */
  }

  /* Mobile touch + rhythm polish */
  .hero-panel{
    box-shadow:0 8px 28px rgba(0,0,0,.08); /* subtle depth on mobile */
  }

  .hero-title{ font-size:22px; line-height:1.18; }
  .hero-lead{ font-size:15px; line-height:1.65; }
  .site-nav{ font-size:12px; }
  .brand-mark{ height:22px; }

  /* Mobile footer: reduce footprint + respect safe area */
  .site-footer{
    margin-top:24px;
    padding:14px 0 calc(14px + env(safe-area-inset-bottom));
  }
  .site-footer p{ font-size:12px; }
}

/* Landscape phones: reduce header/footer footprint to avoid “football bar” crowding */
@media (max-width:920px) and (max-height:450px){
  .site-header{ padding-top:10px; padding-bottom:8px; }
  .hero{ padding-top:24px; padding-bottom:24px; }
  .site-footer{
    margin-top:16px;
    padding:10px 0 calc(10px + env(safe-area-inset-bottom));
  }
}
