/* =============================================================
   PEOPLECAP — global.css
   Reset · Variables · Typography · Layout · Grid · Utilities
   ============================================================= */

/* ----- CSS Custom Properties ----- */
:root {
  /* Colors */
  --color-primary:       #0F6E56;
  --color-primary-light: #E1F5EE;
  --color-primary-mid:   #1D9E75;
  --color-primary-dark:  #085041;
  --color-accent:        #BA7517;
  --color-accent-light:  #FAEEDA;
  --color-stone:         #F5F3EE;
  --color-white:         #FFFFFF;
  --color-text:          #2C2C2A;
  --color-text-muted:    #5F5E5A;
  --color-border:        rgba(44, 44, 42, 0.12);
  --color-border-md:     rgba(44, 44, 42, 0.25);

  /* Semantic */
  --color-success: #1D9E75;
  --color-error:   #C0392B;
  --color-warning: #BA7517;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(44, 44, 42, 0.08);

  /* Container */
  --container-max: 1200px;
  --container-pad: 32px;

  /* Section vertical padding */
  --section-py: 48px;
}

@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    --section-py: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
    --section-py: 24px;
  }
}


/* ----- Reset ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
}


/* ----- Typography Scale ----- */

/* H1 hero */
.h1-hero {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

/* H1 page */
h1, .h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

/* H2 section */
h2, .h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
}

/* H3 card */
h3, .h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

/* H4 */
h4, .h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

/* Body large */
.body-large {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
}

/* Body default — already set on body */

/* Small / meta */
.text-small, small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Desktop overrides */
@media (min-width: 769px) {
  .h1-hero { font-size: 40px; letter-spacing: -0.5px; }
  h1, .h1  { font-size: 32px; letter-spacing: -0.4px; }
  h2, .h2  { font-size: 24px; }
  h3, .h3  { font-size: 18px; }
}


/* ----- Container ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}


/* ----- Section Wrappers ----- */
.section {
  padding: var(--section-py) 0;
}

.section-alt {
  padding: var(--section-py) 0;
  background-color: var(--color-stone);
}

.section-dark {
  padding: var(--section-py) 0;
  background-color: var(--color-text);
  color: var(--color-stone);
}


/* ----- Section Header Pattern ----- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

@media (min-width: 769px) {
  .section-title { font-size: 24px; }
}


/* ----- Grid System ----- */

/* Mobile first: single column */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 769px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ----- Utility Classes ----- */
.text-primary   { color: var(--color-primary); }
.text-muted     { color: var(--color-text-muted); }
.text-center    { text-align: center; }
.text-left      { text-align: left; }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }

.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;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--color-border);
  border: none;
  margin: var(--space-2xl) 0;
}


/* ----- Inline text link ----- */
a.link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a.link:hover { color: var(--color-primary-mid); }


/* ----- Lists (content) ----- */
.content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.content-list li {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}


/* ----- Placeholder image block ----- */
.img-placeholder {
  width: 100%;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  min-height: 200px;
}


/* ----- Skip to content (accessibility) ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-md);
}
