/* ==========================================================================
   YADEA — Base
   Design tokens, font faces, reset, typography, buttons and utilities.
   Change brand colours / fonts here (see README "Colours & fonts").
   ========================================================================== */

/* ---------- Fonts (self-hosted Montserrat, see assets/fonts) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --c-brand: #ff5f00;          /* Yadea orange (taken from the logo) */
  --c-brand-hover: #e45400;
  --c-brand-soft: rgba(255, 95, 0, .1);

  /* Neutrals */
  --c-ink: #111;               /* headings */
  --c-text: #2b2b2b;           /* body copy */
  --c-muted: #7c7c7c;          /* secondary copy */
  --c-faint: #b9b9b9;          /* inactive tabs, placeholders */
  --c-line: #e2e2e2;           /* hairlines */
  --c-bg: #fff;
  --c-bg-soft: #f6f6f6;        /* product cards, news cards */
  --c-sand: #ded5cc;           /* spec table headers */
  --c-cream: #f1f0e8;          /* storage feature tiles */
  --c-footer: #1f1f1f;
  --c-footer-line: #353535;

  /* Typography */
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .75rem;             /* 12 */
  --fs-sm: .875rem;            /* 14 */
  --fs-base: 1rem;             /* 16 */
  --fs-md: 1.125rem;           /* 18 */
  --fs-lg: clamp(1.25rem, 1.05rem + .6vw, 1.5rem);      /* 20 → 24 */
  --fs-xl: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);    /* 24 → 34 */
  --fs-2xl: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);      /* 30 → 48 */
  --fs-3xl: clamp(2.125rem, 1.3rem + 2.8vw, 3.75rem);   /* 34 → 60 */

  /* Layout */
  --container: 1920px;
  --gutter: clamp(16px, 3.7vw, 72px);
  --section-y: clamp(64px, 7vw, 128px);
  --topbar-h: 0px;
  --nav-h: 64px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
  --radius-sm: 4px;
  --radius: 8px;

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --shadow: 0 12px 40px rgba(0, 0, 0, .08);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .25s;
  --dur: .5s;
  --dur-slow: .9s;

  --z-header: 100;
  --z-sidebar: 90;
  --z-overlay: 200;
}

@media (max-width: 1023px) {
  :root { --nav-h: 60px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--c-ink); font-weight: 500; line-height: 1.2; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }
::selection { background: var(--c-brand); color: #fff; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--c-brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; }
.text-brand { color: var(--c-brand); }

.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Section headings ---------- */
.section-title {
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -.01em;
}
.section-lead {
  margin-top: 18px;
  font-size: var(--fs-md);
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-c: var(--c-brand);
  --btn-fill: var(--c-brand);
  --btn-c-hover: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--btn-c);
  border: 1px solid currentColor;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* fill sweep micro-interaction */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-expo);
}
.btn:hover, .btn:focus-visible { color: var(--btn-c-hover); border-color: var(--btn-fill); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn .icon { transition: transform var(--dur) var(--ease-expo); }
.btn:hover .icon { transform: translateX(3px); }

.btn--light { --btn-c: #fff; --btn-fill: #fff; --btn-c-hover: var(--c-ink); }
.btn--dark { --btn-c: var(--c-ink); --btn-fill: var(--c-ink); --btn-c-hover: #fff; }
.btn--solid { color: #fff; border-color: var(--c-brand); }
.btn--solid::before { transform: scaleX(1); }
.btn--solid:hover { --btn-fill: var(--c-brand-hover); }
.btn--soft {
  --btn-c: var(--c-ink); --btn-fill: var(--c-ink); --btn-c-hover: #fff;
  background: var(--c-bg-soft); border-color: transparent;
}
.btn--sm { min-height: 36px; padding: 7px 16px; font-size: var(--fs-xs); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink);
  transition: color var(--dur-fast) var(--ease);
}
.link-arrow .icon { transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover { color: var(--c-brand); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Round arrow buttons used by sliders */
.round-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 22px;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.round-btn:hover { background: var(--c-brand); transform: scale(1.06); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn--light { color: var(--c-ink); background: #fff; box-shadow: var(--shadow-sm); }
.round-btn--light:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: var(--z-overlay);
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  background: var(--c-ink); color: #fff;
  font-size: var(--fs-sm);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-expo);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
