/* ============================================================
   ZENOV SHARED MOBILE LAYER
   Loaded last on every page (after site-shell.css and each page's own styles), so the
   rules here win without !important. Put phone and tablet changes here, not in the pages.

   Breakpoint scale (use only these):
     1180px  small laptop: wide grids drop a column
      980px  tablet: phone menu, single-column page layouts
      680px  phone: compact sections, two-up grids
      430px  small phone: tightest spacing
   Nothing in this file applies above 980px.
   ============================================================ */


/* ============================================================
   TABLET AND PHONE (980px and below)
   ============================================================ */
@media (max-width:980px) {

  /* Menu: no submenus on phones and tablets. Each item is a plain link to its page. */
  #mainNav .dropdown,
  #mainNav [class*="-menu"] { display:none; }
  #mainNav .nav-trigger::before,
  #mainNav .chevron { display:none; }

  /* Form fields at 16px, so iPhones do not zoom in when a field is tapped. */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),
  textarea:not([data-zm]):not([hidden]),
  select:not([data-zm]):not([hidden]) { font-size:16px; }

  /* Services page: the service jump menu sits above the cards as a row of buttons that
     stays under the header while the cards scroll past (it used to fall below all eight cards).
     minmax(0, 1fr) and min-width:0 let the row shrink to the screen and scroll sideways. */
  .services-layout--route { grid-template-columns:minmax(0, 1fr); }
  .services-layout--route .services-nav-rail {
    order:0;
    min-width:0;
    position:sticky;
    top:var(--zm-header-h, 68px);
    z-index:20;
    margin:0 -24px;
    padding:10px 24px;
    border:0;
    border-radius:0;
    background:rgba(255,255,255,.96);
    box-shadow:0 1px 0 #E4E9F2;
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
  }
  .services-layout--route .service-route-stack { order:1; }
  /* Jumping to a service clears the header and the pinned row above it. */
  .service-route-item,
  .service-route-block { scroll-margin-top:140px; }
  .services-nav-rail .service-route-nav {
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-padding-inline:24px;
    scrollbar-width:none;
  }
  .services-nav-rail .service-route-nav::-webkit-scrollbar { display:none; }
  .services-nav-rail .service-route-link {
    flex:0 0 auto;
    min-height:38px;
    padding:0 14px;
    border:1px solid #DCE5F1;
    border-radius:999px;
    background:#fff;
    color:#1A2F5E;
    font-size:11.5px;
    white-space:nowrap;
  }
  .services-nav-rail .service-route-link:last-of-type { border-bottom:1px solid #DCE5F1; }
  .services-nav-rail .service-route-link.is-active { border-color:#1A2F5E; background:#1A2F5E; color:#fff; }
  .services-nav-rail .service-route-arrow,
  .services-nav-rail .service-route-link.is-active .service-route-arrow { display:none; }
}


/* ============================================================
   PHONE (680px and below)
   ============================================================ */
@media (max-width:680px) {

  /* ---------- Homepage ---------- */

  /* Hero: the video fills the visible screen in portrait, like a reel. svh is the screen
     height with the browser's address bar showing, so the hero fits exactly. */
  .hero-reveal,
  .hero-reveal .single_hero { height:100vh; height:100svh; }
  .hero-video { object-fit:cover; object-position:50% 50%; }

  /* USP band: the four figures two by two instead of one column. */
  .zenov-usp-band { padding:24px 18px; }
  .zenov-usp-list { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px 16px; }
  .zenov-usp-figure { margin-bottom:8px; font-size:1.9rem; }
  .zenov-usp-title { font-size:14px; }
  .zenov-usp-sub { font-size:12px; }

  /* Cost comparison: the whole calculator (inputs, results and chart) fits one phone screen. */
  #cost-calculator.zenov-calculator-section { padding:36px 12px 44px; }
  #cost-calculator .zenov-calculator-shell { padding:14px 14px 14px; border-radius:12px; }
  #cost-calculator .zenov-calculator-header { margin-bottom:8px; }
  #cost-calculator .zenov-calculator-kicker { margin-bottom:6px; }
  #cost-calculator .zenov-calculator-header h2 { font-size:17px; }
  #cost-calculator .zenov-calculator-note { margin-top:4px; font-size:12.5px; line-height:1.45; }
  #cost-calculator .zenov-currency-control { margin-top:6px; }
  #cost-calculator .zenov-calculator-employee-control { gap:2px 12px; padding:6px 0 8px; }
  #cost-calculator .zenov-calculator-inputs { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; padding:8px 0 10px; }
  #cost-calculator .zenov-calculator-field label { min-height:2.6em; margin-bottom:4px; font-size:11px; line-height:1.3; }
  #cost-calculator .zenov-calculator-field input { height:40px; padding-right:6px; }
  #cost-calculator .zenov-calculator-results { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); }
  #cost-calculator .zenov-calculator-result { padding:8px 12px; }
  #cost-calculator .zenov-calculator-result + .zenov-calculator-result { border-top:0; }
  #cost-calculator .zenov-calculator-result:nth-child(3),
  #cost-calculator .zenov-calculator-result:nth-child(4) { border-top:1px solid var(--calculator-line-soft); }
  #cost-calculator .zenov-calculator-result:nth-child(2)::before,
  #cost-calculator .zenov-calculator-result:nth-child(4)::before { display:block; }
  #cost-calculator .zenov-calculator-result-label { font-size:11px; }
  #cost-calculator .zenov-calculator-result-value { font-size:18px; }
  #cost-calculator .zenov-calculator-layout { gap:10px; }
  #cost-calculator .zenov-savings-chart { gap:6px; padding:10px 12px 10px; }
  #cost-calculator .zenov-savings-title { font-size:14px; }
  #cost-calculator .zenov-savings-sub { margin-top:2px; }
  #cost-calculator .zenov-savings-plot { --plot:60px; --headroom:18px; }
  #cost-calculator .zenov-savings-label { padding-top:5px; }
  #cost-calculator .zenov-chart-roi { gap:2px 10px; margin:0; padding-top:8px; }
  #cost-calculator .zenov-chart-roi-value { font-size:18px; }
  #cost-calculator .zenov-calculator-footnotes { margin-top:12px; }


  /* ---------- About ---------- */

  /* Who we are: the four figures two by two. */
  .identity-figures { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:20px; }
  .identity-figures > div { grid-template-columns:minmax(0, 1fr); gap:6px; padding:18px 0; }
  .identity-figures dt { font-size:1.85rem; }

  /* Why Zenov: compact cards, icon beside the title instead of above it. */
  .why-grid { gap:10px; }
  .why-item { display:grid; grid-template-columns:40px minmax(0, 1fr); column-gap:14px; align-items:start; min-height:0; padding:16px; }
  .why-item > * { grid-column:2; }
  .why-item > .why-icon { grid-column:1; grid-row:1 / span 3; width:40px; height:40px; margin:0; border-radius:10px; }
  .why-icon svg { width:24px; height:24px; }
  .why-item h3 { margin:0 0 3px; font-size:16px; }
  .why-item .why-tagline { margin:0 0 6px; }
  .why-item p { font-size:13px; line-height:1.5; }


  /* ---------- Services ---------- */

  /* The page has 18px side padding on phones; the pinned row runs edge to edge. */
  .services-layout--route .services-nav-rail { margin:0 -18px; padding:10px 18px; }
  .services-nav-rail .service-route-nav { scroll-padding-inline:18px; }

  /* Photo cards: a stronger dark fade, so white text stays readable on light photos
     (for example the laptop photo on Social Media & Marketing). */
  .service-route-scrim {
    height:100%;
    background:linear-gradient(180deg, rgba(6,12,26,.18) 0%, rgba(7,14,28,.62) 34%, rgba(6,12,24,.9) 62%, rgba(6,12,24,.96) 100%);
  }


  /* ---------- Contact: scheduler in the style of Calendly's phone booking page ---------- */

  #schedule-consultation .scheduler-shell { border-radius:12px; box-shadow:0 10px 28px rgba(20,33,61,.08); }
  #schedule-consultation .meeting-panel { padding:18px 16px 16px; }
  #schedule-consultation .brand-dot { width:36px; height:36px; margin-bottom:12px; box-shadow:none; }
  #schedule-consultation .brand-dot svg { width:18px; height:18px; }
  #schedule-consultation .meeting-title { font-size:22px; }
  #schedule-consultation .meeting-description { margin-top:8px; font-size:13.5px; }
  #schedule-consultation .meeting-meta { gap:8px; margin-top:14px; }
  #schedule-consultation .meta-row { font-size:13px; }
  #schedule-consultation .meeting-promise { margin-top:14px; padding-top:0; }
  #schedule-consultation .promise-label { font-size:11px; }
  #schedule-consultation .promise-list { display:flex; flex-wrap:wrap; gap:8px 14px; }
  #schedule-consultation .promise-item { font-size:12.5px; }

  /* One column, top to bottom: heading, month, dates, time zone, times, continue. */
  #schedule-consultation .availability-panel { display:flex; flex-direction:column; padding:18px 16px 18px; }
  #schedule-consultation .availability-top,
  #schedule-consultation .scheduler-grid { display:contents; }
  #schedule-consultation .availability-heading { order:1; margin:0 0 14px; font-size:19px; text-align:center; }
  #schedule-consultation .calendar { order:2; }
  #schedule-consultation .timezone { order:3; justify-content:center; margin:14px 0 4px; font-size:12px; }
  #schedule-consultation .time-panel { order:4; margin-top:18px; }
  #schedule-consultation .booking-summary { order:5; }

  /* Month bar: ‹ November 2026 › with round arrow buttons. */
  #schedule-consultation .calendar-nav { display:grid; grid-template-columns:40px minmax(0, 1fr) 40px; align-items:center; margin-bottom:12px; }
  #schedule-consultation .month-nav { display:contents; }
  #schedule-consultation .month-button { width:40px; height:40px; border:0; border-radius:50%; background:#EEF4FF; color:#2E6BE6; }
  #schedule-consultation .month-button:first-child { order:0; }
  #schedule-consultation .calendar-month { order:1; font-size:15px; font-weight:600; text-align:center; }
  #schedule-consultation .month-button:last-child { order:2; }
  #schedule-consultation .month-button:disabled { background:transparent; color:#C6D1DC; }

  /* Dates: large circles; available days tinted blue, the chosen day solid blue. */
  #schedule-consultation .weekdays,
  #schedule-consultation .dates { gap:4px; }
  #schedule-consultation .weekday { padding:6px 0; font-size:11px; }
  #schedule-consultation .date-button { width:100%; max-width:44px; justify-self:center; font-size:15px; }
  #schedule-consultation .date-button.available { background:#EEF4FF; }
  #schedule-consultation .date-button.available::after { display:none; }
  #schedule-consultation .date-button.selected { background:#2E6BE6; color:#fff; box-shadow:none; }

  /* Times appear once a date is chosen, as a full-width list. */
  #schedule-consultation .time-panel:not(:has(.time-button:not(:disabled))) { display:none; }
  #schedule-consultation .time-title { margin-bottom:10px; font-size:12px; text-align:center; }
  #schedule-consultation .time-list { grid-template-columns:minmax(0, 1fr); gap:8px; }
  #schedule-consultation .time-button { min-height:50px; border:1px solid rgba(46,107,230,.5); border-radius:8px; font-size:15px; }
  #schedule-consultation .time-button.selected { border-color:#2E6BE6; }

  #schedule-consultation .booking-summary { margin-top:18px; padding-top:14px; border-top:1px solid #E8EEF6; }
  #schedule-consultation .summary-copy { font-size:13px; text-align:center; }
  #schedule-consultation .booking-summary .zenov-btn { min-height:48px; justify-content:center; }
  #schedule-consultation .scheduler-footnote { flex-wrap:wrap; gap:6px 10px; font-size:11px; }

  /* Global presence: the photo opens right under the address you tap (moved there by the
     page script), instead of at the bottom of the list. */
  .zenov-office-list .zenov-office-visual { grid-template-rows:220px auto; margin:0 0 6px; border-radius:0 0 8px 8px; }
  .zenov-office-list .zenov-office-visual-caption { padding:14px 16px; }
  .zenov-office-list .zenov-office-visual-caption strong { margin-bottom:6px; font-size:18px; }
  .zenov-office-list .zenov-office-visual-caption span { font-size:11px; }

}
