/* ==========================================================================
   AXIRO — Brand Stylesheet
   Single source of truth for the Axiro US-facing site.
   Import this on every page:  <link rel="stylesheet" href="axiro.css">
   ========================================================================== */

/* ---- 1. Design tokens --------------------------------------------------- */
:root {
  /* Brand core (from the logo) */
  --teal:        #016D77;   /* primary brand colour — the wordmark */
  --cream:       #F4F1EA;   /* primary background — warm off-white */
  --plum:        #5D3A62;   /* accent only — the period mark        */

  /* Teal ramp */
  --teal-900:    #003136;
  --teal-800:    #01474D;
  --teal-700:    #015962;
  --teal-600:    #016D77;
  --teal-500:    #2F878F;
  --teal-400:    #67A7AD;
  --teal-300:    #9EC8CB;
  --teal-200:    #C3D7D3;
  --teal-100:    #E1E6E1;

  /* Plum ramp (accent — used sparingly) */
  --plum-700:    #462C4A;
  --plum-600:    #5D3A62;
  --plum-500:    #866B89;
  --plum-300:    #BEB0C0;
  --plum-100:    #E5DFDC;

  /* Neutrals */
  --ink:         #1A2B2D;   /* primary text — near-black with teal cast */
  --ink-soft:    #455456;   /* secondary text */
  --ink-faint:   #6E7B7C;   /* captions, meta */
  --cream-deep:  #EBE6DA;   /* recessed surfaces, dividers on cream */
  --cream-card:  #FBFAF6;   /* raised card surface */
  --white:       #FFFFFF;
  --line:        #DDD8CB;   /* hairline borders on cream */

  /* Semantic */
  --bg:          var(--cream);
  --surface:     var(--cream-card);
  --text:        var(--ink);
  --brand:       var(--teal-600);
  --accent:      var(--plum-600);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Outfit", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (1.25 ratio, 18px base) */
  --t-xs:   0.778rem;   /* 14px  — meta, eyebrow */
  --t-sm:   0.889rem;   /* 16px  — captions */
  --t-base: 1rem;       /* 18px  — body */
  --t-md:   1.25rem;    /* 22.5  — lead paragraph */
  --t-lg:   1.563rem;   /* 28px  — small headings */
  --t-xl:   2.441rem;   /* 44px  — section headings */
  --t-2xl:  3.815rem;   /* 69px  — page / hero headings */
  --t-3xl:  5.96rem;    /* 107px — display, used rarely */

  /* Spacing scale (8px base) */
  --s-1:  0.5rem;
  --s-2:  1rem;
  --s-3:  1.5rem;
  --s-4:  2rem;
  --s-5:  3rem;
  --s-6:  4rem;
  --s-7:  6rem;
  --s-8:  8rem;
  --s-9:  12rem;

  /* Structure */
  --maxw:        1180px;
  --maxw-text:   680px;
  --radius:      4px;
  --radius-lg:   10px;
  --shadow-sm:   0 1px 2px rgba(0,49,54,0.06), 0 2px 8px rgba(0,49,54,0.05);
  --shadow-md:   0 4px 12px rgba(0,49,54,0.08), 0 12px 32px rgba(0,49,54,0.07);
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
ul { list-style: none; }

/* ---- 3. Typography ------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--t-md); font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 560;
  line-height: 1.0;
  letter-spacing: -0.035em;
}

p { max-width: var(--maxw-text); }
.lead {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.meta {
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* The Axiro period — brand signature, a plum square after a word */
.period::after {
  content: "";
  display: inline-block;
  width: 0.42em; height: 0.42em;
  background: var(--accent);
  margin-left: 0.06em;
  vertical-align: baseline;
}

/* ---- 4. Layout ---------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6); }
.measure { max-width: var(--maxw-text); }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal-600); color: var(--cream); }
.btn--primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-300); }
.btn--ghost:hover { border-color: var(--teal-600); background: var(--teal-100); }

.btn--accent { background: var(--plum-600); color: var(--white); }
.btn--accent:hover { background: var(--plum-700); box-shadow: var(--shadow-md); }

.btn--lg { font-size: var(--t-base); padding: 1.1em 2em; }

.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- 6. Cards ----------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.card__num {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  color: var(--teal-300);
  font-weight: 560;
}

/* ---- 7. Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,234,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s-2);
}
.logo {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
}
.logo::after {
  content: ""; width: 0.32em; height: 0.32em;
  background: var(--accent); display: inline-block; margin-left: 0.04em;
}
.nav { display: flex; gap: var(--s-4); align-items: center; }
.nav a {
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.nav a:hover { color: var(--teal-700); }

/* ---- 8. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--teal-900);
  color: var(--teal-200);
  padding-block: var(--s-7) var(--s-4);
}
.site-footer a { color: var(--teal-200); transition: color 0.15s var(--ease); }
.site-footer a:hover { color: var(--cream); }
.site-footer h4 { color: var(--cream); font-size: var(--t-sm);
  text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); }

/* ---- 9. Utilities ------------------------------------------------------- */
.bg-teal   { background: var(--teal-800); color: var(--cream); }
.bg-teal h1,.bg-teal h2,.bg-teal h3 { color: var(--cream); }
.bg-deep   { background: var(--teal-900); color: var(--teal-100); }
.bg-card   { background: var(--surface); }
.text-center { text-align: center; }
.mt-1{margin-top:var(--s-1)}.mt-2{margin-top:var(--s-2)}.mt-3{margin-top:var(--s-3)}
.mt-4{margin-top:var(--s-4)}.mt-5{margin-top:var(--s-5)}.mt-6{margin-top:var(--s-6)}

/* Reveal-on-load — staggered entrance */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ---- 10. Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --t-2xl: 2.9rem; --t-3xl: 3.8rem; --t-xl: 2rem;
  }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--s-6); }
}
@media (max-width: 600px) {
  :root { --t-2xl: 2.3rem; --t-xl: 1.7rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding-inline: var(--s-3); }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
