/* =============================================================
   Arkhé — Foundation tokens (colors + type)
   ============================================================= */

/* Display + Body: General Sans (ITF / Fontshare — official Arkhé brand font).
   Served locally from /fonts/. */
@font-face {
  font-family: 'General Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/GeneralSans-Regular.woff2') format('woff2'),
       url('fonts/GeneralSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/GeneralSans-Italic.woff2') format('woff2'),
       url('fonts/GeneralSans-Italic.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/GeneralSans-Medium.woff2') format('woff2'),
       url('fonts/GeneralSans-Medium.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('fonts/GeneralSans-MediumItalic.woff2') format('woff2'),
       url('fonts/GeneralSans-MediumItalic.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/GeneralSans-Semibold.woff2') format('woff2'),
       url('fonts/GeneralSans-Semibold.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: italic; font-weight: 600; font-display: swap;
  src: url('fonts/GeneralSans-SemiboldItalic.woff2') format('woff2'),
       url('fonts/GeneralSans-SemiboldItalic.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/GeneralSans-Bold.woff2') format('woff2'),
       url('fonts/GeneralSans-Bold.woff') format('woff');
}
@font-face {
  font-family: 'General Sans';
  font-style: italic; font-weight: 700; font-display: swap;
  src: url('fonts/GeneralSans-BoldItalic.woff2') format('woff2'),
       url('fonts/GeneralSans-BoldItalic.woff') format('woff');
}

:root {
  /* ---------- BRAND ----------
     Arkhé's identity is built on three colors: black, white, and ochre.
     - Black is the structural canvas + brand stamp (`--color-canvas-dark`).
     - White is the catalogue canvas (`--color-canvas-light`).
     - Ochre amber is the only accent color — used for eyebrows, CTAs,
       italic headline highlights, and the featured surface. */
  --color-primary:        #000000;  /* Brand stamp — black */
  --color-on-primary:     #ffffff;

  /* Ochre amber — the single brand accent. Pairs with white text.
     Reserve for: eyebrow labels, italic headline accents, featured
     plan/surface, primary brand CTAs ("Fale conosco"). */
  --color-accent-ochre:        #d4922a;
  --color-accent-ochre-bright: #e4a744;
  --color-accent-ochre-deep:   #a8721e;
  --color-on-ochre:            #ffffff;

  /* ---------- SURFACE ---------- */
  --color-canvas-light:    #ffffff;
  --color-canvas-dark:     #000000;
  --color-surface-soft:    #f4f4f4;
  --color-surface-card:    #ffffff;
  --color-surface-deep:    #0a0a0a;
  --color-surface-elevated:#16181a;

  /* ---------- HAIRLINES / DIVIDERS ---------- */
  --color-hairline-light:  #e2e2e7;
  --color-hairline-dark:   rgba(255,255,255,0.12);
  --color-hairline-strong: #191c1f;
  --color-divider-soft:    rgba(255,255,255,0.06);

  /* ---------- TEXT ---------- */
  --color-ink:        #191c1f;
  --color-body:       #1f2226;
  --color-charcoal:   #3a3d40;
  --color-mute:       #505a63;
  --color-ash:        #5c5e60;
  --color-stone:      #8d969e;
  --color-faint:      #c9c9cd;
  --color-on-dark:        #ffffff;
  --color-on-dark-mute:   rgba(255,255,255,0.72);

  /* ---------- SEMANTIC / ACCENT PALETTE
       Used INSIDE product illustrations & iconography only.
       Never as button surfaces. */
  --color-accent-teal:        #00a87e;
  --color-accent-blue-link:   #376cd5;
  --color-accent-light-blue:  #007bc2;
  --color-accent-light-green: #428619;
  --color-accent-green-text:  #006400;
  --color-accent-yellow:      #b09000;
  --color-accent-warning:     #ec7e00;
  --color-accent-pink:        #e61e49;
  --color-accent-danger:      #e23b4a;
  --color-accent-deep-red:    #8b0000;
  --color-accent-brown:       #936d62;
  --color-link:               #376cd5;

  /* ---------- TYPE FAMILY ----------
     General Sans is the official Arkhé brand font — used for both display
     and body. Weights: 400 body / 500 display / 600 UI labels / 700 emphasis. */
  --font-display: 'General Sans', system-ui, sans-serif;
  --font-body:    'General Sans', system-ui, sans-serif;

  /* ---------- TYPE SCALE (size / line-height / tracking) ---------- */
  --type-display-xxl-size: 136px;  --type-display-xxl-lh: 1.0;  --type-display-xxl-ls: -2.72px;
  --type-display-xl-size:   80px;  --type-display-xl-lh:  1.0;  --type-display-xl-ls:  -0.8px;
  --type-display-lg-size:   48px;  --type-display-lg-lh:  1.21; --type-display-lg-ls:  -0.48px;
  --type-display-md-size:   40px;  --type-display-md-lh:  1.2;  --type-display-md-ls:  -0.4px;
  --type-heading-lg-size:   32px;  --type-heading-lg-lh:  1.19; --type-heading-lg-ls:  -0.32px;
  --type-heading-md-size:   24px;  --type-heading-md-lh:  1.33; --type-heading-md-ls:  0;
  --type-heading-sm-size:   20px;  --type-heading-sm-lh:  1.4;  --type-heading-sm-ls:  0;
  --type-body-lg-size:      18px;  --type-body-lg-lh:     1.56; --type-body-lg-ls:     -0.09px;
  --type-body-md-size:      16px;  --type-body-md-lh:     1.5;  --type-body-md-ls:     0.24px;
  --type-body-sm-size:      14px;  --type-body-sm-lh:     1.43;
  --type-caption-size:      13px;  --type-caption-lh:     1.4;

  /* ---------- RADII ---------- */
  --radius-none: 0px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* ---------- SPACING ---------- */
  --space-xxs:   4px;
  --space-xs:    6px;
  --space-sm:    8px;
  --space-md:    14px;
  --space-lg:    16px;
  --space-xl:    24px;
  --space-xxl:   32px;
  --space-xxxl:  48px;
  --space-block:   80px;
  --space-section: 88px;
  --space-band:    120px;

  /* ---------- SEMANTIC ROLES ---------- */
  --bg:        var(--color-canvas-light);
  --bg-dark:   var(--color-canvas-dark);
  --fg:        var(--color-ink);
  --fg-mute:   var(--color-mute);
  --fg-on-dark:var(--color-on-dark);
  --hairline:  var(--color-hairline-light);
  --brand:     var(--color-primary);
}

/* =============================================================
   BASE TYPOGRAPHY
   ============================================================= */
html, body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-canvas-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display heading utilities — Space Grotesk @ 500, tight stacking */
.t-display-xxl,
.t-display-xl,
.t-display-lg,
.t-display-md,
.t-heading-lg,
.t-heading-md,
.t-heading-sm {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
}

.t-display-xxl { font-size: var(--type-display-xxl-size); line-height: var(--type-display-xxl-lh); letter-spacing: var(--type-display-xxl-ls); }
.t-display-xl  { font-size: var(--type-display-xl-size);  line-height: var(--type-display-xl-lh);  letter-spacing: var(--type-display-xl-ls); }
.t-display-lg  { font-size: var(--type-display-lg-size);  line-height: var(--type-display-lg-lh);  letter-spacing: var(--type-display-lg-ls); }
.t-display-md  { font-size: var(--type-display-md-size);  line-height: var(--type-display-md-lh);  letter-spacing: var(--type-display-md-ls); }
.t-heading-lg  { font-size: var(--type-heading-lg-size);  line-height: var(--type-heading-lg-lh);  letter-spacing: var(--type-heading-lg-ls); }
.t-heading-md  { font-size: var(--type-heading-md-size);  line-height: var(--type-heading-md-lh);  letter-spacing: var(--type-heading-md-ls); }
.t-heading-sm  { font-size: var(--type-heading-sm-size);  line-height: var(--type-heading-sm-lh); }

/* Body utilities — Inter */
.t-body-lg      { font-family: var(--font-body); font-weight: 400; font-size: var(--type-body-lg-size);   line-height: var(--type-body-lg-lh);   letter-spacing: var(--type-body-lg-ls); }
.t-body-md      { font-family: var(--font-body); font-weight: 400; font-size: var(--type-body-md-size);   line-height: var(--type-body-md-lh);   letter-spacing: var(--type-body-md-ls); }
.t-body-md-bold { font-family: var(--font-body); font-weight: 600; font-size: var(--type-body-md-size);   line-height: var(--type-body-md-lh);   letter-spacing: 0.16px; }
.t-body-sm      { font-family: var(--font-body); font-weight: 400; font-size: var(--type-body-sm-size);   line-height: var(--type-body-sm-lh); }
.t-caption      { font-family: var(--font-body); font-weight: 400; font-size: var(--type-caption-size);   line-height: var(--type-caption-lh); }
.t-button-lg    { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.4; }
.t-button-md    { font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.5; letter-spacing: 0.24px; }
.t-button-sm    { font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.43; }
.t-link-emph    { font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.5; letter-spacing: 0.24px; }

/* Semantic element defaults — applied when no utility class is present */
h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--type-display-xl-size);  line-height: 1.0;  letter-spacing: var(--type-display-xl-ls); margin: 0 0 var(--space-xl) 0; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--type-display-lg-size);  line-height: 1.21; letter-spacing: var(--type-display-lg-ls); margin: 0 0 var(--space-lg) 0; }
h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--type-heading-lg-size);  line-height: 1.19; letter-spacing: var(--type-heading-lg-ls); margin: 0 0 var(--space-md) 0; }
h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--type-heading-md-size);  line-height: 1.33; margin: 0 0 var(--space-sm) 0; }
h5 { font-family: var(--font-display); font-weight: 500; font-size: var(--type-heading-sm-size);  line-height: 1.4; margin: 0 0 var(--space-sm) 0; }
p  { font-family: var(--font-body); font-weight: 400; font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); letter-spacing: var(--type-body-md-ls); margin: 0 0 var(--space-lg) 0; color: var(--color-body); }
a  { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

/* =============================================================
   MOBILE RESPONSIVE OVERRIDES
   The page sections are built with fixed inline multi-column
   grids (React style objects) sized for desktop. Below the
   breakpoint we force every such grid to a single column and
   tighten side padding, since there is no per-breakpoint JS state.
   ============================================================= */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .arkhe-nav {
    padding: 0 16px !important;
  }

  .arkhe-nav-secondary {
    display: none !important;
  }

  .arkhe-nav-cta {
    padding: 0 14px !important;
    font-size: 13px !important;
    gap: 6px !important;
    white-space: nowrap;
  }
}
