/* DriveGas – stiluri specifice paginilor. */

@layer pages {
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 14px 7px 10px; border-radius: var(--radius-pill);
    background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .28); font-size: .875rem; font-weight: 700; letter-spacing: .02em;
  }
  .eyebrow .icon { width: 18px; height: 18px; }
  .eyebrow--text { display: block; width: auto; padding: 0; background: none; border: 0; color: var(--primary); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }

  /* ================= promoții goale, coloane text + imagine ================= */
  .empty-promo { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; padding: var(--space-5); }
  .empty-promo__avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); object-fit: cover; box-shadow: 0 0 0 3px var(--surface); }
  .empty-promo__text h3 { font-size: 1.75rem; }
  .empty-promo__text p { margin-top: 4px; }
  .empty-promo__actions { grid-column: 1 / -1; }
  @media (min-width: 768px) {
    .empty-promo { grid-template-columns: auto 1fr auto; padding: var(--space-5) var(--space-6); }
    .empty-promo__actions { grid-column: auto; }
  }

  .split { display: grid; gap: var(--space-6); align-items: center; }
  .split__copy { display: grid; gap: var(--space-4); justify-items: start; }
  .split__copy h2 { margin-top: -6px; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 5fr 6fr; gap: var(--space-9); }
    .split--reverse .split__art { order: 2; }
  }
  .card--blue .eyebrow--text, .card--tonal .eyebrow--text { color: inherit; opacity: .85; }

  /* ================= prima pagină: Carburanți și Contact ================= */
  .fuel-card { display: grid; gap: var(--space-4); padding: var(--space-5); }
  .fuel-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--primary); }
  .fuel-card__copy h3 { font-size: 1.875rem; line-height: 1.04; }
  .fuel-card__copy p { margin-top: var(--space-2); opacity: .9; }
  .fuel-card__facts { list-style: none; display: grid; gap: var(--space-2); }
  .fuel-card__facts li { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
  .fuel-card__facts strong { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; }
  .fuel-card__facts span { color: var(--text-2); font-size: var(--fs-small); }
  .fuel-card__cta { justify-self: start; }
  @media (min-width: 900px) {
    .fuel-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "icon facts" "copy facts" "cta facts"; grid-template-rows: auto auto 1fr; column-gap: var(--space-8); padding: var(--space-7); }
    .fuel-card__icon { grid-area: icon; }
    .fuel-card__copy { grid-area: copy; }
    .fuel-card__facts { grid-area: facts; align-content: center; gap: var(--space-3); }
    .fuel-card__cta { grid-area: cta; align-self: end; }
  }
  .contact-card { display: grid; gap: var(--space-5); align-items: center; }
  .contact-card__copy { display: grid; gap: var(--space-4); }
  .contact-card__copy h3 { max-width: 30ch; font-size: 1.75rem; line-height: 1.1; }
  @media (min-width: 900px) {
    .contact-card { grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--space-8); padding: var(--space-6) var(--space-7); }
    .contact-card__actions { flex-direction: column; align-items: stretch; }
  }

  /* ================= blocuri comune ================= */
  .cta-card { display: grid; gap: var(--space-4); align-items: center; }
  .cta-card h2 { font-size: var(--fs-h2); }
  .cta-card p { margin-top: 4px; opacity: .92; }
  @media (min-width: 768px) { .cta-card { grid-template-columns: 1fr auto; padding: var(--space-6) var(--space-7); } }
  .checklist { list-style: none; display: grid; gap: var(--space-3); }
  .checklist li { display: flex; gap: 12px; align-items: flex-start; }
  .checklist .icon { flex: none; margin-top: 2px; color: var(--primary); }
  /* listă de fapte: pictogramă + titlu + valoare (pagina stației, contact) */
  .st-facts { display: grid; gap: var(--space-3); list-style: none; }
  .st-facts li { display: flex; gap: var(--space-3); align-items: flex-start; }
  .st-facts .icon { flex: none; margin-top: 2px; color: var(--primary); }
  .st-facts strong { display: block; }
  .faq { display: grid; max-width: 820px; }

  /* ================= promoții ================= */
  .promo-page { padding-top: var(--space-2); }
  /* fără min-height aici: împreună cu aspect-ratio ar impune și o lățime minimă (și ar lărgi pagina peste ecran) */
  .promo-hero { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); color: #fff; background: linear-gradient(135deg, var(--hero-a), var(--hero-c)); }
  .promo-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .promo-hero__glyph { width: 120px; height: 120px; stroke-width: 1.2; opacity: .95; filter: drop-shadow(0 8px 18px rgb(0 0 0 / .25)); }
  .promo-hero__back { position: absolute; left: 14px; top: 14px; z-index: 2; color: #fff; background: rgb(0 0 0 / .3); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .promo-hero__back:hover { background: rgb(0 0 0 / .45); }
  .promo-hero__badges { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
  @media (min-width: 768px) { .promo-hero { aspect-ratio: 16 / 7; } }
  @media (min-width: 1100px) { .promo-hero { aspect-ratio: 16 / 6; } }
  .promo-body { max-width: 780px; padding-block: var(--space-5) var(--space-4); display: grid; gap: var(--space-4); }
  .promo-body h1 { font-size: var(--fs-h1); }
  .promo-body__valid { font-size: var(--fs-small); }
  .promo-body__sub { margin-top: -10px; font-size: 1.375rem; font-weight: 700; color: var(--text-2); }
  .promo-body__lead { font-size: 1.1875rem; }
  .promo-block h2 { font-size: 2rem; margin-bottom: var(--space-3); }
  .promo-body__cta { margin-top: var(--space-2); }
  .highlights { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .highlights li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-weight: 700; line-height: 1.2; }
  .highlights__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--primary-container); color: var(--on-primary-container); }
  .timeline { list-style: none; display: grid; margin-left: 6px; border-left: 2px solid var(--line-strong); }
  .timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 22px; }
  .timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
  .timeline li:last-child { padding-bottom: 0; }

  /* ================= bulina ================= */
  .bulina-hero {
    display: grid; gap: var(--space-5); align-items: center; overflow: hidden; padding: var(--space-6) var(--space-5); border-radius: var(--radius-xl); color: var(--on-hero);
    background: radial-gradient(circle at 15% 8%, rgb(255 255 255 / .22), transparent 55%), linear-gradient(145deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c)); box-shadow: var(--shadow-2);
  }
  .bulina-hero__art img { width: min(72%, 320px); margin-inline: auto; rotate: -6deg; filter: drop-shadow(0 26px 30px rgb(0 0 0 / .35)); }
  .bulina-hero__copy { display: grid; gap: var(--space-3); justify-items: start; }
  .bulina-hero__copy h2 { font-size: var(--fs-h2); }
  .bulina-hero__copy p { max-width: 46ch; color: rgb(255 255 255 / .93); }
  @media (min-width: 900px) { .bulina-hero { grid-template-columns: 1fr 1.1fr; padding: var(--space-9) var(--space-8); gap: var(--space-8); } .bulina-hero__art img { width: 360px; } }
  .bulina-note { display: grid; gap: var(--space-4); grid-template-columns: auto 1fr; align-items: start; }
  .bulina-note__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface); color: var(--secondary); }
  .bulina-note h2 { font-size: 1.875rem; margin-bottom: 8px; }
  .bulina-note p + p { margin-top: 12px; }

  /* ================= GPL, servicii, despre ================= */
  .gpl-hero {
    position: relative; overflow: hidden; display: grid; place-items: center; min-height: 190px; border-radius: var(--radius-xl); color: #fff;
    background: radial-gradient(circle at 82% 8%, rgb(255 255 255 / .2), transparent 55%), linear-gradient(135deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c));
  }
  .gpl-hero__word { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(6.5rem, 30vw, 13rem); line-height: .85; letter-spacing: .02em; }
  .gpl-hero__glyph { position: absolute; right: 5%; bottom: -12%; width: 36%; max-width: 230px; height: auto; opacity: .16; stroke-width: .8; }
  .facts { align-content: start; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .fact h3 { font-size: 1.5rem; margin: 10px 0 6px; }
  .fact p { color: var(--text-2); font-size: var(--fs-small); }
  .row--station { align-items: flex-start; }
  .row--station .chips { margin-top: 10px; }

  .quote { position: relative; margin: 0; padding: var(--space-6) var(--space-6) var(--space-7); border-radius: var(--radius-xl); background: var(--secondary-container); color: var(--on-secondary-container); }
  /* ghilimeaua mare este decor în colț: nu intră peste text */
  .quote { overflow: hidden; }
  .quote::before { content: "„"; position: absolute; right: 18px; top: -6px; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: var(--secondary); opacity: .2; pointer-events: none; }
  .quote blockquote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.05; text-wrap: balance; max-width: 26ch; }
  .quote figcaption { margin-top: var(--space-3); font-weight: 700; }
  .quote figcaption::before { content: "— "; }
  .company dl { display: grid; gap: 14px; margin-top: var(--space-4); }
  .company dt { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
  .company dd { margin: 0; }
  .drive { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
  .drive li { display: grid; gap: 8px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
  .drive__letter { font-family: var(--font-display); font-weight: 700; font-size: 5.5rem; line-height: .8; background: linear-gradient(135deg, var(--logo-blue), var(--logo-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .drive__word { font-weight: 700; font-size: 1.1875rem; }
  .drive__word strong { color: var(--primary); }
  .motto { margin-top: var(--space-4); }
  .motto__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 4rem); line-height: 1; }

  /* ================= Gepelino ================= */
  .gepe-hero {
    position: relative; overflow: hidden; display: grid; align-items: start; min-height: 560px; padding: var(--space-6) var(--space-5) 0; border-radius: var(--radius-xl); color: var(--on-hero);
    background: radial-gradient(circle at 82% 88%, rgb(255 255 255 / .24), transparent 52%), linear-gradient(145deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c));
  }
  .gepe-hero__img { position: absolute; right: 4px; bottom: 0; height: 330px; width: auto; max-width: none; filter: drop-shadow(0 20px 22px rgb(0 0 0 / .3)); }
  .gepe-hero__copy { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; max-width: 100%; }
  .gepe-hero__name { font-size: clamp(3.6rem, 18vw, 7.5rem); line-height: .85; text-shadow: 0 2px 18px rgb(0 0 0 / .18); }
  .gepe-hero__lead { font-size: 1.1875rem; max-width: 22ch; color: rgb(255 255 255 / .93); }
  @media (min-width: 768px) {
    .gepe-hero { align-items: end; min-height: 540px; padding: var(--space-9) var(--space-9) 0; }
    .gepe-hero__img { height: 520px; right: 9%; }
    .gepe-hero__copy { max-width: 48%; padding-bottom: var(--space-8); }
  }
  .verb h3 { font-size: 1.5rem; margin: 10px 0 4px; }
  .verb p { color: var(--text-2); }
  .name-card { display: grid; gap: var(--space-5); align-items: center; }
  .name-card h2 { font-size: var(--fs-h2); }
  .name-card p { margin-top: var(--space-3); max-width: 58ch; }
  .name-card__letters { display: flex; gap: 10px; }
  .name-card__letters span { display: grid; place-items: center; width: 72px; height: 90px; border-radius: 24px; background: var(--surface); color: var(--secondary); font-family: var(--font-display); font-weight: 700; font-size: 3.6rem; }
  @media (min-width: 768px) { .name-card { grid-template-columns: 1fr auto; padding: var(--space-7); } }
  .sheet-fig { margin: 0; padding: var(--space-5); }
  .sheet-fig img { width: 100%; height: auto; }

  /* ================= cariere, contact, meniu, legal, 404 ================= */
  .careers-open { display: grid; gap: var(--space-3); }
  .careers-open h2 { font-size: var(--fs-h2); }
  .careers-open__icon { background: var(--surface); color: var(--secondary); }
  .contact-h { font-size: 1.875rem; margin-bottom: 4px; }
  .menu-page { max-width: 720px; margin-inline: auto; padding-bottom: var(--space-6); }
  .menu-page .group-title:first-child { margin-top: var(--space-2); }
  .menu-page__legal { margin-top: var(--space-7); font-size: var(--fs-small); text-align: center; }
  .company { overflow-wrap: anywhere; }

  .legal { display: grid; gap: var(--space-5); padding-bottom: var(--space-6); }
  .legal__toc-desktop { display: none; }
  .legal__toc-mobile .toc { padding-bottom: 4px; }
  @media (min-width: 1024px) {
    .legal { grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
    .legal__toc-mobile { display: none; }
    .legal__toc-desktop { display: block; position: sticky; top: calc(var(--appbar-h) + 16px); max-height: calc(100dvh - var(--appbar-h) - 32px); overflow: auto; }
    .legal__toc-desktop .group-title { margin-top: 0; }
  }

  .notfound { padding-block: var(--space-6) var(--space-8); }
  .notfound__card { display: grid; gap: var(--space-5); padding: var(--space-6); overflow: hidden; }
  .notfound__img { height: 250px; width: auto; justify-self: center; }
  .notfound__copy { display: grid; gap: var(--space-3); justify-items: start; }
  .notfound__copy h1 { font-size: var(--fs-h1); }
  @media (min-width: 768px) { .notfound__card { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-8); padding: var(--space-8); } }
}
