/* ==========================================================================
   Base: font, tokens, reset, typography, layout primitives
   Visual system: rounded inset sections, pill subtitles, navy feature
   panels; recoloured with the IKOC brand blues from the logo.
   ========================================================================== */

@font-face {
  font-family: "Rethink Sans";
  src: url("../assets/fonts/rethink-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../assets/fonts/rethink-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand (from IKOC logo) */
  --color-primary: #036fb1;        /* buttons, links: 5.3:1 with white */
  --color-primary-dark: #025a90;
  --color-accent: #0493dc;         /* sky: icons, dots, decorative fills */
  --color-accent-soft: #e3f2fb;
  --color-navy: #072c44;           /* dark panels, footer */
  --color-navy-2: #0c3a57;
  --color-heading: #0b2433;
  --color-heading-soft: #5e8199;   /* second tone in section titles */
  --color-gold: #f2b403;

  /* Neutrals */
  --color-background: #f4f6f7;
  --color-surface: #ffffff;
  --color-card: #edf1f3;
  --color-text: #4f6470;           /* 5.2:1 on background */
  --color-muted: #5d717c;
  --color-border: #dfe6ea;
  --color-white: #ffffff;
  --color-error: #b3261e;
  --color-success: #1d7a46;
  --color-whatsapp: #128c4a;

  /* Type */
  --font: "Rethink Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.95rem;
  --lh-body: 1.8;
  --measure: 68ch;

  /* Space & shape */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --inset: clamp(0px, -0.5rem + 1.6vw, 20px);
  --wrap: 1320px;
  --r-section: clamp(20px, 1rem + 1vw, 30px);
  --r-card: 20px;
  --r-pill: 999px;
  --shadow: 0 20px 50px -24px rgb(7 44 68 / 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 50; --z-float: 40; --z-menu: 60; --z-loader: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  overflow-x: clip; /* motion offsets (sliding words, zooms) never cause sideways scroll */
  margin: 0; background: var(--color-background); color: var(--color-text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.3s var(--ease); }
a:hover { color: var(--color-primary-dark); }
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
address { font-style: normal; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, h5, figure, dl, dd, blockquote { margin: 0; }

h1, h2, h3, h4, h5, .h1, .h2, .h3 { font-family: var(--font); font-weight: 600; color: var(--color-heading); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.35; }
h4, .h4 { font-size: 1.2rem; line-height: 1.4; }
.tone { color: var(--color-heading-soft); }
.lead { font-size: 1.125rem; line-height: 1.75; color: var(--color-text); max-width: 60ch; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--color-accent); }
.prose strong { color: var(--color-heading); }
.small { font-size: var(--fs-small); }
.muted { color: var(--color-muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.55); }
.framed { margin-inline: var(--inset); border-radius: var(--r-section); overflow: hidden; }
.dark { background: var(--color-navy); color: #c9d8e2; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--color-white); }
.dark .tone { color: #8fc4e6; }
.dark .lead { color: #c9d8e2; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--sm { width: 1em; height: 1em; }

.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 200; background: var(--color-navy); color: var(--color-white); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { top: var(--s-4); color: var(--color-white); }
