/* ============================================================================
   ArianEditory — Responsive
   Mirrors the original breakpoints (measured against the live reference):
     Tablet : 810px – 1199.98px   (@media max-width: 1199.98px)
     Mobile : ≤ 809.98px          (@media max-width: 809.98px)
   Desktop is the default in style.css / components.css.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Tablet — narrower gutters, scaled type, equal-width bento, 1-col software
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  :root {
    --gutter: 40px;

    --fs-hero: 48px;   --lh-hero: 57px;
    --fs-h1: 36px;     --lh-h1: 43px;
    --fs-h2: 22px;     --lh-h2: 26px;
    --fs-h3: 18px;     --lh-h3: 22px;
    --fs-stat: 22px;   --lh-stat: 26px;
    --fs-body: 15px;   --lh-body: 22px;
    --fs-small: 13px;  --lh-small: 19px;
  }

  /* Navbar + stats live in a narrower 810px container on tablet */
  .site-nav .shell,
  .stats__inner { max-width: 810px; }

  .hero { min-height: 705px; }
  .hero__content { max-width: 519px; }

  .featured, .services, .about, .clients, .footer { padding: 40px; }

  /* Bento becomes two equal columns (the wide/narrow asymmetry is desktop-only) */
  .bento__row { width: 100%; }
  .vcard--wide, .vcard--narrow { width: auto; flex: 1 1 0; min-width: 0; }

  .srows { max-width: none; width: 100%; }

  /* About: closer grid, smaller media, single-column software list */
  .about__grid { gap: 40px; }
  .about__media { width: 350px; height: 374px; border-radius: 12px; }
  .corner { width: 20px; height: 20px; }
  .corner--tl, .corner--bl { left: 16px; }
  .corner--tr, .corner--br { right: 16px; }
  .corner--tl, .corner--tr { top: 16px; }
  .corner--bl, .corner--br { bottom: 16px; }
  .about__body { width: auto; flex: 1; max-width: 554px; }
  .sw-grid { grid-template-columns: 1fr; width: 340px; }

  /* Client monitor: quote scales down, tabs stretch to full content width */
  .monitor__text { font-size: 16px; line-height: 24px; }
  .tabs { width: 100%; }
}

/* ----------------------------------------------------------------------------
   Mobile — stacked hero, 2×2 stats, single-column cards, wrapped tabs
   -------------------------------------------------------------------------- */
@media (max-width: 809.98px) {
  :root {
    --gutter: 20px;

    --fs-hero: 36px;   --lh-hero: 43px;
    --fs-h1: 28px;     --lh-h1: 33px;
    --fs-h2: 20px;     --lh-h2: 24px;
    --fs-h3: 16px;     --lh-h3: 24px;
    --fs-stat: 20px;   --lh-stat: 24px;
    --fs-body: 14px;   --lh-body: 21px;
    --fs-small: 12px;  --lh-small: 21px;
  }

  .site-nav { top: 24px; }
  .site-nav .shell { max-width: none; height: 40px; }
  .brand__name { font-size: 18px; line-height: 22px; } /* stays 18 on mobile */

  /* Hero: portrait strip below the nav (390x514 @ y=90) with copy overlaid near its bottom */
  .hero {
    display: flex;
    align-items: flex-end;
    min-height: 769px;
    padding: 0 20px 40px;
  }
  .hero__media {
    position: absolute;
    top: 90px;
    bottom: auto;
    left: 0;
    transform: none;
    width: 100%;
    height: 514px;
  }
  .hero__media img { object-fit: cover; object-position: 100% 50%; }
  .hero__inner { margin-top: 0; padding: 0; }
  .hero__content { max-width: 330px; gap: 28px; }
  .hero__title { max-width: 297px; }

  .featured, .services, .about, .clients, .footer { padding: 40px 20px; }
  .featured { padding-top: 20px; }
  .about { padding-bottom: 20px; }

  /* Stats: 20px gutters, 2×2 cards, large gap under the rating row */
  .stats__inner { max-width: none; padding-inline: 20px; padding-bottom: 0; gap: 88px; }
  .stats__intro { padding-top: 10px; }
  .stat-cards { flex-wrap: wrap; }
  .stat-card { flex: 1 1 calc(50% - 5px); min-width: 0; }

  /* Bento: single column of full-width cards */
  .bento__row { flex-direction: column; }
  .vcard--wide, .vcard--narrow { width: 100%; flex: none; }

  /* Services: label above description; toggle stays in flow (matches reference spacing) */
  .srow { flex-direction: column; gap: 20px; padding: 20px; max-width: 430px; }
  .srow__label { width: 100%; }
  .srow__main { max-width: none; width: 100%; }
  .srow__points__grid { grid-template-columns: 1fr; }
  .srow__toggle { margin-top: 0; align-self: flex-start; }

  /* About: media above body, software full width */
  .about__grid { flex-direction: column; align-items: center; gap: 40px; }
  .about__media { width: 350px; max-width: 100%; }
  .about__body { width: 100%; max-width: 350px; }
  .sw-grid { width: 100%; }

  /* Client monitor: full-bleed card (~395px, auto-centred ⇒ x≈-2), 32px padding, taller screen */
  .clients { padding-bottom: 0; }
  .monitor {
    width: calc(100vw + 5px);
    max-width: none;
    padding: 32px;
  }
  .monitor__inner { gap: 20px; }
  .monitor__screen { height: 330px; padding: 40px 20px; align-items: stretch; justify-content: flex-start; }
  .monitor__quote { max-width: none; padding: 0; }
  .monitor__text { font-size: 16px; line-height: 24px; }
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: calc(100vw + 5px);
    max-width: none;
    margin-top: -20px; /* section gap 40 → 20 between card and tabs, as in the reference */
  }
  .tab { padding: 12px 0; font-size: 16px; line-height: 24px; }

  /* Footer: socials + WhatsApp pill stay centered, pill never overflows */
  .footer { padding: 80px 20px; }
  .whatsapp-btn { max-width: 100%; }
}
