/* =====================================================================
   Uparjon website - mobile / tablet fixes (loaded after style.css)
   ===================================================================== */

/* Never let anything make the page wider than the screen
   (clip does not break position: sticky like overflow: hidden would) */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* Speed: the 1.2 MB hero-bg.png background is replaced by a 68 KB WebP copy (same picture) */
.landing, .status, .discuss, footer { background-image: url(../images/hero-bg.webp) !important; }

/* Home hero headline is an <h1> (SEO): same look as the old h2 in style.css */
.landing .letters h1 { font-weight: 650; margin-bottom: 22px; font-size: 41px !important; line-height: 1.2; }
.landing .letters h1 span { color: #025add; }
@media (max-width: 767px) { .landing .letters h1 { font-size: 30px !important; } }

/* dark logo on the black header (dark mode, after scrolling): give it a light background */
header.bg-dark .navbar-brand img { background: rgba(255,255,255,.94); border-radius: 12px; padding: 4px 12px; }

/* ---------------- Header / navbar ----------------
   style.css used fixed margins (420px / 250px / 150px) on the logo and a
   negative margin on the menu button, which pushed the button off screen. */
@media (max-width: 991px) {
  header { justify-content: stretch !important; }
  header nav.navbar { width: 100%; padding-left: 0; padding-right: 0; }
  header nav.navbar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: 100%; padding: 0 18px; }
  header nav .navbar-brand { margin: 0; }
  header nav .navbar-brand img { margin-right: 0 !important; width: 140px; }
  header nav .navbar-toggler { margin: 0 !important; }
  header nav .navbar-collapse { left: 12px !important; right: 12px; width: auto !important; max-height: calc(100vh - 110px); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
  header nav .navbar-collapse .dropdown-menu { border: 0; box-shadow: none; padding-left: 10px; }
  header nav .navbar-collapse .dropdown-item { white-space: normal; }
  header nav .navbar-collapse .get-quotes { margin: 10px 0; }
  #darkmode-button { margin: 6px 0; }
}

/* ---------------- Content pages ---------------- */
@media (max-width: 767px) {
  .page-banner { padding: 120px 0 50px; }
  .page-banner h1 { font-size: 28px; }
  .page-body { padding: 40px 0; }
  .page-body h2 { font-size: 24px; }
  .feature-box { padding: 22px 18px; }
  .cta-box { padding: 28px 18px; }

  /* price plans */
  .up-plans .nav-pills .nav-link { padding: 8px 16px; font-size: 14px; }
  .plan-card { padding: 26px 20px; }
  .plan-card .price .amount { font-size: 32px; }

  /* domain & hosting */
  .host-hero { padding: 120px 0 60px !important; }
  .host-hero h1 { font-size: 32px !important; }
  .host-hero p.lead { font-size: 16px !important; }
  .host-trust { gap: 10px !important; flex-direction: column; align-items: center; }
  .host-section { padding: 46px 0 !important; }
  .domain-table td, .domain-table th { padding: 10px 12px !important; white-space: nowrap; }
  .tld-card .ext { font-size: 24px !important; }
  .cta-box[style] { padding: 30px 20px !important; }

  /* technologies */
  .tech-hero { padding: 120px 0 60px !important; }
  .tech-hero .lead { font-size: 16px !important; }
  .tech-hero .btn-w, .tech-hero .btn-o { width: 100%; text-align: center; }
  .tech-logo-card { padding: 22px !important; transform: none !important; max-width: 260px !important; }
  .tech-logo-card .badge-ico { right: -10px !important; top: -10px !important; width: 50px !important; height: 50px !important; font-size: 22px !important; }
  .tech-body { padding: 36px 0 10px !important; }
  .tech-card { padding: 22px 18px !important; border-radius: 18px !important; }
  .tech-card h2 { font-size: 21px !important; }
  .tech-card .content p, .tech-card .content p:first-child { font-size: 15.5px !important; }
  .techs-hero { padding: 120px 0 60px !important; }
  .techs-hero h1 { font-size: 32px !important; }

  /* blogs / products / contact */
  .blog-grid, .feature-box.p-0 { margin-bottom: 10px; }
}

/* small phones */
@media (max-width: 400px) {
  header nav .navbar-brand img { width: 120px; }
  .plan-card .price .amount { font-size: 28px; }
}
