/* ============================================================
   Royal Concrete Slabs — Design System
   Direction: clean, white, engineered. The page feels like
   precision structural drawing: generous whitespace, a hairline
   grid, confident type, colour used only to signal action.
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --cyan:      #0099D6;   /* primary action only */
  --cyan-700:  #0077AA;
  --teal:      #0099D6;   /* mapped to cyan (brand consolidation) */
  --teal-700:  #0077AA;
  --navy:      #1A2B3C;   /* headings, dark sections */
  --navy-800:  #11202E;
  --ink:       #2A3340;   /* body text */
  --muted:     #6B7A8D;   /* secondary text */

  /* ---- Surfaces (white-first) ---- */
  --bg:        #FFFFFF;
  --bg-soft:   #E8EDF2;   /* alternating section tint — darker for clear separation */
  --bg-soft-2: #DDE4EB;   /* deeper tint for triple-alternating sections */
  --bg-line:   #D6DEE6;   /* hairline borders */
  --white:     #FFFFFF;

  /* ---- Status ---- */
  --amber:     #F59E0B;
  --red:       #E24B4A;

  /* ---- Type ---- */
  --font-display: 'Poppins', system-ui, sans-serif;     /* brand display */
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono:    'Poppins', ui-monospace, monospace;

  /* ---- Rhythm ---- */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(26,43,60,.06), 0 2px 8px rgba(26,43,60,.04);
  --shadow-md: 0 4px 16px rgba(26,43,60,.08), 0 12px 32px rgba(26,43,60,.06);

  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Type scale ---- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); }
/* .h3 / .h4 = "looks like an h3 / h4". Heading TAGS now follow the page outline
   (h1 > h2 > h3, no skipped levels) while these classes keep each heading's size. */
h3, .h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
h4, .h4 { font-size: 1.1rem; margin-bottom: .5em; }
p  { margin: 0 0 1rem; }
a  { color: var(--cyan-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  display: inline-block;
  margin-bottom: .75rem;
}

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--bg-line); border-bottom: 1px solid var(--bg-line); }
.section--navy { background: var(--navy); color: #DCE3EA; }
.section--navy h1, .section--navy h2:where(:not(.h3, .h4)), .section--navy h3:where(:not(.h4)), .section--navy .h3 { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--cyan); color: #fff; }
.btn--primary:hover { background: var(--cyan-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--bg-line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-700); }
.btn--teal { background: var(--cyan); color: #fff; }
.btn--teal:hover { background: var(--cyan-700); }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--bg-line);
  border-radius: var(--radius); overflow: hidden; transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- Grid helpers ---- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

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

/* Images carry width/height attributes so the browser can reserve their space
   before they load. This keeps those attributes from stretching an image whose
   width is set in CSS. Zero specificity: any other height rule still wins. */
:where(img[width][height]) { height: auto; }
