/* ==========================================================================
   Yashvi Overseas — site stylesheet
   Plain CSS, no build step. Served directly from public/css/app.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, extracted from the source design)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #111214;
  --paper: #F4F2ED;
  --orange: #E4572E;
  --orange-deep: #B8400F;
  --orange-light: #FF7A50;
  --card: #141618;
  --card-border: #2A2C30;
  --rule: #DCD8CE;
  --rule-strong: #CFCBC1;
  --alt: #EFEDE7;
  --muted: #8B8880;
  --muted-light: #B6B3AB;
  --muted-dark: #55534E;
  --label: #7C7A74;
  --body-muted: #6B6862;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Archivo, Helvetica, Arial, sans-serif;
  --shell: clamp(18px, 4vw, 44px);
  --max: 1500px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

.y-mono { font-family: var(--mono); }
.y-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;
}
.y-shell { max-width: var(--max); margin: 0 auto; }
.y-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.y-skip:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Responsive grid helpers (carried over from the source design)
   -------------------------------------------------------------------------- */
[data-g3] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { [data-g3] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { [data-g3] { grid-template-columns: minmax(0, 1fr); } }

[data-g4] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) { [data-g4] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { [data-g4] { grid-template-columns: minmax(0, 1fr); } }

[data-g8] { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1180px) { [data-g8] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px)  { [data-g8] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

[data-g7] { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1180px) { [data-g7] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px)  { [data-g7] { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
[data-y-strip]  { display: none !important; }
[data-y-burger] { display: none !important; }

@media (max-width: 980px) {
  [data-y-inline] { display: none !important; }
  [data-y-strip][data-open="true"] { display: flex !important; }
  [data-y-burger] { display: flex !important; }
}
@media (max-width: 560px) {
  [data-y-utility-links] { display: none !important; }
  [data-y-cta] { display: none !important; }
}

[data-y-burger]:hover { border-color: var(--orange) !important; }

/* --------------------------------------------------------------------------
   6. Hover and focus states
   The source design expressed these as style-hover / style-focus attributes,
   which have no HTML equivalent — they become real classes here.
   -------------------------------------------------------------------------- */
.y-btn-orange:hover { background: #fff; color: var(--ink); }
.y-btn-ink:hover    { background: #fff; color: var(--orange); }
.y-btn-ghost:hover  { border-color: #fff; color: #fff; }
.y-btn-ghost-fill:hover { background: var(--ink); color: #fff; }
.y-btn-submit:hover { background: var(--ink); }
.y-nav-link:hover   { color: var(--orange); }
.y-footer-link:hover { color: var(--orange); }
.y-card:hover       { border-color: var(--orange); }
.y-tile-invert:hover { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
.y-tile-orange:hover { background: var(--ink) !important; border-color: var(--ink) !important; }
.y-btn-outline-dark:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.y-jump:hover { border-color: var(--orange); color: var(--orange); }
.y-tile-ask:hover { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff; }
.y-card-dark:hover  { border-color: var(--orange); }
.y-dropzone:hover   { border-color: var(--orange); }

.y-field:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(228, 87, 46, .18);
  outline-offset: -1px;
}

/* --------------------------------------------------------------------------
   7. Contact form — buyer-type chips, validation, flash
   -------------------------------------------------------------------------- */
.y-chip { flex: 1; }
.y-chip input { position: absolute; opacity: 0; pointer-events: none; }
.y-chip span {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 8px;
  cursor: pointer;
  background: #fff;
  color: var(--muted-dark);
}
.y-chip input:checked + span { background: var(--ink); color: #fff; }
.y-chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: -2px; }

.y-error {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #B3261E;
  margin-top: 6px;
}
.y-field-invalid { border-color: #B3261E !important; }

.y-flash {
  background: #0E3B21;
  color: #D8F3E2;
  border-left: 4px solid #2E9E63;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Client-side flash: hidden until app.js finds an invalid field on submit. */
[data-contact-flash] { display: none; }
[data-contact-flash][data-visible="true"] { display: block; }

/* --------------------------------------------------------------------------
   8. Product page category filter
   -------------------------------------------------------------------------- */
[data-category-empty] { display: none; }
[data-category-empty][data-visible="true"] { display: block; }
[data-category-tile][hidden] { display: none !important; }
