/* ============================================================
   STRATUMCGI — GLOBAL CSS
   Design tokens, reset, typography, layout utilities
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  --color-slate:      #1A1A1A;
  --color-gold:       #E8D89C;
  --color-gold-light: #F4E8B2;
  --color-cream:      #FAF8F3;
  --color-cream-dark: #F5F1E8;
  --color-stone:      #6B7280;
  --color-granite:    #9CA3AF;
  --color-white:      #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);

  --container-max:    1280px;
  --container-pad-sm: 1.5rem;
  --container-pad-lg: 3rem;

  --section-pad-sm: 5rem;
  --section-pad-lg: 8rem;

  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-slate);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   ------------------------------------------------------------ */
.text-xs   { font-size: 0.75rem;   line-height: 1.5; }
.text-sm   { font-size: 0.875rem;  line-height: 1.5; }
.text-base { font-size: 1rem;      line-height: 1.6; }
.text-lg   { font-size: 1.125rem;  line-height: 1.6; }
.text-xl   { font-size: 1.25rem;   line-height: 1.6; }
.text-2xl  { font-size: 1.5rem;    line-height: 1.3; }
.text-3xl  { font-size: 1.875rem;  line-height: 1.2; }
.text-4xl  { font-size: 2.25rem;   line-height: 1.15; }
.text-5xl  { font-size: clamp(2.2rem, 7vw, 3rem);      line-height: 1.1; }
.text-6xl  { font-size: clamp(2.45rem, 8vw, 3.75rem);  line-height: 1.05; }
.text-7xl  { font-size: clamp(2.7rem, 9vw, 4.5rem);    line-height: 1.0; }
.text-8xl  { font-size: clamp(3rem, 11vw, 6rem);       line-height: 1.0; }

@media (min-width: 768px) {
  .md-text-5xl { font-size: 3rem; line-height: 1.1; }
}

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.15em; }
.leading-relaxed { line-height: 1.7; }
.leading-tight   { line-height: 1.15; }

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad-sm);
  padding-right: var(--container-pad-sm);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--container-pad-lg);
    padding-right: var(--container-pad-lg);
  }
}

.section {
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--section-pad-lg);
    padding-bottom: var(--section-pad-lg);
  }
}

/* ------------------------------------------------------------
   5. COLOUR UTILITIES
   ------------------------------------------------------------ */
.bg-slate      { background-color: var(--color-slate); }
.bg-cream      { background-color: var(--color-cream); }
.bg-cream-dark { background-color: var(--color-cream-dark); }
.bg-white      { background-color: var(--color-white); }
.bg-gold       { background-color: var(--color-gold); }
.bg-gold-light { background-color: var(--color-gold-light); }

.text-white   { color: var(--color-white); }
.text-slate   { color: var(--color-slate); }
.text-stone   { color: var(--color-stone); }
.text-granite { color: var(--color-granite); }
.text-gold    { color: var(--color-gold); }
.text-gold-dark { color: #c9a84c; }

/* ------------------------------------------------------------
   6. GRID HELPERS
   ------------------------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 640px) {
  .services-grid .service-card.is-expanded {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .services-grid .service-card.is-expanded {
    grid-column: span 3;
  }
}

.grid-2-lg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); gap: 5rem; align-items: start; }
}

/* ------------------------------------------------------------
   7. FLEX HELPERS
   ------------------------------------------------------------ */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-row     { display: flex; flex-direction: row; }
.flex-1       { flex: 1 1 0%; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start   { display: flex; align-items: flex-start; gap: 1rem; }
.flex-wrap    { flex-wrap: wrap; }

@media (min-width: 768px) {
  .md-flex-row { flex-direction: row; }
}

.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }

.gap-1        { gap: 0.25rem; }
.gap-2        { gap: 0.5rem; }
.gap-3        { gap: 0.75rem; }
.gap-4        { gap: 1rem; }
.gap-6        { gap: 1.5rem; }
.gap-8        { gap: 2rem; }
.gap-10       { gap: 2.5rem; }

/* ------------------------------------------------------------
   8. HOVER & STATE HELPERS
   ------------------------------------------------------------ */
.hover-border-gold:hover { border-color: var(--color-gold) !important; }
.border-transparent { border-color: transparent; }
.border-white { border-color: var(--color-white); }
.border-opacity-20 { border-color: rgba(255, 255, 255, 0.2); }
.group:hover .group-hover-bg-gold { background-color: var(--color-gold) !important; }
.group:hover .group-hover-text-white { color: var(--color-white) !important; }
.group:hover .group-hover-text-slate { color: var(--color-slate) !important; }
.transition-base { transition: all var(--transition-base); }

/* ------------------------------------------------------------
   9. SCROLLBAR HIDE
   ------------------------------------------------------------ */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------
   9. PROSE (Legal / Content pages)
   ------------------------------------------------------------ */
.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
}
.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose p,
.prose ul {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: #374151;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------
   10. MISC HELPERS
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.not-italic { font-style: normal; }
.break-all  { word-break: break-all; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-none  { max-width: none; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left   { text-align: left; }

@media (min-width: 768px) {
  .md-text-left { text-align: left; }
  .md-text-center { text-align: center; }
}

.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-2xl  { border-radius: 2rem; }
.rounded-3xl  { border-radius: 3rem; }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

@media (min-width: 768px) {
  .md-p-12 { padding: 3rem; }
}

.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-1  { margin-top: 0.25rem; }

.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.shrink-0 { flex-shrink: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.flex { display: flex; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-3 { gap: 0.75rem; }

@media (min-width: 1024px) {
  .lg-hidden { display: none; }
}

/* Utility classes added for process.html */
.border          { border: 1px solid; }
.border-cream-dark { border-color: var(--color-cream-dark); }
.border-gold     { border-color: var(--color-gold); }
.border-l-4      { border-left-width: 4px; border-left-style: solid; }
.rounded-r-xl    { border-top-right-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); }
.rotate-12       { transform: rotate(12deg); }
.h-auto          { height: auto; }
.mb-1            { margin-bottom: 0.25rem; }
.mt-0\.5         { margin-top: 0.125rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
