/* ==========================================================================
   Lenovo Yoga Holiday LP · Romania
   Built from Yoga_Holiday_LP_RO_v6 (desktop 1440 / mobile 390).
   Mobile first; desktop layout from 768px, scaling fluidly up to 1440px.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
@font-face { font-family: "Gotham"; src: url("../font/gotham-book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../font/gotham-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../font/gotham-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Gotham has no ț / Ț (comma below): only these two glyphs come from Montserrat */
@font-face { font-family: "Yoga TComma"; src: url("../font/montserrat-tcomma-400.woff2") format("woff2"); font-weight: 400; unicode-range: U+021A-021B; font-display: swap; }
@font-face { font-family: "Yoga TComma"; src: url("../font/montserrat-tcomma-500.woff2") format("woff2"); font-weight: 500; unicode-range: U+021A-021B; font-display: swap; }
@font-face { font-family: "Yoga TComma"; src: url("../font/montserrat-tcomma-700.woff2") format("woff2"); font-weight: 700; unicode-range: U+021A-021B; font-display: swap; }

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #160520; }
img { display: block; max-width: 100%; height: auto; }

.yh {
  --gold: #ffce81;
  --gold-hi: #ffdca3;
  --ink: #2a0b3a;
  --soft: #e2d6ee;
  --tile: #1c092e;
  --glass: rgba(214, 186, 255, 0.17);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: "Gotham", "Yoga TComma", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.yh h1, .yh h2, .yh h3, .yh p { margin: 0; }
.yh a { color: inherit; text-decoration: none; }

.yh-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.yh-divider { display: block; width: 2px; align-self: stretch; background: rgba(255, 255, 255, 0.6); flex: none; }

/* ---- Buttons ------------------------------------------------------------ */
.yh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 34px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: background-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.yh-btn:hover { background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(255, 206, 129, 0.75); }
.yh-btn:active { transform: translateY(0); }
.yh-btn:focus-visible, .yh-tile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- Header (logos) ----------------------------------------------------- */
.yh-header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; max-width: 1440px; margin: 0 auto; pointer-events: none; }
.yh-header__aura { position: absolute; left: 24px; top: 28px; width: 124px; }
.yh-header__tag { position: absolute; right: 0; top: 26px; width: 102px; }

/* ---- 1 · Hero ----------------------------------------------------------- */
.yh-hero {
  padding: 116px 0 49px;
  text-align: center;
  background: url("../img/bg_01_hero_mobile.webp") center top / 100% 100% no-repeat;
}
.yh-hero__art { width: min(96.4vw, 470px); margin: 0 0 0 auto; }
.yh-hero__art img { width: 100%; }
.yh-hero__text { padding: 0 24px; }
.yh-h1 { font-weight: 700; font-size: 35px; line-height: 42px; margin-top: -13px !important; }
.yh-hero__sub { font-size: 16px; line-height: 24px; max-width: 326px; margin: 20px auto 0 !important; }
.yh-hero .yh-btn { margin-top: 22px; min-width: 214px; }
.yh-lockup { margin-top: 35px; padding: 0 24px; }
.yh-lockup__line { font-size: 13px; line-height: 18px; max-width: 300px; margin: 0 auto !important; }
.yh-lockup__row { display: inline-flex; align-items: center; margin-top: 18px; text-align: left; }
.yh-lockup__badge { width: 62px; }
.yh-lockup__row .yh-divider { width: 1px; margin: 0 11px; background: rgba(255, 255, 255, 0.8); height: 62px; align-self: center; }
.yh-lockup__copilot { height: 57px; width: auto; margin-left: 2px; }
.yh-lockup__proc { font-size: 11px; line-height: 15px; margin-left: 14px !important; }

/* ---- 2 · Product switcher ----------------------------------------------- */
.yh-switcher { padding: 12px 0 44px; background: url("../img/bg_02_switcher_mobile.webp") center / 100% 100% no-repeat; }
.yh-switcher__grid { display: grid; gap: 12px; }
.yh-tile {
  position: relative; display: flex; align-items: center;
  min-height: 116px; padding: 10px 62px 10px 10px;
  border-radius: 20px; overflow: hidden;
  background: #3e1668 url("../img/tile-gradient.webp") center / cover no-repeat;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.yh-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(214, 60, 190, 0.8); }
.yh-tile__thumb { flex: none; width: 118px; height: 96px; display: flex; align-items: center; justify-content: center; }
.yh-tile__thumb img { max-height: 100%; width: auto; transition: transform 0.45s var(--ease); }
.yh-tile:hover .yh-tile__thumb img { transform: scale(1.04); }
.yh-tile__name { margin-left: 12px; font-weight: 500; font-size: 14px; line-height: 19px; }
.yh-tile__arrow {
  position: absolute; right: 14px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  border-radius: 50%; background: var(--gold);
  transition: box-shadow 0.3s ease;
}
.yh-tile__arrow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -5.5px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); border-radius: 1px; transform: rotate(45deg);
}
.yh-tile:hover .yh-tile__arrow { animation: yh-nudge 1.1s ease-in-out infinite; box-shadow: 0 0 0 6px rgba(255, 206, 129, 0.18); }
@keyframes yh-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---- 3 · Product sections ----------------------------------------------- */
.yh-product { padding: 59px 0 68px; text-align: center; scroll-margin-top: 0; }
.yh-product--pro9i { background: url("../img/bg_03_pro9i_mobile.webp") center / 100% 100% no-repeat; }
.yh-product--yoga7i { background: url("../img/bg_04_yoga7i_mobile.webp") center / 100% 100% no-repeat; }
.yh-product--slim7i { background: url("../img/bg_05_slim7i_mobile.webp") center / 100% 100% no-repeat; }

.yh-kicker { color: var(--gold); font-weight: 500; font-size: 14px; line-height: 20px; }
.yh-kicker span { display: block; }
.yh-h2 { font-weight: 700; font-size: 31px; line-height: 38px; max-width: 334px; margin: 18px auto 0 !important; }

/* glass spec box: Intel line + badges + processor line (feature 3) */
.yh-spec {
  margin-top: 22px; padding: 21px 24px 17px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center;
}
.yh-spec__label { color: var(--soft); font-size: 13px; line-height: 18px; max-width: 290px; }
.yh-spec__badges { display: flex; align-items: center; margin-top: 18px; }
.yh-spec__badge { width: 62px; }
.yh-spec__badges .yh-divider { margin: 0 14px; height: 62px; align-self: center; }
.yh-spec__copilot { height: 56px; width: auto; }
.yh-spec__value { font-size: 19px; line-height: 26px; max-width: 300px; margin-top: 18px !important; }

.yh-visual { position: relative; margin: 22px auto 0; }
.yh-product--pro9i .yh-visual { width: 85.6vw; max-width: 420px; }
.yh-product--yoga7i .yh-visual { width: 80vw; max-width: 392px; }
.yh-product--slim7i .yh-visual { width: 84.1vw; max-width: 412px; }
.yh-product--pro9i .yh-visual { margin-top: 51px; }
.yh-product--yoga7i .yh-visual { margin-top: 65px; }
.yh-product--slim7i .yh-visual { margin-top: 41px; }

.yh-features { position: relative; display: grid; gap: 14px; margin-top: -30px; text-align: left; }
.yh-product--pro9i .yh-features { margin-top: -12px; }
.yh-product--yoga7i .yh-features { margin-top: -21px; }
.yh-product--slim7i .yh-features { margin-top: -23px; }
.yh-feature { border-radius: 20px; overflow: hidden; background: var(--tile); }
.yh-feature__img { position: relative; overflow: hidden; aspect-ratio: 342 / 214; }
.yh-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.yh-feature:hover .yh-feature__img img { transform: scale(1.03); }
.yh-feature__img::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 30%;
  background: linear-gradient(to bottom, rgba(28, 9, 46, 0), var(--tile)); pointer-events: none;
}
.yh-feature__text { padding: 19px 22px 16px; }
.yh-feature h3 { font-weight: 700; font-size: 19px; line-height: 25px; }
.yh-feature p { color: var(--soft); font-size: 15px; line-height: 22px; margin-top: 10px !important; }

.yh-product .yh-btn { display: flex; margin-top: 36px; width: 100%; }

/* ---- 4 · Intel block ---------------------------------------------------- */
.yh-intel {
  padding: 48px 0 50px; text-align: center;
  background: url("../img/bg_06_intel_mobile.webp") center / 100% 100% no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.yh-intel__title { font-weight: 500; font-size: 20px; line-height: 27px; max-width: 265px; margin: 0 auto !important; }
.yh-intel__logos { margin-top: 24px; display: flex; flex-direction: column; align-items: center; }
.yh-intel__aura { width: 150px; }
.yh-intel__div1 { display: none; }
.yh-intel__badges { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.yh-intel__badges img { width: 64px; }
.yh-intel__badges .yh-divider { margin: 0 12px; height: 64px; align-self: center; }
.yh-intel__badges .yh-intel__copilot { width: auto; height: 64px; }

/* ---- 5 · Closing line + CTA --------------------------------------------- */
.yh-close { padding: 54px 0 64px; text-align: center; background: url("../img/bg_07_footer_mobile.webp") center / 100% 100% no-repeat; }
.yh-close__title { font-weight: 700; font-size: 28px; line-height: 34px; max-width: 310px; margin: 0 auto !important; }
.yh-close .yh-btn { margin-top: 28px; min-width: 264px; }

/* ---- Legal -------------------------------------------------------------- */
.yh-legal { background: #56575a; padding: 30px 0 34px; text-align: center; }
.yh-legal__logo { width: 104px; margin: 0 auto; }
.yh-legal p { margin-top: 20px !important; font-size: 11px; line-height: 17px; color: rgba(255, 255, 255, 0.92); }

/* ==========================================================================
   Desktop (>= 768px) — values are the 1440px design, scaled with the viewport
   ========================================================================== */
@media (min-width: 768px) {
  .yh-wrap { padding: 0 clamp(32px, 5.56vw, 80px); }

  .yh-btn { height: clamp(48px, 4.03vw, 58px); padding: 0 clamp(30px, 3.6vw, 52px); font-size: clamp(15px, 1.18vw, 17px); }
  .yh-btn--lg { height: clamp(50px, 4.17vw, 60px); font-size: clamp(15px, 1.25vw, 18px); }

  .yh-header__aura { left: clamp(32px, 5.56vw, 80px); top: clamp(26px, 3.61vw, 52px); width: clamp(140px, 14.86vw, 214px); }
  .yh-header__tag { top: clamp(26px, 3.61vw, 52px); width: clamp(110px, 12.22vw, 176px); }

  /* hero */
  .yh-hero { padding: clamp(110px, 14.44vw, 208px) 0 clamp(50px, 5.56vw, 80px); background-image: url("../img/bg_01_hero_desktop.webp"); }
  .yh-hero__art { width: min(72.5vw, 1044px); margin: 0 auto; transform: translateX(-3.07%); }
  .yh-h1 { font-size: clamp(42px, 5.28vw, 76px); line-height: 1.132; margin-top: clamp(-2px, -0.14vw, 0px) !important; }
  .yh-hero__sub { font-size: clamp(17px, 1.67vw, 24px); line-height: 1.5; max-width: min(55.6vw, 800px); margin-top: clamp(20px, 2.36vw, 34px) !important; }
  .yh-hero .yh-btn { margin-top: clamp(24px, 2.43vw, 35px); min-width: clamp(210px, 17.36vw, 250px); }
  .yh-lockup { margin-top: clamp(40px, 4.44vw, 64px); }
  .yh-lockup__line { font-size: clamp(13px, 1.11vw, 16px); line-height: 1.3; max-width: none; }
  .yh-lockup__row { margin-top: clamp(18px, 1.8vw, 26px); }
  .yh-lockup__badge { width: clamp(62px, 5.42vw, 78px); }
  .yh-lockup__row .yh-divider { width: 1.5px; height: clamp(62px, 5.42vw, 78px); margin: 0 clamp(11px, 0.97vw, 14px); }
  .yh-lockup__copilot { height: clamp(57px, 5vw, 72px); }
  .yh-lockup__proc { font-size: clamp(11px, 0.97vw, 14px); line-height: 1.36; margin-left: clamp(14px, 1.25vw, 18px) !important; }

  /* switcher: three bento tiles */
  .yh-switcher { padding: clamp(16px, 2.08vw, 30px) 0 clamp(40px, 4.86vw, 70px); background-image: url("../img/bg_02_switcher_desktop.webp"); }
  .yh-switcher__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.78vw, 40px); }
  .yh-tile {
    flex-direction: column; justify-content: flex-start; text-align: center;
    min-height: 0; aspect-ratio: 400 / 380; padding: 5% 6% 0; border-radius: clamp(20px, 1.94vw, 28px);
  }
  .yh-tile__thumb { width: 100%; height: 61%; align-items: flex-end; }
  .yh-tile__name { margin: 3.5% 0 0; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.39; }
  .yh-tile__arrow { right: auto; left: 50%; top: auto; bottom: 4.5%; margin: 0 0 0 clamp(-19px, -1.32vw, -15px); width: clamp(30px, 2.64vw, 38px); height: clamp(30px, 2.64vw, 38px); }

  /* product sections */
  .yh-product { padding: clamp(64px, 7.64vw, 110px) 0 clamp(64px, 7.64vw, 110px); }
  .yh-product--pro9i { background-image: url("../img/bg_03_pro9i_desktop.webp"); }
  .yh-product--yoga7i { background-image: url("../img/bg_04_yoga7i_desktop.webp"); }
  .yh-product--slim7i { background-image: url("../img/bg_05_slim7i_desktop.webp"); }

  .yh-kicker { font-size: clamp(15px, 1.39vw, 20px); line-height: 1.2; }
  .yh-kicker span { display: inline; }
  .yh-h2 { font-size: clamp(34px, 4.44vw, 64px); line-height: 1.156; max-width: min(72.2vw, 1040px); margin-top: clamp(12px, 1.25vw, 18px) !important; }

  .yh-spec {
    display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center;
    column-gap: clamp(24px, 2.78vw, 40px);
    margin-top: clamp(30px, 3.75vw, 54px);
    padding: clamp(20px, 2.01vw, 29px) clamp(28px, 3.33vw, 48px) clamp(20px, 2.01vw, 29px) clamp(26px, 2.78vw, 40px);
    border-radius: clamp(18px, 1.67vw, 24px);
    text-align: left;
  }
  .yh-spec__badges { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; }
  .yh-spec__badge { width: clamp(62px, 6.39vw, 92px); }
  .yh-spec__badges .yh-divider { height: clamp(62px, 6.39vw, 92px); margin: 0 clamp(14px, 1.32vw, 19px); }
  .yh-spec__copilot { height: clamp(56px, 5.83vw, 84px); }
  .yh-spec__label { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(12px, 1.11vw, 16px); line-height: 1.3; max-width: none; }
  .yh-spec__value { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(18px, 2.08vw, 30px); line-height: 1.3; max-width: none; margin-top: clamp(6px, 0.7vw, 10px) !important; }

  .yh-product .yh-visual { margin-top: clamp(22px, 2.36vw, 34px); }
  .yh-product--pro9i .yh-visual { width: min(42.36vw, 610px); max-width: none; }
  .yh-product--yoga7i .yh-visual { width: min(38.89vw, 560px); max-width: none; }
  .yh-product--slim7i .yh-visual { width: min(41.67vw, 600px); max-width: none; }

  .yh-product .yh-features { grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.78vw, 40px); margin-top: clamp(-34px, -2.36vw, -20px); }
  .yh-feature { border-radius: clamp(20px, 1.94vw, 28px); }
  .yh-feature__img { aspect-ratio: 620 / 388; }
  .yh-feature__text { padding: clamp(18px, 1.81vw, 26px) clamp(22px, 2.5vw, 36px) clamp(18px, 1.88vw, 27px); }
  .yh-feature h3 { font-size: clamp(18px, 1.67vw, 24px); line-height: 1.33; }
  .yh-feature p { font-size: clamp(14px, 1.18vw, 17px); line-height: 1.53; margin-top: clamp(8px, 0.97vw, 14px) !important; }

  .yh-product .yh-btn { display: inline-flex; margin-top: clamp(36px, 3.89vw, 56px); width: auto; min-width: clamp(200px, 16.67vw, 240px); }

  /* intel block */
  .yh-intel { padding: clamp(44px, 4.44vw, 64px) 0 clamp(50px, 5.42vw, 78px); background-image: url("../img/bg_06_intel_desktop.webp"); }
  .yh-intel__title { font-size: clamp(20px, 2.22vw, 32px); line-height: 1.25; max-width: none; }
  .yh-intel__logos { flex-direction: row; justify-content: center; margin-top: clamp(30px, 3.33vw, 48px); }
  .yh-intel__aura { width: clamp(150px, 15.97vw, 230px); }
  .yh-intel__div1 { display: block; height: clamp(64px, 6.67vw, 96px); align-self: center; margin: 0 clamp(20px, 2.78vw, 40px); }
  .yh-intel__badges { margin-top: 0; gap: clamp(12px, 1.39vw, 20px); }
  .yh-intel__badges img { width: clamp(64px, 6.67vw, 96px); }
  .yh-intel__badges .yh-divider { height: clamp(64px, 6.67vw, 96px); margin: 0 clamp(8px, 1.39vw, 20px); }
  .yh-intel__badges .yh-intel__copilot { height: clamp(64px, 6.67vw, 96px); }

  /* closing */
  .yh-close { padding: clamp(54px, 6.67vw, 96px) 0 clamp(64px, 8.06vw, 116px); background-image: url("../img/bg_07_footer_desktop.webp"); }
  .yh-close__title { font-size: clamp(30px, 3.61vw, 52px); line-height: 1.2; max-width: none; }
  .yh-close .yh-btn { margin-top: clamp(28px, 3.06vw, 44px); min-width: clamp(240px, 20.83vw, 300px); }

  /* legal */
  .yh-legal { padding: clamp(30px, 3.06vw, 44px) 0 clamp(32px, 3.19vw, 46px); }
  .yh-legal { text-align: left; }
  .yh-legal__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .yh-legal__logo { order: 2; width: clamp(110px, 10.42vw, 150px); flex: none; margin: 0; }
  .yh-legal p { order: 1; margin-top: 0 !important; font-size: clamp(11px, 0.9vw, 13px); line-height: 1.54; max-width: 960px; }
}

/* ==========================================================================
   Light effects (progressive enhancement: without JS everything is visible)
   ========================================================================== */
.yh-js .yh-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); will-change: opacity, transform; }
.yh-js .yh-reveal.is-in { opacity: 1; transform: none; }
.yh-js .yh-tile.yh-reveal.is-in { transition: opacity 0.55s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s ease; }
.yh-js .yh-tile.yh-reveal.is-in:hover { transform: translateY(-4px); }
.yh-js .yh-btn.yh-reveal.is-in { transition: opacity 0.55s var(--ease), background-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease; }
.yh-js .yh-btn.yh-reveal.is-in:hover { transform: translateY(-2px); }

/* hero entrance: gentle fade */
.yh-js .yh-hero__art, .yh-js .yh-hero__text, .yh-js .yh-lockup { animation: yh-rise 0.8s var(--ease) both; }
.yh-js .yh-hero__text { animation-delay: 0.12s; }
.yh-js .yh-lockup { animation-delay: 0.24s; }
@keyframes yh-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yh-js .yh-reveal { opacity: 1; transform: none; transition: none; }
  .yh-js .yh-hero__art, .yh-js .yh-hero__text, .yh-js .yh-lockup { animation: none; }
  .yh-tile, .yh-btn, .yh-feature__img img, .yh-tile__thumb img, .yh-tile__arrow { transition: none; }
}
