/* OMTIOR Website 2.0 — Responsive */

/* ===== Mobile nav toggle: hidden on desktop, shown ≤1000px ===== */
@media(max-width:1000px){
  .navlinks{display:none}
  .nav-toggle{
    display:inline-flex;flex-direction:column;justify-content:center;gap:5px;
    width:36px;height:36px;padding:0;border:none;background:transparent;cursor:pointer;flex-shrink:0;
  }
  .nav-toggle span{
    display:block;width:24px;height:2.5px;border-radius:2px;background:#fff;
    transition:transform .25s ease,opacity .25s ease;margin:0 auto;
  }
  .nav-toggle.active span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
  .nav-toggle.active span:nth-child(2){opacity:0}
  .nav-toggle.active span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
  .nav-actions .lang-switch:not(.mobile-lang-switch){display:none}
  .mobile-nav{
    display:flex;flex-direction:column;
    position:absolute;top:100%;left:0;right:0;
    background:#050b13;backdrop-filter:blur(22px);
    border-bottom:1px solid rgba(255,255,255,.14);
    box-shadow:0 26px 60px rgba(0,0,0,.6);
    padding:16px 22px 24px;gap:4px;z-index:49;
    max-height:0;overflow:hidden;opacity:0;
    transition:max-height .3s ease,opacity .25s ease,padding .3s ease;
    padding-top:0;padding-bottom:0;
  }
  .mobile-nav.open{max-height:460px;opacity:1;padding-top:16px;padding-bottom:24px}
  .mobile-nav a{
    color:#eaf2fb;font-size:1rem;font-weight:800;
    text-transform:uppercase;letter-spacing:.03em;
    padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.09);
    transition:color .2s ease,background .2s ease;border-radius:8px;
  }
  .mobile-nav a:active{background:rgba(255,255,255,.06)}
  .mobile-nav a:last-of-type{border-bottom:none}
  .mobile-nav a:hover{color:#fff}
  .mobile-lang-switch{margin-top:12px;align-self:center;padding:12px 42px;min-width:120px;justify-content:center}
  nav:not(.legal-toc){padding:14px 18px}
}

/* ===== BREAKPOINT: ≤950px ===== */
@media(max-width:950px){
  .hero{min-height:auto;padding:76px 0 64px}
  .hero-grid{grid-template-columns:1fr;gap:48px;justify-items:center;text-align:center}
  .hero-copy{max-width:900px;display:flex;flex-direction:column;align-items:center}
  .actions{justify-content:center}
  .problem-grid,.about{grid-template-columns:1fr}
  .hero-cards{grid-template-columns:1fr;gap:12px;max-width:520px;width:100%}
  .hero-card{flex-direction:row;align-items:center;padding:18px 20px}
  .hero-card .card-num{top:50%;transform:translateY(-50%);right:18px;font-size:24px}
  .hero-card .hero-card-body{padding-right:34px}
  .services{grid-template-columns:1fr 1fr}
  .service,.service.wide{grid-column:span 1}
  .principles{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr}
  .steps:before{display:none}
  .projects{grid-template-columns:1fr}
  .statement-panel{padding:38px 32px}
  .footer-top{grid-template-columns:1fr 1fr;gap:40px}
  .footer-brand{grid-column:1 / -1}
}

/* ===== BREAKPOINT: ≤700px ===== */
@media(max-width:700px){
  .section{padding:76px 0}
  .checks{grid-template-columns:1fr}
  .site-footer{margin-top:70px}
  .footer-top{padding:48px 0 36px;gap:34px}
  .statement-pillars{grid-template-columns:1fr;gap:24px;margin-top:30px;padding-top:28px}
  .pillar p{max-width:none}
  .legal-hero{padding:130px 22px 40px}
  .legal-layout{padding:0 22px 90px}
  .legal-card{padding:32px}
  .legal-card h2{font-size:clamp(1.35rem,5.5vw,1.9rem)}
  .legal-toc{padding:20px 22px}
  .legal-section{margin-bottom:20px}
}

/* ===== BREAKPOINT: ≤620px ===== */
@media(max-width:620px){
  .wrap{width:min(var(--max),calc(100% - 24px))}
  nav:not(.legal-toc){padding:12px 16px;height:auto}
  .hero{padding:48px 0 52px}
  .hero-grid{gap:34px}
  .hero .eyebrow{font-size:10px}
  .hero h1{font-size:clamp(32px,9vw,42px);margin:16px 0 16px}
  .hero p{font-size:15px;margin-bottom:24px}
  .actions{gap:8px}
  .actions .btn{padding:11px 16px;font-size:12px}
  .hero-cards{gap:9px}
  .hero-card{padding:13px 15px;gap:12px}
  .hero-card .icon-tile{width:34px;height:34px;border-radius:10px}
  .hero-card .icon-tile svg{width:17px;height:17px}
  .hero-card h3{font-size:13.5px}
  .hero-card p{font-size:11.5px;line-height:1.35}
  .hero-card small{font-size:9px}
  .services,.principles,.form-grid{grid-template-columns:1fr}
  .btn{width:100%}
  .navlinks .btn,.nav-actions .btn{width:auto}
  .cta-box{padding:28px 20px}
  .form .btn{width:100%}
  .statement-panel{padding:30px 22px;border-radius:22px}
  .statement-quote{font-size:19px}
  .check{font-size:13.5px;padding:14px 15px;gap:12px}
  .check-num{flex:0 0 28px;width:28px;height:28px;font-size:10.5px;border-radius:9px}
  .footer-top{grid-template-columns:1fr 1fr;gap:28px 24px;padding:44px 0 32px}
  .footer-brand{grid-column:1 / -1}
  .footer-bottom{flex-direction:column;text-align:center;gap:12px}
}

/* ===== BREAKPOINT: ≤480px ===== */
@media(max-width:480px){
  .section{padding:60px 0}
  .hero{padding:40px 0 44px}
  .hero h1{font-size:clamp(29px,10vw,36px)}
  .hero p{font-size:14px}
  .hero-card p{display:none}
  .hero-card{padding:10px 13px}
  .footer-inner{padding:0 18px}
  .footer-top{grid-template-columns:1fr 1fr;gap:26px 20px;padding:38px 0 28px}
  .footer-col h4{margin-bottom:14px}
  .footer-col ul{gap:9px}
  .footer-col a{font-size:.85rem}
  .footer-bottom{padding:20px 18px 0;flex-direction:column;gap:10px;text-align:center;justify-content:center}
  .footer-socials{justify-content:flex-start}
  .legal-card{padding:26px}
  .legal-card h2{gap:12px}
  .legal-number{width:34px;height:34px;font-size:.8rem}
  .legal-toc a{font-size:.85rem;padding:7px 12px}
  .legal-hero{padding:110px 18px 36px}
  .legal-layout{padding:0 18px 80px}
  .cta-box{padding:24px 16px}
  .statement-panel{padding:26px 18px}
  .statement-quote{font-size:17.5px}
  h2{font-size:clamp(28px,6vw,42px)}
  .lead{font-size:16px}
}

/* ===== Ultra-short viewports: keep the hero compact but not cramped ===== */
@media(max-width:620px) and (max-height:740px){
  .hero{padding:30px 0 34px}
  .hero-grid{gap:26px}
  .hero h1{font-size:clamp(27px,8.5vw,36px);margin:12px 0 14px}
  .hero p{font-size:13.5px;margin-bottom:20px}
  .eyebrow{font-size:9.5px}
  .hero-card p{display:none}
  .hero-card{padding:11px 14px}
  .hero-card .icon-tile{width:32px;height:32px}
}
