/*
  MolocolStudio - Responsive Mobile Design
  Version: 1.1
  Scope: Mobile and tablet
  Desktop styles remain unchanged.
*/

/* Tablet and mobile */
@media screen and (max-width: 899px) {

  html {
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  img, video, iframe {
    max-width: 100%;
  }

  .container {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav {
    min-height: 64px;
    gap: 10px;
    justify-content: space-between;
  }

  .site-header .brand {
    flex: 0 0 auto;
    margin-inline-end: auto;
  }

  .site-header .brand img {
    width: 40px;
    height: 40px;
  }

  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .burger {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    touch-action: manipulation;
  }

  .mobile-menu {
    display: none;
    padding: 12px 0 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
  }

  .mobile-menu a:active {
    background: rgba(255,255,255,.07);
  }

  /* Main hero */
  .hero {
    padding: 42px 0 36px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-inline: auto;
  }

  .hero-visual {
    width: 100%;
    min-height: 300px;
    max-height: 420px;
    overflow: hidden;
  }

  .hero-cta {
    justify-content: center;
    gap: 10px;
  }

  .hero-proof {
    justify-content: center;
    gap: 10px 16px;
    margin-top: 22px;
  }

  /* Trust and service sections */
  .trust-inner {
    justify-content: center;
    gap: 10px 14px;
    padding: 14px 0;
    text-align: center;
  }

  .service-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-group {
    min-width: 0;
    min-height: 280px;
    padding: 20px;
    border-radius: 20px;
  }

  /* About and benefits */
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .why-points {
    grid-template-columns: minmax(0, 1fr);
  }

  /* General sections */
  .section {
    padding: 46px 0;
  }

  .page-hero {
    padding: 40px 0 24px;
  }

  /* Footer */
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  /* Forms and controls */
  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .btn {
    min-height: 44px;
  }
}

/* Small mobile phones */
@media screen and (max-width: 600px) {

  .container {
    width: calc(100% - 28px);
  }

  .hero {
    padding: 34px 0 30px;
  }

  .hero-layout {
    gap: 18px;
  }

  .hero-visual {
    min-height: 250px;
    max-height: 340px;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .service-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service-group {
    min-height: auto;
    padding: 20px;
  }

  .why-grid {
    gap: 20px;
  }

  .section {
    padding: 38px 0;
  }

  .page-hero {
    padding: 32px 0 20px;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .trust-inner {
    font-size: .75rem;
  }
}

/* Extra small phones */
@media screen and (max-width: 390px) {

  .container {
    width: calc(100% - 24px);
  }

  .nav {
    min-height: 60px;
    gap: 8px;
  }

  .site-header .brand img {
    width: 38px;
    height: 38px;
  }

  .burger {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .service-group {
    padding: 17px;
  }
}

/* Ensure the mobile menu can override the legacy hidden rule */
@media screen and (max-width: 899px) {
  .mobile-menu.open {
    display: block !important;
  }
}


/* ==========================================
   Internal pages - responsive design
   Services, blog, contact, about and legal
   ========================================== */

@media screen and (max-width: 899px) {

  /* Service listing cards */
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tile {
    min-width: 0;
    min-height: 200px;
    padding: 20px;
    overflow-wrap: anywhere;
  }

  /* Blog cards */
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .post {
    min-width: 0;
  }

  .post .cover {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .post .body {
    min-width: 0;
    padding: 17px;
  }

  .post h3 {
    overflow-wrap: anywhere;
  }

  /* Service detail pages */
  .svc-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .svc-badge {
    width: min(100%, 240px);
    max-width: 240px;
    border-radius: 24px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .step {
    min-width: 0;
    padding: 19px;
  }

  .two {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .box {
    min-width: 0;
    padding: 20px;
  }

  /* Contact page */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .form {
    width: 100%;
    min-width: 0;
    padding: 22px;
  }

  .row2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .field {
    min-width: 0;
  }

  .field input,
  .field select,
  .field textarea {
    width: 100%;
    min-width: 0;
  }

  .info-item {
    min-width: 0;
    padding: 14px;
    overflow-wrap: anywhere;
  }

  /* About page */
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-card {
    width: min(100%, 380px);
    margin-inline: auto;
  }

  /* Article and legal text */
  .article {
    width: 100%;
    max-width: 740px;
    padding-inline: 0;
    overflow-wrap: anywhere;
  }

  .article h1 {
    font-size: clamp(1.55rem, 5vw, 2.1rem);
    line-height: 1.65;
  }

  .article h2 {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-top: 1.5em;
  }

  .article p,
  .article li {
    font-size: 0.98rem;
    line-height: 2;
  }

  .article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 16px;
  }

  .article pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
  }

  /* FAQ and chips */
  .faq {
    width: 100%;
    max-width: 100%;
  }

  .faq details {
    min-width: 0;
  }

  .chips {
    gap: 8px;
    margin-bottom: 20px;
  }

  .crumbs {
    font-size: 0.78rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
}

/* Small mobile phones */
@media screen and (max-width: 600px) {

  .tiles,
  .posts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tile {
    min-height: 170px;
    padding: 20px;
  }

  .post .body {
    padding: 17px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    padding: 18px;
  }

  .svc-badge {
    width: min(100%, 210px);
    max-width: 210px;
  }

  .form {
    padding: 18px;
    border-radius: 18px;
  }

  .info-item {
    gap: 11px;
    padding: 13px;
  }

  .about-grid {
    gap: 20px;
  }

  .about-card {
    width: 100%;
    max-width: 320px;
  }

  .article h1 {
    font-size: 1.55rem;
  }

  .article h2 {
    font-size: 1.12rem;
  }

  .article p,
  .article li {
    font-size: 0.95rem;
    line-height: 1.95;
  }

  .chips {
    gap: 7px;
  }
}

/* Very narrow phones */
@media screen and (max-width: 390px) {

  .tile {
    padding: 17px;
  }

  .post .body {
    padding: 15px;
  }

  .form {
    padding: 15px;
  }

  .step,
  .box {
    padding: 16px;
  }
}


/* ==========================================
   Floating mobile navigation overlay
   Staging-only refinement
   ========================================== */
@media screen and (max-width: 899px) {

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .site-header .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10001;
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    margin: 8px auto 0;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13, 11, 22, .98);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
  }

  .site-header .mobile-menu.open {
    display: block !important;
  }

  .site-header .mobile-menu a {
    position: relative;
    z-index: 1;
  }
}

/* SERVICE MOBILE REFINEMENT - 2026-11-07 */
@media screen and (max-width: 899px) {
  .page-hero h1 {
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .page-hero p.lead {
    line-height: 1.95;
    margin-top: 14px;
  }

  .svc-hero {
    gap: 20px;
  }

  .box,
  .step {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .box h3,
  .step h3 {
    line-height: 1.7;
  }

  .checks li {
    align-items: flex-start;
    line-height: 1.9;
  }

  .cta-band {
    padding: 34px 22px;
    border-radius: 22px;
  }

  .cta-band p {
    line-height: 1.95;
  }
}

@media screen and (max-width: 600px) {
  .page-hero h1 {
    font-size: 1.55rem;
  }

  .page-hero .crumbs {
    margin-bottom: 14px;
  }

  .svc-hero {
    gap: 18px;
  }

  .svc-badge {
    border-radius: 20px;
  }

  .two {
    gap: 13px;
  }

  .box {
    padding: 19px;
    border-radius: 18px;
  }

  .steps[style] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .step {
    padding: 18px;
    border-radius: 18px;
  }

  .cta-band {
    padding: 28px 17px;
  }

  .cta-band .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media screen and (max-width: 390px) {
  .page-hero h1 {
    font-size: 1.42rem;
  }

  .page-hero p.lead {
    font-size: .96rem;
  }

  .box,
  .step {
    padding: 16px;
  }

  .cta-band {
    padding: 24px 14px;
  }
}


/* MOBILE FOOTER REFINEMENT - 2026-11-07 */
@media screen and (max-width: 600px) {
  .site-footer {
    padding: 34px 0 20px;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .foot-grid > div:first-child {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .foot-grid > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .foot-grid .c a {
    overflow-wrap: anywhere;
  }

  .copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 26px;
  }
}
