/* Mobile usability enhancements: desktop design unchanged. */
*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; }
body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }
@media (max-width: 1199px) {
  header > div:first-child { gap: .5rem !important; padding-inline: 12px !important; }
  header .alaqiq-header-brand { min-width: 0; flex: 0 1 auto; }
  header .alaqiq-header-brand-text > span:last-child { display: none; }
  header .alaqiq-header-brand-text > span:first-child { font-size: clamp(.78rem, 2.9vw, 1rem); }
  header > div:first-child > .alaqiq-mobile-actions { flex-shrink: 0; gap: .55rem !important; align-items: center; }
  header .alaqiq-mobile-actions .alaqiq-mobile-toggle { order: 10; }
  header [data-lang-toggle] { display: none !important; }
  .alaqiq-mobile-toggle { appearance: none; display: inline-flex; align-items:center; justify-content:center; width: 42px; height:42px; padding:0; border: 1px solid #cbd0c7; border-radius: 11px; background:#f5f3ee; color:#273b2d; cursor:pointer; flex-shrink:0; }
  .alaqiq-mobile-toggle svg { width:23px; height:23px; }
  .alaqiq-mobile-menu { position:absolute; inset-inline:12px; top:calc(100% + 4px); z-index:60; display:none; max-height:calc(100dvh - 98px); overflow-y:auto; padding:12px; background:#fffaf4; color:#24372b; border:1px solid #e6e2d9; border-radius:14px; box-shadow:0 15px 35px #18281e30; }
  .alaqiq-mobile-menu.is-open { display:block; }
  .alaqiq-mobile-menu a { display:block; padding:12px 14px; border-radius:9px; color:#273b2d; font-size:15px; font-weight:600; text-decoration:none; }
  .alaqiq-mobile-menu a:hover, .alaqiq-mobile-menu a:focus-visible { background:#e8ebe4; }
  .alaqiq-mobile-menu .alaqiq-mobile-lang { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding:10px 14px; border-top:1px solid #ddd; }
  .alaqiq-mobile-menu .alaqiq-mobile-lang button { padding:8px 14px; border:1px solid #cad2c8; border-radius:8px; background:white; font-weight:700; }
}
@media (min-width:1200px) { .alaqiq-mobile-toggle, .alaqiq-mobile-menu { display:none !important; } }
@media (max-width: 640px) {
  header .alaqiq-header-logo { width: 36px; height:36px; flex-basis:36px; }
  header .alaqiq-header-brand { gap:4px; }
  header .alaqiq-header-brand-text > span:first-child { font-size: .82rem; }
  header .alaqiq-mobile-actions > a:not([data-alaqiq-cart-link]) { display:none !important; }
  /* Keep the profile visible, next to the cart and hamburger. */
  header .alaqiq-mobile-actions > div { display:flex !important; align-items:center; justify-content:center; flex-shrink:0; }
  header [data-alaqiq-cart-link] { min-width:60px !important; height:40px !important; padding:0 8px !important; gap:4px !important; }

  .home-fullbleed-hero { width:100%; margin-inline:0; min-height:0; padding:24px 16px 30px; }
  .home-hero-image { object-position: 55% center; }
  .home-fullbleed-hero::after { background:rgba(0,0,0,.59); }
  .home-hero-content { min-height:0; gap:26px; }
  /* On a narrow display the certificate must sit BELOW the hero text,
     otherwise it becomes a tiny, unreadable column beside the headline. */
  .home-hero-main { flex-direction:column; align-items:stretch; gap:1.25rem; }
  .home-hero-main > * { flex-shrink:0; }
  .home-hero-copy { width:100%; max-width:100%; min-width:0; }
  .home-hero-topline { gap:10px; }
  .home-hero-tag { line-height:1.7; font-size:.77rem; }
  .home-hero-language { max-width:100%; font-size:.84rem; padding:8px 12px; white-space:normal; }
  .home-hero-badges { display:flex; align-items:flex-start; gap:7px; }
  .home-hero-badges span { font-size:.72rem; padding:7px 9px; line-height:1.4; white-space:normal; }
  .home-hero-copy h1 { font-family:Tahoma,Arial,sans-serif; font-size:clamp(1.75rem, 7.4vw, 2.3rem) !important; line-height:1.45 !important; overflow-wrap:break-word; margin:18px 0 12px; }
  .home-hero-subtitle { font-size:clamp(1rem,4.5vw,1.25rem) !important; line-height:1.7 !important; }
  .home-hero-description { font-size:.95rem !important; line-height:1.9 !important; }
  .home-hero-actions { display:grid; grid-template-columns:1fr; gap:9px; }
  .home-hero-actions a { width:100%; text-align:center; min-height:45px; }
  .home-hero-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:9px 6px; }
  .home-hero-stats div { min-width:0; }
  .home-hero-stats span { font-size:.65rem; overflow-wrap:anywhere; }
  .home-hero-stats strong { font-size:.8rem; overflow-wrap:anywhere; }
  .home-hero-specimen { align-self:stretch; width:100%; min-width:0; }
  /* Full-width SALCO card: readable copy, clear logo and a tidy trust badge. */
  .home-authorized-card {
    order:-1; /* Make the certification visible near the top of the mobile hero. */
    display:flex;
    width:100%;
    min-width:0;
    max-width:100%;
    margin-top:0;
    padding:14px;
    align-items:flex-start;
    gap:13px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:17px;
    background:linear-gradient(145deg, rgba(39,53,42,.88), rgba(39,53,42,.71));
    box-shadow:0 12px 28px rgba(0,0,0,.18);
    backdrop-filter:blur(10px);
  }
  .home-authorized-card img {
    width:72px;
    height:72px;
    padding:6px;
    object-fit:contain;
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 12px rgba(0,0,0,.15);
    flex:0 0 72px;
  }
  .home-authorized-copy { min-width:0; flex:1; gap:5px; text-align:start; }
  .home-authorized-eyebrow { font-size:11px; font-weight:600; color:#e5eadf; }
  .home-authorized-title { font-size:15px; line-height:1.55; font-weight:800; }
  .home-authorized-desc { font-size:12.5px; line-height:1.75; color:#eff2eb; }
  .home-authorized-note {
    width:fit-content;
    max-width:100%;
    margin-top:5px;
    padding:6px 9px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.24);
    border-radius:9px;
    font-size:11px;
    line-height:1.5;
    white-space:normal;
  }
  .home-authorized-note .material-symbols-outlined { flex-shrink:0; }
  .home-hero-specimen img { flex-shrink:0; }
  main, section, footer { max-width:100%; }
  main .grid > *, main .flex > * { min-width:0; }
  h1,h2,h3,p { overflow-wrap:break-word; }
}
@media (max-width:360px) {
  header .alaqiq-header-brand-text > span:first-child { font-size:.7rem; }
  header .alaqiq-header-logo { width:30px; height:30px; flex-basis:30px; }
  .alaqiq-mobile-toggle { width:38px;height:40px; }
  header .alaqiq-mobile-actions { gap:6px !important; }
  header .alaqiq-mobile-actions > div { width:34px; height:34px; }
  header [data-alaqiq-cart-link] { min-width:56px !important; padding-inline:6px !important; }
  .home-authorized-card { gap:10px; padding:12px; }
  .home-authorized-card img { width:62px; height:62px; flex-basis:62px; }
  .home-authorized-title { font-size:14px; }
}
