/*
 * SHEFLINE Brand & Digital Design System v05
 * Global tokens, locally hosted typography and executable type roles.
 * Page-specific styles may compose these tokens but must not redefine them.
 */

@font-face {
  font-family: "Manrope";
  src: url("/wp-content/themes/shefline_new/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Manrope";
  src: url("/wp-content/themes/shefline_new/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Exo 2";
  src: url("/wp-content/themes/shefline_new/fonts/exo2-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Exo 2";
  src: url("/wp-content/themes/shefline_new/fonts/exo2-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Bruno Ace SC";
  src: url("/wp-content/themes/shefline_new/fonts/bruno-ace-sc-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F;
}

:root {
  --sf-color-dark: #262423;
  --sf-color-surface: #463f3c;
  --sf-color-accent: #ff590d;
  --sf-color-white: #ffffff;
  --sf-color-neutral: #dad9d8;

  --sf-font-body: "Manrope", Arial, Helvetica, sans-serif;
  --sf-font-accent: "Exo 2", Arial, Helvetica, sans-serif;
  --sf-font-display: "Bruno Ace SC", "Exo 2", Arial, Helvetica, sans-serif;

  --sf-space-1: 8px;
  --sf-space-2: 12px;
  --sf-space-3: 16px;
  --sf-space-4: 24px;
  --sf-space-5: 32px;
  --sf-space-6: 48px;
  --sf-space-7: 64px;
  --sf-section-space: clamp(64px, 7vw, 104px);
  --sf-content-width: 1224px;
  --sf-copy-width: 72ch;
  --sf-touch-target: 46px;

  /* Reference-calibrated typography: powder-painting discipline, shared site-wide. */
  --sf-type-h1-size: clamp(36px, 3.8vw, 60px);
  --sf-type-h1-line: 1.06;
  --sf-type-h1-weight: 540;
  --sf-type-h1-tracking: -0.02em;
  --sf-type-h1-width: 18ch;

  --sf-type-h2-size: clamp(28px, 2.8vw, 42px);
  --sf-type-h2-line: 1.12;
  --sf-type-h2-weight: 520;
  --sf-type-h2-tracking: -0.015em;
  --sf-type-h2-width: 22ch;

  --sf-type-h3-size: clamp(22px, 1.8vw, 28px);
  --sf-type-h3-line: 1.24;
  --sf-type-h3-weight: 540;
  --sf-type-h3-tracking: -0.01em;

  --sf-type-lead-size: clamp(16px, 1.3vw, 20px);
  --sf-type-lead-line: 1.5;
  --sf-type-body-size: 16px;
  --sf-type-body-line: 1.58;
  --sf-type-small-size: 14px;
  --sf-type-small-line: 1.5;
  --sf-type-micro-size: 10px;
  --sf-type-micro-line: 1.4;
  --sf-type-eyebrow-size: 12px;
  --sf-type-eyebrow-line: 1.4;
  --sf-type-button-size: 15px;
  --sf-type-button-line: 1.2;
  --sf-type-display-size: 12px;
  --sf-type-display-line: 1.4;
  --sf-type-display-hero-size: clamp(96px, 12vw, 160px);

  /* Compatibility with the established theme API. */
  --main-font: var(--sf-font-body);
  --second-font: var(--sf-font-accent);
  --heading-font: var(--sf-font-display);
  --brown: var(--sf-color-dark);
  --light-brown: var(--sf-color-surface);
  --orange: var(--sf-color-accent);
  --white: var(--sf-color-white);
  --light-white: var(--sf-color-neutral);
}


/* Executable typography roles. Page CSS composes layout around these roles. */
[data-sf-design-system] [data-sf-type="h1"] {
  max-inline-size: var(--sf-type-h1-width);
  font-family: var(--sf-font-accent);
  font-size: var(--sf-type-h1-size);
  font-weight: var(--sf-type-h1-weight);
  line-height: var(--sf-type-h1-line);
  letter-spacing: var(--sf-type-h1-tracking);
  text-wrap: balance;
}

[data-sf-design-system] [data-sf-type="h1"][data-sf-heading-font="accent"] {
  font-family: var(--sf-font-accent);
}

[data-sf-design-system] [data-sf-type="h2"] {
  max-inline-size: var(--sf-type-h2-width);
  font-family: var(--sf-font-accent);
  font-size: var(--sf-type-h2-size);
  font-weight: var(--sf-type-h2-weight);
  line-height: var(--sf-type-h2-line);
  letter-spacing: var(--sf-type-h2-tracking);
  text-wrap: balance;
}

[data-sf-design-system] [data-sf-type="h3"] {
  font-family: var(--sf-font-body);
  font-size: var(--sf-type-h3-size);
  font-weight: var(--sf-type-h3-weight);
  line-height: var(--sf-type-h3-line);
  letter-spacing: var(--sf-type-h3-tracking);
  text-wrap: pretty;
}

[data-sf-design-system] [data-sf-type="lead"] {
  max-inline-size: 66ch;
  font-family: var(--sf-font-body);
  font-size: var(--sf-type-lead-size);
  font-weight: 400;
  line-height: var(--sf-type-lead-line);
}

[data-sf-design-system] [data-sf-type="body"] {
  max-inline-size: var(--sf-copy-width);
  font-family: var(--sf-font-body);
  font-size: var(--sf-type-body-size);
  font-weight: 400;
  line-height: var(--sf-type-body-line);
}

[data-sf-design-system] [data-sf-type="small"] {
  font-family: var(--sf-font-body);
  font-size: var(--sf-type-small-size);
  font-weight: 400;
  line-height: var(--sf-type-small-line);
}

[data-sf-design-system] [data-sf-type="micro"] {
  font-family: var(--sf-font-accent);
  font-size: var(--sf-type-micro-size);
  font-weight: 600;
  line-height: var(--sf-type-micro-line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-sf-design-system] [data-sf-type="eyebrow"] {
  font-family: var(--sf-font-accent);
  font-size: var(--sf-type-eyebrow-size);
  font-weight: 650;
  line-height: var(--sf-type-eyebrow-line);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-sf-design-system] [data-sf-type="display"] {
  font-family: var(--sf-font-display);
  font-size: var(--sf-type-display-size);
  font-weight: 400;
  line-height: var(--sf-type-display-line);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-sf-design-system] [data-sf-type="display-hero"] {
  font-family: var(--sf-font-display);
  font-size: var(--sf-type-display-hero-size);
  font-weight: 400;
  line-height: 0.8;
}

.button,
[data-sf-design-system] .button[data-sf-type="button"] {
  min-block-size: var(--sf-touch-target);
  font-family: var(--sf-font-body);
  font-size: var(--sf-type-button-size);
  font-weight: 600;
  line-height: var(--sf-type-button-line);
}

.button:focus-visible,
[data-sf-design-system] .button[data-sf-type="button"]:focus-visible {
  outline: 2px solid var(--sf-color-white);
  outline-offset: 3px;
}

/* Shared strict-profile touch contract for consent links rendered by CF7. */
[data-sf-design-system] .wpcf7-list-item-label a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--sf-touch-target);
}
[data-sf-design-system] .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
[data-sf-design-system] .wpcf7 select,
[data-sf-design-system] .wpcf7 textarea {
  min-block-size: var(--sf-touch-target);
}

/* CURRENT Scope019/048: site-wide action variants. The named ownership layer
 * protects component states from late page CSS; layout width remains a slot role. */
@layer sf-action-contract {
  :is(.button, :is(a,button,input,label)[data-sf-type="button"], .sf37-button, .sf13c-button, .sfliq3-button,
      .sf47-button, .sf48-button, .sf51-button, .sf52-button, .sf53-button,
      .sf091-cookie-button, .sf091-upload-button) {
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 46px !important;
    min-block-size: 46px !important;
    max-width: 100% !important;
    padding: 11px 19px !important;
    border: 1px solid var(--sf-color-accent, #ff590d) !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: var(--sf-color-white, #fff) !important;
    font-family: var(--sf-font-body, Manrope, Arial, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: normal !important;
    cursor: pointer !important;
    transform: none !important;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease !important;
    &:is(.button--main, [class*="button--primary"], [data-sf-button-variant="primary"]) {
      background-color: var(--sf-color-accent, #ff590d) !important;
    }
    &:is(.sf091-cookie-button--tertiary, [data-sf-button-variant="text"]) {
      border-color: transparent !important;
      text-decoration: underline !important;
      text-underline-offset: .2em !important;
    }
    &:hover:not(:disabled, [aria-disabled="true"], [aria-busy="true"]) {
      background-color: var(--sf-color-accent, #ff590d) !important;
      background-image: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) !important;
      border-color: var(--sf-color-accent, #ff590d) !important;
      color: #fff !important;
    }
    &:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px !important; }
    &:active:not(:disabled, [aria-disabled="true"], [aria-busy="true"]) {
      background-color: var(--sf-color-accent, #ff590d) !important;
      background-image: linear-gradient(rgba(38,36,35,.18), rgba(38,36,35,.18)) !important;
      border-color: var(--sf-color-accent, #ff590d) !important;
    }
    &:is(:disabled, [aria-disabled="true"], [aria-busy="true"]) {
      opacity: .5 !important;
      background-image: none !important;
      cursor: not-allowed !important;
      transform: none !important;
    }
    &:is(.sf091-cookie-button--tertiary, [data-sf-button-variant="text"]):is(:hover,:active):not(:disabled, [aria-disabled="true"], [aria-busy="true"]) {
      background: transparent !important; border-color: transparent !important;
      color: var(--sf-color-accent, #ff590d) !important;
    }
    &[hidden] { display: none !important; }
    > [aria-hidden="true"] { color: currentColor !important; }
    &::after { color: currentColor !important; margin-inline: 0 !important; transform: none !important; }
  }
  :is(a.sf51-context-link, a[data-sf-link-variant="context"]) {
    text-decoration: underline !important;
    text-decoration-color: var(--sf-color-accent, #ff590d) !important;
    text-underline-offset: .2em !important;
    transition: color .16s ease !important;
    &:is(:hover, :focus-visible) { color: var(--sf-color-accent, #ff590d) !important; }
    &:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px !important; }
    &:active { color: #fff !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    :is(.button, [data-sf-type="button"], .sf091-cookie-button, .sf091-upload-button) { transition: none !important; }
  }
}
