/* ===== ROB360 — phone fixes (2026-10-30) =====================================
   Loaded AFTER style.css (header.php). Kept in its own file so it can be
   deployed independently of parallel style.css work. */

/* "Mi a 360?" card: the client resized a paragraph to 771px in Live Edit
   (live_edit_rob360.hu.css, max-width:100%). Grid items default to
   min-width:auto, so the 66ch text grid grew to 771px and the card clipped
   the text on phones. min-width:0 keeps the saved width where it fits. */
#rolunk [style*="display:grid"] > * { min-width: 0; }

/* Számok: one column below 900px (style.css [data-grid] rule) — centre the
   numbers, and pull the R emblem fully inside the section (desktop keeps the
   intentional bleed: left:-6vw; bottom:-16vw). */
@media (max-width: 900px) {
  #szamok [data-grid] { text-align: center; }
  #szamok { padding-bottom: 190px !important; }
  #szamok [field^="szamok-image"] img {
    left: 50% !important; bottom: 36px !important; transform: translateX(-50%);
    width: 120px !important;
  }
}

/* Phone menu (header.php): neon burger in the bar, full-screen petrol sheet
   under the bar (bar z-index 60, sheet 59 — logo + close stay on top).
   Shown below 860px, where rob360.js hides the [data-nav] links. */
.rob-burger, .rob-mmenu { display: none; }
@media (max-width: 859px) {
  .rob-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; padding: 0 9px; margin-left: -4px;
    border: 0; background: transparent; cursor: pointer; flex: 0 0 auto;
  }
  .rob-burger span {
    display: block; height: 2px; border-radius: 2px; background: #B5FE01;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  }
  .rob-menu-open .rob-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .rob-menu-open .rob-burger span:nth-child(2) { opacity: 0; }
  .rob-menu-open .rob-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .rob-mmenu {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    position: fixed; inset: 0; z-index: 59;
    padding: 96px clamp(28px, 10vw, 64px) 48px;
    background: #08383C;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s linear .45s;
  }
  .rob-menu-open .rob-mmenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .rob-mmenu a {
    font-family: 'Libre Caslon Display', serif; font-size: clamp(34px, 10vw, 46px); line-height: 1.25;
    color: #D8CFC6; text-decoration: none; padding: 8px 0;
    border-bottom: 1px solid rgba(216, 207, 198, .14);
  }
  .rob-mmenu a:hover, .rob-mmenu a:focus-visible { color: #B5FE01; }
  html.rob-menu-open, html.rob-menu-open body { overflow: hidden; }
}
/* the bar now holds logo + CTA + burger: the logo gives way (header.php caps it at 42vw / 38vw) */
@media (max-width: 700px) {
  html header nav.site-nav .logo img { max-width: 32vw !important; }
  html header nav.site-nav > div:last-child { gap: 10px !important; }
}
@media (max-width: 380px) {
  html header nav.site-nav .logo img { max-width: 29vw !important; }
}

/* Hero on phones.
   1) White band on top: the bottom-arc mask (hero.php) is a circle of
      radius --arc-r (130vw) whose lowest point sits at the hero's bottom. When
      the hero is taller than 2 × 130vw (Live Edit phone preview: 100vh is the
      whole iframe), the circle also clips the TOP, and the white module
      wrapper shows. A second, solid mask layer over the top half keeps it.
   2) Portrait: hidden below 1280px in hero.php (the 808px title would cover
      it). On phones it gets its own spot — top right, where the petrol disc
      sits, above the title — and replaces that disc. */
@media (max-width: 900px) {
  /* html prefix: hero.php's own <style> sits in <body>, after this file */
  html #hero {
    -webkit-mask: linear-gradient(#000 0 0) top / 100% 50% no-repeat,
                  radial-gradient(circle var(--arc-r) at 50% calc(100% - var(--arc-r)),
                  #000 var(--arc-feather), rgba(0,0,0,var(--arc-curve)) var(--arc-mid), rgba(0,0,0,0) 100%) no-repeat;
            mask: linear-gradient(#000 0 0) top / 100% 50% no-repeat,
                  radial-gradient(circle var(--arc-r) at 50% calc(100% - var(--arc-r)),
                  #000 var(--arc-feather), rgba(0,0,0,var(--arc-curve)) var(--arc-mid), rgba(0,0,0,0) 100%) no-repeat;
  }
  #hero [data-hero-kor][style*="display:block"] {
    display: block !important;
    left: auto !important; right: 9vw !important; top: clamp(104px, 14vh, 140px) !important;
    width: min(38vw, 220px) !important; transform: none !important;
  }
  #hero:has([data-hero-kor][style*="display:block"]) [data-arc="fill"] { display: none; }
}

/* Kapcsolat + footer (client order on phones): text → contacts → button →
   logo → DSP block (2026-11-03; was DSP first). The DSP block is moved right
   after the grid by the script in footer.php; here: the client's 626px Live Edit resize stretched the
   one-column grid (paragraphs and the logo clipped), and style.css:331 puts
   the logo column first (order:-1) — reset it, and send the logo last. */
@media (max-width: 900px) {
  #kapcsolat [data-grid] > *,
  #kapcsolat [data-grid] > * > * { min-width: 0; }
  #kapcsolat [data-grid] > [data-reveal="right"] { order: 0; }
  #kapcsolat [data-grid] [field^="kapcsolat-image"] { order: 9; margin-top: 28px; }
  #kapcsolat .dsp-compliance-wrap { position: relative; z-index: 3; margin: 36px auto 0; }
  footer .site-footer { padding-left: clamp(20px, 8vw, 120px); padding-right: clamp(20px, 8vw, 120px); margin-top: 0 !important; }
}
